DATASOURCE::ECS::Disk類型用于查詢單個云盤詳情。
語法
{
"Type": "DATASOURCE::ECS::Disk",
"Properties": {
"DiskId": String
}
}
屬性
屬性名稱 | 類型 | 必須 | 允許更新 | 描述 | 約束 |
DiskId | String | 是 | 是 | 磁盤 ID。 | 無 |
返回值
Fn::GetAtt
DetachedTime:該云盤最后一次卸載時間。
Category:磁盤類型。
Description:云盤描述信息。
ResourceGroupId:云盤所在的企業資源組 ID。
Encrypted:是否為加密云盤。
Size:云盤大小。
DeleteAutoSnapshot:是否同時刪除自動快照。
IopsWrite:每秒寫操作的次數上限。
StorageSetPartitionNumber:存儲集中的最大分區數量。
MultiAttach:云盤是否開啟了多重掛載特性。
ExpiredTime:磁盤到期時間。
ImageId:鏡像 ID。
PaymentType:付費類型。
StorageSetId:存儲集 ID。
IopsRead:每秒讀操作的次數上限。
Tags:云盤的標簽列表。
AttachedTime:該云盤最后一次掛載的時間。
BurstingEnabled:是否開啟 Burst(性能突發)。
StorageClusterId:專屬塊存儲集群 ID。
KmsKeyId:云盤使用的 KMS 密鑰 ID。
ZoneId:云盤所在的可用區。
InstanceId:實例 ID。
ProductCode:云市場的商品標識。
Device:磁盤掛載的實例的設備名。
PerformanceLevel:ESSD 云盤的性能等級。
DeleteWithInstance:磁盤是否設置了隨實例釋放。
EnableAutomatedSnapshotPolicy:云盤是否設置了自動快照策略。
CreateTime:云盤創建時間。
EnableAutoSnapshot:云盤是否啟用自動快照策略功能。
AutoSnapshotPolicyId:云盤采用的自動快照策略 ID。
Iops:每秒讀寫(I/O)操作的次數上限。
ProvisionedIops:ESSD AutoPL 云盤預配置的讀寫 IOPS。
DiskName:磁盤名稱。
OperationLocks:磁盤鎖定原因類型。
SnapshotId:創建云盤時使用的快照 ID。
Portable:磁盤是否支持卸載。
MountInstanceNum:共享存儲掛載的實例數量。
MountInstances:共享存儲掛載到實例上的信息集合。
DiskId:磁盤 ID。
示例
YAML
格式ROSTemplateFormatVersion: '2015-09-01' Parameters: DiskId: Type: String Description: en: The disk id. Required: true AssociationProperty: ALIYUN::ECS::Disk::DiskId Resources: ExtensionDataSource: Type: DATASOURCE::ECS::Disk Properties: DiskId: Ref: DiskId Outputs: DetachedTime: Description: Unloading time. Value: Fn::GetAtt: - ExtensionDataSource - DetachedTime Category: Description: Disk type. Value: Fn::GetAtt: - ExtensionDataSource - Category Description: Description: The description. Value: Fn::GetAtt: - ExtensionDataSource - Description ResourceGroupId: Description: The resource group id. Value: Fn::GetAtt: - ExtensionDataSource - ResourceGroupId Encrypted: Description: Whether the disk is encrypted. Value: Fn::GetAtt: - ExtensionDataSource - Encrypted Size: Description: Disk size. Value: Fn::GetAtt: - ExtensionDataSource - Size DeleteAutoSnapshot: Description: Whether to delete automatic snapshots at the same time. Value: Fn::GetAtt: - ExtensionDataSource - DeleteAutoSnapshot IopsWrite: Description: Number of writes per second. Value: Fn::GetAtt: - ExtensionDataSource - IopsWrite StorageSetPartitionNumber: Description: 'Number of Save set partitions. Value range: greater than or equal to 2. The maximum value cannot exceed the equity quota limit displayed after calling.' Value: Fn::GetAtt: - ExtensionDataSource - StorageSetPartitionNumber MultiAttach: Description: Whether to enable the multi-Mount feature. Value: Fn::GetAtt: - ExtensionDataSource - MultiAttach ExpiredTime: Description: The expiration time of a monthly disk. Value: Fn::GetAtt: - ExtensionDataSource - ExpiredTime ImageId: Description: The image id. Value: Fn::GetAtt: - ExtensionDataSource - ImageId PaymentType: Description: Payment method for disk. Value: Fn::GetAtt: - ExtensionDataSource - PaymentType StorageSetId: Description: The ID of the Save set. Value: Fn::GetAtt: - ExtensionDataSource - StorageSetId IopsRead: Description: Number of reads per second. Value: Fn::GetAtt: - ExtensionDataSource - IopsRead Tags: Description: The tags. Value: Fn::GetAtt: - ExtensionDataSource - Tags AttachedTime: Description: The attached time. Value: Fn::GetAtt: - ExtensionDataSource - AttachedTime BurstingEnabled: Description: Does the data disk turn on Burst (performance Burst). Value: Fn::GetAtt: - ExtensionDataSource - BurstingEnabled StorageClusterId: Description: The ID of the dedicated block storage cluster. If you need to create a cloud disk in the specified dedicated block storage cluster, specify this parameter. Value: Fn::GetAtt: - ExtensionDataSource - StorageClusterId KmsKeyId: Description: The KMS keyId. Value: Fn::GetAtt: - ExtensionDataSource - KmsKeyId ZoneId: Description: ID of the free zone to which the disk belongs. Value: Fn::GetAtt: - ExtensionDataSource - ZoneId InstanceId: Description: The instance id. Value: Fn::GetAtt: - ExtensionDataSource - InstanceId ProductCode: Description: The product logo of the cloud market. Value: Fn::GetAtt: - ExtensionDataSource - ProductCode Device: Description: Cloud disk or the device name of the mounted instance on the site. Value: Fn::GetAtt: - ExtensionDataSource - Device PerformanceLevel: Description: Performance levels of ESSD cloud disk. Value: Fn::GetAtt: - ExtensionDataSource - PerformanceLevel DeleteWithInstance: Description: Whether to release with the instance. Value: Fn::GetAtt: - ExtensionDataSource - DeleteWithInstance EnableAutomatedSnapshotPolicy: Description: Whether the disk implements an automatic snapshot policy. Value: Fn::GetAtt: - ExtensionDataSource - EnableAutomatedSnapshotPolicy CreateTime: Description: The creation time. Value: Fn::GetAtt: - ExtensionDataSource - CreateTime EnableAutoSnapshot: Description: Whether the disk implements an automatic snapshot policy. Value: Fn::GetAtt: - ExtensionDataSource - EnableAutoSnapshot AutoSnapshotPolicyId: Description: Automatic snapshot policy ID. Value: Fn::GetAtt: - ExtensionDataSource - AutoSnapshotPolicyId Iops: Description: Number of read/write (I/O) operations per second. Value: Fn::GetAtt: - ExtensionDataSource - Iops ProvisionedIops: Description: 'The preconfigured read and write IOPS of the ESSD AutoPL cloud disk. Possible values: 0 ~ min{50,000, 1000 * capacity-baseline performance}.' Value: Fn::GetAtt: - ExtensionDataSource - ProvisionedIops DiskName: Description: The disk name. Value: Fn::GetAtt: - ExtensionDataSource - DiskName OperationLocks: Description: Resource locking information. Value: Fn::GetAtt: - ExtensionDataSource - OperationLocks SnapshotId: Description: The source snapshot id. Value: Fn::GetAtt: - ExtensionDataSource - SnapshotId Portable: Description: Whether the disk is unmountable. Value: Fn::GetAtt: - ExtensionDataSource - Portable MountInstanceNum: Description: Number of instances mounted on shared storage. Value: Fn::GetAtt: - ExtensionDataSource - MountInstanceNum MountInstances: Description: Disk mount instances. Value: Fn::GetAtt: - ExtensionDataSource - MountInstances DiskId: Description: The disk id. Value: Fn::GetAtt: - ExtensionDataSource - DiskId
JSON
格式{ "ROSTemplateFormatVersion": "2015-09-01", "Parameters": { "DiskId": { "Type": "String", "Description": { "en": "The disk id." }, "Required": true, "AssociationProperty": "ALIYUN::ECS::Disk::DiskId" } }, "Resources": { "ExtensionDataSource": { "Type": "DATASOURCE::ECS::Disk", "Properties": { "DiskId": { "Ref": "DiskId" } } } }, "Outputs": { "DetachedTime": { "Description": "Unloading time.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "DetachedTime" ] } }, "Category": { "Description": "Disk type.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "Category" ] } }, "Description": { "Description": "The description.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "Description" ] } }, "ResourceGroupId": { "Description": "The resource group id.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "ResourceGroupId" ] } }, "Encrypted": { "Description": "Whether the disk is encrypted.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "Encrypted" ] } }, "Size": { "Description": "Disk size.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "Size" ] } }, "DeleteAutoSnapshot": { "Description": "Whether to delete automatic snapshots at the same time.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "DeleteAutoSnapshot" ] } }, "IopsWrite": { "Description": "Number of writes per second.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "IopsWrite" ] } }, "StorageSetPartitionNumber": { "Description": "Number of Save set partitions. Value range: greater than or equal to 2. The maximum value cannot exceed the equity quota limit displayed after calling.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "StorageSetPartitionNumber" ] } }, "MultiAttach": { "Description": "Whether to enable the multi-Mount feature.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "MultiAttach" ] } }, "ExpiredTime": { "Description": "The expiration time of a monthly disk.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "ExpiredTime" ] } }, "ImageId": { "Description": "The image id.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "ImageId" ] } }, "PaymentType": { "Description": "Payment method for disk.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "PaymentType" ] } }, "StorageSetId": { "Description": "The ID of the Save set.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "StorageSetId" ] } }, "IopsRead": { "Description": "Number of reads per second.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "IopsRead" ] } }, "Tags": { "Description": "The tags.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "Tags" ] } }, "AttachedTime": { "Description": "The attached time.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "AttachedTime" ] } }, "BurstingEnabled": { "Description": "Does the data disk turn on Burst (performance Burst).", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "BurstingEnabled" ] } }, "StorageClusterId": { "Description": "The ID of the dedicated block storage cluster. If you need to create a cloud disk in the specified dedicated block storage cluster, specify this parameter.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "StorageClusterId" ] } }, "KmsKeyId": { "Description": "The KMS keyId.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "KmsKeyId" ] } }, "ZoneId": { "Description": "ID of the free zone to which the disk belongs.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "ZoneId" ] } }, "InstanceId": { "Description": "The instance id.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "InstanceId" ] } }, "ProductCode": { "Description": "The product logo of the cloud market.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "ProductCode" ] } }, "Device": { "Description": "Cloud disk or the device name of the mounted instance on the site.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "Device" ] } }, "PerformanceLevel": { "Description": "Performance levels of ESSD cloud disk.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "PerformanceLevel" ] } }, "DeleteWithInstance": { "Description": "Whether to release with the instance.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "DeleteWithInstance" ] } }, "EnableAutomatedSnapshotPolicy": { "Description": "Whether the disk implements an automatic snapshot policy.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "EnableAutomatedSnapshotPolicy" ] } }, "CreateTime": { "Description": "The creation time.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "CreateTime" ] } }, "EnableAutoSnapshot": { "Description": "Whether the disk implements an automatic snapshot policy.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "EnableAutoSnapshot" ] } }, "AutoSnapshotPolicyId": { "Description": "Automatic snapshot policy ID.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "AutoSnapshotPolicyId" ] } }, "Iops": { "Description": "Number of read/write (I/O) operations per second.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "Iops" ] } }, "ProvisionedIops": { "Description": "The preconfigured read and write IOPS of the ESSD AutoPL cloud disk. Possible values: 0 ~ min{50,000, 1000 * capacity-baseline performance}.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "ProvisionedIops" ] } }, "DiskName": { "Description": "The disk name.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "DiskName" ] } }, "OperationLocks": { "Description": "Resource locking information.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "OperationLocks" ] } }, "SnapshotId": { "Description": "The source snapshot id.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "SnapshotId" ] } }, "Portable": { "Description": "Whether the disk is unmountable.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "Portable" ] } }, "MountInstanceNum": { "Description": "Number of instances mounted on shared storage.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "MountInstanceNum" ] } }, "MountInstances": { "Description": "Disk mount instances.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "MountInstances" ] } }, "DiskId": { "Description": "The disk id.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "DiskId" ] } } } }