Querying Cluster Details¶
Function¶
This API is used to query details about a specified cluster. This API is incompatible with Sahara.
URI¶
Format
GET /v1.1/{project_id}/cluster_infos/{cluster_id}
Parameter description
¶ Parameter
Mandatory
Description
project_id
Yes
Project ID. For details on how to obtain the project ID, see Obtaining a Project ID.
cluster_id
Yes
Cluster ID
Request¶
Request parameters
None.
Response¶
Parameter | Type | Description |
---|---|---|
clusterId | String | Cluster ID |
clusterName | String | Cluster name |
masterNodeNum | String | Number of Master nodes deployed in a cluster |
coreNodeNum | String | Number of Core nodes deployed in a cluster |
totalNodeNum | String | Total number of nodes deployed in a cluster |
clusterState | String | Cluster status. Valid values include:
|
createAt | String | Cluster creation time, which is a 10-bit timestamp |
updateAt | String | Cluster update time, which is a 10-bit timestamp |
billingType | String | Cluster billing mode |
dataCenter | String | Cluster work region |
vpc | String | VPC name |
fee | String | Cluster creation fee, which is automatically calculated |
hadoopVersion | String | Hadoop version |
masterNodeSize | String | Instance specifications of a Master node |
coreNodeSize | String | Instance specifications of a Core node |
componentList | Array | Component list. For details, see Table 3. |
externalIp | String | External IP address |
externalAlternateIp | String | Backup external IP address |
internalIp | String | Internal IP address |
deploymentId | String | Cluster deployment ID |
remark | String | Cluster remarks |
orderId | String | Cluster creation order ID |
azId | String | AZ ID |
masterNodeProductId | String | Product ID of a Master node |
masterNodeSpecId | String | Specification ID of a Master node |
coreNodeProductId | String | Product ID of a Core node |
coreNodeSpecId | String | Specification ID of a Core node |
azName | String | AZ name |
instanceId | String | Instance ID |
vnc | String | URI for remotely logging in to an ECS |
tenantId | String | Project ID |
volumeSize | Integer | Disk storage space |
subnetId | String | Subnet ID |
subnetName | String | Subnet name |
securityGroupsId | String | Security group ID |
slaveSecurityGroupsId | String | Security group ID of a non-Master node. Currently, one MRS cluster uses only one security group. Therefore, this field has been discarded. This field returns the same value as securityGroupsId does for compatibility consideration. |
bootstrap_scripts | Array | Bootstrap action script information. For more parameter description, see Table 5. |
stageDesc | String | Cluster operation progress description. The cluster installation progress includes:
The cluster scale-out progress includes:
The cluster scale-in progress includes:
If the cluster installation, scale-out, or scale-in fails, stageDesc will display the failure cause. For details, see Table 8. |
mrsManagerFinish | boolean | Whether MRS Manager installation is finished during cluster creation.
|
safeMode | String | Running mode of an MRS cluster
|
clusterVersion | String | Cluster version |
nodePublicCertName | String | Name of the public key file |
masterNodeIp | String | IP address of a Master node |
privateIpFirst | String | Preferred private IP address |
errorInfo | String | Error message |
tags | Array | Tag information |
chargingStartTime | String | Start time of billing |
clusterType | String | Cluster type |
logCollection | Integer | Whether to collect logs when cluster installation fails
|
taskNodeGroups | List<NodeGroup> | List of Task nodes. For more parameter description, see Table 4. |
nodeGroups | List<NodeGroup> | List of Master, Core and Task nodes. For more parameter description, see Table 4. |
masterDataVolumeType | String | Data disk storage type of the Master node. Currently, SATA, SAS and SSD are supported. |
masterDataVolumeSize | Integer | Data disk storage space of the Master node. To increase data storage capacity, you can add disks at the same time when creating a cluster. Value range: 100 GB to 32,000 GB |
masterDataVolumeCount | Integer | Number of data disks of the Master node. The value can be set to 1 only. |
coreDataVolumeType | String | Data disk storage type of the Core node. Currently, SATA, SAS and SSD are supported. |
coreDataVolumeSize | Integer | Data disk storage space of the Core node. To increase data storage capacity, you can add disks at the same time when creating a cluster. Value range: 100 GB to 32,000 GB |
coreDataVolumeCount | Integer | Number of data disks of the Core node. Value range: 1 to 10 |
scale | String | Node change status. If this parameter is left blank, the cluster nodes are not changed. Possible values are as follows:
|
Parameter | Type | Description |
---|---|---|
componentId | String | Component ID:
For example, the component_id of Hadoop is MRS 3.2.0-LTS.2_001. |
componentName | String | Component name |
componentVersion | String | Component version |
componentDesc | String | Component description |
Parameter | Type | Description |
---|---|---|
groupName | String | Node group name |
nodeNum | Integer | Number of nodes. The value ranges from 0 to 500. The minimum number of Master and Core nodes is 1 and the total number of Core and Task nodes cannot exceed 500. |
nodeSize | String | Instance specifications of a node |
nodeSpecId | String | Instance specification ID of a node |
nodeProductId | String | Instance product ID of a node |
vmProductId | String | VM product ID of a node |
vmSpecCode | String | VM specifications of a node |
rootVolumeSize | Integer | System disk size of a node. This parameter is not configurable and its default value is 40 GB. |
rootVolumeProductId | String | System disk product ID of a node |
rootVolumeType | String | System disk type of a node |
rootVolumeResourceSpecCode | String | System disk product specifications of a node |
rootVolumeResourceType | String | System disk product type of a node |
dataVolumeType | String | Data disk storage type of a node. Currently, SATA, SAS and SSD are supported.
|
dataVolumeCount | Integer | Number of data disks of a node |
dataVolumeSize | String | Data disk storage space of a node |
dataVolumeProductId | String | Data disk product ID of a node |
dataVolumeResourceSpecCode | String | Data disk product specifications of a node |
dataVolumeResourceType | String | Data disk product type of a node |
Parameter | Type | Description |
---|---|---|
name | String | Name of a bootstrap action script. It must be unique in a cluster. The value can contain only digits, letters, spaces, hyphens (-), and underscores (_) and cannot start with a space. The value can contain 1 to 64 characters. |
uri | String | Path of the shell script. Set this parameter to an OBS bucket path or a local VM path.
|
parameters | String | Bootstrap action script parameters |
nodes | Array String | Type of a node where the bootstrap action script is executed. The value can be Master, Core, or Task. |
active_master | Boolean | Whether the bootstrap action script runs only on active Master nodes. The default value is false, indicating that the bootstrap action script can run on all Master nodes. |
before_component_start | Boolean | Time when the bootstrap action script is executed. Currently, the following two options are available: Before component start and After component start The default value is false, indicating that the bootstrap action script is executed after the component is started. |
fail_action | String | Whether to continue executing subsequent scripts and creating a cluster after the bootstrap action script fails to be executed.
The default value is errorout, indicating that the action is stopped. Note You are advised to set this parameter to continue in the commissioning phase so that the cluster can continue to be installed and started no matter whether the bootstrap action is successful. |
start_time | String | Execution time of one boot operation script. |
state | String | Running state of one bootstrap action script
|
Example¶
Example request
None.
Example response
None.
Status Code¶
Table 6 describes the status code of this API.
Status Code | Description |
---|---|
200 | Cluster details have been queried successfully. |
For the description about error status codes, see Status Codes.