Menambahkan entri rute ke instans jaringan.
Deskripsi operasi
Limits
By default, the CreateCenChildInstanceRouteEntryToCen operation is unavailable. To call this operation,submit a ticket.
You cannot add a route entry to an Enterprise Edition transit router by calling the CreateCenChildInstanceRouteEntryToCen operation.
By default, the next hop of the route entry is the regional gateway of the Cloud Enterprise Network (CEN) instance. You cannot modify the next hop.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cen:CreateCenChildInstanceRouteEntryToCen |
create |
*CenInstance
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| CenId |
string |
Yes |
ID instans CEN. |
cen-7febra5nqj7jjh**** |
| ChildInstanceId |
string |
Yes |
ID instans jaringan. |
vpc-k1alm2jbuwibhxtx2**** |
| ChildInstanceType |
string |
Yes |
Tipe instans jaringan. Nilai valid:
|
VPC |
| ChildInstanceRegionId |
string |
Yes |
ID wilayah tempat instans jaringan di-deploy. Anda dapat memanggil operasi DescribeRegions untuk mengkueri daftar wilayah terbaru. |
ap-southeast-5 |
| ChildInstanceAliUid |
integer |
No |
ID akun Alibaba Cloud tempat instans jaringan berada. Catatan
Jika instans jaringan milik akun Alibaba Cloud lain, parameter ini wajib diisi. |
1787100000000000 |
| RouteTableId |
string |
Yes |
ID tabel rute yang dikonfigurasi pada instans jaringan. |
vtb-k1aa8ulqs39f86op8**** |
| DestinationCidrBlock |
string |
Yes |
Blok CIDR tujuan entri rute. Tentukan nilai parameter ini dalam notasi CIDR. Contoh: 192.168.10.0/24. |
192.168.22.0/24 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
437ED236-BE47-5370-8695-15C58C7A8014 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "437ED236-BE47-5370-8695-15C58C7A8014"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | OperationFailed.TransitRouterType | The specified TransitRouterType does not support the operation. | The error message returned because this operation is not supported by the specified type of transit router. |
| 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.