All Products
Search
Document Center

Cloud Enterprise Network:ListTransitRouterRouteTableAssociations

Last Updated:Jun 10, 2026

Mengkueri asosiasi penerusan untuk tabel rute Router transit Edisi Perusahaan atau untuk koneksi instans jaringan.

Deskripsi operasi

When you call the ListTransitRouterRouteTableAssociations operation, you must specify at least one of the following request parameters: TransitRouterRouteTableId and TransitRouterAttachmentId.

  • If you specify only TransitRouterRouteTableId, the operation queries the network instance connections that are associated with the specified route table of the Enterprise Edition transit router.

  • If you specify only TransitRouterAttachmentId, the operation queries the route tables of the Enterprise Edition transit router that are associated with the specified network instance connection.

  • If you specify both TransitRouterRouteTableId and TransitRouterAttachmentId, the operation queries the forwarding association between the network instance connection and the route table of the Enterprise Edition transit router.

    • If a forwarding association exists between the network instance connection and the route table, the details of the forwarding association are returned.

    • If no forwarding association exists between the network instance connection and the route table, the TransitRouterAssociations array is empty in the response.

Make sure that you provide valid parameter values when you call the ListTransitRouterRouteTableAssociations operation. If you provide an invalid parameter, the system returns a RequestId but does not query the forwarding associations for the route table of the Enterprise Edition transit router or the network instance connection.

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:ListTransitRouterRouteTableAssociations

get

TransitRouterPeerAttachment

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

TransitRouterRouteTable

acs:cen:*:{#accountId}:centransitrouterroutetable/{#TransitRouterRouteTableId}

None None

Parameter permintaan

Parameter

Type

Required

Description

Example

MaxResults

integer

No

Jumlah entri yang dikembalikan per halaman. Nilai default: 50.

50

NextToken

string

No

Token untuk kueri berikutnya.

  • Anda tidak perlu menentukan parameter ini untuk kueri pertama.

  • Untuk kueri berikutnya, tetapkan parameter ini ke nilai NextToken yang dikembalikan dari kueri sebelumnya.

a415****

TransitRouterRouteTableId

string

No

ID tabel rute Router transit Edisi Perusahaan.

vtb-bp1dudbh2d5na6b50****

TransitRouterAttachmentId

string

No

ID koneksi instans jaringan.

tr-attach-nls9fzkfat8934****

TransitRouterAttachmentResourceId

string

No

ID Sumber daya lompatan berikutnya.

vpc-bp1h8vbrbcgohcju5****

TransitRouterAttachmentResourceType

string

No

Tipe Sumber daya lompatan berikutnya untuk entri rute.

  • VPC: virtual private cloud (VPC).

  • VBR: virtual border router (VBR).

  • TR: Router transit.

  • VPN: koneksi VPN.

VPC

Status

string

No

Status asosiasi.

  • Active: Asosiasi aktif.

  • Associating: Asosiasi sedang dibuat.

  • Dissociating: Asosiasi sedang dihapus.

Active

Elemen respons

Element

Type

Description

Example

object

The response.

NextToken

string

The token for the next query.

  • If this parameter is not returned, it indicates that no more results are to be returned.

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

a415****

RequestId

string

The request ID.

F6B1D9AB-176D-4399-801D-8BC576F4EB0D

TotalCount

integer

The total number of entries.

1

MaxResults

integer

The number of entries returned per page.

50

TransitRouterAssociations

array<object>

A list of forwarding associations.

object

The information about the forwarding association.

TransitRouterAttachmentId

string

The ID of the network instance connection.

tr-attach-nls9fzkfat8934****

Status

string

The status of the association.

  • Active: The association is active.

  • Associating: The association is being created.

  • Dissociating: The association is being deleted.

  • Deleted: The association is deleted.

Associating

ResourceType

string

The type of the next hop resource.

  • VPC: virtual private cloud (VPC).

  • VBR: virtual border router (VBR).

  • TR: transit router.

  • VPN: VPN connection.

VPC

ResourceId

string

The ID of the next hop resource.

vpc-bp1h8vbrbcgohcju5****

TransitRouterRouteTableId

string

The ID of the route table of the Enterprise Edition transit router.

vtb-bp1dudbh2d5na6b50****

Contoh

Respons sukses

JSONformat

{
  "NextToken": "a415****",
  "RequestId": "F6B1D9AB-176D-4399-801D-8BC576F4EB0D",
  "TotalCount": 1,
  "MaxResults": 50,
  "TransitRouterAssociations": [
    {
      "TransitRouterAttachmentId": "tr-attach-nls9fzkfat8934****",
      "Status": "Associating",
      "ResourceType": "VPC",
      "ResourceId": "vpc-bp1h8vbrbcgohcju5****",
      "TransitRouterRouteTableId": "vtb-bp1dudbh2d5na6b50****"
    }
  ]
}

Kode kesalahan

HTTP status code

Error code

Error message

Description

400 IllegalParam.NextToken The parameter NextToken is invalid. The error message returned because the NextToken parameter is set to an invalid value. Check the value and try again.
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.

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.