DATASOURCE::ECS::DedicatedHostCluster

DATASOURCE::ECS::DedicatedHostCluster类型用于查询一个专有宿主机集群的详细信息。

语法

{
  "Type": "DATASOURCE::ECS::DedicatedHostCluster",
  "Properties": {
    "DedicatedHostClusterId": String,
    "RefreshOptions": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

DedicatedHostClusterId

String

专有宿主机集群 ID 列表。

RefreshOptions

String

当资源栈更新时,数据源资源的刷新策略。

有效值:

  • Never(默认值):更新堆栈时,从不刷新数据源资源。

  • Always:更新堆栈时,始终刷新数据源资源。

返回值

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"
        ]
      }
    }
  }
}