DATASOURCE::EDAS::Clusters类型用于获取集群列表。
语法
{
  "Type": "DATASOURCE::EDAS::Clusters",
  "Properties": {
    "LogicalRegionId": String,
    "ResourceGroupId": String,
    "RefreshOptions": String
  }
}属性
| 属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 | 
| LogicalRegionId | String | 否 | 是 | 命名空间的ID。 | 关于如何获取命名空间ID,请参见ListUserDefineRegion - 获取用户自定义命名空间列表。 获取命名空间: 
 | 
| ResourceGroupId | String | 否 | 是 | 资源组ID。 | 关于如何获取资源组ID,请参见ListResourceGroup - 查询资源组信息。 获取资源组ID: 
 | 
| RefreshOptions | String | 否 | 是 | 当资源栈更新时,数据源资源的刷新策略。 | 有效值: 
 | 
返回数据(Fn::GetAtt)
- ClusterIds:EDAS中的集群ID列表。 
- Clusters:EDAS中的集群详情列表。 
| 属性名称 | 类型 | 描述 | 约束 | 
| ClusterIds | List | EDAS中的集群ID列表。 | 无 | 
| Clusters | List | EDAS中的集群详情列表。 | 无 | 
| ClusterId | String | EDAS中的集群ID。 | 无 | 
| ClusterName | String | 集群名称。 | 无 | 
| OversoldFactor | Number | Docker集群支持的CPU超卖比例。 | 无 | 
| NodeNum | Number | 实例数量。 | 无 | 
| ResourceGroupId | String | 资源组ID。 | 无 | 
| ClusterType | Number | 集群类型。 | 取值: 
 | 
| CsClusterId | String | 容器服务Kubernetes版中创建Kubernetes版集群的ID。 | 无 | 
| VpcId | String | VPC ID。 | 无 | 
| RegionId | String | 地域ID。 | 无 | 
| IaasProvider | String | 集群供应商。 | 无 | 
| Cpu | String | 总CPU核数。 | 无 | 
| CpuUsed | Number | 已使用CPU核数。 | 无 | 
| Mem | Number | 总内存。 | 单位:MB。 | 
| MemUsed | Number | 已使用内存。 | 单位:MB。 | 
| CreateTime | Number | 创建集群的时间戳。 | 单位:毫秒。 | 
| UpdateTime | Number | 最终变更集群的时间戳。 | 单位:毫秒。 | 
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  LogicalRegionId:
    Type: String
    Description: The ID of the namespace.
Resources:
  Clusters:
    Type: DATASOURCE::EDAS::Clusters
    Properties:
      LogicalRegionId:
        Ref: LogicalRegionId
Outputs:
  Clusters:
    Description: The list of clusters.
    Value:
      Fn::GetAtt:
        - Clusters
        - Clusters
  ClusterIds:
    Description: The list of cluster IDs.
    Value:
      Fn::GetAtt:
        - Clusters
        - ClusterIds
                    JSON格式
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "LogicalRegionId": {
      "Type": "String",
      "Description": "The ID of the namespace."
    }
  },
  "Resources": {
    "Clusters": {
      "Type": "DATASOURCE::EDAS::Clusters",
      "Properties": {
        "LogicalRegionId": {
          "Ref": "LogicalRegionId"
        }
      }
    }
  },
  "Outputs": {
    "Clusters": {
      "Description": "The list of clusters.",
      "Value": {
        "Fn::GetAtt": [
          "Clusters",
          "Clusters"
        ]
      }
    },
    "ClusterIds": {
      "Description": "The list of cluster IDs.",
      "Value": {
        "Fn::GetAtt": [
          "Clusters",
          "ClusterIds"
        ]
      }
    }
  }
}