获取集群的操作历史
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求语法
POST /webapi/operation/listOperationHistory HTTP/1.1
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| PageNumber |
integer |
否 |
当前分页的页码数。默认值为 1。 |
1 |
| PageSize |
integer |
否 |
分页查询时每页的条目数。默认为 10。 |
10 |
| InstanceId |
string |
是 |
实例 ID。 |
c-b25e21e24388**** |
| OperationId |
string |
否 |
操作 ID。 |
op-f49743caa809**** |
| OperationType |
string |
否 |
操作类型。包含以下取值:
|
update_configuration |
| OperationStatus |
string |
否 |
操作状态:
|
COMPLETED |
| StartTime |
integer |
否 |
操作开始时间。 |
1742179008000 |
| EndTime |
integer |
否 |
操作结束时间。 |
1742179008000 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| HttpStatusCode |
integer |
HTTP 请求状态码。 |
200 |
| RequestId |
string |
请求 ID。 |
32A44F0D-BFF6-5664-999A-218BBDE7**** |
| Success |
boolean |
请求是否成功。 |
false |
| ErrCode |
string |
错误码。 |
InvalidParams |
| ErrMessage |
string |
错误信息。 |
Invalid params: [instance not exists]. |
| Data |
array<object> |
返回数据。 |
|
|
object |
返回数据。 |
||
| InstanceId |
string |
实例 ID。 |
c-cd7a3a6f2186d5c9 |
| OperationId |
string |
操作 ID |
op-f49743caa809**** |
| OperationType |
string |
操作类型。包含以下取值:
|
upgrade_version |
| BeforeValue |
string |
操作之前的值。 |
FE enable = false |
| AfterValue |
string |
操作之后的值。 |
FE enable = true |
| GmtCreate |
integer |
操作开始时间。 |
1742179008000 |
| GmtEnd |
integer |
操作结束时间。 |
1742179008000 |
| OperationStatus |
string |
操作状态:
|
COMPLETED |
| Progress |
integer |
操作进度。 |
100 |
| OperationDetail |
string |
操作详情。 |
库存不足,操作失败,已退款 |
| Total |
integer |
总记录条数。 |
832 |
| AccessDeniedDetail |
string |
权限校验失败详情。 |
{ "PolicyType": "AccountLevelIdentityBasedPolicy", "AuthPrincipalOwnerId": "xxx", "EncodedDiagnosticMessage": "xxx", "AuthPrincipalType": "xxx", "AuthPrincipalDisplayName": "xxx", "NoPermissionType": "ImplicitDeny", "AuthAction": "sr:xxx" } |
示例
正常返回示例
JSON格式
{
"HttpStatusCode": 200,
"RequestId": "32A44F0D-BFF6-5664-999A-218BBDE7****",
"Success": false,
"ErrCode": "InvalidParams",
"ErrMessage": "Invalid params: [instance not exists].",
"Data": [
{
"InstanceId": "c-cd7a3a6f2186d5c9",
"OperationId": "op-f49743caa809****",
"OperationType": "upgrade_version",
"BeforeValue": "FE enable = false",
"AfterValue": "FE enable = true",
"GmtCreate": 1742179008000,
"GmtEnd": 1742179008000,
"OperationStatus": "COMPLETED",
"Progress": 100,
"OperationDetail": "库存不足,操作失败,已退款"
}
],
"Total": 832,
"AccessDeniedDetail": "{ \"PolicyType\": \"AccountLevelIdentityBasedPolicy\", \"AuthPrincipalOwnerId\": \"xxx\", \"EncodedDiagnosticMessage\": \"xxx\", \"AuthPrincipalType\": \"xxx\", \"AuthPrincipalDisplayName\": \"xxx\", \"NoPermissionType\": \"ImplicitDeny\", \"AuthAction\": \"sr:xxx\" }"
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。