» Data Source: oci_identity_availability_domain
This data source provides the details of a single Availability Domain in Oracle Cloud Infrastructure Identity service.
» Example Usage
data "oci_identity_availability_domain" "test_compartment" {
#Required
compartment_id = "${var.tenancy_ocid}"
#Optional (one or the other is required)
id = "${var.id}"
ad_number = "${var.ad_number}"
}
» Argument Reference
The following arguments are supported:
-
compartment_id- (Required) The OCID of the tenancy. -
id- (Optional) The OCID of the Availability Domain. Required ifad_numberis not specified. -
ad_number- (Optional) The number of the Availability Domain. Required ifidis not specified. This number corresponds to the integer in the Availability Domainname.
» Attributes Reference
The following attributes are exported:
-
compartment_id- The OCID of the tenancy. -
id- The OCID of the Availability Domain. -
ad_number- The number of the Availability Domain. For example, thead_numberfor YXol:US-ASHBURN-AD-1 would be "1" -
name- The name of the Availability Domain.