查询控制策略操作状态
功能介绍
根据操作ID查询返回指定ID的操作状态。
URI
GET /v1/governance/operation-control-status/{operation_control_status_id}
|
参数 |
是否必选 |
参数类型 |
描述 |
|---|---|---|---|
|
operation_control_status_id |
是 |
String |
操作控制策略的请求ID。 |
请求参数
无
响应参数
状态码:200
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
control_operation |
ControlOperation object |
控制策略实施的情况。 |
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
operation_control_status_id |
String |
本次操作控制策略的ID。 |
|
operation_type |
String |
操作类型,启用控制策略或禁用控制策略。 |
|
status |
String |
控制策略实施的状态 SUCCEEDED | FAILED | IN_PROGRESS。 |
|
message |
String |
控制策略实施失败的错误信息。 |
|
start_time |
String |
操作开始的时间。 |
|
end_time |
String |
操作结束的时间。 |
状态码:403
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
error_code |
String |
错误码 |
|
error_msg |
String |
错误信息 |
|
request_id |
String |
请求唯一标识 |
|
encoded_authorization_message |
String |
加密的错误信息 |
|
details |
Array of ForbiddenErrorDetail objects |
跨服务调用无权限错误信息 |
请求示例
根据操作ID查询返回指定ID的操作状态。
GET https://{endpoint}/v1/governance/operation-control-status/{operation_control_status_id}
响应示例
状态码:200
请求成功。
{
"control_operation" : {
"operation_control_status_id" : "string",
"operation_type" : "string",
"status" : "string",
"message" : "string",
"start_time" : "string",
"end_time" : "string"
}
}
状态码
|
状态码 |
描述 |
|---|---|
|
200 |
请求成功。 |
|
403 |
请求无权限。 |
错误码
请参见错误码。