调用DescribeCluster查询指定集群信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
ehpc:DescribeCluster |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| ClusterId |
string |
是 |
集群 ID。您可以调用 ListClusters 查询指定地域下的集群列表。 |
ehpc-hz-QKKVqO**** |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| RequestId |
string |
请求 ID。 |
04F0F334-1335-436C-A1D7-6C044FE73368 |
| ClusterInfo |
object |
集群信息。 |
|
| Status |
string |
集群状态。可能值:
|
creating |
| VpcId |
string |
专有网络 ID。 |
vpc-bp1pxkcvmmz53ki89**** |
| KeyPairName |
string |
密钥对名称。 |
test |
| EcsChargeType |
string |
集群实例付费类型。可能值:
|
PostPaid |
| SecurityGroupId |
string |
安全组 ID。 |
sg-bp1asugr34gzn**** |
| SccClusterId |
string |
集群使用的 SccCluster ID。如果集群不是 SCC 机型则为空。 |
00b648b**** |
| CreateTime |
string |
集群创建时间。时间格式为 ISO 8601,使用 UTC 时区。 |
2020-12-24T03:18:23.000Z |
| AccountType |
string |
账户服务器类型。可能值:
|
nis |
| VolumeProtocol |
string |
网络共享存储协议。可能值:
|
nfs |
| Description |
string |
集群描述。 |
cluster |
| VolumeId |
string |
阿里云 NAS 实例 ID。目前不支持自动创建阿里云 NAS 实例。 |
008b64**** |
| HaEnable |
boolean |
是否开启高可用。 说明
若开启高可用,则集群中的每种管控角色将会使用主备 2 台实例。 |
false |
| BaseOsTag |
string |
集群基础镜像。 |
CentOS_7.2_64 |
| Name |
string |
集群名称。 |
cluster |
| ImageId |
string |
镜像 ID。 |
centos_7_02_64_20G_alibase_20170818**** |
| SchedulerType |
string |
调度服务器类型。可能值范围:
|
pbs |
| SchedulerVersion |
string |
调度器软件版本。 |
18.1.1 |
| DeployMode |
string |
集群部署模式。可能值:
|
Simple |
| ImageOwnerAlias |
string |
镜像类型。可能值:
|
system |
| OsTag |
string |
操作系统镜像标签。 |
CentOS_7.2_64 |
| VolumeMountpoint |
string |
NAS 的 VPC 挂载点。目前不支持自动创建阿里云 NAS 挂载点。 |
008b648bcb-s****.cn-hangzhou.nas.aliyuncs.com |
| RemoteDirectory |
string |
挂载共享存储的远程目录。 |
NasMountpoint:/RemoteDirectory |
| RegionId |
string |
地域 ID。 |
cn-hangzhou |
| VSwitchId |
string |
VPC 中交换机 ID。产品目前只支持 VPC 网络。 |
vsw-bp1e47optm9g58zcu**** |
| ImageName |
string |
镜像名称。 |
test_for_Image |
| VolumeType |
string |
网络共享存储类型,目前仅支持阿里云 NAS。 |
NAS |
| Location |
string |
集群所在位置。可能值:
|
PublicCloud |
| Id |
string |
实例 ID。 |
i-bp15de54eet1c43f**** |
| ClientVersion |
string |
集群所使用的客户端版本号。 |
1.0.1 |
| ZoneId |
string |
可用区 ID。 |
cn-hangzhou-k |
| ResourceGroupId |
string |
资源组 ID。 |
rg-aek23szz5i2**** |
| RamRoleName |
string |
实例 RAM 角色名称。 |
AliyunEHPCFullAccess |
| RamNodeTypes |
string |
授权实例角色的节点名称详情。 |
["manager", "compute"] |
| Applications |
object |
||
| ApplicationInfo |
array<object> |
集群应用软件列表,包含软件的名称和版本号。 |
|
|
object |
集群应用软件列表,包含软件的名称和版本号。 |
||
| Tag |
string |
应用软件标签。 |
OpenMPI_1.8.7 |
| Name |
string |
应用软件名称。 |
openmpi |
| Version |
string |
应用软件版本。 |
1.10 |
| PostInstallScripts |
object |
||
| PostInstallScriptInfo |
array<object> |
安装后脚本列表。 |
|
|
object |
安装后脚本列表。 |
||
| Url |
string |
脚本下载路径。 |
example.com |
| Args |
string |
脚本执行参数。 |
bash file.sh |
| EcsInfo |
object |
描述集群中 ECS 数量和规格的数据结构。 |
|
| Manager |
object |
管控节点信息。 |
|
| InstanceType |
string |
管控节点实例规格。 |
ecs.n1.tiny |
| Count |
integer |
管控节点的数量。 |
1 |
| Compute |
object |
计算节点信息。 |
|
| InstanceType |
string |
计算节点 ECS 实例规格。 |
ecs.n1.tiny |
| Count |
integer |
计算节点数量。 |
1 |
| Login |
object |
登录节点信息。 |
|
| InstanceType |
string |
登录节点实例规格。 |
ecs.n1.tiny |
| Count |
integer |
登录节点数量。 |
1 |
| ProxyMgr |
object |
云上代理节点信息。 仅当集群为混合云集群,并开启混合云代理模式时,返回该参数。 |
|
| InstanceType |
string |
云上代理节点的实例类型。 |
ecs.n1.tiny |
| Count |
integer |
云上代理节点数量。 |
1 |
| OnPremiseInfo |
object |
||
| OnPremiseInfo |
array<object> |
本地集群管理节点信息。 仅当集群为混合云集群,并开启混合云代理模式时,返回该参数。 |
|
|
object |
本地集群管理节点信息。 仅当集群为混合云集群,并开启混合云代理模式时,返回该参数。 |
||
| Type |
string |
本地集群管理节点类型,可能值:
|
scheduler |
| HostName |
string |
本地集群管理节点主机名。 |
testecs |
| IP |
string |
本地集群管理节点 IP 地址。 |
192.168.*.* |
| AddOnsInfo |
object |
||
| AddOnsInfo |
array<object> |
自定义组件服务信息。 |
|
|
object |
自定义组件服务信息。 |
||
| SoftwareId |
string |
组件的软件 ID。 |
CROMWELL_85 |
| DeployMode |
string |
自定义组件的部署模式。可能值:
|
local |
| Port |
integer |
自定义组件的服务 TCP 端口号。 |
10000 |
| Status |
string |
自定义组件的运行状态。可能值:
|
running |
| URL |
string |
自定义组件服务的访问链接。 |
http://172.16.10.12:10000/ |
| ClusterVersion |
string |
集群版本号。 |
1.0 |
| WithoutAgent |
integer |
是否不安装 Agent 客户端。 |
false |
| Plugin |
string |
插件模式配置,仅当 SchedulerType 为 custom 生效。 格式为 JSON 字符串,包含 pluginMod、pluginLocalPath、pluginOssPath 三个参数,具体参数说明如下:
|
{\"pluginMod\":\"image\",\"pluginLocalPath\":\"/opt/plugin\"} |
| SchedulerPreInstall |
integer |
业务镜像是否已预安装调度器。可能值:
|
true |
| Domain |
string |
本地集群域名。 仅当 AccoutType 取值为 Idap 时,支持配置该参数。 |
ldap |
| OpenldapPar |
string |
对接 OpenLDAP 服务器参数。 |
{ "LdapServerIp": "192.168.XX.XX", "BaseDn": "ehpctest", "FallbackHomeDir": "/home" } |
| WinAdPar |
string |
连接 Windows AD 参数。 |
{ "AdUser": "Administrator", "AdUserPasswd": "xxxxxx", "AdDc": "ad-hybrid001.ehpcad.com", "AdIp": "192.168.XX.XX"} |
| Period |
string |
购买集群节点的时长。单位由
默认值:1。 |
1 |
| PeriodUnit |
string |
购买集群节点的时长单位。取值范围:
默认值:Month。 |
Month |
| AutoRenewPeriod |
string |
每次自动续费的时长。参数 AutoRenew 取值 true 时生效。
默认值:1。 |
1 |
| AutoRenew |
string |
是否自动续费,当参数 EcsChargeType 取值为 PrePaid 时才生效。取值范围:
默认值:true |
false |
| ComputeSpotStrategy |
string |
计算节点竞价策略。可能值:
|
NoSpot |
| ComputeSpotPriceLimit |
string |
计算节点每小时最高价格。最大支持 3 位小数,参数 ComputeSpotStrategy 取值为 SpotWithPriceLimit 时生效。 |
0.56 |
| Nodes |
object |
||
| NodesInfo |
array<object> |
本地集群节点信息列表。 |
|
|
object |
本地集群节点信息列表。 |
||
| Role |
string |
本地集群节点的角色。可能值:
|
Compute |
| HostName |
string |
本地集群节点的主机名称。 |
compute000 |
| IpAddress |
string |
本地集群节点的 IP 地址。 |
192.168.XX.XX |
| AccountType |
string |
本地集群节点的域账号服务类型。可能值:
默认值:nis |
nis |
| Dir |
string |
本地集群节点的配置目录。 |
/opt/sge/default/ |
| SchedulerType |
string |
本地集群节点的调度器类型。可能值:
默认值:pbs。 |
pbs |
| InitialImage |
object |
操作系统镜像信息汇总。 |
|
| OsTag |
string |
E-HPC 支持的操作系统镜像。 |
CentOS_7.6_64 |
| ImageOwnerAlias |
string |
镜像类型,可能值:
|
system |
| ImageId |
string |
镜像 ID。 |
centos_7_6_x64_20G_alibase_20211130.vhd |
示例
正常返回示例
JSON格式
{
"RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368",
"ClusterInfo": {
"Status": "creating",
"VpcId": "vpc-bp1pxkcvmmz53ki89****",
"KeyPairName": "test",
"EcsChargeType": "PostPaid",
"SecurityGroupId": "sg-bp1asugr34gzn****",
"SccClusterId": "00b648b****",
"CreateTime": "2020-12-24T03:18:23.000Z",
"AccountType": "nis",
"VolumeProtocol": "nfs",
"Description": "cluster",
"VolumeId": "008b64****",
"HaEnable": false,
"BaseOsTag": "CentOS_7.2_64",
"Name": "cluster",
"ImageId": "centos_7_02_64_20G_alibase_20170818****",
"SchedulerType": "pbs",
"SchedulerVersion": "18.1.1",
"DeployMode": "Simple",
"ImageOwnerAlias": "system",
"OsTag": "CentOS_7.2_64",
"VolumeMountpoint": "008b648bcb-s****.cn-hangzhou.nas.aliyuncs.com",
"RemoteDirectory": "NasMountpoint:/RemoteDirectory",
"RegionId": "cn-hangzhou",
"VSwitchId": "vsw-bp1e47optm9g58zcu****",
"ImageName": "test_for_Image",
"VolumeType": "NAS",
"Location": "PublicCloud",
"Id": "i-bp15de54eet1c43f****",
"ClientVersion": "1.0.1",
"ZoneId": "cn-hangzhou-k",
"ResourceGroupId": "rg-aek23szz5i2****",
"RamRoleName": "AliyunEHPCFullAccess",
"RamNodeTypes": "[\"manager\", \"compute\"]",
"Applications": {
"ApplicationInfo": [
{
"Tag": "OpenMPI_1.8.7",
"Name": "openmpi",
"Version": "1.10"
}
]
},
"PostInstallScripts": {
"PostInstallScriptInfo": [
{
"Url": "example.com",
"Args": "bash file.sh"
}
]
},
"EcsInfo": {
"Manager": {
"InstanceType": "ecs.n1.tiny",
"Count": 1
},
"Compute": {
"InstanceType": "ecs.n1.tiny",
"Count": 1
},
"Login": {
"InstanceType": "ecs.n1.tiny",
"Count": 1
},
"ProxyMgr": {
"InstanceType": "ecs.n1.tiny",
"Count": 1
}
},
"OnPremiseInfo": {
"OnPremiseInfo": [
{
"Type": "scheduler",
"HostName": "testecs",
"IP": "192.168.*.*"
}
]
},
"AddOnsInfo": {
"AddOnsInfo": [
{
"SoftwareId": "CROMWELL_85",
"DeployMode": "local",
"Port": 10000,
"Status": "running",
"URL": "http://172.16.10.12:10000/"
}
]
},
"ClusterVersion": "1.0",
"WithoutAgent": 0,
"Plugin": "{\\\"pluginMod\\\":\\\"image\\\",\\\"pluginLocalPath\\\":\\\"/opt/plugin\\\"}",
"SchedulerPreInstall": 0,
"Domain": "ldap",
"OpenldapPar": "{\n\t\"LdapServerIp\": \"192.168.XX.XX\",\n\t\"BaseDn\": \"ehpctest\",\n\t\"FallbackHomeDir\": \"/home\"\n}",
"WinAdPar": "{\t\"AdUser\": \"Administrator\",\t\"AdUserPasswd\": \"xxxxxx\",\t\"AdDc\": \"ad-hybrid001.ehpcad.com\",\t\"AdIp\": \"192.168.XX.XX\"}",
"Period": "1",
"PeriodUnit": "Month",
"AutoRenewPeriod": "1",
"AutoRenew": "false",
"ComputeSpotStrategy": "NoSpot",
"ComputeSpotPriceLimit": "0.56",
"Nodes": {
"NodesInfo": [
{
"Role": "Compute",
"HostName": "compute000",
"IpAddress": "192.168.XX.XX",
"AccountType": "nis",
"Dir": "/opt/sge/default/",
"SchedulerType": "pbs"
}
]
},
"InitialImage": {
"OsTag": "CentOS_7.6_64",
"ImageOwnerAlias": "system",
"ImageId": "centos_7_6_x64_20G_alibase_20211130.vhd"
}
}
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | InvalidParams | The specified parameter %s is invalid. | 指定的参数 %s 无效。 |
| 500 | UnknownError | An unknown error occurred. | 未知错误 |
| 404 | ClusterNotFound | The specified cluster does not exist. | 指定的集群不存在,请您检查该参数是否正确。 |
| 404 | ImageNotFound | The specified image does not exist. | 指定的镜像不存在,请您检查该参数是否正确。 |
| 503 | ServiceUnavailable | The request has failed due to a temporary failure of the server | 请求失败,服务暂时不可用 |
| 406 | EcsError | An error occurred while calling the ECS API operation. | ECS API调用出错. %s |
| 406 | NasError | NAS API request failed. | NAS接口请求失败 |
| 406 | AgentError | The agent service request failed. | 集群侧命令运行失败。%s |
| 406 | DbError | A database service error occurred. | 数据库请求失败 |
| 406 | RedisError | A Redis service error occurred. | Redis请求失败 |
| 406 | AliyunError | An Alibaba Cloud product error occurred. | 阿里云产品错误。%s |
| 407 | NotAuthorized | You are not authorized by RAM for this request. | 此请求未获得RAM授权 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。