NiftyReplaceNatRule
処理概要
NATテーブルに登録されたNATルールを指定したNATルールに入れ替える。
NATテーブルを指定するためには、NATテーブルIDが必要です。
指定するパラメーター
パラメーター | 型 | 説明 | 必須 |
---|---|---|---|
NatTableId | string |
NATテーブルID |
○ |
NatType | string |
NATタイプ 値: snat | dnat |
○ |
RuleNumber | string |
ルール番号 |
○ |
Description | string |
NATルールのメモ |
|
Protocol | string |
プロトコル 値: ALL | TCP | UDP | TCP_UDP | ICMP |
○ |
OutboundInterface.NetworkId | string |
SNATトラフィックのアウトバウンドインターフェイスのネットワークID |
○ (NATタイプがsnatの場合、アウトバウンドインターフェイスのネットワーク名といずれか) |
OutboundInterface.NetworkName | string |
SNATトラフィックのアウトバウンドインターフェイスのネットワーク名 |
○ (NATタイプがsnatの場合、アウトバウンドインターフェイスのネットワークIDといずれか) |
InboundInterface.NetworkId | string |
DNATトラフィックのインバウンドインターフェイスのネットワークID |
○ (NATタイプがdnatの場合、インバウンドインターフェイスのネットワーク名といずれか) |
InboundInterface.NetworkName | string |
DNATトラフィックのインバウンドインターフェイスのネットワーク名 |
○ (NATタイプがdnatの場合、インバウンドインターフェイスのネットワークIDといずれか) |
Destination.Port | integer |
送信先ポート |
○ (NATタイプがdnatの場合、かつProtocolがALL,ICMP以外の場合) |
Source.Address | string |
送信元アドレス |
○ (NATタイプがsnatの場合) |
Source.Port | integer |
送信元ポート |
○ (NATタイプがsnatの場合、かつProtocolがALL,ICMP以外の場合) |
Translation.Address | string |
変換アドレス |
○ (NATタイプがdnatの場合) |
Translation.Port | integer |
変換ポート |
○ (ProtocolがALL,ICMP以外の場合) |
応答フィールド
フィールド (項目) | 型 | 説明 |
---|---|---|
NiftyReplaceNatRuleResponse | - |
NiftyReplaceNatRuleレスポンス Ancestor: なし Children: requestId | natTableId | natRule |
requestId | string |
リクエスト識別子 Ancestor: NiftyReplaceNatRuleResponse Children: なし |
natTableId | string |
NATテーブルID Ancestor: NiftyReplaceNatRuleResponse Children: なし |
natRule | - |
NATルール情報 Ancestor: NiftyReplaceNatRuleResponse Children: natType | ruleNumber | description | protocol | outboundInterface | inboundInterface | destination | source | translation |
natType | string |
NATタイプ 値: snat | dnat Ancestor: natRule Children: なし |
ruleNumber | string |
ルール番号 Ancestor: natRule Children: なし |
description | string |
NATルールのメモ(CDATA付き) Ancestor: natRule Children: なし |
protocol | string |
プロトコル 値: ALL | TCP | UDP | TCP_UDP | ICMP Ancestor: natRule Children: なし |
outboundInterface | - |
NATトラフィックのアウトバウンドインターフェイス(snatの場合のみ) Ancestor: natRule Children: networkId | networkName |
networkId | string |
ネットワークID Ancestor: outboundInterface Children: なし |
networkName | string |
ネットワーク名 Ancestor: outboundInterface Children: なし |
inboundInterface | - |
NATトラフィックのインバウンドインターフェイス(dnatの場合のみ) Ancestor: natRule Children: networkId | networkName |
networkId | string |
ネットワークID Ancestor: inboundInterface Children: なし |
networkName | string |
ネットワーク名 Ancestor: inboundInterface Children: なし |
destination | - |
送信先情報(dnatの場合のみ) Ancestor: natRule Children: port |
port | integer |
送信先ポート Ancestor: destination Children: なし |
source | - |
送信元情報(snatの場合のみ) Ancestor: natRule Children: address | port |
address | string |
送信元アドレス Ancestor: source Children: なし |
port | integer |
送信元ポート Ancestor: source Children: なし |
translation | - |
変換情報 Ancestor: natRule Children: address | port |
address | string |
変換アドレス Ancestor: translation Children: なし |
port | integer |
変換ポート Ancestor: translation Children: なし |
リクエストサンプル
https://jp-east-1.computing.api.nifcloud.com/api/
?Action=NiftyReplaceNatRule
&NatTableId=nat-8db04f81
&NatType=snat
&RuleNumber=1
&Description=memo
&Protocol=TCP
&OutboundInterface.NetworkId=net-234hewf3
&Source.Address=172.16.10.12
&Source.Port=8080
&Translation.Port=8080
&CommonParams
応答サンプル
<NiftyReplaceNatRuleResponse xmlns="https://computing.api.nifcloud.com/api/">
<requestId>ac501097-4c8d-475b-b06b-a90048ec181c</requestId>
<natTableId>nat-8db04f81</natTableId>
<natRule>
<natType>snat</natType>
<ruleNumber>1</ruleNumber>
<description><![CDATA[memo]]></description>
<protocol>TCP</protocol>
<outboundInterface>
<networkId>net-234hewf3</networkId>
<networkName>prilan1</networkName>
</outboundInterface>
<inboundInterface/>
<destination/>
<source>
<address>172.16.10.12</address>
<port>8080</port>
</source>
<translation>
<port>8080</port>
</translation>
</natRule>
</NiftyReplaceNatRuleResponse>