Skip to main content

availability_domains

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

Overview​

Nameavailability_domains
TypeResource
Idoci.identity.availability_domains

Fields​

The following fields are returned by SELECT queries:

One or more isolated, fault-tolerant Oracle data centers that host cloud resources such as instances, volumes,<br />and subnets. A region contains several Availability Domains. For more information, see<br />[Regions and Availability Domains](/Content/General/Concepts/regions.htm).<br />

NameDatatypeDescription
idstringThe OCID of the Availability Domain.
namestringThe name of the Availability Domain.
compartmentIdstringThe OCID of the tenancy.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectcompartmentId, regionLists the availability domains in your tenancy. Specify the OCID of either the tenancy or another<br />of your compartments as the value for the compartment ID (remember that the tenancy is simply the root compartment).<br />See [Where to Get the Tenancy's OCID and User's OCID](/Content/API/Concepts/apisigningkey.htm#five).<br />Note that the order of the results returned can change if availability domains are added or removed; therefore, do not<br />create a dependency on the list order.<br />

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
compartmentIdstringThe OCID of the compartment (remember that the tenancy is simply the root compartment).
regionstringOCI region identifier (e.g. us-ashburn-1, ap-sydney-1); resolves from OCI_REGION when not supplied in the query. (default: us-ashburn-1, x-stackQL-envVar: OCI_REGION)

SELECT examples​

Lists the availability domains in your tenancy. Specify the OCID of either the tenancy or another<br />of your compartments as the value for the compartment ID (remember that the tenancy is simply the root compartment).<br />See [Where to Get the Tenancy's OCID and User's OCID](/Content/API/Concepts/apisigningkey.htm#five).<br />Note that the order of the results returned can change if availability domains are added or removed; therefore, do not<br />create a dependency on the list order.<br />

SELECT
id,
name,
compartmentId
FROM oci.identity.availability_domains
WHERE compartmentId = '{{ compartmentId }}' -- required
AND region = '{{ region }}' -- required
;