Queries the details of a cluster.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
ehpc:DescribeCluster | get |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ClusterId | string | Yes | The cluster ID. You can call the ListClusters operation to query the list of clusters in a region. | ehpc-hz-QKKVqO**** |
Response parameters
Examples
Sample success responses
JSON
format
{
"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"
}
}
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | InvalidParams | The specified parameter %s is invalid. | The specified parameter %s is invalid. |
404 | ClusterNotFound | The specified cluster does not exist. | The specified instance does not exist. |
404 | ImageNotFound | The specified image does not exist. | The specified image does not exist. Please verify the parameter. |
406 | EcsError | An error occurred while calling the ECS API operation. | An error occurred while calling the ECS API operation. |
406 | NasError | NAS API request failed. | Failed to request the NAS interface. |
406 | AgentError | The agent service request failed. | - |
406 | DbError | A database service error occurred. | Database request failed. |
406 | RedisError | A Redis service error occurred. | Redis request failed. |
406 | AliyunError | An Alibaba Cloud product error occurred. | An Alibaba Cloud product error occurred. |
407 | NotAuthorized | You are not authorized by RAM for this request. | The request is not authorized by RAM. |
500 | UnknownError | An unknown error occurred. | An unknown error occurred. |
503 | ServiceUnavailable | The request has failed due to a temporary failure of the server | The request has failed due to a temporary failure of the server. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2023-12-08 | The Error code has changed. The response structure of the API has changed | View Change Details |
2023-05-26 | The Error code has changed. The response structure of the API has changed | View Change Details |
2023-05-25 | The Error code has changed. The response structure of the API has changed | View Change Details |
2023-04-21 | The Error code has changed. The response structure of the API has changed | View Change Details |