カスタム仮想インターフェース
このセクションでは、カスタム仮想インターフェースでサポートされている以下の操作について説明します。
nfa1000
このセクションでは、カスタム仮想インターフェースでサポートされている以下の操作について説明します。
カスタム仮想インターフェースの追加
リソース URI
http://<nfa odata host>:<nfa odata port>/odata/api/interfaces/com.ca.nfa.odata.createCustomVirtualInterface
メソッド
POST
ペイロード
{"InterfaceId" : <Enter a valid ID>,"Name" : "<Name of the Interface Aggregation>","Description" : "<Description of the interface Aggregation>","IfType" : "<Custom Virtual InterfaceType>","InSpeed" : <Inspeed value> ,"OutSpeed" : <Outspeed Value>,"Subnet" :<Subnet value>}
例 1: 1 つのサブネットの追加
サンプル リクエスト
サブネットが 1 つあるカスタム仮想インターフェースを作成します。
http://127.0.0.1:8981/odata/api/interfaces/com.ca.nfa.odata.customVirtualInterface
メソッド
POST
サンプル ペイロード
{"InterfaceId" : 11,"Name" : "testCVI","Description" : "CVI","IfType" : "WAN","InSpeed" : 10 ,"OutSpeed" : 11 ,"Subnet" :["10.0.0.4/22"]}
サンプル レスポンス:
{"@odata.context": "$metadata#Collection(com.ca.nfa.odata.interfaces)","value": [{"ID": 537,"AgentType": "Virtual","RouterAddress": "127.0.0.1","Description": "CVI","InSpeed": 10,"OutSpeed": 11,"IfIndex": 0,"PersistentIfIndex": 2147483729,"IfType": "WAN","UpdatedOn": 1546247778,"Enabled": "Y","LastData": 0,"HarvesterAddress": "127.0.0.1","Name": "testCVI"}]}
例 2: 複数のサブネットの追加
サンプル リクエスト
サブネットが複数あるカスタム仮想インターフェースを作成します。
http://127.0.0.1:8981/odata/api/interfaces/com.ca.nfa.odata.customVirtualInterface
メソッド
POST
サンプル ペイロード
{"InterfaceId" : 12,"Name" : "testCVI1","Description" : "CVI","IfType" : "WAN","InSpeed" : 10 ,"OutSpeed" : 11 ,"Subnet" :["10.0.0.4/22","10.0.0.9/3","10.0.0.9/22"]}
サンプル レスポンス:
{"@odata.context": "$metadata#Collection(com.ca.nfa.odata.interfaces)","value": [{"ID": 538,"AgentType": "Virtual","RouterAddress": "127.0.0.1","Description": "CVI","InSpeed": 10,"OutSpeed": 11,"IfIndex": 0,"PersistentIfIndex": 2147483730,"IfType": "WAN","UpdatedOn": 1546248102,"Enabled": "Y","LastData": 0,"HarvesterAddress": "127.0.0.1","Name": "testCVI1"}]}