查询当前账号的配置审计服务启用状态和资源监控范围。
接口说明
本文将提供一个示例,查询当前账号配置审计服务的启用状态和资源监控范围。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
config:GetConfigurationRecorder |
get |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
当前API无需请求参数
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| RequestId |
string |
请求 ID。 |
AE43696A-B3AF-5E55-9845-11393127E6D3 |
| ConfigurationRecorder |
object |
资源监控信息。 |
|
| ConfigurationRecorderStatus |
string |
资源监控状态。取值:
|
REGISTERED |
| ResourceTypes |
array |
监控的资源类型列表。 |
|
|
string |
资源类型。 |
ACS::ECS::Instance |
示例
正常返回示例
JSON格式
{
"RequestId": "AE43696A-B3AF-5E55-9845-11393127E6D3",
"ConfigurationRecorder": {
"ConfigurationRecorderStatus": "REGISTERED",
"ResourceTypes": [
"ACS::ECS::Instance"
]
}
}
错误码
|
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. | 服务不可用。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。
该文章对您有帮助吗?