ListTransitRouterPeerAttachments
Queries the details of inter-region connections under an Enterprise Edition transit router.
Operation description
You can query the information about inter-region connections under an Enterprise Edition transit router in the following two ways:
Query the information about all inter-region connections under the Enterprise Edition transit router by using instance ID of the Enterprise Edition transit router.
Query the information about all inter-region connections under the Enterprise Edition transit router by using instance ID of the Cloud Enterprise Network (CEN) instance and instance ID of the region to which the Enterprise Edition transit router belongs.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cen:ListTransitRouterPeerAttachments |
get |
*CenInstance
TransitRouterPeerAttachment
TransitRouterPeerAttachment
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| CenId |
string |
No |
The ID of the Cloud Enterprise Network (CEN) instance. If you specify this parameter, you must also specify RegionId. |
cen-j3jzhw1zpau2km**** |
| RegionId |
string |
No |
The ID of the region to which the Enterprise Edition transit router belongs. If you specify this parameter, you must also specify CenId. You can call the DescribeRegions operation to query region IDs. |
cn-hangzhou |
| TransitRouterAttachmentId |
string |
No |
The ID of the inter-region connection. |
tr-attach-5u4qbayfv2io5v**** |
| TransitRouterId |
string |
No |
The instance ID of the Enterprise Edition transit router, which is used to forward traffic and perform routing. |
tr-bp1su1ytdxtataupl**** |
| MaxResults |
integer |
No |
The number of entries to return on each page. Default value: 20. Maximum value: 100. |
20 |
| NextToken |
string |
No |
The token that is used for the next query. Valid values:
|
1 |
| Tag |
array<object> |
No |
The tag information. You can specify up to 20 tags at a time. |
|
|
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 at a time. |
tagtest |
| Value |
string |
No |
The tag value of the resource. The tag value can be an empty string or a string up to 128 characters in length. The tag value cannot start with Each tag key is paired with a tag value. You can specify up to 20 tag values at a time. |
tagtest |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| MaxResults |
integer |
The number of entries returned on each page. |
20 |
| NextToken |
string |
The token that is used for the next query. Valid values:
|
dd20**** |
| RequestId |
string |
The ID of the request. |
AA97AFA3-8E48-4BD7-9F3E-A9F6176018A0 |
| TotalCount |
integer |
The total number of entries. |
1 |
| TransitRouterAttachments |
array<object> |
The list of inter-region connections. |
|
|
array<object> |
The information about the inter-region connection. |
||
| AutoPublishRouteEnabled |
boolean |
Specifies whether the Enterprise Edition transit router automatically advertises routes of the inter-region connection to the peer region. Valid values:
|
false |
| Bandwidth |
integer |
The bandwidth of the inter-region connection. Unit: Mbit/s.
|
2 |
| BandwidthType |
string |
The bandwidth allocation method. Valid values:
|
BandwidthPackage |
| CenBandwidthPackageId |
string |
The ID of the bandwidth plan that is associated with the inter-region connection. |
cenbwp-3xrxupouolw5ou**** |
| CenId |
string |
The ID of the Cloud Enterprise Network (CEN) instance. |
cen-j3jzhw1zpau2km**** |
| CreationTime |
string |
The time when the inter-region connection was created. The time follows the ISO 8601 standard in the |
2021-06-16T02:50Z |
| DefaultLinkType |
string |
The default link type. Valid values:
|
Gold |
| GeographicSpanId |
string |
The connected areas of the bandwidth plan. |
china_china |
| PeerTransitRouterId |
string |
The instance ID of the peer transit router, which is used to forward traffic and perform routing. |
tr-m5eq27g6bndum7e88**** |
| PeerTransitRouterOwnerId |
integer |
The ID of the Alibaba Cloud account to which the peer transit router belongs. |
253460731706911258 |
| PeerTransitRouterRegionId |
string |
The ID of the region to which the peer transit router belongs. |
cn-qingdao |
| RegionId |
string |
The ID of the region to which the Enterprise Edition transit router belongs. |
cn-hangzhou |
| ResourceType |
string |
The type of the resource that is associated with the connection. Valid values:
|
TR |
| Status |
string |
The status of the inter-region connection. Valid values:
|
Attached |
| Tags |
array<object> |
The list of tags. |
|
|
object |
|||
| Key |
string |
The tag key. |
tag_A1 |
| Value |
string |
The tag value. |
test |
| TransitRouterAttachmentDescription |
string |
The description of the inter-region connection. |
testdesc |
| TransitRouterAttachmentId |
string |
The ID of the inter-region connection. |
tr-attach-5u4qbayfv2io5v**** |
| TransitRouterAttachmentName |
string |
The name of the inter-region connection. |
test |
| TransitRouterId |
string |
The instance ID of the Enterprise Edition transit router, which is used to forward traffic and perform routing. |
tr-bp1su1ytdxtataupl**** |
Examples
Success response
JSON format
{
"MaxResults": 20,
"NextToken": "dd20****",
"RequestId": "AA97AFA3-8E48-4BD7-9F3E-A9F6176018A0",
"TotalCount": 1,
"TransitRouterAttachments": [
{
"AutoPublishRouteEnabled": false,
"Bandwidth": 2,
"BandwidthType": "BandwidthPackage",
"CenBandwidthPackageId": "cenbwp-3xrxupouolw5ou****",
"CenId": "cen-j3jzhw1zpau2km****\n",
"CreationTime": "2021-06-16T02:50Z",
"DefaultLinkType": "Gold",
"GeographicSpanId": "china_china",
"PeerTransitRouterId": "tr-m5eq27g6bndum7e88****",
"PeerTransitRouterOwnerId": 253460731706911260,
"PeerTransitRouterRegionId": "cn-qingdao",
"RegionId": "cn-hangzhou",
"ResourceType": "TR",
"Status": "Attached",
"Tags": [
{
"Key": "tag_A1",
"Value": "test"
}
],
"TransitRouterAttachmentDescription": "testdesc",
"TransitRouterAttachmentId": "tr-attach-5u4qbayfv2io5v****",
"TransitRouterAttachmentName": "test",
"TransitRouterId": "tr-bp1su1ytdxtataupl****"
}
]
}
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.RegionIdOrTransitRouterId | The specified TransitRouterId or RegionId is invalid. | The error message returned because the specified transit router ID or region 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.TagKey | The tag keys are not valid. | The error message returned because the specified tag key is invalid. |
| 400 | IllegalParam.TagValue | The tag values are not valid. | The error message returned because the specified tag value is invalid. |
| 400 | IllegalParam.MaxResults | The specified MaxResults is invalid. | The specified MaxResults is invalid. |
| 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.