Use this data source to get information about an existing snapshot.
data "openstack_blockstorage_snapshot_v2" "snapshot_1" {
name = "snapshot_1"
most_recent = true
}
region
- (Optional) The region in which to obtain the V2 Block Storage
client. If omitted, the region
argument of the provider is used.
name
- (Optional) The name of the snapshot.
status
- (Optional) The status of the snapshot.
volume_id
- (Optional) The ID of the snapshot's volume.
most_recent
- (Optional) Pick the most recently created snapshot if there
are multiple results.
The following attributes are exported:
region
- See Argument Reference above.name
- See Argument Reference above.status
- See Argument Reference above.volume_id
- See Argument Reference above.description
- The snapshot's description.size
- The size of the snapshot.metadata
- The snapshot's metadata.