Mempublikasikan entri rute VPC ke komponen eksternal.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vpc:PublishVpcRouteEntries |
update |
*RouteTable
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID wilayah instans. Anda dapat memanggil operasi DescribeRegions untuk mengkueri ID wilayah. |
cn-hangzhou |
| RegionId |
string |
No |
Daftar entri rute yang akan dipublikasikan. Maksimal 50 rute dapat ditentukan. |
cn-hangzhou |
| RouteEntries |
array<object> |
No |
Tipe target publikasi entri rute. |
|
|
object |
No |
Daftar entri rute yang akan dipublikasikan. |
||
| RouteTableId |
string |
Yes |
ID tabel rute tempat entri rute berada. |
vtb-2ze3jgygk9bmsj23s**** |
| DestinationCidrBlock |
string |
Yes |
Blok CIDR tujuan entri rute. |
121.41.165.123/32 |
| TargetType |
string |
Yes |
ID instans target publikasi entri rute. |
ECR |
| TargetInstanceId |
string |
Yes |
Apakah akan menjalankan dry run. Nilai valid:
|
ecr-dhw2xsds5**** |
| DryRun |
boolean |
No |
Apakah akan menjalankan dry run saja, tanpa menjalankan permintaan aktual. Nilai valid:
|
false |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema Respons. |
||
| RequestId |
string |
ID permintaan. |
980960B0-2969-40BF-8542-EBB34FD358AB |
Contoh
Respons sukses
JSONformat
{
"RequestId": "980960B0-2969-40BF-8542-EBB34FD358AB"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IncorrectStatus.Vpc | The status of %s [%s] is incorrect. | VPC yang ditentukan tidak berada dalam status yang stabil. |
| 400 | ResourceNotFound.RouteEntry | The specified resource routeEntry is not found. | Entri rute yang ditentukan tidak ada. |
| 400 | IncorrectStatus.RouteEntry | The status of %s [%s] is incorrect. | Entri rute berada dalam status sementara. |
| 400 | Forbidden.OperateCustomRouteTable | The operation is forbidden because publish route entry in custom route table. | Operasi dilarang karena penerbitan entri rute dari tabel rute kustom tidak diizinkan. |
| 400 | IncorrectStatus.RouteEntryPublishStatus | Route entry publish status is incorrect. | Status publikasi rute dari entri rute salah. |
| 400 | ResourceNotAssociated.TargetInstance | The target instance is not associated with vpc. | |
| 400 | OperationDenied.UnsupportedTargetType | The operation is not allowed because the target type is not supported. | Operasi ditolak karena tipe target pengumuman rute saat ini tidak didukung. |
| 400 | IncorrectStatus.RouteTable | The route table is in an invalid state. | Status tabel rute yang ditentukan salah. |
| 400 | OperationUnsupported.PublishSystemRouteEntry | Publishing system route entry is unsupported. | Publikasi entri rute sistem tidak didukung. |
| 400 | OperationUnsupported.UnsupportedNextHop | Unsupported nexthop type for route entry publish operation. | Tipe lompatan berikutnya entri rute tidak mendukung publikasi. |
| 400 | OperationUnsupported.PublishPrefixListRouteEntry | Publishing prefix list route entry is unsupported. | Operasi publikasi entri rute daftar awalan rute tidak didukung. |
| 400 | InvalidRouteTableId.NotFound | Specified route table does not exist. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.