You can call this operation to view the operations on a cluster.

Request parameters

Name Type Required Example Description
ClusterId String Yes C-EBD62A703A430E23 The ID of the cluster.
RegionId String Yes cn-hangzhou The region location ID.
PageNumber Integer No 1 The page number to query.
PageSize Integer No 100 The number of records to show on each page.
ServiceName String No YARN The name of the service.
Status String No SUCCESS The status.
AccessKeyId String No xxx The AccessKey ID.

Response parameters

Name Type Example Description
RequestId String DF202AC2-5D5D-4288-B608-B7B1595B5C7C The ID of the request.
TotalCount Integer 1 The total number of records.
PageNumber Integer 1 The current page number.
PageSize Integer 100 The number of records that are shown on each page.
ClusterOperationList The list of operation history.
OperationId String 1111 The ID of the operation.
OperationName String CREATE The name of the operation.
StartTime String 1543312720000 The start time of the operation.
Duration String 500 The duration.
Status String SUCCESS The execution status.
Percentage String 100 The percentage complete for the task.
Comment String Create cluster The comment about the operation.

Examples

  • Sample requests
    /? ClusterId=C-F32FB31D82954C64
    &RegionId=cn-hangzhou 
    &AccessKeyId=111
    &PageNumber=1
    &PageSize=100
    &ServiceName=YARN
    &Status=SUCCESS
    &<Common request parameters>
  • Successful response examples
    JSON format
    {
    	"ClusterOperationList":{
    		"ClusterOperation":[{
    			"Comment":"Create cluster",
    			"Duration":"303",
    			"OperationId":"41027",
    			"OperationName":"CREATE",
    			"Percentage":"100",
    			"StartTime":"1543312720000",
    			"Status":"SUCCESS"
    		}]
    	},
    	"PageNumber":1,
    	"PageSize":10,
    	"RequestId":"FB29CC76-D7DC-4A08-AE96-E1F96F9FFC4E",
    	"TotalCount":1
    }
  • Error response examples
    JSON format
    {
    	"code":"RAM.Permission.NotAllow",
    	"message":"It is not allow to execute this operation,please use RAM to authorize!",
    	"requestId":"9AEDC439-1F63-491D-B8C6-9737C372BF3A",
    	"successResponse":false
    }

Error codes

View error codes.