You can call this operation to query actions that are performed in a cluster.

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 ListClusterOperation

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

ClusterId String Yes C-F32FB31D8295****

The ID of the cluster.

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.

ServiceName String No YARN

The name of the service.

Status String No SUCCESS

The status of the action.

AccessKeyId String No LTAI8ljWyu7y****

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

Response parameters

Parameter Type Example Description
ClusterOperationList

The actions that are performed in the cluster.

ClusterOperation

The action that is performed in the cluster.

Comment String Create cluster

The comment for the action.

Duration String 500

The duration of the action.

OperationId String 1111

The ID of the action.

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 100

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 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"
			}
		]
	}
}

Error codes

HTTP status code Error codes 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.
404 ClusterId.NotFound The ClusterId provided does not exist in our records. The error message returned because the ID of the specified cluster does not exist. Make sure the ID of the cluster is valid.
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.