Cloudflare

Get access rules

Cette page n'est pas encore disponible en français, sa traduction est en cours.
Si vous avez des questions ou des retours sur notre projet de traduction actuel, n'hésitez pas à nous contacter.

Get the access rules of an IP, IP range, or country. This returns access rules created for the target by the zone itself, or the account/user to which that zone belongs.

Inputs

Champ

Type

Description

zoneId [required]

string

target [required]

string

The IP to target in the rule. It can be:

  • an IPv4 address
  • an IPv6 address
  • an IP range specified in CIDR notation (limited to /16 and /24 for IPv4 and /32, /48, and /64 for IPv6)
  • an autonomous system number (ASN)
  • a country / 2-digit ISO country code

Outputs

Expand All

Champ

Type

Description

accessRules [required]

[object]

id [required]

string

notes [required]

string

mode [required]

enum

configuration [required]

object

target [required]

string

value [required]

string

created_on [required]

string

modified_on [required]

string

allowed_modes [required]

[string]

scope [required]

object

id [required]

string

email

string

name

string

type [required]

string

paused

boolean