Overview

Namespaces

  • Cloudflare
    • Organizations
      • Firewall
        • AccessRules
    • User
      • Billing
        • Subscriptions
      • Firewall
    • Zone
      • Firewall
      • SSL
      • WAF
        • Packages

Classes

  • Rules
  • Overview
  • Namespace
  • Class

Class Rules

CloudFlare API wrapper

Organization-level Firewall access rule

Cloudflare\Api
Extended by Cloudflare\Organizations\Firewall\AccessRules\Rules
Namespace: Cloudflare\Organizations\Firewall\AccessRules
Author: James Bell james@james-bell.co.uk
Version: 1
Located at CloudFlare/Organizations/Firewall/AccessRules/Rules.php
Methods summary
public
# rules( string $organization_id, string|null $mode = null, string|null $configuration_target = null, string|null $configuration_value = null, integer|null $page = null, integer|null $per_page = null, string|null $order = null, string|null $direction = null, string|null $match = null )

List access rules (permission needed: #organization:read) Search, sort, and filter IP/country access rules

List access rules (permission needed: #organization:read) Search, sort, and filter IP/country access rules

Parameters

$organization_id
$mode
The action to apply to a matched request
$configuration_target
The rule configuration target
$configuration_value
Search by IP, range, or country code
$page
Page number of paginated results
$per_page
Number of rules per page
$order
Field to order rules by
$direction
Direction to order rules
$match
Whether to match all search requirements or at least one (any)
public
# create( string $organization_id, string $mode, object $configuration, string|null $notes = null )

Create access rule (permission needed: #organization:edit) Make a new IP, IP range, or country access rule for all zones owned by the organization. Note: If you would like to create an access rule that applies to a specific zone only, use the zone firewall endpoints.

Create access rule (permission needed: #organization:edit) Make a new IP, IP range, or country access rule for all zones owned by the organization. Note: If you would like to create an access rule that applies to a specific zone only, use the zone firewall endpoints.

Parameters

$organization_id
$mode
The action to apply to a matched request
$configuration
Rule configuration
$notes
A personal note about the rule. Typically used as a reminder or explanation for the rule.
public
# update( string $organization_id, string $identifier, string|null $mode = null, object|null $configuration = null, string|null $notes = null )

Update access rule (permission needed: #organization:edit) Update rule state and/or configuration. This will be applied across all zones owned by the organization.

Update access rule (permission needed: #organization:edit) Update rule state and/or configuration. This will be applied across all zones owned by the organization.

Parameters

$organization_id
$identifier
$mode
The action to apply to a matched request
$configuration
Rule configuration
$notes
A personal note about the rule. Typically used as a reminder or explanation for the rule.
public
# delete_rule( string $organization_id, string $identifier )

Delete access rule (permission needed: #organization:edit) Remove an access rule so it is no longer evaluated during requests. This will apply to all zones owned by the organization

Delete access rule (permission needed: #organization:edit) Remove an access rule so it is no longer evaluated during requests. This will apply to all zones owned by the organization

Parameters

$organization_id
$identifier
Methods inherited from Cloudflare\Api
__construct(), delete(), get(), patch(), permissions(), post(), put(), request(), setAuthKey(), setCurlOption(), setEmail()
Properties summary
protected array $permission_level

Default permissions level

Default permissions level

# ['read' => '#organization:read', 'edit' => '#organization:edit']
Properties inherited from Cloudflare\Api
$auth_key, $curl_options, $email
API documentation generated by ApiGen