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
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cen:ListTransitRouterRouteTableAssociations |
get |
TransitRouterPeerAttachment
TransitRouterRouteTable
|
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.
|
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 |
| Status |
string |
No |
Status asosiasi.
|
Active |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| NextToken |
string |
The token 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.
|
Associating |
| ResourceType |
string |
The type of the next hop resource.
|
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.