DATASOURCE::ECS::DiskCategories is used to query the disk types and categories.
Syntax
{
"Type": "DATASOURCE::ECS::DiskCategories",
"Properties": {
"Type": String,
"ZoneId": String,
"DataDiskCategory": String,
"InstanceType": String,
"SystemDiskCategory": String
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
---|---|---|---|---|---|
Type | String | Yes | Yes | The type of the disk that you want to query. | Valid values:
|
ZoneId | String | Yes | Yes | The ID of the zone. | None. |
DataDiskCategory | String | No | Yes | The category of the data disk. | Valid values:
Note This property takes effect when you set the Type property to data. |
InstanceType | String | No | Yes | The Elastic Compute Service (ECS) instance type. | For more information, see Overview of instance families and DescribeInstanceTypes. |
SystemDiskCategory | String | No | Yes | The category of the system disk. | Valid values:
Note This property takes effect when you set the Type property to system. |
Return values (Fn::GetAtt)
- DiskCategoryIds: the disk categories.
- DiskCategories: details of the disk types and categories.
Property | Type | Description | Constraint |
---|---|---|---|
DiskCategoryIds | List | The disk categories. | Example: ["cloud_ssd", "cloud_essd", "cloud_efficiency"] . |
DiskCategories | List | Details of the disk types and categories. | None. |
Type | String | The type of the disk. | Valid values:
|
DiskCategory | String | The category of the disk. | Valid values:
|
Examples
JSON
format{ "ROSTemplateFormatVersion": "2015-09-01", "Parameters": { "ZoneId": { "AssociationProperty": "ALIYUN::ECS::Instance::ZoneId", "Type": "String", "Description": "The ID of the zone for which to query resources." } }, "Resources": { "ExtensionDataSource": { "Type": "DATASOURCE::ECS::DiskCategories", "Properties": { "SystemDiskCategory": "cloud_essd", "Type": "data", "ZoneId": { "Ref": "ZoneId" } } } }, "Outputs": { "DiskCategoryIds": { "Description": "The list of disk category IDs.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "DiskCategoryIds" ] } }, "DiskCategories": { "Description": "The list of disk categories.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "DiskCategories" ] } } } }