Class Rules
CloudFlare API wrapper
Organization-level Firewall access rule
- Cloudflare\Api
-
Cloudflare\Organizations\Firewall\AccessRules\Rules
Author: James Bell james@james-bell.co.uk
Version: 1
Located at CloudFlare/Organizations/Firewall/AccessRules/Rules.php
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 |
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. |
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. |
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 |
__construct(),
delete(),
get(),
patch(),
permissions(),
post(),
put(),
request(),
setAuthKey(),
setCurlOption(),
setEmail()
|
protected
array
|
$permission_level
Default permissions level |
#
['read' => '#organization:read', 'edit' => '#organization:edit']
|
$auth_key,
$curl_options,
$email
|