PHP 클래스 Cloudflare\Organizations\Firewall\AccessRules\Rules

Organization-level Firewall access rule
저자: James Bell ([email protected])
상속: extends CloudFlare\Api
파일 보기 프로젝트 열기: jamesryanbell/cloudflare

공개 메소드들

메소드 설명
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.
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
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
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.

메소드 상세

create() 공개 메소드

Note: If you would like to create an access rule that applies to a specific zone only, use the zone firewall endpoints.
public create ( string $organization_id, string $mode, object $configuration, string | null $notes = null )
$organization_id string
$mode string The action to apply to a matched request
$configuration object Rule configuration
$notes string | null A personal note about the rule. Typically used as a reminder or explanation for the rule.

delete_rule() 공개 메소드

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
public delete_rule ( string $organization_id, string $identifier )
$organization_id string
$identifier string

rules() 공개 메소드

List access rules (permission needed: #organization:read) Search, sort, and filter IP/country access rules
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 )
$organization_id string
$mode string | null The action to apply to a matched request
$configuration_target string | null The rule configuration target
$configuration_value string | null Search by IP, range, or country code
$page integer | null Page number of paginated results
$per_page integer | null Number of rules per page
$order string | null Field to order rules by
$direction string | null Direction to order rules
$match string | null Whether to match all search requirements or at least one (any)

update() 공개 메소드

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