Mengubah atribut gerbang NAT.
Deskripsi operasi
Gerbang NAT yang dikueri oleh operasi ini mencakup gerbang NAT Internet dan gerbang NAT VPC. Kata kunci "gerbang NAT" dalam topik ini tidak merujuk secara spesifik pada salah satu tipe.
Coba sekarang
Test
RAM authorization
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID wilayah gerbang NAT yang ingin Anda ubah. Anda dapat memanggil operasi DescribeRegions untuk mengkueri daftar wilayah terbaru. |
cn-hangzhou |
| NatGatewayId |
string |
Yes |
ID gerbang NAT yang ingin Anda ubah. |
ngw-2ze0dcn4mq31qx2jc**** |
| Name |
string |
No |
Nama gerbang NAT yang ingin Anda ubah. Panjang nama harus 1 hingga 128 karakter dan tidak boleh diawali dengan |
nat123 |
| Description |
string |
No |
Deskripsi gerbang NAT yang ingin Anda ubah. Panjang deskripsi harus 1 hingga 128 karakter dan tidak boleh diawali dengan |
Description |
| IcmpReplyEnabled |
boolean |
No |
Apakah akan mengaktifkan balasan ICMP echo. Nilai valid:
|
true |
| EipBindMode |
string |
No |
Mode pengikatan EIP gerbang NAT. Nilai valid: Nilai dapat kosong. Jika nilai tidak kosong, hanya NAT yang diizinkan, yang menunjukkan bahwa mode pengikatan adalah mode Normal EIP. Catatan
|
NAT |
| EnableSessionLog |
boolean |
No |
Apakah akan mengaktifkan pencatatan log sesi. Nilai valid:
|
true |
| LogDelivery |
object |
No |
Konfigurasi log sesi. |
|
| LogDeliveryType |
string |
No |
Tipe pengiriman log sesi. Nilai valid: sls, yang menunjukkan Alibaba Cloud Simple Log Service. |
sls |
| LogDestination |
string |
No |
Alamat tujuan untuk pengiriman log sesi. Nilai: acs:log:${WilayahName}:${projectOwnerAliUid}:project/${ProyekName}/logstore/${logstoreName}. |
acs:log:cn-hangzhou:0000:project/nat_session_log_project/logstore/session_log_test |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
ID permintaan. |
||
| RequestId |
string |
ID permintaan. |
AB5F62CF-2B60-4458-A756-42C9DFE108D1 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "AB5F62CF-2B60-4458-A756-42C9DFE108D1"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | UnsupportedFeature.PrivateLinkMode | The feature of %s is not supported. | |
| 400 | IncorrectStatus.NATGW | NATGW status is invalid. | |
| 400 | ExclusiveParam.%sAnd%s | The param of %s and %s are mutually exclusive. | |
| 400 | IncorrectStatus.NatGateway | The status of natgateway is incorrect. | |
| 400 | DependencyViolation.PrivateLinkMode | The specified resource of %s depends on %s, so the operation cannot be completed. | |
| 400 | UnsupportedFeature.IcmpReplyEnabled | The feature of IcmpReplyEnabled is not supported. | |
| 400 | InvalidParams.NotNull | The parameter must not be null, name or description or icmpReplyEnabled | |
| 400 | InvalidParameter.Name.Malformed | The specified Name is not valid. | |
| 400 | InvalidParameter.Description.Malformed | The specified Description is not valid. | |
| 400 | UnsupportedFeature.IndirectConvertForVpcNat | The VPC NAT gateway is not support to change EIP bond type. | |
| 400 | UnsupportedFeature.NormalNatModifyEipBindMode | The normal NAT gateway is not support to change EIP bond type. | |
| 400 | OperationDenied.EipBondTypeIsAlreadyNAT | The EIP bond type is already NAT type. | |
| 400 | UnsupportedFeature.IndirectConvertForFwNat | The security protection enabled NAT gateway is not support change EIP bond type. | |
| 400 | QuotaExceeded.EipNumForModifyEipBondType | The quota of %s is exceeded, binded: %s, quota: %s. | |
| 400 | ResourceNotEnough.SwitchAvailableIps | The available private Ip number is not enough in your subnet. | |
| 400 | UnsupportedFeature.VpcNatSecurityProtectionEnabled | The VPC NAT gateway is not supported to enable security protection. | |
| 400 | OperationDenied.NatGatewayStatusInvalid | The NAT gateway status is invalid. | |
| 400 | OperationDenied.EipStatusInvalid | The NAT gateway has EIP in invalid status. | |
| 400 | OperationDenied.SnatEntryStatusInvalid | The NAT gateway has SNAT entry in invalid status. | |
| 400 | OperationDenied.DnatEntryStatusInvalid | The NAT gateway has DNAT entry in invalid status. | |
| 400 | UnsupportedFeature.MutilBindedTypeNatEnableFw | The NAT with Mutil-Binded Eip bind type is not support enable firewall. | |
| 400 | Forbidden.FinancialLocked | The instance is locked due to outstanding payments. | |
| 400 | OperationFailed.PrivateLinkMode | The NAT gateway is not support to change PrivateLinkMode. | |
| 400 | IllegalParam.SessionLogDeliveryDestination | The specified Delivery Destination is illegal. | |
| 400 | OperationFailed.LogDeliveryIsUnAuthorized | Operation failed because the user is not authorized to deliver NAT session log. | |
| 400 | IllegalParam.SessionLogDeliveryType | The specified Delivery Type is illegal. | |
| 400 | UnsupportedFeature.EnableSessionLog | The feature of EnableSessionLog is not supported. | |
| 500 | OperationFailed.ConfigSessionLog | Failed to configure session log due to a temporary failure of the server. | |
| 403 | Forbidden.ModifyEipBondType | Authentication is failed for modify EIP bond type. | |
| 404 | InvalidRegionId.NotFound | The specified RegionId does not exist in our records. | |
| 404 | InvalidNatGatewayId.NotFound | The specified NatGatewayId does not exist in our records. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.