現在のアカウントのリソース監視範囲を変更します。
操作説明
このトピックでは、現在のアカウントのリソース監視範囲を ACS::ECS::Instance に変更する方法の例を示します。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
config:UpdateConfigurationRecorder |
update |
*All Resource
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| ResourceTypes |
string |
必須 |
リソースタイプ。 複数のリソースタイプを指定する場合は、コンマ (,) で区切ります。 |
ACS::ECS::Instance |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| RequestId |
string |
リクエスト ID。 |
2A1D5095-D1F9-56B6-A712-EA495608E79A |
| ConfigurationRecorder |
object |
設定レコーダーの詳細。 |
|
| ConfigurationRecorderStatus |
string |
設定レコーダーのステータス。 有効な値:
|
REGISTERED |
| ResourceTypes |
array |
Cloud Config によって監視されるリソースタイプ。 |
|
|
string |
リソースタイプ。 |
ACS::ECS::Instance |
例
成功レスポンス
JSONJSON
{
"RequestId": "2A1D5095-D1F9-56B6-A712-EA495608E79A",
"ConfigurationRecorder": {
"ConfigurationRecorderStatus": "REGISTERED",
"ResourceTypes": [
"ACS::ECS::Instance"
]
}
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 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. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。