All Products
Search
Document Center

Virtual Private Cloud:DescribeGrantRulesToCen

Last Updated:Mar 04, 2024

Queries the permissions granted to attach a network instance to a Cloud Enterprise Network (CEN) instance that belongs to another Alibaba Cloud account. The network instance can be a virtual private cloud (VPC), a virtual border router (VBR), or 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.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
vpc:DescribeGrantRulesToCenList
  • VirtualBorderRouter
    acs:vpc:{#regionId}:{#accountId}:virtualborderrouter/{#InstanceId}
  • GrantRuleToCen
    acs:vpc:{#regionId}:{#accountId}:vpc/{#InstanceId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The region ID of the network instance that you want to query.

cn-hangzhou
InstanceIdstringYes

The ID of the network instance that you want to query.

vpc-bp18sth14qii3pnvc****
InstanceTypestringYes

The type of the network instance. Valid values:

  • VPC
  • VBR
  • CCN
VPC
ResourceGroupIdstringNo

The ID of the resource group to which the network instance belongs.

rg-acfmxazb4p****
ClientTokenstringNo

The client token that is used to ensure the idempotence of the request.

You can use the client to generate the value, but you must make sure that it is unique among all requests. ClientToken can contain only ASCII characters.

Note If you do not specify this parameter, ClientToken is set to the value of RequestId. The value of RequestId for each API request may be different.
123e4567-e89b-12d3-a456-426655440000
PageNumberintegerNo

The number of the page to return. Default value: 1.

1
PageSizeintegerNo

The number of entries to return on each page. Maximum value: 50. Default value: 10.

10

Response parameters

ParameterTypeDescriptionExample
object
PageSizeinteger

The number of entries returned per page.

10
RequestIdstring

The ID of the request.

F5BB78C8-5F41-464F-B9FF-5E0A7198BA26
PageNumberinteger

The page number of the returned page.

1
TotalCountinteger

The total number of entries returned.

1
CenGrantRulesobject []

The information about the authorization.

CenInstanceIdstring

The ID of the authorized CEN instance.

cen-9gsm1q2yh1prpt****
CenOwnerIdlong

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

132193271328****
CreationTimestring

The time when the instance was created.

2019-11-15T09:26:36Z

Examples

Sample success responses

JSONformat

{
  "PageSize": 10,
  "RequestId": "F5BB78C8-5F41-464F-B9FF-5E0A7198BA26",
  "PageNumber": 1,
  "TotalCount": 1,
  "CenGrantRules": {
    "CbnGrantRule": [
      {
        "CenInstanceId": "cen-9gsm1q2yh1prpt****",
        "CenOwnerId": 0,
        "CreationTime": "2019-11-15T09:26:36Z"
      }
    ]
  }
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history