availability_domains
Creates, updates, deletes, gets or lists an availability_domains resource.
Overview​
| Name | availability_domains |
| Type | Resource |
| Id | oci.identity.availability_domains |
Fields​
The following fields are returned by SELECT queries:
- list
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 />
| Name | Datatype | Description |
|---|---|---|
id | string | The OCID of the Availability Domain. |
name | string | The name of the Availability Domain. |
compartmentId | string | The OCID of the tenancy. |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | compartmentId, region | 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 /> |
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.
| Name | Datatype | Description |
|---|---|---|
compartmentId | string | The OCID of the compartment (remember that the tenancy is simply the root compartment). |
region | string | OCI 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​
- list
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
;