文档

DATASOURCE::ECS::DedicatedHostClusters

更新时间:

DATASOURCE::ECS::DedicatedHostClusters类型用于查询专有宿主机的基本信息。

语法

{
  "Type": "DATASOURCE::ECS::DedicatedHostClusters",
  "Properties": {
    "DedicatedHostClusterName": String,
    "ResourceGroupId": String,
    "ZoneId": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

DedicatedHostClusterName

String

专有宿主机集群名称。

ResourceGroupId

String

专有宿主机集群的资源组ID。

ZoneId

String

专有宿主机集群所在的可用区ID。

返回值

Fn::GetAtt

  • DedicatedHostClusters:专有宿主机集群详情列表

  • DedicatedHostClusterIds:专有宿主机集群ID列表。

属性名称

类型

描述

约束

DedicatedHostClusterIds

List

专有宿主机集群ID列表。

DedicatedHostClusters

List

专有宿主机集群详情列表

DedicatedHostClusterName

String

专有宿主机集群名称。

DedicatedHostClusterId

String

专有宿主机集群ID。

ZoneId

String

专有宿主机集群所在的可用区ID。

Description

String

专有宿主机集群描述。

Tags

List

专有宿主机集群的标签。

ResourceGroupId

String

专有宿主机集群的资源组ID。

示例

YAML格式

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  DedicatedHostClusterName:
    Description: The name of the dedicated host cluster.
    Type: String
Resources:
  ExtensionDataSource:
    Properties:
      DedicatedHostClusterName:
        Ref: DedicatedHostClusterName
    Type: DATASOURCE::ECS::DedicatedHostClusters
Outputs:
  DedicatedHostClusterIds:
    Description: The list of dedicated host cluster IDs.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - DedicatedHostClusterIds
  DedicatedHostClusters:
    Description: The list of dedicated host clusters.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - DedicatedHostClusters

JSON格式

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "DedicatedHostClusterName": {
      "Type": "String",
      "Description": "The name of the dedicated host cluster."
    }
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::ECS::DedicatedHostClusters",
      "Properties": {
        "DedicatedHostClusterName": {
          "Ref": "DedicatedHostClusterName"
        }
      }
    }
  },
  "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"
        ]
      }
    }
  }
}
  • 本页导读 (1)
文档反馈