修改當前帳號的資源監控範圍。
介面說明
本文將提供一個樣本,修改當前帳號的資源監控範圍為 ACS::ECS::Instance。
調試
您可以在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. | 服務不可用。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。