Queries the configurations of a resource within the management account or a member of a resource directory.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
resourcecenter:GetMultiAccountResourceConfiguration |
get |
All resources
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AccountId |
string |
Yes |
The ID of the management account or member. |
1619302**** |
| ResourceRegionId |
string |
Yes |
The ID of the region where the resource resides. |
cn-shanghai |
| ResourceType |
string |
Yes |
The resource type. |
ACS::VPC::RouteTable |
| ResourceId |
string |
Yes |
The resource ID. |
m-eb3hji**** |
Response elements
|
Parameter |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| AccountId |
string |
The ID of the management account or member. |
1619302**** |
| CreateTime |
string |
The time when the resource was created. |
2023-02-14T03:12:11Z |
| ExpireTime |
string |
The time when the resource expires. |
2023-09-18T07:04:21Z |
| IpAddressAttributes |
array |
The properties of the IP addresses. |
|
|
object |
The properties of the IP address. |
||
| Version |
string |
The version of the IP address. |
Ipv4 |
| NetworkType |
string |
The network type. Valid values:
|
Public |
| IpAddress |
string |
The IP address. |
172.27.199.42 |
| IpAddresses |
array |
The IP addresses. Note
Whether this parameter is returned is determined by the Alibaba Cloud service to which the resource belongs. |
|
|
string |
The IP address. Note
Whether this parameter is returned is determined by the Alibaba Cloud service to which the resource belongs. |
['192.168.1.2'] |
|
| RegionId |
string |
The ID of the region where the resource resides. |
cn-shanghai |
| RequestId |
string |
The request ID. |
B2DCC08B-C12A-5705-879C-5A1450016156 |
| ResourceGroupId |
string |
The ID of your Alibaba Cloud resource group. |
rg-acfmzy6d**** |
| ResourceId |
string |
The resource ID. |
m-eb3hji**** |
| ResourceName |
string |
The resource name. |
test_resource |
| ResourceType |
string |
The resource type. |
ACS::VPC::RouteTable |
| Tags |
array |
The tags. |
|
|
object |
The tag. |
||
| Value |
string |
The tag value. |
tag-value |
| Key |
string |
The tag key. |
tag-key |
| ZoneId |
string |
The zone ID. |
cn-shanghai-a |
| Configuration |
object |
The configurations of the resource. |
|
|
any |
The configurations of the resource. |
{\"uid\":\"140874204639****\",\"groupId\":\"3zLxraq7qE9dRakjoQYI00****\"} |
Examples
Success response
JSON format
{
"AccountId": "1619302****",
"CreateTime": "2023-02-14T03:12:11Z",
"ExpireTime": "2023-09-18T07:04:21Z",
"IpAddressAttributes": [
{
"Version": "Ipv4",
"NetworkType": "Public",
"IpAddress": "172.27.199.42"
}
],
"IpAddresses": [
"['192.168.1.2']"
],
"RegionId": "cn-shanghai",
"RequestId": "B2DCC08B-C12A-5705-879C-5A1450016156",
"ResourceGroupId": "rg-acfmzy6d****",
"ResourceId": "m-eb3hji****",
"ResourceName": "test_resource",
"ResourceType": "ACS::VPC::RouteTable",
"Tags": [
{
"Value": "tag-value",
"Key": "tag-key"
}
],
"ZoneId": "cn-shanghai-a",
"Configuration": {
"key": "{\\\"uid\\\":\\\"140874204639****\\\",\\\"groupId\\\":\\\"3zLxraq7qE9dRakjoQYI00****\\\"}"
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | NoPermission | You are not authorized to perform this operation. | |
| 400 | MultiAccountServiceNotEnabled | Multi account ResourceCenter service is not enabled. | |
| 403 | NoPermission.AccountScope | The operator is not permitted for this account scope. | You do not have the required permissions to manage accounts within this resource directory. |
| 404 | NotExists.Resource | The specified resource does not exist. | The specified resource does not exist. |
| 404 | NotExists.ResourceDirectory | The resource directory for the account is not enabled. | No resource directory is enabled for the account. |
| 409 | InvalidParameter.AccountId | The specified parameter AccountId is not valid. | |
| 409 | InvalidParameter.ResourceType | The specified parameter ResourceType is not valid. | |
| 409 | NoPermission.ResourceDirectory.MemberAccount | ResourceDirectory Member Account is not authorized to perform this operation. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.