Memanggil operasi AssociateRouteTablesWithVpcGatewayEndpoint untuk mengaitkan tabel rute dengan titik akhir gerbang.
Deskripsi operasi
Sebelum Anda memanggil operasi ini untuk mengaitkan tabel rute dengan titik akhir gerbang, perhatikan informasi berikut:
Instans titik akhir gerbang yang ingin Anda kaitkan dengan tabel rute tidak boleh berada dalam status transien, seperti Creating, Modifying, Associating (melampirkan), Dissociating (melepas), atau Deleting (menghapus).
Tabel rute yang ingin Anda kaitkan tidak boleh berada dalam status transien, seperti Creating, Modifying, Associating (melampirkan), Dissociating (melepas), atau Deleting (menghapus).
Tabel rute dan titik akhir gerbang harus berada di VPC yang sama.
Tabel rute yang akan dikaitkan tidak boleh berupa tabel rute bersama.
Tabel rute Virtual Border Router (VBR) tidak didukung.
Anda dapat mengaitkan hingga 20 tabel rute sekaligus.
- Operasi AssociateRouteTablesWithVpcGatewayEndpoint bersifat asinkron. Setelah Anda mengirim permintaan, sistem akan mengembalikan ID instans titik akhir, tetapi tabel rute belum dikaitkan dengan titik akhir gerbang. Tugas pengaitan masih berjalan di latar belakang. Anda dapat memanggil GetVpcGatewayEndpointAttribute untuk mengkueri status pengaitan tabel rute dan titik akhir gerbang:
Jika tabel rute dan titik akhir gerbang berada dalam status Associating, tabel rute sedang dikaitkan dengan titik akhir gerbang.
Jika tabel rute dan titik akhir gerbang berada dalam status Created, tabel rute telah dikaitkan dengan titik akhir gerbang.
Operasi AssociateRouteTablesWithVpcGatewayEndpoint tidak mendukung pengaitan konkuren tabel rute yang sama dengan titik akhir gerbang.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vpc:AssociateRouteTablesWithVpcGatewayEndpoint |
create |
*GatewayEndpoint
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| EndpointId |
string |
Yes |
ID instans titik akhir gerbang yang ingin Anda kaitkan dengan tabel rute. |
vpce-m5e371h5clm3uadih**** |
| RouteTableIds |
array |
Yes |
ID tabel rute yang akan dikaitkan. Nilai valid untuk N: 1 hingga 20. Anda dapat mengaitkan hingga 20 tabel rute sekaligus. |
vtb-m5elgtm3aj586iitr**** |
|
string |
No |
ID tabel rute yang akan dikaitkan. Nilai valid untuk N: 1 hingga 20. Anda dapat mengaitkan hingga 20 tabel rute sekaligus. |
vtb-m5elgtm3aj586iitr**** |
|
| ClientToken |
string |
No |
Token Klien yang digunakan untuk memastikan idempotensi permintaan. Anda dapat menggunakan Klien untuk menghasilkan token, tetapi Anda harus memastikan bahwa token tersebut unik di antara permintaan yang berbeda. Nilai ClientToken hanya dapat berisi karakter ASCII dan tidak boleh melebihi 64 karakter. Catatan
Jika Anda tidak menentukan parameter ini, sistem akan secara otomatis menggunakan RequestId dari permintaan API sebagai ClientToken. RequestId mungkin berbeda untuk setiap permintaan API. |
5A2CFF0E-5718-45B5-9D4D-70B3FF3898 |
| DryRun |
boolean |
No |
Apakah akan menjalankan dry run. Nilai valid:
|
false |
| RegionId |
string |
Yes |
ID wilayah titik akhir gerbang yang ingin Anda kaitkan dengan tabel rute. Anda dapat memanggil operasi DescribeRegions untuk mengkueri daftar wilayah terbaru. |
cn-hangzhou |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema Tanggapan. |
||
| RequestId |
string |
ID permintaan. |
59BDDA2D-FB52-59F9-9DC5-5EA7D6808B8E |
Contoh
Respons sukses
JSONformat
{
"RequestId": "59BDDA2D-FB52-59F9-9DC5-5EA7D6808B8E"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | OperationFailed.ConcurrentOperation | The operation is failed because of concurrent operation. | |
| 400 | IdempotentParameterMismatch | The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical. | |
| 400 | ResourceNotFound.GatewayEndpoint | The specified resource gateway endpoint is not found. | GatewayEndpoint yang ditentukan tidak ada. |
| 400 | IncorrectStatus.GatewayEndpoint | The status of GatewayEndpoint [%s] is incorrect. | |
| 400 | ResourceNotFound.ServiceName | The specified resource service name is not found. | |
| 400 | ResourceNotFound.PrefixList | The specified resource prefixList is not found. | |
| 400 | ResourceNotFound.RouteTable | The specified resource routetable is not found. | |
| 400 | Mismatch.VpcAndRouteTable | The vpc and routetable are mismatched. | |
| 400 | IncorrectStatus.RouteTable | The status of route table [%s] is incorrect. | |
| 400 | ResourceAlreadyExist.Association | The specified resource of [%s] is already exist. | |
| 400 | VPC_ROUTE_ENTRY_CIDR_BLOCK_DUPLICATE | Specified CIDR block is already exists. | |
| 400 | VPC_SWITCH_STATUS_ERROR | vSwitch status error, %s | |
| 400 | QuotaExceeded.VpcRouteEntryNum | The quota of vpc route entry num is exceeded, usage %s/%s. | |
| 400 | OperationUnsupported.DestinationCidrBlockOverlapWithVSwitch | The operation is failed because of destination CIDR block is in the CIDR of the VSwitch. | |
| 400 | SystemBusy | System is busy, please try again later. | |
| 400 | Forbbiden | User not authorized to operate on the specified resource. | |
| 400 | InvalidRegionId.NotFound | The regionId provided does not exist in our records. | |
| 400 | IncorrectStatus.Vpc | The status of vpc [%s] is incorrect. | |
| 400 | IncorrectStatus.CenStatus | The status of vpc cenStatus [%s] is incorrect. | |
| 400 | UnsupportedFeature.RouterTableType | The type of router table is not supported. | Tipe tabel rute yang Anda tentukan tidak didukung. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.