DNAT(Destination Network Address Translation)ルールを変更します。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
ens:ModifyForwardEntry |
update |
*All Resource
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| ForwardEntryId |
string |
必須 |
DNAT エントリの ID です。 |
dnat-5tfjp3537mi6iokl59g5c**** |
| ForwardEntryName |
string |
任意 |
DNAT エントリの名前です。長さは 2~128 文字である必要があります。また、 |
test0 |
| HealthCheckPort |
integer |
任意 |
ヘルスチェック用ポートです。このポートは内部ポート範囲内である必要があります。デフォルトでは空欄です。 |
80 |
| ExternalIp |
string |
任意 |
DNAT エントリに設定された EIP です。パブリック IP アドレスを使用してインターネットへアクセスします。 |
121.XXX.XXX.28 |
| ExternalPort |
string |
任意 |
ポート フォワーディングに使用する外部ポートまたはポート範囲です。
|
22 |
| InternalIp |
string |
任意 |
DNAT エントリを使用してインターネット通信を行うインスタンスのプライベート IP アドレスです。 |
10.XXX.XXX.50 |
| InternalPort |
string |
任意 |
ポート フォワーディングに使用するプライベートポートまたはポート範囲です。
|
22 |
| IpProtocol |
string |
任意 |
プロトコルです。有効な値は以下のとおりです。
|
Any |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
応答のスキーマ |
||
| RequestId |
string |
リクエストの ID です。 |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
例
成功レスポンス
JSONJSON
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | Missing%s | You must specify the parameter %s. | |
| 400 | Invalid%s | The specified parameter %s is invalid. | |
| 400 | ens.interface.error | Failed to call API. | |
| 400 | InvalidParameter.DnatNotFound | The specified dnat is not found. | |
| 400 | IncorretDnatEntryStatus | Dnat entry status blocked this operation. | |
| 400 | InstanceNotFound | Instance not found, please check the InstanceId. | |
| 400 | IncorrectInstanceStatus | The current status of the instance does not support this operation. | |
| 400 | Forbidden.ExternalPort.Duplicated | The specified ExternalPort is duplicated. | |
| 400 | InvalidExternalIp.NotFound | Specified ExternalIp does not found on the NAT Gateway. | |
| 400 | InvalidPort.Malformed | The specified ExternalPort or InternalPort is not a valid port. | |
| 400 | Forbidden.ExternalIpUsedInSnat | The external ip is already in use in the snat rule. | |
| 400 | InvalidParameter.HealthCheckPort | HealthCheckPort is not in the range of InternalPort. | |
| 400 | NoPermission | Permission denied. | |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。