在一个阿里云地域下根据偏差检测ID查询偏差检查状态。
接口说明
本文将提供一个示例,为您查询杭州地域偏差检测 ID 为a7044f0d-6f2e-4128-a307-4524ef88****的偏差检测操作的状态。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
ros:GetStackDriftDetectionStatus |
get |
*stack
|
无 | 无 |
请求语法
POST /V2/GetStackDriftDetectionStatus HTTP/1.1
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| RegionId |
string |
是 |
偏差检测关联的资源栈所属的地域 ID。 |
cn-hangzhou |
| DriftDetectionId |
string |
是 |
偏差检测 ID。 |
a7044f0d-6f2e-4128-a307-4524ef88**** |
关于公共请求参数的详情,请参见公共参数。
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| RequestId |
string |
请求 ID。 |
B288A0BE-D927-4888-B0F7-B35EF84B6E6F |
| DriftDetectionTime |
string |
资源栈偏差检测时间。 |
2020-02-27T07:47:47 |
| DriftDetectionStatusReason |
string |
偏差检测状态原因。 |
Detect stack drift successfully |
| DriftedStackResourceCount |
integer |
DRIFTED 状态资源数。 |
1 |
| StackDriftStatus |
string |
资源栈偏差状态。取值:
|
DRIFTED |
| DriftDetectionStatus |
string |
偏差检测状态。取值:
|
DETECTION_COMPLETE |
| StackId |
string |
资源栈 ID。 |
4a6c9851-3b0f-4f5f-b4ca-a14bf691**** |
| DriftDetectionId |
string |
偏差检测 ID。 |
a7044f0d-6f2e-4128-a307-4524ef88**** |
示例
正常返回示例
JSON格式
{
"RequestId": "B288A0BE-D927-4888-B0F7-B35EF84B6E6F",
"DriftDetectionTime": "2020-02-27T07:47:47",
"DriftDetectionStatusReason": "Detect stack drift successfully",
"DriftedStackResourceCount": 1,
"StackDriftStatus": "DRIFTED",
"DriftDetectionStatus": "DETECTION_COMPLETE",
"StackId": "4a6c9851-3b0f-4f5f-b4ca-a14bf691****",
"DriftDetectionId": "a7044f0d-6f2e-4128-a307-4524ef88****"
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。