DATASOURCE::ECS::AutoSnapshotPolicy類型用于查詢單個自動快照策略。
語法
{
"Type": "DATASOURCE::ECS::AutoSnapshotPolicy",
"Properties": {
"AutoSnapshotPolicyId": String
}
}
屬性
屬性名稱 | 類型 | 必須 | 允許更新 | 描述 | 約束 |
AutoSnapshotPolicyId | String | 是 | 是 | 自動快照策略 ID。 | 無 |
返回值
Fn::GetAtt
TimePoints:指定自動快照的創建時間點。
VolumeNums:啟用該策略的拓展卷數量。
ResourceGroupId:資源組 ID。
CreateTime:創建時間。
RetentionDays:指定自動快照的保留時間。
RepeatWeekdays:指定自動快照的重復日期。
AutoSnapshotPolicyName:自動快照策略的名稱。
DiskNums:啟用該策略的云盤數量。
Tags:自動快照策略的標簽鍵值集合。
示例
YAML
格式ROSTemplateFormatVersion: '2015-09-01' Parameters: AutoSnapshotPolicyId: Type: String Description: en: The name of the automatic snapshot policy. Required: true Resources: ExtensionDataSource: Type: DATASOURCE::ECS::AutoSnapshotPolicy Properties: AutoSnapshotPolicyId: Ref: AutoSnapshotPolicyId Outputs: TimePoints: Description: The time when the automatic snapshot policy was created. The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mm:ssZ format. The time is displayed in UTC. Value: Fn::GetAtt: - ExtensionDataSource - TimePoints VolumeNums: Description: The number of extended volumes to which the automatic snapshot policy is applied. Value: Fn::GetAtt: - ExtensionDataSource - VolumeNums TargetCopyRegions: Description: '' Value: Fn::GetAtt: - ExtensionDataSource - TargetCopyRegions ResourceGroupId: Description: The ID of the resource group. Value: Fn::GetAtt: - ExtensionDataSource - ResourceGroupId EnableCrossRegionCopy: Description: '' Value: Fn::GetAtt: - ExtensionDataSource - EnableCrossRegionCopy CreateTime: Description: The time when the automatic snapshot policy was created. The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mm:ssZ format. The time is displayed in UTC. Value: Fn::GetAtt: - ExtensionDataSource - CreateTime RetentionDays: Description: |- The retention period of the automatic snapshot. Unit: days. Valid values: - -1: The automatic snapshot is retained until it is deleted. - 1 to 65536: The automatic snapshot is retained for the specified number of days. Value: Fn::GetAtt: - ExtensionDataSource - RetentionDays RepeatWeekdays: Description: 'The days of the week on which to create automatic snapshots. Valid values: 1 to 7, which correspond to the days of the week. 1 indicates Monday. One or more days can be specified.' Value: Fn::GetAtt: - ExtensionDataSource - RepeatWeekdays AutoSnapshotPolicyName: Description: Name of the automatic snapshot policy. Value: Fn::GetAtt: - ExtensionDataSource - AutoSnapshotPolicyName DiskNums: Description: Number of cloud disks with this policy enabled. Value: Fn::GetAtt: - ExtensionDataSource - DiskNums Tags: Description: The tags of the automatic snapshot policy. Value: Fn::GetAtt: - ExtensionDataSource - Tags CopiedSnapshotsRetentionDays: Description: '' Value: Fn::GetAtt: - ExtensionDataSource - CopiedSnapshotsRetentionDays
JSON
格式{ "ROSTemplateFormatVersion": "2015-09-01", "Parameters": { "AutoSnapshotPolicyId": { "Type": "String", "Description": { "en": "The name of the automatic snapshot policy." }, "Required": true } }, "Resources": { "ExtensionDataSource": { "Type": "DATASOURCE::ECS::AutoSnapshotPolicy", "Properties": { "AutoSnapshotPolicyId": { "Ref": "AutoSnapshotPolicyId" } } } }, "Outputs": { "TimePoints": { "Description": "The time when the automatic snapshot policy was created. The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mm:ssZ format. The time is displayed in UTC.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "TimePoints" ] } }, "VolumeNums": { "Description": "The number of extended volumes to which the automatic snapshot policy is applied.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "VolumeNums" ] } }, "TargetCopyRegions": { "Description": "", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "TargetCopyRegions" ] } }, "ResourceGroupId": { "Description": "The ID of the resource group.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "ResourceGroupId" ] } }, "EnableCrossRegionCopy": { "Description": "", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "EnableCrossRegionCopy" ] } }, "CreateTime": { "Description": "The time when the automatic snapshot policy was created. The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mm:ssZ format. The time is displayed in UTC.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "CreateTime" ] } }, "RetentionDays": { "Description": "The retention period of the automatic snapshot. Unit: days. Valid values:\n- -1: The automatic snapshot is retained until it is deleted.\n- 1 to 65536: The automatic snapshot is retained for the specified number of days.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "RetentionDays" ] } }, "RepeatWeekdays": { "Description": "The days of the week on which to create automatic snapshots. Valid values: 1 to 7, which correspond to the days of the week. 1 indicates Monday. One or more days can be specified.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "RepeatWeekdays" ] } }, "AutoSnapshotPolicyName": { "Description": "Name of the automatic snapshot policy.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "AutoSnapshotPolicyName" ] } }, "DiskNums": { "Description": "Number of cloud disks with this policy enabled.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "DiskNums" ] } }, "Tags": { "Description": "The tags of the automatic snapshot policy.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "Tags" ] } }, "CopiedSnapshotsRetentionDays": { "Description": "", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "CopiedSnapshotsRetentionDays" ] } } } }
文檔內容是否對您有幫助?