alicloud_hbr_udm_snapshots
更新时间:
This data source provides Hbr Udm Snapshot available to the user.What is Udm Snapshot
-> NOTE: Available since v1.253.0.
Example Usage
variable "name" {
default = "terraform-example"
}
provider "alicloud" {
region = "cn-beijing"
}
data "alicloud_hbr_udm_snapshots" "default" {
source_type = "UDM_ECS"
start_time = "1642057551"
end_time = "1750927687"
instance_id = "i-08qv5q4c4j****"
}
output "alicloud_hbr_udm_snapshot_example_id" {
value = data.alicloud_hbr_udm_snapshots.default.snapshots.0.id
}
Argument Reference
The following arguments are supported:
disk_id- (ForceNew, Optional) Cloud disk ID. This field is valid only when SourceType = UDM_ECS_DISK.end_time- (Required, ForceNew) End Timeinstance_id- (Required, ForceNew) ECS instance IDjob_id- (ForceNew, Optional) The ID of the backup job that creates the snapshot.source_type- (Required, ForceNew) Data source type. Only UDM_ECS and UDM_ECS_DISK are supported.start_time- (Required, ForceNew) Start Timeids- (Optional, ForceNew, Computed) A list of Udm Snapshot IDs.output_file- (Optional, ForceNew) 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 Udm Snapshot IDs.snapshots- A list of Udm Snapshot Entries. Each element contains the following attributes:create_time- The creation time of the resourcedisk_id- Cloud disk ID. This field is valid only when SourceType = UDM_ECS_DISK.instance_id- ECS instance IDjob_id- The ID of the backup job that creates the snapshot.source_type- Data source type. Only UDM_ECS and UDM_ECS_DISK are supported.start_time- Start Timeudm_snapshot_id- The first ID of the resourceid- The ID of the resource supplied above.
该文章对您有帮助吗?