You can call this operation to view the list of the cluster hosts that can submit jobs.

Request parameters

Parameter Type Required Example Description
RegionId String Yes cn-hangzhou The ID of the region.
ClusterId String Yes C-F32FB31D82954C64 The ID of the cluster.
ProjectId String Yes FP-3535FE0BE5224A47 The ID of the project.

Response parameters

Name Type Example Description
RequestId String 2E429517-6A50-4082-9A30-47755CE9F9A5 The ID of the request.
HostList The list of the hosts.
HostId String 119555 The ID of the host.
HostName String emr-header-1.cluster-500159692 The name of the host.
PublicIp String 192.0.0.1 The public IP address.
PrivateIp String 127.0.0.1 The private IP address.
Role String CORE The role of the node.
InstanceType String ecs.n4.xlarge The instance type.
Cpu Integer 4 The number of vCPUs.
Memory Integer 8 The size of the memory. Unit: gigabytes.
Status String STARTING The status of the host.
Type String VM The type of the host.
HostInstanceId String i-bp1agi4417dx08sig82j The ID of the host instance.
SerialNumber String 6dc097b0-5e92-4e08-a49e-37c26c78cf9f The serial number of the host instance.

Examples

  • Sample requests
    
    /? ClusterId=C-F32FB31D82954C64
    &ProjectId=FP-3535FE0BE5224A47
    &RegionId=cn-hangzhou
    &<Common request parameters>
  • Successful response examples
    JSON format
    {
    	"HostList":{
    		"Host":[{
    			"Cpu":4,
    			"HostId":"119555",
    			"HostInstanceId":"i-bp1agi4417dx08sig82j",
    			"HostName":"emr-header-1.cluster-500159692",
    			"Memory":8,
    			"PrivateIp":"192.168.100.251",
    			"PublicIp":"47.99.183.218",
    			"Role":"MASTER",
    			"SerialNumber":"738d0af9-6ca3-46dd-a973-bab70da4bf74",
    			"Status":"STARTING"
    		}]
    	},
    	"RequestId":"2E429517-6A50-4082-9A30-47755CE9F9A5"
    }
  • Error response examples
    JSON format
    {
    	"code":"FLOW_API_FAILED",
    	"message":"Project does not exist [FP-3535FE0BE5224A4]",
    	"requestId":"93F6F3CF-B2AE-411A-948F-0F7293058CF5",
    	"successResponse":false
    }

Error codes

View error codes.