Skip to main content

access_rules_rules

Creates, updates, deletes, gets or lists an access_rules_rules resource.

Overview

Nameaccess_rules_rules
TypeResource
Idcloudflare.firewall.access_rules_rules

Fields

The following fields are returned by SELECT queries:

List IP Access rules response.

NameDatatypeDescription
idstringThe unique identifier of the IP Access rule. (example: 92f17202ed8bd63d69a66b86a49a8f6b)
allowed_modesarrayThe available actions that a rule can apply to a matched request.
configurationobjectThe rule configuration. (title: An IP address configuration.)
created_onstring (date-time)The timestamp of when the rule was created. (example: 2014-01-01T05:20:00.12345Z)
modestringThe action to apply to a matched request. (block, challenge, whitelist, js_challenge, managed_challenge) (example: challenge)
modified_onstring (date-time)The timestamp of when the rule was last modified. (example: 2014-01-01T05:20:00.12345Z)
notesstringAn informative summary of the rule, typically used as a reminder or explanation. (example: This rule is enabled because of an event that occurred on date X.)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_by_userselectmode, configuration.target, configuration.value, notes, match, page, per_page, order, directionFetches IP Access rules of the user. You can filter the results using several optional parameters.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
configuration.targetstring
configuration.valuestring
directionstring
matchstring
modestring
notesstring
orderstring
pagenumber
per_pagenumber

SELECT examples

Fetches IP Access rules of the user. You can filter the results using several optional parameters.

SELECT
id,
allowed_modes,
configuration,
created_on,
mode,
modified_on,
notes
FROM cloudflare.firewall.access_rules_rules
WHERE mode = '{{ mode }}'
AND configuration.target = '{{ configuration.target }}'
AND configuration.value = '{{ configuration.value }}'
AND notes = '{{ notes }}'
AND match = '{{ match }}'
AND page = '{{ page }}'
AND per_page = '{{ per_page }}'
AND order = '{{ order }}'
AND direction = '{{ direction }}'
;