管理アカウントのリソースグループ、または Resource Directory のメンバーのリソースグループを照会します。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
resourcecenter:SearchMultiAccountResources |
list |
*All Resource
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| MaxResults |
integer |
任意 |
1 ページあたりに返すエントリ数。 最大値:100。デフォルト値:10。 |
20 |
| NextToken |
string |
任意 |
結果の次のページを取得するためのページネーショントークン。 |
AAAAAS2Nboi3t4xGrdlG5/Ks/Q1xPG9jzviYEuZydevXIkgF |
| AccountId |
string |
必須 |
管理アカウントまたはリソースディレクトリのメンバーの ID。 |
1394339739**** |
| ResourceGroupIds |
array |
任意 |
リソースグループ ID の配列。 |
|
|
string |
任意 |
リソースグループ ID。 |
rg-acfmzawhxxc**** |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
応答パラメーター。 |
||
| NextToken |
string |
次のリクエストで結果の次のページを取得するために使用するページネーショントークン。 |
AAAAAU5VsT9R1adMTuz9GzginZ3Y+7Y/5JATS+6q5GK9kT75 |
| RequestId |
string |
リクエスト ID。 |
0FF0A66E-781F-51EE-9531-928F197558F2 |
| ResourceGroups |
array<object> |
リソースグループのリスト。 |
|
|
array<object> |
リソースグループの配列。 |
||
| AccountId |
string |
管理アカウントまたはリソースディレクトリのメンバーの ID。 |
1394339739**** |
| CreateDate |
string |
リソースグループが作成された時刻。 |
2021-06-30T09:20:08Z |
| DisplayName |
string |
リソースグループの表示名。 |
group1 |
| Id |
string |
リソースグループの ID。 |
rg-acfmzawhxxc**** |
| Name |
string |
リソースグループの一意の識別子。 |
my-project |
| Status |
string |
リソースグループのステータス。有効な値:
|
OK |
| Tags |
array<object> |
リソースグループのタグのリスト。 |
|
|
object |
タグ。 |
||
| Key |
string |
タグのキー。 |
|
| Value |
string |
タグの値。 |
例
成功レスポンス
JSONJSON
{
"NextToken": "AAAAAU5VsT9R1adMTuz9GzginZ3Y+7Y/5JATS+6q5GK9kT75",
"RequestId": "0FF0A66E-781F-51EE-9531-928F197558F2",
"ResourceGroups": [
{
"AccountId": "1394339739****",
"CreateDate": "2021-06-30T09:20:08Z",
"DisplayName": "group1",
"Id": "rg-acfmzawhxxc****",
"Name": "my-project",
"Status": "OK",
"Tags": [
{
"Key": "",
"Value": ""
}
]
}
]
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | NoPermission | You are not authorized to perform this operation. | |
| 400 | InvalidParameter.MaxResults | The specified parameter MaxResults is not valid. | |
| 400 | MultiAccountServiceNotEnabled | Multi account ResourceCenter service is not enabled. | |
| 403 | NoPermission.AccountScope | The operator is not permitted for this account scope. | |
| 403 | ServiceNotEnabled.SpecifiedAccount | ResourceCenter service of the specified account is not enabled. | |
| 404 | NotExists.ResourceDirectory | The resource directory for the account is not enabled. | |
| 404 | NotExists.ResourceGroup | The specified ResourceGroup does not exist. | |
| 409 | NoPermission.ResourceDirectory.MemberAccount | ResourceDirectory Member Account is not authorized to perform this operation. | |
| 409 | InvalidParameter.AccountId | The specified parameter AccountId is not valid. | |
| 409 | InvalidParameter.ResourceGroupId | The specified parameter ResourceGroupId is not valid. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。