You can call this operation to query rules that authorize a Cloud Connect Network (CCN) instance to communicate with Cloud Enterprise Network (CEN) instances under other Alibaba Cloud accounts.

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 DescribeGrantRules

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

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. Pages start from page 1. Default value:1.

Response parameters

Parameter Type Example Description
RequestId String FA579C2D-84A0-4BA1-B9C3-1E5A3B15F1B6

The ID of the request.

TotalCount Integer 1

The total number of entries returned.

PageNumber Integer 1

The page number of the returned page.

PageSize Integer 10

The number of entries returned on each page.

GrantRules Array

The authorization list.

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

The ID of the authorization rule.

CenUid Long 213213

The ID of the CEN account.

CcnUid Long 213213

The UID of the Alibaba Cloud account that owns the CCN instance.

CenInstanceId String cen-0jtu0bcbika5b5****

The ID of the CEN instance.

CcnInstanceId String ccn-n2935s1mnwv8i*****

The ID of the CCN instance.

GmtCreate Long 1563439920000

The time when the ACL rule was created. It is a long type timestamp. When timestamps are assigned the same priority, the timestamp with the smallest value prevails.

GmtModified Long 1563439920000

The time when the ACL rule was last modified. It is a long type timestamp. When timestamps are assigned the same priority, the timestamp with the smallest value prevails.

RegionId String cn-shanghai

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

Examples

Sample requests

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

Sample success responses

XML format

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

JSON format

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

Error codes

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