alicloud_dbfs_auto_snap_shot_policies
更新时间:
This data source provides Dbfs Auto Snap Shot Policy available to the user.What is Auto Snap Shot Policy
-> NOTE: Available in 1.202.0+
Example Usage
data "alicloud_dbfs_auto_snap_shot_policies" "default" {
ids = ["${alicloud_dbfs_auto_snap_shot_policy.default.id}"]
}
output "alicloud_dbfs_auto_snap_shot_policy_example_id" {
value = data.alicloud_dbfs_auto_snap_shot_policies.default.auto_snap_shot_policies.0.id
}
Argument Reference
The following arguments are supported:
ids- (Optional, ForceNew, Computed) A list of Auto Snap Shot Policy IDs.name_regex- (Optional, ForceNew) A regex string to filter results by Auto Snap Shot Policy name.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 Auto Snap Shot Policy IDs.names- A list of Auto Snap Shot Policy names.auto_snap_shot_policies- A list of Auto Snap Shot Policy Entries. Each element contains the following attributes:applied_dbfs_number- The number of database file systems set by the automatic snapshot policy.create_time- The creation time of the resourcelast_modified- Last modification time of automatic snapshot policypolicy_id- Automatic snapshot policy IDid- The ID of the policy.policy_name- Automatic snapshot policy namerepeat_weekdays- A collection of automatic snapshots performed on several days of the week.retention_days- Automatic snapshot retention daysstatus- Automatic snapshot policy statusstatus_detail- Automatic snapshot policy status detailstime_points- The set of times at which the snapshot is taken on the day the automatic snapshot is executed.
该文章对您有帮助吗?