调用 ListClusterOperation 接口查询集群的操作历史列表。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | ListClusterOperation |
系统规定参数。取值:ListClusterOperation。 |
ClusterId | String | 是 | C-F32FB31D8295**** |
集群ID。 |
RegionId | String | 是 | cn-hangzhou |
地域ID。 |
PageNumber | Integer | 否 | 1 |
分页查询的查询页码。 |
PageSize | Integer | 否 | 100 |
分页查询的每页记录数。 |
ServiceName | String | 否 | YARN |
服务名。 |
Status | String | 否 | SUCCESS |
状态。 |
AccessKeyId | String | 否 | LTAI8ljWyu7y**** |
阿里云AccessKey ID信息,用于标识访问者身份。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
ClusterOperationList |
操作历史列表。 |
||
ClusterOperation |
操作历史列表。 |
||
Comment | String | Create cluster |
操作的备注信息。 |
Duration | String | 500 |
持续时间。 |
OperationId | String | 1111 |
操作ID。 |
OperationName | String | CREATE |
操作名称。 |
Percentage | String | 100 |
执行进度(百分比)。 |
StartTime | String | 1543312720000 |
操作的开始执行时间。 |
Status | String | SUCCESS |
操作的当前执行状态。 |
PageNumber | Integer | 1 |
当前的页号。 |
PageSize | Integer | 100 |
每页的记录数。 |
RequestId | String | DF202AC2-5D5D-4288-B608-B7B1595B5C7C |
请求ID。 |
TotalCount | Integer | 1 |
记录总数。 |
示例
请求示例
http(s)://[Endpoint]/?Action=ListClusterOperation
&ClusterId=C-F32FB31D82954C64
&RegionId=cn-hangzhou
&<公共请求参数>
正常返回示例
XML
格式
<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
格式
{
"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"
}
]
}
}
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
403 | Params.Illegal | The specified parameters are wrongly formed.. | 指定参数格式错误 |
403 | User.OtherUserResource.NotAllow | It is not allowed to operate other user's resource | 不能操作其它用户的资源 |
403 | Invalid.Cluster.Status | Invalid cluster status %s in status list | 指定集群状态不合法 |
403 | Invalid.Cluster.Type | Invalid cluster type %s in cluster type list | 指定集群类型不合法 |
404 | ClusterId.NotFound | The ClusterId provided does not exist in our records. | Cluster Id不存在,确认集群的Cluster Id |
500 | InternalError | The request processing has failed due to some unknown error. | 内部错误,请提工单 |
访问错误中心查看更多错误码。