Call the DescribeGrantRulesToCen API to query the cross-account network instances that have been authorized for a CEN instance.
Operation description
Calling the DescribeGrantRulesToCen interface with invalid parameters returns a RequestId but provides no information about the cross-account network instances that the Cloud Enterprise Network (CEN) instance is permitted to access.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cen:DescribeGrantRulesToCen |
get |
*CenInstance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The ID of the region where the network instance is located. You can call the DescribeChildInstanceRegions operation to query region IDs. |
cn-hangzhou |
| CenId |
string |
Yes |
The ID of the Cloud Enterprise Network instance. |
cen-nye53d7p3hzyu4**** |
| ProductType |
string |
Yes |
The type of the network instance. Valid values:
|
VPC |
| MaxResults |
integer |
No |
|
20 |
| NextToken |
string |
No |
The token used to retrieve the next page of results.
|
FFmyTO70tTpLG6I3FmYAXGKPd**** |
| ChildInstanceId |
string |
No |
The ID of the network instance to query. |
vpc-rj9gt5nll27onu7**** |
| ChildInstanceOwnerId |
integer |
No |
The ID of the Alibaba Cloud account (root account) that owns the network instance. |
1250123456123456 |
| EnabledIpv6 |
boolean |
No |
Specifies whether IPv6 is enabled.
|
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The data returned. |
||
| RequestId |
string |
The request ID. |
4906B209-8613-5C19-9CC9-B7A3FFDA731C |
| GrantRules |
object |
The grant rules. |
|
| GrantRule |
array<object> |
A list of grant rules. |
|
|
object |
The details of the network instance. |
||
| ChildInstanceType |
string |
The type of the network instance. Valid values:
|
VPC |
| ChildInstanceRegionId |
string |
The region ID of the network instance. |
cn-hangzhou |
| ChildInstanceOwnerId |
integer |
The ID of the Alibaba Cloud account (primary account) that owns the network instance. |
1250123456123456 |
| ChildInstanceId |
string |
The ID of the network instance. |
vpc-bp1rgeww9mdstuuar**** |
| CenId |
string |
The ID of the CEN instance. |
cen-nye53d7p3hzyu4**** |
| OrderType |
string |
The payer for the network instance. Valid values:
|
PayByCenOwner |
| EffectiveOrderType |
string |
The effective payer for the network instance. |
PayByCenOwner |
| CenOwnerId |
integer |
The ID of the Alibaba Cloud account (primary account) that owns the CEN instance. |
1210123456123456 |
| CreateTime |
integer |
The time when the permission was granted. The time is in UTC and follows the ISO 8601 standard. |
2024-01-24T16:27Z |
| TotalCount |
integer |
The total number of entries. |
1 |
| MaxResults |
integer |
|
20 |
| NextToken |
string |
The pagination token that is used in the next request to retrieve a new page of results.
|
FFmyTO70tTpLG6I3FmYAXGKPd**** |
Examples
Success response
JSON format
{
"RequestId": "4906B209-8613-5C19-9CC9-B7A3FFDA731C",
"GrantRules": {
"GrantRule": [
{
"ChildInstanceType": "VPC",
"ChildInstanceRegionId": "cn-hangzhou",
"ChildInstanceOwnerId": 1250123456123456,
"ChildInstanceId": "vpc-bp1rgeww9mdstuuar****",
"CenId": "cen-nye53d7p3hzyu4****",
"OrderType": "PayByCenOwner",
"EffectiveOrderType": "PayByCenOwner",
"CenOwnerId": 1210123456123456,
"CreateTime": 0
}
]
},
"TotalCount": 1,
"MaxResults": 20,
"NextToken": "FFmyTO70tTpLG6I3FmYAXGKPd****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | Invalid parameter. | The error message returned because the parameter is set to an invalid value. |
| 400 | MissingParameter | Missing parameter. | The error message returned because one or more required parameters are not set. |
| 400 | InvalidParameter.RegionId | The specified Region Id is invalid. | The error message returned because the specified region ID is invalid. |
| 400 | IllegalParam.NextToken | NextToken is illegal | The error message returned because the NextToken parameter is set to an invalid value. |
| 400 | MissingParameter.RegionId | Missing RegionId parameter. | Missing RegionId parameter. |
| 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.