You can call this operation to query the hosts on which a specific action is performed.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. You can use OpenAPI Explorer to search for APIs, call APIs, and dynamically generate SDK example code.

Request parameters

Parameter Type Required Example Description
Action String Yes ListClusterOperationHost

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

ClusterId String Yes DF202AC2-5D5D-4288-B608-B7B1595B5C7C

The ID of the cluster.

OperationId String Yes 111

The ID of the action.

RegionId String Yes cn-hangzhou

The ID of the region to which the cluster belongs.

PageNumber Integer No 1

The number of the page to return.

PageSize Integer No 100

The number of entries to return on each page.

Status String No SUCCESS

The status of the task.

AccessKeyId String No LTA****u7gTm****

The AccessKey ID provided to you by Alibaba Cloud. This parameter identifies the user.

Response parameters

Parameter Type Example Description
ClusterOperationHostList

The hosts on which the action is performed.

ClusterOperationHost

The information of the host.

HostId String 111

The ID of the host.

HostName String emr-worker-1

The name of the host.

Percentage String 100

The progress (%) of the task.

Status String SUCCESS

The status of the task.

PageNumber Integer 1

The page number of the returned page.

PageSize Integer 100

The number of entries returned per page.

RequestId String DF202AC2-5D5D-4288-B608-B7B1595B5C7C

The ID of the request.

TotalCount Integer 3

The total number of entries returned.

Examples

Sample requests


http(s)://[Endpoint]/? Action=ListClusterOperationHost
&ClusterId=DF202AC2-5D5D-4288-B608-B7B1595B5C7C
&OperationId=111
&RegionId=cn-hangzhou
&<Common request parameters>

Sample success responses

XML format

<ListClusterOperationHostResponse>
	  <TotalCount>3</TotalCount>
	  <PageSize>500</PageSize>
	  <RequestId>12B58AF8-40E0-42E9-B6E5-1F4201AFB4F8</RequestId>
	  <PageNumber>1</PageNumber>
	  <ClusterOperationHostList>
		    <ClusterOperationHost>
			      <Status>SUCCESS</Status>
			      <Percentage>100</Percentage>
			      <HostId>124903</HostId>
			      <HostName>emr-header-1</HostName>
		    </ClusterOperationHost>
		    <ClusterOperationHost>
			      <Status>SUCCESS</Status>
			      <Percentage>100</Percentage>
			      <HostId>124902</HostId>
			      <HostName>emr-worker-1</HostName>
		    </ClusterOperationHost>
		    <ClusterOperationHost>
			      <Status>SUCCESS</Status>
			      <Percentage>100</Percentage>
			      <HostId>124901</HostId>
			      <HostName>emr-worker-2</HostName>
		    </ClusterOperationHost>
	  </ClusterOperationHostList>
</ListClusterOperationHostResponse>

JSON format

{
	"PageNumber":1,
	"TotalCount":3,
	"PageSize":500,
	"RequestId":"12B58AF8-40E0-42E9-B6E5-1F4201AFB4F8",
	"ClusterOperationHostList":{
		"ClusterOperationHost":[
			{
				"Percentage":"100",
				"Status":"SUCCESS",
				"HostId":"124903",
				"HostName":"emr-header-1"
			},
			{
				"Percentage":"100",
				"Status":"SUCCESS",
				"HostId":"124902",
				"HostName":"emr-worker-1"
			},
			{
				"Percentage":"100",
				"Status":"SUCCESS",
				"HostId":"124901",
				"HostName":"emr-worker-2"
			}
		]
	}
}

Error codes

HTTP status code Error code Error message Description
403 Params.Illegal The specified parameters are wrongly formed. The error message returned because the format of the specified parameters is invalid.
403 User.OtherUserResource.NotAllow It is not allowed to operate other user's resource. The error message returned because you are not authorized to manage resources of other users.
403 Invalid.Cluster.Status Invalid cluster status %s in status list. The error message returned because the status of the specified cluster is invalid.
403 Invalid.Cluster.Type Invalid cluster type %s in cluster type list. The error message returned because the type of the specified cluster is invalid.
500 InternalError The request processing has failed due to some unknown error. The error message returned because the request processing has failed due to an internal error. Submit a ticket.

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