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