DATASOURCE::ECS::DedicatedHostCluster类型用于查询一个专有宿主机集群的详细信息。
语法
{
"Type": "DATASOURCE::ECS::DedicatedHostCluster",
"Properties": {
"DedicatedHostClusterId": String
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
DedicatedHostClusterId | String | 是 | 是 | 专有宿主机集群 ID 列表。 | 无 |
返回值
Fn::GetAtt
Description:专有宿主机集群描述。
ZoneId:专有宿主机集群所在的可用区 ID。
DedicatedHostClusterName:专有宿主机集群名称。
ResourceGroupId:专有宿主机集群的资源组 ID。
Tags:专有宿主机集群的标签。
DedicatedHostClusterId:专有宿主机集群 ID 列表。
示例
YAML
格式ROSTemplateFormatVersion: '2015-09-01' Parameters: DedicatedHostClusterId: Type: String Description: en: Dedicated host cluster id. Required: true Resources: ExtensionDataSource: Type: DATASOURCE::ECS::DedicatedHostCluster Properties: DedicatedHostClusterId: Ref: DedicatedHostClusterId Outputs: Description: Description: The description of the dedicated host cluster. Value: Fn::GetAtt: - ExtensionDataSource - Description ZoneId: Description: 'The zone ID of the dedicated host cluster. ' Value: Fn::GetAtt: - ExtensionDataSource - ZoneId DedicatedHostClusterName: Description: The name of the dedicated host cluster. Value: Fn::GetAtt: - ExtensionDataSource - DedicatedHostClusterName ResourceGroupId: Description: 'The ID of the resource group to which the dedicated host cluster belongs. ' Value: Fn::GetAtt: - ExtensionDataSource - ResourceGroupId Tags: Description: The tags of the dedicated host cluster. Value: Fn::GetAtt: - ExtensionDataSource - Tags DedicatedHostClusterId: Description: Dedicated host cluster id. Value: Fn::GetAtt: - ExtensionDataSource - DedicatedHostClusterId
JSON
格式{ "ROSTemplateFormatVersion": "2015-09-01", "Parameters": { "DedicatedHostClusterId": { "Type": "String", "Description": { "en": "Dedicated host cluster id." }, "Required": true } }, "Resources": { "ExtensionDataSource": { "Type": "DATASOURCE::ECS::DedicatedHostCluster", "Properties": { "DedicatedHostClusterId": { "Ref": "DedicatedHostClusterId" } } } }, "Outputs": { "Description": { "Description": "The description of the dedicated host cluster.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "Description" ] } }, "ZoneId": { "Description": "The zone ID of the dedicated host cluster. ", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "ZoneId" ] } }, "DedicatedHostClusterName": { "Description": "The name of the dedicated host cluster.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "DedicatedHostClusterName" ] } }, "ResourceGroupId": { "Description": "The ID of the resource group to which the dedicated host cluster belongs. ", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "ResourceGroupId" ] } }, "Tags": { "Description": "The tags of the dedicated host cluster.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "Tags" ] } }, "DedicatedHostClusterId": { "Description": "Dedicated host cluster id.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "DedicatedHostClusterId" ] } } } }