You can call this operation to query the hosts that can submit jobs in a cluster.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ListFlowClusterHost

The operation that you want to perform. Set the value to ListFlowClusterHost.

ClusterId String Yes C-F32FB31D82954C64

The ID of the cluster.

ProjectId String Yes FP-3535FE0BE5224A47

The ID of the project.

RegionId String Yes cn-hangzhou

The ID of the region where your project resides.

Response parameters

Parameter Type Example Description
HostList

The list of hosts that can submit jobs.

Host

The information of the host.

Cpu Integer 4

The number of vCPUs of the host.

HostId String The ID of the host

The ID of the host.

HostInstanceId String i-bp1agi4417dx08sig82j

The ID of the ECS instance.

HostName String emr-header-1.cluster-500159692

The name of the host.

InstanceType String ecs.n4.xlarge

The type of the ECS instance.

Memory Integer 16

The memory of the host. Unit: GB.

PrivateIp String 127.0.0.1

The internal IP address of the host.

PublicIp String 192.0.0.1

The public IP address of the host.

Role String CORE

The role of the host.

SerialNumber String 6dc097b0-5e92-4e08-a49e-37c26c78cf9f

The serial number of the host.

Status String STARTING

The status of the host.

Type String VM

The type of the host.

RequestId String 2E429517-6A50-4082-9A30-47755CE9F9A5

The ID of the request.

Examples

Sample requests


http(s)://[Endpoint]/? Action=ListFlowClusterHost
&ClusterId=C-F32FB31D82954C64
&ProjectId=FP-3535FE0BE5224A47
&RegionId=cn-hangzhou
&<Common request parameters>

Sample success responses

XML format

<ListFlowClusterHostResponse>
  <RequestId>2E429517-6A50-4082-9A30-47755CE9F9A5</RequestId>
	  <HostList>
		    <Host>
			      <Status>STARTING</Status>
			      <Role>MASTER</Role>
			      <SerialNumber>738d0af9-6ca3-46dd-a973-bab70da4bf74</SerialNumber>
			      <PublicIp>47.99.183.218</PublicIp>
			      <PrivateIp>192.168.100.251</PrivateIp>
			      <Memory>8</Memory>
			      <Cpu>4</Cpu>
			      <HostInstanceId>i-bp1agi4417dx08si****</HostInstanceId>
			      <HostId>119555</HostId>
			      <HostName>emr-header-1.cluster-500159692</HostName>
		    </Host>
	  </HostList>
    </ListFlowClusterHostResponse>

JSON format

{
	"RequestId":"2E429517-6A50-4082-9A30-47755CE9F9A5",
	"HostList":{
		"Host":[
			{
				"SerialNumber":"738d0af9-6ca3-46dd-a973-bab70da4bf74",
				"Status":"STARTING",
				"HostInstanceId":"i-bp1agi4417dx08si****",
				"Cpu":4,
				"Memory":8,
				"PublicIp":"47.99.183.218",
				"Role":"MASTER",
				"HostId":"119555",
				"PrivateIp":"192.168.100.251",
				"HostName":"emr-header-1.cluster-500159692"
			}
		]
	}
}

Error codes

For a list of error codes, visit the API Error Center.