Call ListTransitRouterVbrAttachments to query information about virtual border router (VBR) connections for an Enterprise Edition transit router. The returned information includes the total number of connections, connection status, connection ID, and the payer for the network instance.
Operation description
You can query the VBR connections of an Enterprise Edition transit router in one of the following ways:
Query all VBR connections of an Enterprise Edition transit router by specifying the ID of the transit router.
Query all VBR connections of an Enterprise Edition transit router by specifying the ID of the Cloud Enterprise Network (CEN) instance and the region ID of the transit router.
Query a specific VBR connection by specifying the connection ID in the TransitRouterAttachmentId parameter.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cen:ListTransitRouterVbrAttachments |
list |
CenInstance
TransitRouterVbrAttachment
TransitRouterVbrAttachment
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| CenId |
string |
No |
The ID of the CEN instance. |
cen-j3jzhw1zpau2km**** |
| RegionId |
string |
No |
The ID of the region where the Enterprise Edition transit router is deployed. You can call the DescribeRegions operation to obtain the region ID. |
cn-hangzhou |
| TransitRouterAttachmentId |
string |
No |
The ID of the VBR connection. |
tr-attach-oyf70wfuorwx87**** |
| TransitRouterId |
string |
No |
The ID of the Enterprise Edition transit router. |
tr-bp1su1ytdxtataupl**** |
| MaxResults |
integer |
No |
The maximum number of entries to return for a single query. The default value is 20. |
20 |
| NextToken |
string |
No |
The token that is used for the next query. Valid values:
|
dd20**** |
| Tag |
array<object> |
No |
The tag. You can specify up to 20 tags. |
|
|
object |
No |
|||
| Key |
string |
No |
The tag key of the resource. The tag key cannot be an empty string. The tag key can be up to 64 characters in length and cannot start with You can specify up to 20 tag keys. |
tagtest |
| Value |
string |
No |
The tag value of the resource. The tag value can be an empty string or a string of up to 128 characters. It cannot start with Each tag key must have a unique tag value. You can specify up to 20 tag values. |
tagtest |
Response parameters
|
Parameter |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| NextToken |
string |
The token that is used for the next query.
|
dd20**** |
| RequestId |
string |
The request ID. |
F42D9616-29EB-4E75-8CA8-9654D4E07501 |
| TotalCount |
integer |
The total number of entries returned. |
1 |
| MaxResults |
integer |
The maximum number of entries returned per page. |
20 |
| TransitRouterAttachments |
array<object> |
A list of VBR connections. |
|
|
object |
|||
| CreationTime |
string |
The time when the VBR connection was created. The time is displayed in the YYYY-MM-DDThh:mmZ format. The time is displayed in UTC. |
2021-06-15T15:20Z |
| Status |
string |
The status of the VBR connection.
|
Attached |
| TransitRouterAttachmentId |
string |
The ID of the VBR connection. |
tr-attach-oyf70wfuorwx87**** |
| TransitRouterId |
string |
The ID of the Enterprise Edition transit router. |
tr-bp1su1ytdxtataupl**** |
| ResourceType |
string |
The resource type of the connection. The value is set to VBR, which indicates a VBR instance. |
VBR |
| VbrRegionId |
string |
The ID of the region where the VBR is deployed. |
cn-hangzhou |
| TransitRouterAttachmentDescription |
string |
The description of the VBR connection. |
testdesc |
| VbrOwnerId |
integer |
The ID of the Alibaba Cloud account to which the VBR belongs. |
1688111111111111 |
| AutoPublishRouteEnabled |
boolean |
Indicates whether the Enterprise Edition transit router automatically advertises routes to the VBR.
|
false |
| VbrId |
string |
The VBR ID. |
vbr-bp1svadp4lq38janc**** |
| TransitRouterAttachmentName |
string |
The name of the VBR connection. |
testa |
| Tags |
array<object> |
The list of tags. |
|
|
object |
|||
| Key |
string |
The tag key. |
test |
| Value |
string |
The tag value. |
value_A1 |
| CenId |
string |
The ID of the CEN instance. |
cen-j3jzhw1zpau2km**** |
| OrderType |
string |
The payer for the network instance. Valid values:
|
PayByCenOwner |
Examples
Success response
JSON format
{
"NextToken": "dd20****",
"RequestId": "F42D9616-29EB-4E75-8CA8-9654D4E07501",
"TotalCount": 1,
"MaxResults": 20,
"TransitRouterAttachments": [
{
"CreationTime": "2021-06-15T15:20Z",
"Status": "Attached",
"TransitRouterAttachmentId": "tr-attach-oyf70wfuorwx87****",
"TransitRouterId": "tr-bp1su1ytdxtataupl****",
"ResourceType": "VBR",
"VbrRegionId": "cn-hangzhou",
"TransitRouterAttachmentDescription": "testdesc",
"VbrOwnerId": 1688111111111111,
"AutoPublishRouteEnabled": false,
"VbrId": "vbr-bp1svadp4lq38janc****",
"TransitRouterAttachmentName": "testa",
"Tags": [
{
"Key": "test",
"Value": "value_A1"
}
],
"CenId": "cen-j3jzhw1zpau2km****\n",
"OrderType": "PayByCenOwner"
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IllegalParam.NextToken | The specified NextToken is invalid. | The error message returned because the NextToken parameter is set to an invalid value. |
| 400 | IllegalParam.TrInstance | The specified TransitRouter is invalid. | The error message returned because the TransitRouter parameter is set to an invalid value. |
| 400 | IllegalParam.Region | The specified Region is invalid. | The error message returned because the specified region is invalid. |
| 400 | IllegalParam.CenId | The specified CenId is invalid. | The error message returned because the ID of the CEN instance is invalid. |
| 400 | IllegalParam.TransitRouterId | The specified TransitRouterId is invalid. | The error message returned because the specified transit router ID is invalid. |
| 400 | IllegalParam.CenIdOrRegionId | The specified CenId or RegionId is invalid. | The error message returned because the specified CEN instance ID or region ID is invalid. |
| 400 | IllegalParam.MaxResults | The specified MaxResults is illegal. | MaxResults illegal. |
| 400 | InvalidParameter | Invalid parameter. | The error message returned because the parameter is set to an invalid value. |
| 400 | Unauthorized | The AccessKeyId is unauthorized. | The error message returned because you do not have the permissions to perform this operation. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.