Queries the authorization information of a network instance for a cross-account Cloud Enterprise Network (CEN) instance, including the Alibaba Cloud account that owns the CEN instance and the payer of the network instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cen:DescribeGrantRulesToResource |
get |
*VPC
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID of the network instance. You can call the DescribeChildInstanceRegions operation to obtain region IDs. |
cn-hangzhou |
| ResourceId |
string |
Yes |
The network instance ID. |
vpc-p0wfut1iqauelpdpb**** |
| ProductType |
string |
Yes |
The type of the network instance. Valid values:
Valid values:
|
VPC |
| MaxResults |
integer |
No |
|
20 |
| NextToken |
string |
No |
The pagination token. Valid values:
|
FFmyTO70tTpLG6I3FmYAXGKPd**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| NextToken |
string |
The pagination token. Valid values:
|
FFmyTO70tTpLG6I3FmYAXGKPd**** |
| RequestId |
string |
The request ID. |
C6E5992C-A57B-5A6C-9B26-568074DC68BA |
| TotalCount |
integer |
The total number of entries returned. |
1 |
| MaxResults |
integer |
|
1 |
| GrantRules |
array<object> |
The authorization information list. |
|
|
object |
The authorization information. |
||
| CenOwnerId |
integer |
The Alibaba Cloud account ID that owns the CEN instance. |
1250123456123456 |
| OrderType |
string |
The payer of the network instance. Valid values:
|
PayByCenOwner |
| EffectiveOrderType |
string |
The effective payer of the network instance. Valid values:
|
PayByCenOwner |
| CenId |
string |
The CEN instance ID. |
cen-44m0p68spvlrqq**** |
| CreateTime |
string |
The time when the authorization was created. The time is displayed in UTC in the YYYY-MM-DDThh:mmZ format. |
2024-01-24T16:46Z |
Examples
Success response
JSON format
{
"NextToken": "FFmyTO70tTpLG6I3FmYAXGKPd****",
"RequestId": "C6E5992C-A57B-5A6C-9B26-568074DC68BA",
"TotalCount": 1,
"MaxResults": 1,
"GrantRules": [
{
"CenOwnerId": 1250123456123456,
"OrderType": "PayByCenOwner",
"EffectiveOrderType": "PayByCenOwner",
"CenId": "cen-44m0p68spvlrqq****",
"CreateTime": "2024-01-24T16:46Z"
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | Invalid parameter. | |
| 400 | MissingParameter | Missing parameter. | |
| 400 | InvalidParameter.RegionId | The specified Region Id is invalid. | The error message returned because the specified region ID is invalid. |
| 400 | MissingParameter.RegionId | Missing RegionId parameter. | Missing RegionId parameter. |
| 400 | IllegalParam.NextToken | NextToken is illegal | The error message returned because the NextToken parameter is set to an invalid value. |
| 400 | Unauthorized | The AccessKeyId is unauthorized. | The error message returned because you do not have the permissions to perform this operation. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.