Consulta informações sobre um disco em nuvem.
Sintaxe
{
"Type": "DATASOURCE::ECS::Disk",
"Properties": {
"DiskId": String,
"RefreshOptions": String
}
}
Propriedades
|
Propriedade |
Tipo |
Obrigatória |
Editável |
Descrição |
Restrição |
|
DiskId |
String |
Sim |
Sim |
ID do disco. |
Nenhuma. |
|
RefreshOptions |
String |
Não |
Sim |
Política de atualização dos recursos da fonte de dados durante a atualização da pilha. |
Valores válidos:
|
Valores de retorno
Fn::GetAtt
DetachedTime: hora mais recente de desanexação do disco.
Category: categoria do disco.
Description: descrição do disco.
ResourceGroupId: ID do grupo de recursos ao qual o disco pertence.
Encrypted: indica se o disco está criptografado.
Size: tamanho do disco.
DeleteAutoSnapshot: indica se os snapshots automáticos do disco são excluídos na liberação do disco.
IopsWrite: IOPS máximo de gravação.
StorageSetPartitionNumber: número máximo de partições no conjunto de armazenamento.
MultiAttach: indica se o recurso de anexação múltipla está ativado.
ExpiredTime: horário de expiração do disco.
ImageId: ID da imagem.
PaymentType: método de faturamento.
StorageSetId: ID do conjunto de armazenamento.
IopsRead: IOPS máximo de leitura.
Tags: tags do disco.
AttachedTime: hora mais recente de anexação do disco.
BurstingEnabled: indica se o recurso de burst de desempenho está ativado.
StorageClusterId: ID do cluster de armazenamento de blocos dedicado.
KmsKeyId: ID da chave do Key Management Service (KMS) usada pelo disco.
ZoneId: ID da zona do disco.
InstanceId: ID da instância.
ProductCode: código do produto no Alibaba Cloud Marketplace.
Device: nome do dispositivo da instância à qual o disco está anexado.
PerformanceLevel: nível de desempenho (PL) do Enterprise SSD (ESSD).
DeleteWithInstance: indica se o disco é liberado junto com a instância à qual está anexado.
EnableAutomatedSnapshotPolicy: indica se há uma política de snapshot automático aplicada ao disco.
CreateTime: horário de criação do disco.
EnableAutoSnapshot: indica se o recurso de política de snapshot automático está ativado para o disco.
AutoSnapshotPolicyId: ID da política de snapshot automático aplicada ao disco.
Iops: IOPS máximo de leitura/gravação.
ProvisionedIops: IOPS de leitura/gravação provisionado do disco ESSD AutoPL.
DiskName: nome do disco.
OperationLocks: motivos do bloqueio do disco.
SnapshotId: ID do snapshot usado para criar o disco.
Portable: indica se o disco pode ser desanexado.
MountInstanceNum: número de instâncias às quais o dispositivo Shared Block Storage está anexado.
MountInstances: informações sobre o dispositivo Shared Block Storage anexado às instâncias.
DiskId: ID do disco.
Exemplos
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
{
"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"
]
}
}
}
}