Queries the configuration of a router interface.
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:DescribeRouterInterfaceAttribute | get | *RouterInterface acs:vpc:{#regionId}:{#accountId}:routerinterface/{#RouterInterfaceId} |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The ID of the region to which the router interface belongs. You can call the DescribeRegions operation to query the most recent region list. | cn-qingdao |
InstanceId | string | Yes | The ID of the router interface. | ri-m5egfc10sednwk2yt**** |
Response parameters
Examples
Sample success responses
JSON
format
{
"ReservationActiveTime": "2022-06-11T16:00:00Z",
"HealthCheckTargetIp": "2.2.XX.XX",
"Status": "Active",
"CreationTime": "2022-04-14T08:57:24Z",
"ReservationOrderType": "RENEW",
"OppositeInterfaceId": "ri-bp1xkrzttximaoxbl****",
"Spec": "Mini.2",
"ChargeType": "AfterPay",
"RouterInterfaceId": "ri-m5egfc10sednwk2yt****",
"Message": "successful",
"HcThreshold": 8,
"OppositeRouterType": "VRouter",
"GmtModified": "2022-04-28T10:02:12Z",
"VpcInstanceId": "vpc-bp1b49rqrybk45nio****",
"OppositeInterfaceOwnerId": "1321932713****",
"OppositeVpcInstanceId": "vpc-bp1b49rqrybk45nio****",
"ReservationInternetChargeType": "PayByBandwidth",
"CrossBorder": false,
"RequestId": "01818199-04F6-47F4-9ADF-7CC824CF57A4",
"Bandwidth": 2,
"Description": "Peer interface.",
"HcRate": 2,
"ReservationBandwidth": "100",
"Code": "200",
"Name": "RouterInterface1",
"OppositeRouterId": "vrt-bp11xvy6lb9photuu****",
"OppositeInterfaceSpec": "Negative",
"RouterId": "vbr-m5ex0xf63xk8s5bob****",
"Success": true,
"OppositeInterfaceBusinessStatus": "Normal",
"ConnectedTime": "2022-04-14T08:58:04Z",
"HealthCheckSourceIp": "1.1.XX.XX",
"OppositeInterfaceStatus": "Active",
"EndTime": "2999-09-08T16:00:00Z",
"OppositeRegionId": "cn-hangzhou",
"OppositeAccessPointId": "ap-cn-qingdao-ls-B",
"BusinessStatus": "Normal",
"HealthCheckStatus": "normal",
"OppositeBandwidth": 0,
"RouterType": "VRouter",
"Role": "InitiatingSide",
"HasReservationData": "false",
"AccessPointId": "ap-cn-qingdao-ls-A",
"ResourceGroupId": "rg-acfmxazb4ph6aiy****",
"Tags": {
"Tags": [
{
"Key": "FinanceDept",
"Value": "FinanceJoshua"
}
]
},
"FastLinkMode": "false"
}
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. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2023-09-11 | API Description Update. The API operation is not deprecated.. The Error code has changed | View Change Details |
2023-07-24 | The Error code has changed. The response structure of the API has changed | View Change Details |
2023-07-20 | The Error code has changed. The response structure of the API has changed | View Change Details |
2022-09-14 | The Error code has changed | View Change Details |
2022-09-14 | The Error code has changed | View Change Details |