Queries whether permissions on a virtual private cloud (VPC) are granted to a virtual border router (VBR).
Debugging
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.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
vpc:DescribeEcGrantRelation | list |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
InstanceType | string | Yes | The type of instance. Valid values:
| VBR |
InstanceId | string | Yes | The ID of the instance.
| vbr-bp12mw1f8k3jgygk9**** |
PageNumber | long | No | The page number. Default value: 1. | 1 |
PageSize | long | No | The number of entries per page. Maximum value: 50. Default value: 10. | 10 |
VbrRegionNo | string | No | The ID of the region where the instance is deployed.
| cn-hangzhou |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "E6E90F6B-2B41-5AAF-ABEB-236ADBAAD91D",
"EcGrantRelations": [
{
"VbrOwnerUid": 1210123456123456,
"VbrInstanceId": "vbr-m5ex0xf63xk8s5bob****",
"InstanceId": "vpc-bp1brjuegjc88v3u9****",
"AliUid": 1250123456123456,
"RegionNo": "cn-hangzhou",
"Status": "Created",
"InstanceName": "VPCname",
"InstanceRouterId": "vrt-bp1i0yzgjd8ra05ec****",
"VbrRegionNo": "cn-hangzhou",
"GmtCreate": "2022-09-02T11:46Z",
"GrantType": "All"
}
],
"TotalCount": 10,
"Count": 1,
"Page": 1,
"PageSize": 10
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | InvalidParam.NotNull | The parameter must not be null. | A required parameter is not specified. |
400 | Parameter.Illegal | The parameter is illegal. | The parameter is invalid. |
400 | Instance.StatusError | The status of instance error. | - |
404 | VRouterId.NotFound | The VRouter not found. | The specified vRouter cannot be found. |
404 | Instance.NotExist | The instance not exist. | - |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-08-16 | The Error code has changed | View Change Details |
2023-09-25 | API Description Update. The Error code has changed | View Change Details |