Mengubah entri DNAT tertentu.
Deskripsi operasi
-
ModifyForwardEntry adalah operasi asinkron. Setelah Anda mengirim permintaan, sistem akan mengembalikan ID permintaan, tetapi entri DNAT belum diubah. Tugas modifikasi berjalan di latar belakang. Anda dapat memanggil DescribeForwardTableEntries untuk mengkueri status entri DNAT:
-
Jika entri DNAT berada dalam status Pending, entri DNAT sedang diubah. Dalam status ini, Anda hanya dapat melakukan operasi kueri.
-
Jika entri DNAT berada dalam status Available, entri DNAT telah diubah.
-
-
ModifyForwardEntry tidak mendukung modifikasi konkuren pada entri DNAT dalam tabel DNAT yang sama.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vpc:ModifyForwardEntry |
update |
*ForwardTable
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ForwardTableId |
string |
Yes |
ID tabel DNAT tempat entri DNAT berada. |
ftb-8vbx8xu2lqj9qb334**** |
| ForwardEntryId |
string |
Yes |
ID entri DNAT yang akan diubah. |
fwd-8vbn3bc8roygjp0gy**** |
| ExternalIp |
string |
No |
|
116.85.XX.XX |
| ExternalPort |
string |
No |
|
80 |
| InternalIp |
string |
No |
|
10.0.0.78 |
| InternalPort |
string |
No |
|
80 |
| IpProtocol |
string |
No |
Jenis protokol. Nilai valid:
|
TCP |
| ForwardEntryName |
string |
No |
Nama baru entri DNAT. Nama harus memiliki panjang 2 hingga 128 karakter dan harus diawali dengan huruf atau karakter Tionghoa. Nama tidak dapat diawali dengan |
test |
| RegionId |
string |
Yes |
ID wilayah Gateway NAT. Anda dapat memanggil DescribeRegions untuk mengkueri ID wilayah. |
cn-hangzhou |
| 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 dapat berisi karakter ASCII. Catatan
Jika Anda tidak menentukan parameter ini, sistem secara otomatis menggunakan RequestId dari permintaan API sebagai ClientToken. RequestId mungkin berbeda untuk setiap permintaan API. |
123e4567-e89b-12d3-a456-426655440000 |
| PortBreak |
boolean |
No |
Apakah akan mengaktifkan port breaking. Nilai valid:
|
false |
| DryRun |
boolean |
No |
Apakah akan menjalankan dry run. Nilai valid:
|
false |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
ID permintaan. |
||
| RequestId |
string |
ID permintaan. |
2315DEB7-5E92-423A-91F7-4C1EC9AD97C3 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "2315DEB7-5E92-423A-91F7-4C1EC9AD97C3"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | UnsupportedFeature.PortSegment | The feature of PortSegment is not supported. | |
| 400 | ExclusiveParam.%sAnd%s | The param of %s and %s are mutually exclusive. | 参数 %s 和 %s 相互排斥。 |
| 400 | InvalidIp.NotInNatgw | The specified Ip not belong to natgateway. | |
| 400 | DuplicatedParam.InternalPort | The param of %s is duplicated. | InternalPort参数重复或已被占用 |
| 400 | DuplicatedParam.ExternalPort | The param of %s is duplicated. | DNAT公网端口%s已被重复占用。 |
| 400 | OperationFailed.AnyPortConfig | Operation failed because any port correspondence any protocol | 操作失败. 与其他条目有冲突, 存在任何端口或任何协议类型. |
| 400 | OperationUnsupported.ForwardEntry | Duplicated destination ip port is unsupported. | 不支持重复的目标IP端口。 |
| 400 | IncorrectStatus.NatIp | The status of %s [%s] is incorrect. | NatIp当前状态不正确。 |
| 400 | Forbidden.IpHasBeenUsedInSnat | The source ip can't be used. Because it has been used in snat. | |
| 400 | IncorrectStatus.ForwardEntry | The status of %s [%s] is incorrect. | 要删除的DNAT条目实例状态不对 |
| 400 | InvalidExternalIp.Malformed | The specified ExternalIp is not a valid IP address. | |
| 400 | InvalidInternalIp.Malformed | The specified InternalIp is not a valid IP address. | |
| 400 | InvalidExternalPort.Malformed | The specified ExternalPort is not a valid port. | |
| 400 | InvalidInternalPort.Malformed | The specified InternalPort is not a valid port. | |
| 400 | Forbidden.DestnationIpOutOfVpcCIDR | The specified Destination Ip is Out of VPC CIDR. | |
| 400 | InvalidProtocal.ValueNotSupported | The specified IpProtocol does not support. | |
| 400 | IncorretForwardEntryStatus | Some Forward entry status blocked this operation.. | |
| 400 | QuotaExceeded | Forward entry quota exceeded in this route table. | 同一个路由表中自定义路由条目不能超过200条,可以在配额管理页面申请调整数量。 |
| 400 | ForwardEntry.Duplicated | The specified ExternalIp, IpProtocol, ExternalPort,InternalIp, InternalPort is duplicated | |
| 400 | Forbidden.ExternalIp.UsedInSnatTable | The specified ExternalIp is already used in SnatTable | |
| 400 | Forbidden.Already.Bounded | The specified instance already bounded | |
| 400 | InvalidIp.NotFound | The specified ip does not exist. | |
| 400 | InvalidParameter.Name.Malformed | The specified Name is not valid. | |
| 400 | IncorretStatus.ForwardEntry | The Specified forwardEntry is not stable status, can not operation | |
| 400 | IllegalParam.AnyPortNotZero | Any port port must be zero. | 参数非法,DNAT转发协议为Any时,源端口和目标端口必须为0 |
| 400 | Duplicated.DestinationPort | The specified param DestinationPort is duplicated. | |
| 400 | InvalidForwardEntryId.NotFound | Specified forward entry ID does not exist | |
| 400 | OperationUnsupported.EipInBinding | Create snat entry with eip in associating status is unsupported. | 创建snat不可以使用绑定中的eip |
| 400 | QuotaExceeded.ForwardEntrySessionManytoOne | The dnat session quota is exceed. | dnat session 多对一的配额超限。 |
| 400 | OperationFailed.ForwardEntryNotAllowSrcIpEqualDstIp | The source IP of forward entry is not allowed to equal destination IP. | DNAT条目不允许公网IP地址等于私网IP地址 |
| 404 | ResourceNotFound.NatIp | The specified resource of %s is not found. | |
| 404 | ResourceNotFound.ForwardEntry | The specified resource of %s is not found. | 找不到指定的%s资源。 |
| 404 | InvalidRegionId.NotFound | The specified RegionId does not exist in our records. | |
| 404 | InvalidForwardEntryId.NotFound | Specified forward entry ID does not exist | |
| 404 | InvalidExternalIp.NotFound | Specified External Ip address does not found on the VRouter | |
| 404 | InvalidForwardTableId.NotFound | Specified forward table does not exist. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.