監視対象のリソースタイプを追加または変更します。
この API は廃止されました。一時的にアクセス可能ですが、更新やバグ修正対応は一切行われません。代わりに Config(2020-09-07) - UpdateConfigurationRecorder への移行を推奨します。より強化された機能に加え、サポートも引き続きご利用いただけます。
操作説明
この操作は、リクエストを実行する Alibaba Cloud アカウントからのみ呼び出すことができます。Cloud Config でサポートされているリソースタイプの詳細については、「Cloud Config をサポートする Alibaba Cloud サービス」をご参照ください。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
config:PutConfigurationRecorder |
update |
*All Resource
|
なし | なし |
リクエストパラメーター
|
パラメーター |
タイプ |
必須 / 任意 |
説明 |
例 |
| ResourceTypes |
string |
必須 |
リソースタイプ。複数のリソースタイプはカンマ (,) で区切ります。 |
ACS::ECS::Instance,ACS::ECS::Disk |
レスポンスパラメーター
|
パラメーター |
タイプ |
説明 |
例 |
|
object |
なし。 |
||
| ConfigurationRecorder |
object |
リソース監視に関する情報。 |
|
| AccountId |
integer |
現在の Alibaba Cloud アカウントの ID。 |
123456789 |
| ConfigurationRecorderStatus |
string |
リソース監視のステータス。有効な値:
|
REGISTERED |
| ResourceTypes |
array |
リソースタイプのリスト。 |
|
|
string |
リソースタイプのリスト。 |
["ACS::ECS::Instance","ACS::ECS::NetworkInterface"] |
|
| RequestId |
string |
リクエスト ID。 |
7C189ED2-30C1-492E-82B6-0D828B556ED9 |
例
成功レスポンス
JSONJSON
{
"ConfigurationRecorder": {
"AccountId": 123456789,
"ConfigurationRecorderStatus": "REGISTERED",
"ResourceTypes": [
"[\"ACS::ECS::Instance\",\"ACS::ECS::NetworkInterface\"]"
]
},
"RequestId": "7C189ED2-30C1-492E-82B6-0D828B556ED9"
}
エラーコード
|
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. | |
| 400 | RDMemberNoPermission | You are not authorized to perform the operation. The reasons include: 1. You have not enabled the resource directory service. 2. You are not using the administrator account of resource directory. | |
| 404 | AccountNotExisted | Your account does not exist. | |
| 503 | ServiceUnavailable | The request has failed due to a temporary failure of the server. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。