Queries the authorized networks of a specified CEN instance that belong to other accounts.

Debug

Use OpenAPI Explorer to perform debug operations and generate SDK code examples.

Request parameters

Parameter Type Required? Example value Description
CenId String Yes cen-7qthudw0ll6jmxx****

The ID of the CEN instance.

ProductType String Yes VPC

The type of the network instance. Valid values:

  • VPC: Virtual Private Cloud (VPC).
  • VBR: Virtual Border Router (VBR).
  • CCN: Cloud Connect Network (CCN).
RegionId String Yes cn-hangzhou

The ID of the region to which the network belongs.

Action String No DescribeGrantRulesToCen

The name of this action. Value: DescribeGrantRulesToCen.

Response parameters

Parameter Type Example value Description
GrantRules Array

The details of the authorization.

GrantRule

The details of the authorization.

CenId String cen-7qthudw0ll6jmccc****

The ID of the CEN instance.

ChildInstanceId String vpc-bp18sth14qii3pnvc****

The ID of the network instance.

ChildInstanceOwnerId Long 10000000000000

The user ID of the account to which the network instance belongs.

ChildInstanceRegionId String cn-hangzhou

The ID of the region to which the network instance belongs.

ChildInstanceType String VPC

The type of the network instance. Valid values:

  • VPC: Virtual Private Cloud (VPC).
  • VBR: Virtual Border Router (VBR).
  • CCN: Cloud Connect Network (CCN).
RequestId String 330714D1-F335-4CE2-9D29-F54445937387

The ID of the request.

Examples

Request example


http(s)://[Endpoint]/? Action=DescribeGrantRulesToCen
&CenId=cen-7qthudw0ll6jmxx****
&ProductType=VPC
&RegionId=cn-hangzhou
&<CommonParameters>

Response example

XML format

<DescribeGrantRulesToCenResponse>
      <TotalCount>1</TotalCount>
      <PageNumber>1</PageNumber>
      <CbnGrantRules>
            <CbnGrantRule>
                  <CbnInstanceId>cbn-6ugox0vl0zff4g****</CbnInstanceId>
                  <CbnOwnerId>101664776xxxx</CbnOwnerId>
                  <CreationTime>2018-01-18T11:49:09Z</CreationTime>
            </CbnGrantRule>
      </CbnGrantRules>
      <PageSize>10</PageSize>
      <RequestId>330714D1-F335-4CE2-9D29-F54445937387</RequestId>
</DescribeGrantRulesToCenResponse>

JSON format

{
	"PageNumber":1,
	"CbnGrantRules":{
		"CbnGrantRule":[
			{
				"CreationTime":"2018-01-18T11:49:09Z",
				"CbnInstanceId":"cbn-6ugox0vl0zff4g****",
				"CbnOwnerId":"101664776xxxx"
			}
		]
	},
	"TotalCount":1,
	"PageSize":10,
	"RequestId":"330714D1-F335-4CE2-9D29-F54445937387"
}

Error codes

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