You can call ListClusterOperationHost operation to query the list of hosts whose operation history is displayed.

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 API operations, call API operations, and dynamically generate SDK sample 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 C-A14A3F241AF3****

The ID of the cluster. You can call ListClusters You can call this operation to view the ID of a cluster.

OperationId String Yes 111

The ID of the action.

RegionId String Yes cn-hangzhou

The region ID of the instance. You can call DescribeRegions To view the latest list of Alibaba Cloud regions.

Status String No SUCCESS

The status of the action.

PageNumber Integer No 1

The number of the page to return.

PageSize Integer No 100

The number of entries to return on each page.

Response parameters

Parameter Type Example Description
ClusterOperationHostList Array of ClusterOperationHost

The hosts on which the action is performed.

ClusterOperationHost
HostId String 111

The ID of the host.

HostName String emr-worker-1

The names of the hosts on which the component is installed.

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 on each 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=C-A14A3F241AF3****
&OperationId=111
&RegionId=cn-hangzhou
&<common request parameters>

Sample responses

XML format

<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>

JSON Syntax


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