Anda dapat memanggil operasi PublishRouteEntries untuk mengiklankan rute dari virtual private cloud (VPC) atau virtual border router (VBR) ke instans Cloud Enterprise Network (CEN). Jika tidak terjadi konflik rute, instans jaringan lain yang terhubung ke instans CEN tersebut dapat mempelajari rute yang diiklankan.
Deskripsi operasi
Tabel berikut mencantumkan status pengiklanan default untuk berbagai jenis rute di CEN. Anda dapat menggunakan operasi PublishRouteEntries untuk mengiklankan rute yang secara default tidak diiklankan ke CEN.
Route | Instance of the route | Advertised to CEN by default |
Route to an ECS instance | VPC | No |
Route to a VPN Gateway | VPC | No |
Route to a high availability (HA) virtual IP address | VPC | No |
Route to a router interface | VPC | No |
Route to an Elastic Network Interface (ENI) | VPC | No |
Route to an IPv6 Gateway | VPC | No |
Route to a NAT Gateway | VPC | No |
VPC system route | VPC | Yes |
Route to a data center | VBR | Yes |
Border Gateway Protocol (BGP) route | VBR | Yes |
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cen:PublishRouteEntries |
update |
*CenInstance
*virtualborderrouter
*VPC
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| CenId |
string |
Yes |
ID instans CEN. |
cen-7qthudw0ll6jmc**** |
| ChildInstanceId |
string |
Yes |
ID instans jaringan. |
vpc-rj9gt5nll27onu**** |
| ChildInstanceType |
string |
Yes |
Jenis instans jaringan. Nilai yang valid:
|
VPC |
| ChildInstanceRegionId |
string |
Yes |
ID wilayah tempat instans jaringan ditempatkan. Anda dapat memanggil operasi DescribeChildInstanceRegions untuk menanyakan ID wilayah. |
us-west-1 |
| ChildInstanceRouteTableId |
string |
Yes |
ID tabel rute instans jaringan. |
vtb-bp174d1gje7**** |
| DestinationCidrBlock |
string |
Yes |
Blok CIDR tujuan dari rute yang ingin Anda iklankan. |
172.16.1.0/24 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
FBDB18D8-E91E-4978-8D6C-6E2E3EE10133 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "FBDB18D8-E91E-4978-8D6C-6E2E3EE10133"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ParameterIllegal.AliUid | The parameter of aliUid is illegal. | |
| 400 | InvalidOperation.UnsupportnexthopType | The nexthop type is unsupported | The error message returned because the next hop type does not support this operation. |
| 400 | InvalidOperation.NotFoundRoute | The specified route does not exist. | The error message returned because the route does not exist. |
| 400 | ParameterIllegal.CenInstanceId | The parameter of CEN instance id is illegal. | |
| 400 | ParameterIllegal.ChildInstanceRegionId | The parameter of child instance region id is illegal. | |
| 400 | ParameterIllegal.ChildInstanceType | The parameter of child instance type is illegal. | |
| 400 | InvalidOperation.UnsupportRouteTableType | The route table type is unsupported | The error message returned because the specified route table type does not support this operation. |
| 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. |
| 404 | Instance.NotExist | The instance is not exist. | The error message returned because the specified instance does not exist. |
| 409 | InvalidOperation.ChildInstanceStatus | The child-instance is not in a valid state for the operation. | |
| 409 | InvalidOperation.CenInstanceStatus | The CEN instance is not in a valid state for the operation. | The error message returned because the status of the CEN instance does not support this operation. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.