DATASOURCE::ECS::Snapshot类型用于查询单个快照详情。
语法
{
"Type": "DATASOURCE::ECS::Snapshot",
"Properties": {
"SnapshotId": String
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
SnapshotId | String | 是 | 是 | 快照 ID。 | 无 |
返回值
Fn::GetAtt
InstantAccess:是否开启了快照极速可用能力。
Usage:快照是否被用作创建镜像或云盘。
Progress:快照创建进度。
Description:描述信息。
ResourceGroupId:资源组 ID。
ProductCode:从云市场镜像继承的产品编号。
Encrypted:是否过滤加密快照。
CreateTime:快照的创建时间。
RetentionDays:自动快照保留天数。
InstantAccessRetentionDays:设置快照极速可用功能的保留时间。
SnapshotName:快照显示名称。
SourceStorageType:原云盘类型。
SnapshotId:快照 ID。
SnapshotSN:快照序列号。
SourceDiskSize:源云盘容量。
SnapshotType:快照创建类型。
SourceDiskType:源云盘属性。
RemainTime:正在创建的快照剩余完成时间。
Tags:标签。
DiskId:指定的云盘设备 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" ] } } } }