全部产品
Search
文档中心

资源编排:DATASOURCE::ECS::HpcCluster

更新时间:Aug 12, 2024

DATASOURCE::ECS::HpcCluster类型用于查询单个HPC集群。

语法

{
  "Type": "DATASOURCE::ECS::HpcCluster",
  "Properties": {
    "HpcClusterId": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

HpcClusterId

String

HPC 集群 ID。

返回值

Fn::GetAtt

  • Description:HPC 集群的描述。

  • HpcClusterId:HPC 集群 ID。

  • HpcClusterName:HPC 集群的名称。

示例

  • YAML格式

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      HpcClusterId:
        Type: String
        Description:
          en: The ID of cluster.
        Required: true
    Resources:
      ExtensionDataSource:
        Type: DATASOURCE::ECS::HpcCluster
        Properties:
          HpcClusterId:
            Ref: HpcClusterId
    Outputs:
      Description:
        Description: The description of the HPC cluster.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - Description
      HpcClusterId:
        Description: The ID of cluster.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - HpcClusterId
      HpcClusterName:
        Description: The name of the HPC cluster.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - HpcClusterName
    
  • JSON格式

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "HpcClusterId": {
          "Type": "String",
          "Description": {
            "en": "The ID of cluster."
          },
          "Required": true
        }
      },
      "Resources": {
        "ExtensionDataSource": {
          "Type": "DATASOURCE::ECS::HpcCluster",
          "Properties": {
            "HpcClusterId": {
              "Ref": "HpcClusterId"
            }
          }
        }
      },
      "Outputs": {
        "Description": {
          "Description": "The description of the HPC cluster.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "Description"
            ]
          }
        },
        "HpcClusterId": {
          "Description": "The ID of cluster.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "HpcClusterId"
            ]
          }
        },
        "HpcClusterName": {
          "Description": "The name of the HPC cluster.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "HpcClusterName"
            ]
          }
        }
      }
    }