All Products
Search
Document Center

Express Connect:DescribeGrantRulesToEcr

Last Updated:Oct 28, 2025

Queries the cross-account authorization list of an Express Connect Router (ECR).

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

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:
    • For mandatory resource types, indicate with a prefix of * .
    • 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:DescribeGrantRulesToEcrlist
*VirtualBorderRouter
acs:vpc:{#regionId}:{#accountId}:virtualborderrouter/{#VbrId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
PageNumberlongNo

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

1
PageSizelongNo

The number of entries per page. Maximum value: 50. Default value: 10.

20
RegionIdstringYes

The region ID

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

cn-hangzhou
InstanceIdstringYes

The ID of the VBR.

vbr-xxxxxx
ResourceGroupIdstringNo

The ID of the resource group.

rg-acfmxazdjdhd****
Tagsarray<object>No

The tag list.

objectNo
KeystringNo

The tag keys. You must specify at least one tag key and at most 20 tag keys. The tag key cannot be an empty string.

The tag key can be up to 128 characters in length. The tag key cannot start with aliyun or acs:, and cannot contain http:// or https://.

FinanceDept
ValuestringNo

The value of the tag.

FinanceJoshua

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

The ID of the request.

C1CCAB91-6AE6-50E3-AAA3-D0E5A2BC6ADE
EcrGrantRulesarray<object>

The cross-account authorization list of the ECR

EcrRelationModelobject
EcrUidlong

The ECR account ID.

11111111111
CreateTimestring

The authorization time. The time follows the ISO8601 standard and uses UTC time. The format is YYYY-MM-DDThh:mm:ssZ.

2025-09-15T14:00:00Z
EcrInstanceIdstring

The ECR account ID.

ecr-xxxxxx
TotalCountinteger

The total number of entries returned.

0
Countinteger

The total number of entries returned.

0
PageNumberinteger

The page number. Default value: 1.

1
PageSizeinteger

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

20

Examples

Sample success responses

JSONformat

{
  "RequestId": "C1CCAB91-6AE6-50E3-AAA3-D0E5A2BC6ADE",
  "EcrGrantRules": [
    {
      "EcrUid": 11111111111,
      "CreateTime": "2025-09-15T14:00:00Z",
      "EcrInstanceId": "ecr-xxxxxx"
    }
  ],
  "TotalCount": 0,
  "Count": 0,
  "PageNumber": 1,
  "PageSize": 20
}

Error codes

HTTP status codeError codeError messageDescription
400InvalidParam.NotNullThe parameter must not be null.A required parameter is not specified.
400Parameter.IllegalThe parameter is illegal.The parameter is invalid.
400Instance.StatusErrorThe status of instance error. -
404VRouterId.NotFoundThe VRouter not found.The specified vRouter cannot be found.
404Instance.NotExistThe instance not exist.-

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