Anda dapat memanggil operasi CreateCenChildInstanceRouteEntryToAttachment untuk membuat entri rute bagi instans jaringan yang terhubung ke Router transit Edisi Perusahaan. Lompatan berikutnya dari entri rute mengarah ke Router transit di Wilayah saat ini.
Deskripsi operasi
-
You can create routes only for Virtual Private Cloud (VPC) and virtual border router (VBR) instances that are connected to an Enterprise Edition transit router.
-
The next hop of the route is the transit router connection (the network instance connection) by default and cannot be modified.
-
CreateCenChildInstanceRouteEntryToAttachment is an asynchronous operation. After you send a request, the system returns a RequestId and creates the route in the background. The route is not created immediately. You can call the DescribeRouteEntryList operation for the VPC to query the status of the route.
-
If the route is in the Pending state, it is being created. During this time, you can only query the route and cannot perform other operations.
-
If the route is in the Available state, the route is created.
-
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cen:CreateCenChildInstanceRouteEntryToAttachment |
create |
*CenInstance
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| 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. Token hanya boleh berisi karakter ASCII. Catatan
Jika Anda tidak menentukan parameter ini, sistem secara otomatis menggunakan RequestId dari permintaan sebagai ClientToken. RequestId dapat berbeda untuk setiap permintaan. |
02fb3da4-130e-11e9-8e44-001**** |
| DryRun |
boolean |
No |
Apakah akan menjalankan dry run, tanpa menjalankan permintaan aktual. Dry run memeriksa izin dan status Instans. Nilai valid:
Catatan
Parameter ini tidak digunakan. |
false |
| CenId |
string |
Yes |
ID Instans CEN. |
cen-bp1n6cbxcszp55vxo**** |
| TransitRouterAttachmentId |
string |
Yes |
ID koneksi instans jaringan. |
tr-attach-r1qhupkc19iadz**** |
| RouteTableId |
string |
Yes |
ID tabel rute instans jaringan. |
vrt-bp1msipdczo9lejup**** |
| DestinationCidrBlock |
string |
Yes |
Blok CIDR tujuan dari entri rute. |
10.0.0.0/24 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
A95A100B-3F3A-56F4-A5DE-19DB7E994807 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "A95A100B-3F3A-56F4-A5DE-19DB7E994807"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Forbidden.VpcAsInternetGateway | It’s forbidden that using Vpc as internet gateway for your private IDC. | |
| 400 | InvalidCIDRBlock.Duplicate | Specified CIDR block is already exists. | The error message returned because the specified CIDR block already exists. |
| 400 | InvalidCidrBlock.Malformed | Specified CIDR block is not valid. | The error message returned because the specified CIDR block is invalid. |
| 400 | OperationFailed.RouteConflict | Route conflict exists in routing table. | The error message returned because two or more routes in the route table conflict with each other. |
| 400 | InvalidOperation.UnsupportnexthopType | The specified next hop type is not supported by this operation. | The specified next hop type is not supported by this operation. |
| 400 | IncorrectStatus.VpcRouteEntry | The resource is not in a valid state for the attachment operation. | The error message returned because the status of the VPC route entry does not support this operation. Try again later. |
| 400 | OperationDenied.RouteTableTypeNotPermitted | The operation is not allowed because of RouteTableTypeNotPermitted. | The error message returned because this operation is not supported by the specified type of route table. |
| 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. |
| 400 | SystemBusy | The system is busy. Please try again later. | The error message returned because the system is unavailable. Try again later. |
| 400 | OperationUnsupported.DestinationCidrBlockOverlapWithVSwitch | The destination network segment specified in the route entry overlaps with the vSwitch network segment. | |
| 404 | InvalidAttachmentId.NotFound | The specified AttachmentId is not found. | The error message returned because the specified network instance connection ID does not exist. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.