修改当前账号的资源监控范围。
接口说明
修改当前账号的资源监控范围。企业级账号(已开通账号组)不支持通过本接口变更资源监控范围。调用前请通过 GetConfigurationRecorder 确认 ConfigurationRecorderStatus 为 REGISTERED:REGISTRABLE 表示未注册,BUILDING 表示首次构建中,REGISTERED 表示已注册且可更新,REBUILDING 表示重新构建中。BUILDING 或 REBUILDING 期间请等待状态变为 REGISTERED 后重试,否则服务端返回 ProcessIsRunning(400)。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
config:UpdateConfigurationRecorder |
update |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| ResourceTypes |
string |
是 |
资源类型。多个资源类型之间用半角逗号(,)分隔。 |
ACS::ECS::Instance |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| RequestId |
string |
请求 ID。 |
2A1D5095-D1F9-56B6-A712-EA495608E79A |
| ConfigurationRecorder |
object |
资源监控信息。 |
|
| ConfigurationRecorderStatus |
string |
资源监控状态。取值:
|
REGISTERED |
| ResourceTypes |
array |
监控资源类型列表。 |
|
|
string |
资源类型。 |
ACS::ECS::Instance |
示例
正常返回示例
JSON格式
{
"RequestId": "2A1D5095-D1F9-56B6-A712-EA495608E79A",
"ConfigurationRecorder": {
"ConfigurationRecorderStatus": "REGISTERED",
"ResourceTypes": [
"ACS::ECS::Instance"
]
}
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | NoPermission | You are not authorized to perform this operation. | 您无权执行此操作。 |
| 400 | Invalid.ResourceTypes.Value | The specified resourceTypes is invalid. | 输入的资源类型为非法值。 |
| 400 | ProcessIsRunning | The process is running. | 进程还在执行中。 |
| 503 | ServiceUnavailable | The request has failed due to a temporary failure of the server. | 服务不可用。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。