DATASOURCE::ECS::DedicatedHostCluster类型用于查询一个专有宿主机集群的详细信息。
语法
{
  "Type": "DATASOURCE::ECS::DedicatedHostCluster",
  "Properties": {
    "DedicatedHostClusterId": String,
    "RefreshOptions": String
  }
}属性
| 属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 | 
| DedicatedHostClusterId | String | 是 | 是 | 专有宿主机集群 ID 列表。 | 无 | 
| RefreshOptions | String | 否 | 是 | 当资源栈更新时,数据源资源的刷新策略。 | 有效值: 
 | 
返回值
Fn::GetAtt
- Description:专有宿主机集群描述。 
- ZoneId:专有宿主机集群所在的可用区 ID。 
- DedicatedHostClusterName:专有宿主机集群名称。 
- ResourceGroupId:专有宿主机集群的资源组 ID。 
- Tags:专有宿主机集群的标签。 
- DedicatedHostClusterId:专有宿主机集群 ID 列表。 
示例
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
{
  "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"
        ]
      }
    }
  }
}
                        该文章对您有帮助吗?