alicloud_dbfs_snapshots

This data source provides the Dbfs Snapshots of the current Alibaba Cloud user.

Example Usage

Basic Usage

data "alicloud_dbfs_snapshots" "ids" {
  ids = ["example_id"]
}
output "dbfs_snapshot_id_1" {
  value = data.alicloud_dbfs_snapshots.ids.snapshots.0.id
}

data "alicloud_dbfs_snapshots" "nameRegex" {
  name_regex = "^my-Snapshot"
}
output "dbfs_snapshot_id_2" {
  value = data.alicloud_dbfs_snapshots.nameRegex.snapshots.0.id
}

data "alicloud_dbfs_snapshots" "status" {
  status = "accomplished"
}
output "dbfs_snapshot_id_3" {
  value = data.alicloud_dbfs_snapshots.status.snapshots.0.id
}

Argument Reference

The following arguments are supported:

Argument Reference

The following attributes are exported in addition to the arguments listed above: