查询资源目录管理账号或成员的资源组。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
resourcecenter:SearchMultiAccountResources |
list |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| MaxResults |
integer |
否 |
分页查询时每页行数。 每页最大行数:100。默认值:10。 |
20 |
| NextToken |
string |
否 |
查询开始的 Token。 |
AAAAAS2Nboi3t4xGrdlG5/Ks/Q1xPG9jzviYEuZydevXIkgF |
| AccountId |
string |
是 |
资源目录管理账号 ID 或成员 ID。 |
1394339739**** |
| ResourceGroupIds |
array |
否 |
资源组 ID 列表。 |
|
|
string |
否 |
资源组 ID。 |
rg-acfmzawhxxc**** |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
返回参数。 |
||
| NextToken |
string |
下一个查询开始的 Token。 |
AAAAAU5VsT9R1adMTuz9GzginZ3Y+7Y/5JATS+6q5GK9kT75 |
| RequestId |
string |
请求 ID。 |
0FF0A66E-781F-51EE-9531-928F197558F2 |
| ResourceGroups |
array<object> |
资源组列表。 |
|
|
object |
资源组。 |
||
| AccountId |
string |
资源目录管理账号 ID 或成员 ID。 |
1394339739**** |
| CreateDate |
string |
资源组的创建时间。 |
2021-06-30T09:20:08Z |
| DisplayName |
string |
资源组显示名称。 |
group1 |
| Id |
string |
资源组 ID。 |
rg-acfmzawhxxc**** |
| Name |
string |
资源组唯一标识。 |
my-project |
| Status |
string |
资源组状态。
|
OK |
示例
正常返回示例
JSON格式
{
"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"
}
]
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | NoPermission | You are not authorized to perform this operation. | |
| 400 | InvalidParameter.MaxResults | The specified parameter MaxResults is not valid. | 参数 MaxResults 不合法。 |
| 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. |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。