alicloud_cen_instances
更新时间:
This data source provides CEN instances available to the user.
Example Usage
data "alicloud_cen_instances" "cen_instances_ds" {
ids = ["cen-id1"]
name_regex = "^foo"
}
output "first_cen_instance_id" {
value = data.alicloud_cen_instances.cen_instances_ds.instances.0.id
}
Argument Reference
The following arguments are supported:
ids- (Optional) A list of CEN instances IDs.name_regex- (Optional) A regex string to filter CEN instances by name.tags- (Optional, Available in v1.81.0+) A mapping of tags to assign to the resource.status- (Optional, Available in v1.98.0+) The status of CEN instance. Valid value:Active,CreatingandDeleting.output_file- (Optional) File name where to save data source results (after runningterraform plan).
Attributes Reference
The following attributes are exported in addition to the arguments listed above:
ids- A list of CEN instances IDs.names- A list of CEN instances names.instances- A list of CEN instances. Each element contains the following attributes:cen_bandwidth_package_ids- List of CEN Bandwidth Package IDs in the specified CEN instance.id- ID of the CEN instance.cen_id- ID of the CEN instance.description- Description of the CEN instance.cen_instance_name- Name of the CEN instance.name- Name of the CEN instance.protection_level- Indicates the allowed level of CIDR block overlapping.status- Status of the CEN instance, including "Creating", "Active" and "Deleting".tags- A map of tags assigned to the Cen Instance.create_time- The creation time of the CEN Instance.
该文章对您有帮助吗?