全部產品
Search
文件中心

:DATASOURCE::ECS::DedicatedHostClusters

更新時間:Oct 11, 2024

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

當資源棧更新時,資料來源資源的重新整理策略。

取值:

  • Never(預設值):更新堆棧時,從不重新整理資料來源資源。

  • Always:更新堆棧時,始終重新整理資料來源資源。

傳回值

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