Queries authorization information that grants other Alibaba Cloud accounts the permissions to connect network instances to a specified Cloud Enterprise Network (CEN) instance.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String No DescribeGrantRulesToCen

The operation that you want to perform. Set the value to DescribeGrantRulesToCen.

CenId String Yes cen-j3jzhw1zpau2km****

The ID of the CEN instance.

ProductType String Yes VPC

The type of network instances. Valid values:

  • VPC: a virtual private cloud (VPC)
  • VBR: a virtual border router (VBR)
  • CCN: a Cloud Connect Network (CCN) instance
RegionId String Yes cn-zhangjiakou

The ID of the region where network instances are deployed.

You can call the DescribeRegions operation to query the most recent region list.

Response parameters

Parameter Type Example Description
GrantRules Array of GrantRule

The authorization information.

GrantRule
CenId String cen-j3jzhw1zpau2km****

The ID of the CEN instance.

ChildInstanceId String vpc-8vbhgj0dr5xkbmrll****

The ID of the network instance.

ChildInstanceOwnerId Long 1688000000000000

The ID of the Alibaba Cloud account to which the network instance belongs.

ChildInstanceRegionId String cn-zhangjiakou

The ID of the region where the network instance is deployed.

ChildInstanceType String VPC

The type of the network instance. Valid values:

  • VPC: a VPC
  • VBR: a VBR
  • CCN: a CCN instance
RequestId String 6B83E650-E560-531E-850D-B162A902A9DC

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=DescribeGrantRulesToCen
&CenId=cen-j3jzhw1zpau2km****
&ProductType=VPC
&RegionId=cn-zhangjiakou
&<Common request parameters>

Sample success responses

XML format

<DescribeGrantRulesToCenResponse>
  <RequestId>6B83E650-E560-531E-850D-B162A902A9DC</RequestId>
  <GrantRules>
        <GrantRule>
              <ChildInstanceType>VPC</ChildInstanceType>
              <CenId>cen-j3jzhw1zpau2km****</CenId>
              <ChildInstanceOwnerId>1688000000000000</ChildInstanceOwnerId>
              <ChildInstanceId>vpc-8vbhgj0dr5xkbmrll****</ChildInstanceId>
              <ChildInstanceRegionId>cn-zhangjiakou</ChildInstanceRegionId>
        </GrantRule>
  </GrantRules>
</DescribeGrantRulesToCenResponse>

JSON format

{
    "RequestId": "6B83E650-E560-531E-850D-B162A902A9DC",
    "GrantRules": {
        "GrantRule": [
            {
                "ChildInstanceType": "VPC",
                "CenId": "cen-j3jzhw1zpau2km****",
                "ChildInstanceOwnerId": 1688000000000000,
                "ChildInstanceId": "vpc-8vbhgj0dr5xkbmrll****",
                "ChildInstanceRegionId": "cn-zhangjiakou"
            }
        ]
    }
}

Error codes

For a list of error codes, visit the API Error Center.