Queries the authorization information about a Cloud Connect Network (CCN) 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 Yes DescribeGrantRules

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

RegionId String Yes cn-shanghai

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

AssociatedCcnId String No ccn-n2935s1mnwv8i*****

The ID of the CCN instance.

PageSize Integer No 10

The number of entries to return on each page.

Default value: 10. Maximum value: 50.

PageNumber Integer No 1

The number of the page to return.

Default value: 1.

Response parameters

Parameter Type Example Description
TotalCount Integer 1

The total number of entries returned.

PageSize Integer 10

The number of entries returned on each page.

RequestId String FA579C2D-84A0-4BA1-B9C3-1E5A3B15F1B6

The ID of the request.

PageNumber Integer 1

The page number of the returned page.

GrantRules Array of GrantRule

The permissions that are granted.

GrantRule
CenInstanceId String cen-0jtu0bcbika5b5****

The ID of the Cloud Enterprise Network (CEN) instance.

CenUid Long 1250123456123456

The UID of the Alibaba Cloud account to which the CEN instance belongs.

GmtCreate Long 1563439920000

The timestamp when the permissions are granted.

GrantRuleId String 18313265-d988-406c-965d-3e110ff*****

The ID of the authorization rule.

GrantTrafficService Boolean false

Indicates whether the permissions to manage network traffic from the CCN instance are granted to a CEN instance that belongs to another account. Valid values:

  • true: yes
  • false: no
GmtModified Long 1563439920000

The timestamp when the permissions are modified.

CcnUid Long 1220123456123456

The UID of the Alibaba Cloud account to which the CCN instance belongs.

RegionId String cn-shanghai

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

CcnInstanceId String ccn-n2935s1mnwv8i*****

The ID of the CCN instance.

Examples

Sample requests

http(s)://[Endpoint]/?Action=DescribeGrantRules
&RegionId=cn-shanghai
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<DescribeGrantRulesResponse>
    <TotalCount>1</TotalCount>
    <PageSize>10</PageSize>
    <RequestId>FA579C2D-84A0-4BA1-B9C3-1E5A3B15F1B6</RequestId>
    <PageNumber>1</PageNumber>
    <GrantRules>
        <CenInstanceId>cen-0jtu0bcbika5b5****</CenInstanceId>
        <CenUid>1250123456123456</CenUid>
        <GmtCreate>1563439920000</GmtCreate>
        <GrantRuleId>18313265-d988-406c-965d-3e110ff*****</GrantRuleId>
        <GrantTrafficService>false</GrantTrafficService>
        <GmtModified>1563439920000</GmtModified>
        <CcnUid>1220123456123456</CcnUid>
        <RegionId>cn-shanghai</RegionId>
        <CcnInstanceId>ccn-n2935s1mnwv8i*****</CcnInstanceId>
    </GrantRules>
</DescribeGrantRulesResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "TotalCount" : 1,
  "PageSize" : 10,
  "RequestId" : "FA579C2D-84A0-4BA1-B9C3-1E5A3B15F1B6",
  "PageNumber" : 1,
  "GrantRules" : {
    "CenInstanceId" : "cen-0jtu0bcbika5b5****",
    "CenUid" : 1250123456123456,
    "GmtCreate" : 1563439920000,
    "GrantRuleId" : "18313265-d988-406c-965d-3e110ff*****",
    "GrantTrafficService" : false,
    "GmtModified" : 1563439920000,
    "CcnUid" : 1220123456123456,
    "RegionId" : "cn-shanghai",
    "CcnInstanceId" : "ccn-n2935s1mnwv8i*****"
  }
}

Error codes

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