DATASOURCE::ECS::Snapshot
更新時間:
DATASOURCE::ECS::Snapshot類型用于查詢單個快照詳情。
語法
{
"Type": "DATASOURCE::ECS::Snapshot",
"Properties": {
"SnapshotId": String
}
}
屬性
屬性名稱 | 類型 | 必須 | 允許更新 | 描述 | 約束 |
SnapshotId | String | 是 | 是 | 快照 ID。 | 無 |
返回值
Fn::GetAtt
InstantAccess:是否開啟了快照極速可用能力。
Usage:快照是否被用作創(chuàng)建鏡像或云盤。
Progress:快照創(chuàng)建進度。
Description:描述信息。
ResourceGroupId:資源組 ID。
ProductCode:從云市場鏡像繼承的產(chǎn)品編號。
Encrypted:是否過濾加密快照。
CreateTime:快照的創(chuàng)建時間。
RetentionDays:自動快照保留天數(shù)。
InstantAccessRetentionDays:設(shè)置快照極速可用功能的保留時間。
SnapshotName:快照顯示名稱。
SourceStorageType:原云盤類型。
SnapshotId:快照 ID。
SnapshotSN:快照序列號。
SourceDiskSize:源云盤容量。
SnapshotType:快照創(chuàng)建類型。
SourceDiskType:源云盤屬性。
RemainTime:正在創(chuàng)建的快照剩余完成時間。
Tags:標簽。
DiskId:指定的云盤設(shè)備 ID。
示例
YAML
格式ROSTemplateFormatVersion: '2015-09-01' Parameters: SnapshotId: Type: String Description: en: The snapshot id. Required: true AssociationProperty: ALIYUN::ECS::Snapshot::SnapshotId Resources: ExtensionDataSource: Type: DATASOURCE::ECS::Snapshot Properties: SnapshotId: Ref: SnapshotId Outputs: InstantAccess: Description: Whether snapshot speed availability is enabled. Value: Fn::GetAtt: - ExtensionDataSource - InstantAccess Usage: Description: A resource type that has a reference relationship. Value: Fn::GetAtt: - ExtensionDataSource - Usage Progress: Description: Snapshot creation progress, in percentage. Value: Fn::GetAtt: - ExtensionDataSource - Progress Description: Description: The description. Value: Fn::GetAtt: - ExtensionDataSource - Description ResourceGroupId: Description: The resource group id. Value: Fn::GetAtt: - ExtensionDataSource - ResourceGroupId ProductCode: Description: The product number inherited from the mirror market. Value: Fn::GetAtt: - ExtensionDataSource - ProductCode Encrypted: Description: Whether the snapshot is encrypted. Value: Fn::GetAtt: - ExtensionDataSource - Encrypted CreateTime: Description: The create time. Value: Fn::GetAtt: - ExtensionDataSource - CreateTime RetentionDays: Description: Automatic snapshot retention days. Value: Fn::GetAtt: - ExtensionDataSource - RetentionDays InstantAccessRetentionDays: Description: InstantAccessRetentionDays. Value: Fn::GetAtt: - ExtensionDataSource - InstantAccessRetentionDays SnapshotName: Description: Snapshot Display Name. Value: Fn::GetAtt: - ExtensionDataSource - SnapshotName SourceStorageType: Description: Original disk type. Value: Fn::GetAtt: - ExtensionDataSource - SourceStorageType SnapshotId: Description: The snapshot id. Value: Fn::GetAtt: - ExtensionDataSource - SnapshotId SnapshotSN: Description: Snapshot serial number. Value: Fn::GetAtt: - ExtensionDataSource - SnapshotSN SourceDiskSize: Description: Source disk capacity. Value: Fn::GetAtt: - ExtensionDataSource - SourceDiskSize SnapshotType: Description: Snapshot creation type. Value: Fn::GetAtt: - ExtensionDataSource - SnapshotType SourceDiskType: Description: Source disk attributes. Value: Fn::GetAtt: - ExtensionDataSource - SourceDiskType RemainTime: Description: Remaining completion time for the snapshot being created. Value: Fn::GetAtt: - ExtensionDataSource - RemainTime Tags: Description: The tags. Value: Fn::GetAtt: - ExtensionDataSource - Tags DiskId: Description: The source disk id. Value: Fn::GetAtt: - ExtensionDataSource - DiskId
JSON
格式{ "ROSTemplateFormatVersion": "2015-09-01", "Parameters": { "SnapshotId": { "Type": "String", "Description": { "en": "The snapshot id." }, "Required": true, "AssociationProperty": "ALIYUN::ECS::Snapshot::SnapshotId" } }, "Resources": { "ExtensionDataSource": { "Type": "DATASOURCE::ECS::Snapshot", "Properties": { "SnapshotId": { "Ref": "SnapshotId" } } } }, "Outputs": { "InstantAccess": { "Description": "Whether snapshot speed availability is enabled.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "InstantAccess" ] } }, "Usage": { "Description": "A resource type that has a reference relationship.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "Usage" ] } }, "Progress": { "Description": "Snapshot creation progress, in percentage.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "Progress" ] } }, "Description": { "Description": "The description.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "Description" ] } }, "ResourceGroupId": { "Description": "The resource group id.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "ResourceGroupId" ] } }, "ProductCode": { "Description": "The product number inherited from the mirror market.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "ProductCode" ] } }, "Encrypted": { "Description": "Whether the snapshot is encrypted.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "Encrypted" ] } }, "CreateTime": { "Description": "The create time.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "CreateTime" ] } }, "RetentionDays": { "Description": "Automatic snapshot retention days.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "RetentionDays" ] } }, "InstantAccessRetentionDays": { "Description": "InstantAccessRetentionDays.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "InstantAccessRetentionDays" ] } }, "SnapshotName": { "Description": "Snapshot Display Name.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "SnapshotName" ] } }, "SourceStorageType": { "Description": "Original disk type.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "SourceStorageType" ] } }, "SnapshotId": { "Description": "The snapshot id.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "SnapshotId" ] } }, "SnapshotSN": { "Description": "Snapshot serial number.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "SnapshotSN" ] } }, "SourceDiskSize": { "Description": "Source disk capacity.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "SourceDiskSize" ] } }, "SnapshotType": { "Description": "Snapshot creation type.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "SnapshotType" ] } }, "SourceDiskType": { "Description": "Source disk attributes.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "SourceDiskType" ] } }, "RemainTime": { "Description": "Remaining completion time for the snapshot being created.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "RemainTime" ] } }, "Tags": { "Description": "The tags.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "Tags" ] } }, "DiskId": { "Description": "The source disk id.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "DiskId" ] } } } }
文檔內(nèi)容是否對您有幫助?