查询设置的资源监控范围。
接口说明
本文将提供一个示例,查询当前阿里云账号100931896542****中资源的监控范围。返回结果显示,资源监控类型为ACS::ECS::Instance和ACS::ECS::NetworkInterface,资源监控状态为REGISTERED(已注册)。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
config:DescribeConfigurationRecorder |
get |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
当前API无需请求参数
关于公共请求参数的详情,请参见公共参数。
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
无。 |
||
| ConfigurationRecorder |
object |
资源监控信息。 |
|
| AccountId |
integer |
当前阿里云账号 ID。 |
100931896542**** |
| ConfigurationRecorderStatus |
string |
资源监控状态。取值:
|
REGISTERED |
| OrganizationEnableStatus |
string |
企业版配置审计升级状态。取值:
|
REGISTRABLE |
| OrganizationMasterId |
integer |
企业管理账号 ID。 说明
仅当企业管理账号调用该接口时,返回该参数。 |
120886317861**** |
| ResourceTypes |
array |
资源类型列表。 |
|
|
string |
资源类型列表。 |
["ACS::ECS::Instance","ACS::ECS::NetworkInterface"] |
|
| RequestId |
string |
请求 ID。 |
A3601178-A6A2-4636-BE56-1116F73C0B0C |
示例
正常返回示例
JSON格式
{
"ConfigurationRecorder": {
"AccountId": 0,
"ConfigurationRecorderStatus": "REGISTERED",
"OrganizationEnableStatus": "REGISTRABLE",
"OrganizationMasterId": 0,
"ResourceTypes": [
"[\"ACS::ECS::Instance\",\"ACS::ECS::NetworkInterface\"]"
]
},
"RequestId": "A3601178-A6A2-4636-BE56-1116F73C0B0C"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | NoPermission | You are not authorized to perform this operation. | |
| 404 | AccountNotExisted | Your account does not exist. | |
| 503 | ServiceUnavailable | The request has failed due to a temporary failure of the server. |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。