DATASOURCE::ECS::DedicatedHostClusters類型用於查詢Dedicated Host叢集的列表資訊。
文法
{
"Type": "DATASOURCE::ECS::DedicatedHostClusters",
"Properties": {
"DedicatedHostClusterName": String,
"ResourceGroupId": String,
"ZoneId": String,
"RefreshOptions": String
}
}
屬性
屬性名稱 | 類型 | 必須 | 允許更新 | 描述 | 約束 |
DedicatedHostClusterName | String | 否 | 是 | Dedicated Host叢集名稱。 | 無 |
ResourceGroupId | String | 否 | 是 | Dedicated Host叢集的資源群組ID。 | 無 |
ZoneId | String | 否 | 是 | Dedicated Host叢集所在的可用性區域ID。 | 無 |
RefreshOptions | String | 否 | 是 | 當資源棧更新時,資料來源資源的重新整理策略。 | 取值:
|
傳回值
Fn::GetAtt
DedicatedHostClusters:Dedicated Host叢集的詳情列表。
DedicatedHostClusterIds:Dedicated Host叢集的ID列表。
屬性名稱 | 類型 | 描述 | 約束 |
DedicatedHostClusterIds | List | Dedicated Host叢集的ID列表。 | 無 |
DedicatedHostClusters | List | Dedicated Host叢集的詳情列表。 | 無 |
Description | String | Dedicated Host叢集描述。 | 無 |
Tags | String | Dedicated Host叢集的標籤。 | 無 |
ZoneId | String | Dedicated Host叢集所在的可用性區域ID。 | 無 |
DedicatedHostClusterName | String | Dedicated Host叢集名稱。 | 無 |
ResourceGroupId | String | Dedicated Host叢集的資源群組ID。 | 無 |
DedicatedHostClusterId | String | Dedicated Host叢集ID。 | 無 |
樣本
YAML
格式
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
ZoneId:
Type: String
AssociationProperty: ALIYUN::ECS::Instance::ZoneId
Description: |-
The zone ID of the dedicated host cluster.
You can call the DescribeZones operation to query the most recent zone list.
Resources:
ExtensionDataSource:
Type: DATASOURCE::ECS::DedicatedHostClusters
Properties:
ZoneId:
Ref: ZoneId
Outputs:
DedicatedHostClusters:
Description: The list of dedicated host clusters.
Value:
Fn::GetAtt:
- ExtensionDataSource
- DedicatedHostClusters
DedicatedHostClusterIds:
Description: The list of dedicated host cluster IDs.
Value:
Fn::GetAtt:
- ExtensionDataSource
- DedicatedHostClusterIds
JSON
格式
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"ZoneId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::Instance::ZoneId",
"Description": "The zone ID of the dedicated host cluster. \nYou can call the DescribeZones operation to query the most recent zone list."
}
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::ECS::DedicatedHostClusters",
"Properties": {
"ZoneId": {
"Ref": "ZoneId"
}
}
}
},
"Outputs": {
"DedicatedHostClusters": {
"Description": "The list of dedicated host clusters.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"DedicatedHostClusters"
]
}
},
"DedicatedHostClusterIds": {
"Description": "The list of dedicated host cluster IDs.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"DedicatedHostClusterIds"
]
}
}
}
}