You can call ListClusterOperation operation to query the actions that are taken on 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 ListClusterOperation

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

ClusterId String Yes C-F32FB31D8295****

The ID of the cluster. You can call ListClusters The ID of the cluster.

RegionId String Yes cn-hangzhou

The ID of the region. You can call DescribeRegions View the latest Alibaba Cloud region list.

ServiceName String No YARN

The name of the service.

Status String No SUCCESS

The status of the task. Valid values:

  • SUCCESS: The image was built
  • WAITING: Waiting
  • READY: Preparing
  • IN_PROGRESS: In progress
  • COMPLETED: The job is completed
  • FAILED: The task failed
PageNumber Integer No 1

The number of the page to return.

PageSize Integer No 10

The number of entries to return on each page.

Response parameters

Parameter Type Example Description
ClusterOperationList Array of ClusterOperation

The actions that are performed in the cluster.

ClusterOperation
Comment String Create cluster

The comment for the action.

Duration String 303

The duration of the action.

OperationId String 41027

The ID of the operation.

OperationName String CREATE

The name of the action.

Percentage String 100

The progress (%) of the action.

StartTime String 1543312720000

The time when the action started.

Status String SUCCESS

The status of the action.

PageNumber Integer 1

The page number of the returned page.

PageSize Integer 10

The number of entries returned per page.

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

The ID of the request.

TotalCount Integer 1

The total number of entries that are returned.

Examples

Sample requests

http(s)://[Endpoint]/?Action=ListClusterOperation
&ClusterId=C-F32FB31D8295****
&RegionId=cn-hangzhou
&<common request parameters>

Sample success responses

XML format

<ListClusterOperationResponse>
      <ClusterOperationList>
            <ClusterOperation>
                  <Status>SUCCESS</Status>
                  <Comment>Create cluster</Comment>
                  <Percentage>100</Percentage>
                  <OperationName>CREATE</OperationName>
                  <OperationId>41027</OperationId>
                  <StartTime>1543312720000</StartTime>
                  <Duration>303</Duration>
            </ClusterOperation>
      </ClusterOperationList>
      <TotalCount>1</TotalCount>
      <PageSize>10</PageSize>
      <RequestId>FB29CC76-D7DC-4A08-AE96-E1F96F9FFC4E</RequestId>
      <PageNumber>1</PageNumber>
</ListClusterOperationResponse>

JSON format

{
    "PageNumber":1,
    "TotalCount":1,
    "PageSize":10,
    "RequestId":"FB29CC76-D7DC-4A08-AE96-E1F96F9FFC4E",
    "ClusterOperationList":{
        "ClusterOperation":[
            {
                "Percentage":"100",
                "Status":"SUCCESS",
                "Duration":"303",
                "OperationId":"41027",
                "Comment":"Create cluster",
                "StartTime":"1543312720000",
                "OperationName":"CREATE"
            }
        ]
    }
}