利用可能なインターフェース

このセクションでは、利用可能なインターフェースでサポートされている以下の操作について説明します。
nfa1000
このセクションでは、利用可能なインターフェースでサポートされている以下の操作について説明します。
利用可能なインターフェースの有効化 - 単一
リソース
URI
http://<
nfa odata host
>:<
nfa odata port
>/odata/api/availableInterfaces(<
PropertyRef Name value>
)/com.ca.nfa.odata.enableInterface
メソッド
POST
パラメータ
パラメータ
Description
PropertyRef 名
availableInterfaces エンティティ タイプのインターフェース ID を示します。
availableInterfaces のリストの詳細については、「メタデータ」を参照してください。
サンプル リクエスト
http://127.0
0.1:8981/odata/api/availableInterfaces(11)/com.ca.nfa.odata.enableInterface
サンプル レスポンス
{
"@odata.context": "$metadata#com.ca.nfa.odata.availableInterfaces",
"ID": 11,
"routerId": 1500002,
"name": "Interface 1",
"description": "127.0.0.1",
"speed": 0,
"ifMapId": 10,
"ifIndex": 9,
"ifDescr": "Interface 1",
"ifType": 1,
"ifName": "",
"portName": "",
"vrfName": "",
"ifAlias": "",
"UpdatedOn": 1542306913,
"enabled": "true",
"LastFlow": 1541996116,
"IpAddr": null
}
利用可能なインターフェースの有効化 - 一括
リソース
URI
http://<
nfa odata host
>:<
nfa odata port
>/odata/api/availableInterfaces/com.ca.nfa.odata.enableInterfaces
メソッド
POST
ペイロード
{
  "InterfaceIds":[<
List of Interface_ids separated by a comma
>]
}
サンプル リクエスト
サンプル ペイロード
{
"InterfaceIds":[1,3,10]
}
サンプル レスポンス
{
"@odata.context": "$metadata#Collection(com.ca.nfa.odata.availableInterfaces)",
"value": [
{
"ID": 1,
"routerId": 1500001,
"name": "127.0.0.1",
"description": "127.0.0.1",
"speed": 0,
"ifMapId": 1,
"ifIndex": 1,
"ifDescr": "Interface 1",
"ifType": 1,
"ifName": "",
"portName": "",
"vrfName": "",
"ifAlias": "",
"UpdatedOn": 1542306911,
"enabled": "true",
"LastFlow": 1541996116,
"IpAddr": null
},
{
"ID": 3,
"routerId": 1500002,
"name": "127.0.0.1",
"description": "127.0.0.1",
"speed": 0,
"ifMapId": 3,
"ifIndex": 1,
"ifDescr": "Interface 1",
"ifType": 1,
"ifName": "",
"portName": "",
"vrfName": "",
"ifAlias": "",
"UpdatedOn": 1542306912,
"enabled": "true",
"LastFlow": 1541996116,
"IpAddr": null
},
{
"ID": 10,
"routerId": 1500002,
"name": "127.0.0.1",
"description": "127.0.0.1",
"speed": 0,
"ifMapId": 9,
"ifIndex": 8,
"ifDescr": "Interface 8",
"ifType": 1,
"ifName": "",
"portName": "",
"vrfName": "",
"ifAlias": "",
"UpdatedOn": 1542306913,
"enabled": "true",
"LastFlow": 1541996116,
"IpAddr": null
}
]
}
利用可能なインターフェースの無効化 - 単一
リソース
URI
http://<
nfa odata host
>:<
nfa odata port
>/odata/api/availableInterfaces(<
InterfaceId value
>)/com.ca.nfa.odata.disableInterface
メソッド
POST
サンプル リクエスト
サンプル レスポンス
{
"@odata.context": "$metadata#com.ca.nfa.odata.availableInterfaces",
"ID": 43,
"routerId": 1500006,
"name": "Interface 1",
"description": "",
"speed": 0,
"ifMapId": 1,
"ifIndex": 1,
"ifDescr": "Interface 1",
"ifType": 1,
"ifName": "",
"portName": "",
"vrfName": "",
"ifAlias": "",
"UpdatedOn": 1551354673,
"enabled": "false",
"LastFlow": 1556632817,
"IpAddr": null
}
利用可能なインターフェースの無効化 - 一括
リソース
URI
http://<
nfa odata host
>:<
nfa odata port
>/odata/api/availableInterfaces/com.ca.nfa.odata.disableInterfaces
メソッド
POST
ペイロード
{
  "InterfaceIds":[<
List of Interface_ids separated by a comma
>]
}
サンプル リクエスト
サンプル ペイロード
{
"InterfaceIds" : [483,484,485]
}
サンプル レスポンス
{
"@odata.context": "$metadata#Collection(com.ca.nfa.odata.availableInterfaces)",
"value": [
{
"ID": 483,
"routerId": 1500037,
"name": "Gi4/29",
"description": "Rac. non utilise",
"speed": 1000000000,
"ifMapId": 37,
"ifIndex": 37,
"ifDescr": "GigabitEthernet4/29",
"ifType": 6,
"ifName": "Gi4/29",
"portName": "",
"vrfName": "",
"ifAlias": "Rac. non utilise",
"UpdatedOn": 1553360767,
"enabled": "false",
"LastFlow": 0,
"IpAddr": null
},
{
"ID": 484,
"routerId": 1500037,
"name": "Gi4/30",
"description": "Rac. non utilise",
"speed": 1000000000,
"ifMapId": 38,
"ifIndex": 38,
"ifDescr": "GigabitEthernet4/30",
"ifType": 6,
"ifName": "Gi4/30",
"portName": "",
"vrfName": "",
"ifAlias": "Rac. non utilise",
"UpdatedOn": 1553360767,
"enabled": "false",
"LastFlow": 0,
"IpAddr": null
},
{
"ID": 485,
"routerId": 1500037,
"name": "Gi4/31",
"description": "Rac. non utilise",
"speed": 1000000000,
"ifMapId": 39,
"ifIndex": 39,
"ifDescr": "GigabitEthernet4/31",
"ifType": 6,
"ifName": "Gi4/31",
"portName": "",
"vrfName": "",
"ifAlias": "Rac. non utilise",
"UpdatedOn": 1553360767,
"enabled": "false",
"LastFlow": 0,
"IpAddr": null
}
]
}
利用可能なインターフェースの削除
Network Flow Analysis
10.0.1 から、利用可能なインターフェースからインターフェースを削除できます。
SNMP で到達可能なインターフェースを削除した場合、そのインターフェースは次回の SNMP ポーリングの後に再び追加されます。
リソース
URI:
http://<
nfa odata host>:<nfa odata port>
/odata/api/availableInterfaces(<
Enter the Available_Interface_ID to be deleted
>)/com.ca.nfa.odata.deleteAvailableInterface
メソッド
POST
サンプル リクエスト
サンプル レスポンス
{
"@odata.context": "$metadata#com.ca.nfa.odata.availableInterfaces",
 "ID": 442,
 "routerId": 1500023,
 "name": "Interface 7",
 "description": "",
 "speed": 0,
 "ifMapId": 4,
 "ifIndex": 7,
 "ifDescr": "Interface 7",
 "ifType": 1
 "ifName": "",
 "portName": "",
 "vrfName": "",
 "ifAlias": "",
 "UpdatedOn": 1548839196,
 "enabled": "Y",
 "LastFlow": 1548927084,
 "IpAddr": null
}