edit-icon download-icon


Last Updated: Mar 28, 2018


Query the networks that have been authorized to CEN.

Note: This API is an API of VPC. Therefore, the endpoint of the API is vpc.aliyuncs.com and the API version is 2016-04-28.

Request parameters

Name Type Required Description
Action String Yes

The action to perform. Valid value:


RegionId String Yes The ID of the region where the network is located.
InstanceId String Yes The ID of the network.

The type of the network. Valid value:


Response parameters

Name Type Description
RequestId String The ID of the request.
PageNumber Integer The current page number.
TotalCountIntegerThe number of queried entries.
PageSizeIntegerThe number of entries on the current page.
CenGrantRuleSetTypeJSON StringA list of the authorized networks.
The CenGrantRuleSetType parameter contains the following elements:
CenIdStringThe ID of the CEN instance.
CenOwnerIdStringThe account ID that the network belongs to.
ChildInstanceTypeStringThe time at which the network instance is authorized in the format of YYYY-MM-DDThh:mmZ.
CreationTime StringThe ID of the region where the network is located.

Error codes

See Common error codes.


Request example

  1. http://vpc.aliyuncs.com?Action=DescribeGrantRulesToCen
  2. &InstanceId=vpc-o6wcsp5lcdf4b5kcdcytm
  3. &RegionId=cn-hangzhou
  4. &InstanceType=VPC
  5. &CommonParameters

Response example

XML format

  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <DescribeGrantRulesToCenResponse>
  3. <TotalCount>1</TotalCount>
  4. <PageNumber>1</PageNumber>
  5. <CbnGrantRules>
  6. <CbnGrantRule>
  7. <CbnInstanceId>cbn-6ugox0vl0zff4gl0b8</CbnInstanceId>
  8. <CbnOwnerId>1016647762843556</CbnOwnerId>
  9. <CreationTime>2018-01-18T11:49:09Z</CreationTime>
  10. </CbnGrantRule>
  11. </CbnGrantRules>
  12. <PageSize>10</PageSize>
  13. <RequestId>330714D1-F335-4CE2-9D29-F54445937387</RequestId>
  14. </DescribeGrantRulesToCenResponse>

JSON format

  1. {
  2. "TotalCount": 1,
  3. "PageNumber": 1,
  4. "CbnGrantRules": {
  5. "CbnGrantRule": [
  6. {
  7. "CbnInstanceId": "cbn-6ugox0vl0zff4gl0b8",
  8. "CbnOwnerId": 1016647762843556,
  9. "CreationTime": "2018-01-18T11:49:09Z"
  10. }
  11. ]
  12. },
  13. "PageSize": 10,
  14. "RequestId": "330714D1-F335-4CE2-9D29-F54445937387"
  15. }
Thank you! We've received your feedback.