Custom access level specification
Stay organized with collections
Save and categorize content based on your preferences.
This page details the objects and attributes that are used to build the
Common Expression Language (CEL)
expressions for custom access levels. Examples are included.
Contains attributes related to the API call itself, distinct from the user, device, or network.
origin attributes
This section lists the attributes supported by the origin object.
Attributes
ip
Type
string
Description
The IP address the request originated from. If the IP address
cannot be determined, origin.ip evaluates
to an error. We recommend that you use
inIpRange to check if the origin IP address is in a
specific IP address range instead of doing a string comparison.
Example:
inIpRange(origin.ip,["203.0.113.24"])
region_code
Type
string
Description
The ISO
3166-1 alpha-2 code for the country or region where
the request originated from. If the region code cannot be
determined, origin.region_code evaluates
to an error.