General Variables

Use the following general variables for all requests

You use variables when adding conditions to a policy. For more information, see Conditions. Here are the general variables and the general variables with particular principal types and applicable to all requests.

General Variables for All Requests
Name Type Description
request.user.id Entity (OCID) The OCID of the requesting user.
request.user.name String Name of the requesting user.
request.groups.id List of entities (OCIDs) The OCIDs of the groups the requesting user is in.
request.permission String The underlying permission being requested.
request.operation String The API operation name being requested (for example, ListUsers).
request.networkSource.name String The name of the network source group that specifies allowed IP addresses the request may come from. See Overview of Network Sources for information.
request.utc-timestamp String The UTC time that the request is submitted, specified in ISO 8601 format. See Restricting Access to Resources Based on Time Frame for more information.
request.utc-timestamp.month-of-year String The month that the request is submitted in, specified in numeric ISO 8601 format (for example, '1', '2', '3', ... '12'). See Restricting Access to Resources Based on Time Frame for more information.
request.utc-timestamp.day-of-month String The day of the month that the request is submitted in, specified in numeric format '1' - '31'. See Restricting Access to Resources Based on Time Frame for more information.
request.utc-timestamp.day-of-week String The day of the week that the request is submitted in, specified in English (for example, 'Monday', 'Tuesday', 'Wednesday', and so on.). See Restricting Access to Resources Based on Time Frame for more information.
request.utc-timestamp.time-of-day String The UTC time interval that the request is submitted during, in ISO 8601 format (for example, '01:00:00Z' AND '02:01:00Z'). See Restricting Access to Resources Based on Time Frame for more information.
request.region String

The 3-letter key for the region the request is made in. Allowed values are:

Note: For quota policies, the region name must be specified instead of the following 3-letter key values. Also see Sample Quotas for more information.

  • AMS - use for Netherlands Northwest (Amsterdam)
  • ARN - use for Sweden Central (Stockholm)
  • AUH - use for UAE Central (Abu Dhabi)
  • BEG - use for Serbia Central (Jovanovac)
  • BOG - use for Colombia Central (Bogota)
  • BOM - use for India West (Mumbai)
  • CDG - use for France Central (Paris)
  • CWL - use for UK West (Newport)
  • DXB - use for UAE East (Dubai)
  • FRA - use for Germany Central (Frankfurt)
  • GRU - use for Brazil East (Sao Paulo)
  • HSG - use for Indonesia North (Batam)
  • HYD - use for India South (Hyderabad)
  • IAD - use for US East (Ashburn)
  • ICN - use for South Korea Central (Seoul)
  • JBP - use for Malaysia West 2 (Kulai)
  • JED - use for Saudi Arabia West (Jeddah)
  • JNB - use for South Africa Central (Johannesburg)
  • KIX - use for Japan Central (Osaka)
  • LEJ - use for Morocco West (Casablanca)
  • LHR - use for UK South (London)
  • LIN - use for Italy Northwest (Milan)
  • NRQ - use for Italy North (Turin)
  • MAD - use for Spain Central (Madrid)
  • MEL - use for Australia Southeast (Melbourne)
  • MRS - use for France South (Marseille)
  • MTY - use for Mexico Northeast (Monterrey)
  • MTZ - use for Israel Central (Jerusalem)
  • NRT - use for Japan East (Tokyo)
  • ORD - use for US Midwest (Chicago)
  • ORF - use for Spain Central (Madrid 3)
  • PHX - use for US West (Phoenix)
  • QRO - use for Mexico Central (Queretaro)
  • RUH - use for Saudi Arabia Central (Riyadh)
  • SCL - use for Chile Central (Santiago)
  • SIN - use for Singapore (Singapore)
  • SJC - use for US West (San Jose)
  • SYD - use for Australia East (Sydney)
  • VAP - use for Chile West (Valparaiso)
  • VCP - use for Brazil Southeast (Vinhedo)
  • XSP - use for Singapore West (Singapore)
  • YNY - use for South Korea North (Chuncheon)
  • YUL - use for Canada Southeast (Montreal)
  • YYZ - use for Canada Southeast (Toronto)
  • ZRH - use for Switzerland North (Zurich)
request.ad String The name of the availability domain the request is made in. To get a list of availability domain names, use the ListAvailabilityDomains operation.
request.principal.compartment.tag String The tags applied to the compartment that the requesting resource belongs to are evaluated for a match. For usage instructions, see Using Tags to Manage Access.
request.principal.group.tag String The tags applied to the groups that the user belongs to are evaluated for a match. For usage instructions, see Using Tags to Manage Access.
request.principal.type String The name of the resource type specified in request.principal.type. For example, user or cluster.
target.compartment.name String The name of the compartment specified in target.compartment.id.
target.compartment.id Entity (OCID)

The OCID of the compartment containing the primary resource.

Note: target.compartment.id and target.compartment.name can't be used with a "List" API operation to filter the list based on the requesting user's access to the compartment.

target.resource.compartment.tag String The tag applied to the target compartment of the request is evaluated. For usage instructions, see Using Tags to Manage Access.
target.resource.tag String The tag applied to the target resource of the request is evaluated. For usage instructions, see Using Tags to Manage Access.
target.tenant.name String The name of the tenancy that contains the target resource.
target.tenant.id Entity (OCID) The OCID of the tenancy that contains the target resource.
request.principal.id Entity (OCID) The OCID of the requesting principal.
request.principal.compartment.id Entity (OCID) The OCID of the compartment that the requesting instance, resource, or service principal belongs to.
request.dynamicgroup.name Strings The names of the dynamic groups that the requesting instance or resource principal belongs to.
request.dynamicgroup.id Entity (OCID) The OCIDs of the dynamic groups that the requesting instance or resource principal belongs to.
request.domain.name String The name of the IAM domain associated with the requesting user, instance, or resource principal.
request.domain.id Entity (OCID) The OCID of the IAM domain associated with the requesting user, instance, or resource principal.
General Variables for Specific Principal Types
Name Type Description Used with specific OCI Principal
request.user.authn-type

String

The authentication type used by the requesting user.

User

request.user.mfaTotpVerified

String

Indicates whether TOTP multifactor authentication was verified for the requesting user.

User

request.instance.id Entity (OCID)

The OCID of the requesting instance principal.

Instance

request.instance.compartment.id Entity (OCID)

The OCID of the compartment that contains the requesting instance principal.

Instance

request.resource.compartment.id Entity (OCID)

The OCID of the compartment that contains the requesting resource principal.

Resource

request.groups.name

Strings

The names of the IAM groups that the requesting user belongs to.

User