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": {
"Type": {
"Type": "String",
"Description": "The resource type to query.\nIf you set Type to data,you can specify the InstanceType parameter to disk.\nIf you set Type to system, you must specify the InstanceType parameter.\nValid values:\nsystem: system disk\ndata: data disk",
"AllowedValues": [
"system",
"data"
]
},
"ZoneId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::Instance::ZoneId",
"Description": "The ID of the zone for which to query resources."
},
"DataDiskCategory": {
"Type": "String",
"Description": "The category of the data disk. Valid values: \ncloud: basic disk\ncloud_efficiency: ultra disk\ncloud_ssd: standard SSD\nephemeral_ssd: local SSD\ncloud_essd: ESSD",
"AllowedValues": [
"cloud",
"cloud_efficiency",
"cloud_ssd",
"ephemeral_ssd",
"cloud_essd"
]
},
"SystemDiskCategory": {
"Type": "String",
"Description": "The category of the system disk. Valid values: \ncloud: basic disk\ncloud_efficiency: ultra disk\ncloud_ssd: standard SSD\nephemeral_ssd: local SSD\ncloud_essd: ESSD",
"AllowedValues": [
"cloud",
"cloud_efficiency",
"cloud_ssd",
"ephemeral_ssd",
"cloud_essd"
]
}
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::ECS::DiskCategories",
"Properties": {
"Type": {
"Ref": "Type"
},
"ZoneId": {
"Ref": "ZoneId"
},
"DataDiskCategory": {
"Ref": "DataDiskCategory"
},
"SystemDiskCategory": {
"Ref": "SystemDiskCategory"
}
}
}
},
"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"
]
}
}
}
}