All Products
Search
Document Center

Cloud Enterprise Network:ListTransitRouterPeerAttachments

Last Updated:Jun 10, 2026

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

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tabel berikut menjelaskan otorisasi yang diperlukan untuk memanggil API ini. Anda dapat menentukannya dalam kebijakan Resource Access Management (RAM). Kolom pada tabel dijelaskan sebagai berikut:

  • Action: Aksi yang dapat digunakan dalam elemen Action pada pernyataan kebijakan izin RAM untuk memberikan izin guna melakukan operasi tersebut.

  • API: API yang dapat Anda panggil untuk melakukan aksi tersebut.

  • Access level: Tingkat akses yang telah ditentukan untuk setiap API. Nilai yang valid: create, list, get, update, dan delete.

  • Resource type: Jenis resource yang mendukung otorisasi untuk melakukan aksi tersebut. Ini menunjukkan apakah aksi tersebut mendukung izin tingkat resource. Resource yang ditentukan harus kompatibel dengan aksi tersebut. Jika tidak, kebijakan tersebut tidak akan berlaku.

    • Untuk API dengan izin tingkat resource, jenis resource yang diperlukan ditandai dengan tanda bintang (*). Tentukan Nama Sumber Daya Alibaba Cloud (ARN) yang sesuai dalam elemen Resource pada kebijakan.

    • Untuk API tanpa izin tingkat resource, ditampilkan sebagai All Resources. Gunakan tanda bintang (*) dalam elemen Resource pada kebijakan.

  • Condition key: Kunci kondisi yang didefinisikan oleh layanan. Kunci ini memungkinkan kontrol granular, berlaku baik hanya untuk aksi maupun untuk aksi yang terkait dengan resource tertentu. Selain kunci kondisi spesifik layanan, Alibaba Cloud menyediakan serangkaian common condition keys yang berlaku di semua layanan yang didukung RAM.

  • Dependent action: Aksi dependen yang diperlukan untuk menjalankan aksi tersebut. Untuk menyelesaikan aksi tersebut, pengguna RAM atau role RAM harus memiliki izin untuk melakukan semua aksi dependen.

Action

Access level

Resource type

Condition key

Dependent action

cen:ListTransitRouterPeerAttachments

get

*CenInstance

acs:cen:*:{#accountId}:ceninstance/{#ceninstanceId}

TransitRouterPeerAttachment

acs:cen:*:{#accountId}:centransitrouterattachment/*

TransitRouterPeerAttachment

acs:cen:*:{#accountId}:centransitrouterattachment/{#centransitrouterattachmentId}

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:

  • Jika ini adalah kueri pertama Anda atau tidak ada kueri berikutnya yang akan dikirim, jangan tentukan parameter ini.

  • Jika kueri berikutnya akan dikirim, atur nilainya ke nilai NextToken yang dikembalikan dari pemanggilan API terakhir.

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 aliyun or acs:. It cannot contain http:// or https://.

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 aliyun or acs: and cannot contain http:// or https://.

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:

  • If this parameter is empty, no more data is returned.

  • If a value is returned for this parameter, the value is the token that is used for the next query.

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 YYYY-MM-DDThh:mmZ format. The time is displayed in UTC.

2021-06-16T02:50Z

Status

string

The status of the inter-region connection.

  • Attached: The connection is attached.

  • Attaching: The connection is being attached.

  • Detaching: The connection is being detached.

  • Detached: The connection is detached.

Attached

TransitRouterAttachmentId

string

The ID of the inter-region connection.

tr-attach-5u4qbayfv2io5v****

BandwidthType

string

The bandwidth allocation method. Valid values:

  • BandwidthPackage: Bandwidth is allocated from a bandwidth plan.

  • DataTransfer: The inter-region connection is not allocated a specific bandwidth and is billed on a pay-by-traffic basis.

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.

  • VPC: virtual private cloud (VPC).

  • CCN: Cloud Connect Network (CCN) instance.

  • VBR: virtual border router (VBR).

  • TR: transit router.

TR

Bandwidth

integer

The bandwidth of the inter-region connection. Unit: Mbit/s.

  • If BandwidthType is set to BandwidthPackage, this parameter indicates the bandwidth that is allocated to the inter-region connection.

  • If BandwidthType is set to DataTransfer, this parameter indicates the maximum bandwidth of the inter-region connection.

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 (default): No.

  • true: Yes.

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 (default): Gold.

  • Platinum: Platinum.

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.