Memanggil operasi ListTransitRouterPeerAttachments untuk mengkueri detail tentang koneksi antar-Wilayah dari router transit Edisi Perusahaan.
Deskripsi operasi
You can query information about the inter-region connections of an Enterprise Edition transit router in one of the following ways:
-
Query by the ID of the Enterprise Edition transit router instance.
-
Query by the ID of the Cloud Enterprise Network (CEN) instance and the region ID of the transit router instance.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cen:ListTransitRouterPeerAttachments |
get |
*CenInstance
TransitRouterPeerAttachment
TransitRouterPeerAttachment
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| CenId |
string |
No |
ID Instans CEN. |
cen-j3jzhw1zpau2km**** |
| RegionId |
string |
No |
ID Wilayah tempat router transit Edisi Perusahaan di-deploy. Untuk informasi lebih lanjut, lihat DescribeRegions. |
cn-hangzhou |
| TransitRouterAttachmentId |
string |
No |
ID koneksi antar-Wilayah. |
tr-attach-5u4qbayfv2io5v**** |
| TransitRouterId |
string |
No |
ID router transit Edisi Perusahaan. |
tr-bp1su1ytdxtataupl**** |
| MaxResults |
integer |
No |
Jumlah entri yang akan dikembalikan di setiap halaman. Nilai default: 20. Nilai maksimum: 100. |
20 |
| NextToken |
string |
No |
Token untuk kueri berikutnya. Nilai valid:
|
1 |
| Tag |
array<object> |
No |
Tag. Anda dapat menentukan hingga 20 tag. |
|
|
object |
No |
|||
| Key |
string |
No |
The tag key. 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. 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 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| NextToken |
string |
The token that is used for the next query. Valid values:
|
dd20**** |
| RequestId |
string |
The request ID. |
AA97AFA3-8E48-4BD7-9F3E-A9F6176018A0 |
| TotalCount |
integer |
The total number of entries returned. |
1 |
| MaxResults |
integer |
The number of entries returned per page. |
20 |
| TransitRouterAttachments |
array<object> |
A list of inter-region connections. |
|
|
array<object> |
The details of the inter-region connection. |
||
| CreationTime |
string |
The time when the inter-region connection was created. The time is displayed in the ISO 8601 standard in the |
2021-06-16T02:50Z |
| Status |
string |
The status of the inter-region connection.
|
Attached |
| TransitRouterAttachmentId |
string |
The ID of the inter-region connection. |
tr-attach-5u4qbayfv2io5v**** |
| 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**** |
| TransitRouterAttachmentDescription |
string |
The description of the inter-region connection. |
testdesc |
| RegionId |
string |
The ID of the region where the Enterprise Edition transit router is deployed. |
cn-hangzhou |
| PeerTransitRouterId |
string |
The ID of the peer transit router. |
tr-m5eq27g6bndum7e88**** |
| TransitRouterId |
string |
The ID of the Enterprise Edition transit router. |
tr-bp1su1ytdxtataupl**** |
| PeerTransitRouterRegionId |
string |
The ID of the region where the peer transit router is deployed. |
cn-qingdao |
| ResourceType |
string |
The type of resource that is associated with the connection.
|
TR |
| Bandwidth |
integer |
The bandwidth of the inter-region connection. Unit: Mbit/s.
|
2 |
| GeographicSpanId |
string |
The connected areas of the bandwidth plan. |
china_china |
| PeerTransitRouterOwnerId |
integer |
The ID of the Alibaba Cloud account to which the peer transit router belongs. |
253460731706911258 |
| AutoPublishRouteEnabled |
boolean |
Indicates whether the Enterprise Edition transit router automatically advertises routes to the peer region.
|
false |
| TransitRouterAttachmentName |
string |
The name of the inter-region connection. |
test |
| Tags |
array<object> |
The list of tags. |
|
|
object |
|||
| Key |
string |
The tag key. |
tag_A1 |
| Value |
string |
The tag value. |
test |
| CenId |
string |
The ID of the CEN instance. |
cen-j3jzhw1zpau2km**** |
| DefaultLinkType |
string |
The default link type.
|
Gold |
Contoh
Respons sukses
JSONformat
{
"NextToken": "dd20****",
"RequestId": "AA97AFA3-8E48-4BD7-9F3E-A9F6176018A0",
"TotalCount": 1,
"MaxResults": 20,
"TransitRouterAttachments": [
{
"CreationTime": "2021-06-16T02:50Z",
"Status": "Attached",
"TransitRouterAttachmentId": "tr-attach-5u4qbayfv2io5v****",
"BandwidthType": "BandwidthPackage",
"CenBandwidthPackageId": "cenbwp-3xrxupouolw5ou****",
"TransitRouterAttachmentDescription": "testdesc",
"RegionId": "cn-hangzhou",
"PeerTransitRouterId": "tr-m5eq27g6bndum7e88****",
"TransitRouterId": "tr-bp1su1ytdxtataupl****",
"PeerTransitRouterRegionId": "cn-qingdao",
"ResourceType": "TR",
"Bandwidth": 2,
"GeographicSpanId": "china_china",
"PeerTransitRouterOwnerId": 253460731706911260,
"AutoPublishRouteEnabled": false,
"TransitRouterAttachmentName": "test",
"Tags": [
{
"Key": "tag_A1",
"Value": "test"
}
],
"CenId": "cen-j3jzhw1zpau2km****\n",
"DefaultLinkType": "Gold"
}
]
}
Kode kesalahan
|
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. | |
| 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. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.