NAT ゲートウェイの属性を変更します。
操作説明
この操作でサポートされる NAT ゲートウェイには、インターネット NAT ゲートウェイと VPC NAT ゲートウェイが含まれます。本ドキュメントにおける「NAT ゲートウェイ」という term は、区別なく両方のタイプを指します。
今すぐお試しください
テスト
RAM 認証
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| RegionId |
string |
必須 |
変更する NAT ゲートウェイのリージョン ID。 DescribeRegions 操作を呼び出してリージョン ID をクエリできます。 |
cn-hangzhou |
| NatGatewayId |
string |
必須 |
変更する NAT ゲートウェイの ID。 |
ngw-2ze0dcn4mq31qx2jc**** |
| Name |
string |
任意 |
変更する NAT ゲートウェイの名前。 名前は 1~128 文字で、 |
nat123 |
| Description |
string |
任意 |
変更する NAT ゲートウェイの説明。 説明は 1~128 文字で、 |
Description |
| IcmpReplyEnabled |
boolean |
任意 |
ICMP エコーリプライを有効にするかどうかを指定します。有効な値:
|
true |
| EipBindMode |
string |
任意 |
NAT ゲートウェイの EIP アタッチパターン。有効な値: このパラメーターは空にできます。値を指定する場合、標準的な EIP アタッチパターンを示す NAT のみが許可されます。 説明
列挙値:
|
NAT |
| EnableSessionLog |
boolean |
任意 |
セッションログの特徴を有効にするかどうかを指定します。有効な値:
|
true |
| LogDelivery |
object |
任意 |
セッションログの構成。 |
|
| LogDeliveryType |
string |
任意 |
セッションログの log delivery タイプ。有効な値: sls (Simple Log Service を示します)。 |
sls |
| LogDestination |
string |
任意 |
セッションログの log delivery の送信先。有効な値: acs:log:${regionName}:${projectOwnerAliUid}:project/${projectName}/logstore/${logstoreName}。 |
acs:log:cn-hangzhou:0000:project/nat_session_log_project/logstore/session_log_test |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
リクエスト ID。 |
||
| RequestId |
string |
リクエスト ID。 |
AB5F62CF-2B60-4458-A756-42C9DFE108D1 |
例
成功レスポンス
JSONJSON
{
"RequestId": "AB5F62CF-2B60-4458-A756-42C9DFE108D1"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | UnsupportedFeature.PrivateLinkMode | The feature of %s is not supported. | リバースアクセス機能はサポートされていません。 |
| 400 | IncorrectStatus.NATGW | NATGW status is invalid. | NAT ゲートウェイが異常な状態です。 |
| 400 | ExclusiveParam.%sAnd%s | The param of %s and %s are mutually exclusive. | パラメーター %s と %s は相互排他です。 |
| 400 | IncorrectStatus.NatGateway | The status of natgateway is incorrect. | NAT ゲートウェイのステータスが無効です。 |
| 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. | ICMP エコーリプライ有効化設定の変更はサポートされていません。 |
| 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. | VPC NAT ゲートウェイでは、EIP のバインドタイプの変更はサポートされていません。 |
| 400 | UnsupportedFeature.NormalNatModifyEipBindMode | The normal NAT gateway is not support to change EIP bond type. | 標準 NAT ゲートウェイでは、EIP のバインドタイプの変更はサポートされていません。 |
| 400 | OperationDenied.EipBondTypeIsAlreadyNAT | The EIP bond type is already NAT type. | EIP のバインドタイプはすでに NAT です。 |
| 400 | UnsupportedFeature.IndirectConvertForFwNat | The security protection enabled NAT gateway is not support change EIP bond type. | 保護が有効なインターネット NAT ゲートウェイでは、EIP のバインドタイプの変更はサポートされていません。 |
| 400 | QuotaExceeded.EipNumForModifyEipBondType | The quota of %s is exceeded, binded: %s, quota: %s. | EIP のバインドタイプの変更時に許可される EIP の数が上限を超えています。 |
| 400 | ResourceNotEnough.SwitchAvailableIps | The available private Ip number is not enough in your subnet. | サブネットに利用可能なプライベート IP アドレスが不足しています。 |
| 400 | UnsupportedFeature.VpcNatSecurityProtectionEnabled | The VPC NAT gateway is not supported to enable security protection. | VPC NAT ゲートウェイでは、セキュリティ保護の有効化はサポートされていません。 |
| 400 | OperationDenied.NatGatewayStatusInvalid | The NAT gateway status is invalid. | NAT ゲートウェイのステータスが無効です。 |
| 400 | OperationDenied.EipStatusInvalid | The NAT gateway has EIP in invalid status. | NAT ゲートウェイに関連付けられた EIP のステータスが無効です。 |
| 400 | OperationDenied.SnatEntryStatusInvalid | The NAT gateway has SNAT entry in invalid status. | NAT ゲートウェイに設定された SNAT エントリのステータスが無効です。 |
| 400 | OperationDenied.DnatEntryStatusInvalid | The NAT gateway has DNAT entry in invalid status. | NAT ゲートウェイに設定された DNAT エントリのステータスが無効です。 |
| 400 | UnsupportedFeature.MutilBindedTypeNatEnableFw | The NAT with Mutil-Binded Eip bind type is not support enable firewall. | MUTIL_BINDED モードで EIP がバインドされている NAT ゲートウェイでは、ファイアウォールの有効化はサポートされていません。 |
| 400 | Forbidden.FinancialLocked | The instance is locked due to outstanding payments. | インスタンスは支払い遅延により滞納ロックされています。操作を実行できません。 |
| 400 | OperationFailed.PrivateLinkMode | The NAT gateway is not support to change PrivateLinkMode. | 現在の NAT ゲートウェイは PrivateLinkMode の変更をサポートしていません。 |
| 400 | IllegalParam.SessionLogDeliveryDestination | The specified Delivery Destination is illegal. | セッションログ配信用の SessionLogDeliveryDestination パラメーターのフォーマットが無効です。セッションログの構成を確認して、もう一度お試しください。 |
| 400 | OperationFailed.LogDeliveryIsUnAuthorized | Operation failed because the user is not authorized to deliver NAT session log. | NAT セッションログ配信の権限が付与されていないため、操作に失敗しました。 |
| 400 | IllegalParam.SessionLogDeliveryType | The specified Delivery Type is illegal. | セッションログ配信用の SessionLogDeliveryType パラメーターの値が要件を満たしていません。セッションログの構成を確認して、もう一度お試しください。 |
| 400 | UnsupportedFeature.EnableSessionLog | The feature of EnableSessionLog is not supported. | このインスタンスタイプの NAT ゲートウェイはセッションログをサポートしていません。 |
| 500 | OperationFailed.ConfigSessionLog | Failed to configure session log due to a temporary failure of the server. | NAT セッションログ配信ルールの構成に失敗しました。 |
| 403 | Forbidden.ModifyEipBondType | Authentication is failed for modify EIP bond type. | EIP のバインドタイプの変更は許可されていません。 |
| 404 | InvalidRegionId.NotFound | The specified RegionId does not exist in our records. | |
| 404 | InvalidNatGatewayId.NotFound | The specified NatGatewayId does not exist in our records. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。