インターフェース集約

このセクションでは、インターフェース集約でサポートされる以下の操作について説明します。
nfa1000
このセクションでは、インターフェース集約でサポートされる以下の操作について説明します。
インターフェース集約の追加
リソース URI
http://
<nfa odata host
>:<
nfa odata port
>/odata/api/interfaces/com.ca.nfa.odata.createInterfaceAggregation
メソッド
POST
ペイロード
{
"InterfaceIds" : [<
Enter a valid ID
>],
"Name" : "<
Name of the Interface Aggregation
>",
"Description" : "<
Description of the interface Aggregation
>",
"IfType" : "<
Interface Aggregation Type
>",
"InSpeed" : <
Inspeed value
> ,
"OutSpeed" : <
Outspeed Value
>
}
: また、角かっこ内に複数の InterfaceId 値をカンマ(,)で区切って入力することもできます。
例 1: 単一の InterfaceId の追加
サンプル リクエスト
この例は、InterfaceId の単一の値を示しています。
http://127.0.0.1:8981/odata/api/interfaces/com.ca.nfa.odata.createInterfaceAggregation
メソッド
POST
サンプル ペイロード
{
"InterfaceIds" : [446],
"Name" : "test1",
"Description" : "test",
"IfType" : "WAN",
"InSpeed" : 10 ,
"OutSpeed" : 11
}
例 2: 複数の InterfaceId の追加
サンプル リクエスト
この例は、
InterfaceId
の複数の値を示しています。
http://127.0.0.1:8981/odata/api/interfaces/com.ca.nfa.odata.createInterfaceAggregation
サンプル ペイロード
{
"InterfaceIds" : [447,673,224],
"Name" : "test2",
"Description" : "test2",
"IfType" : "WAN",
"InSpeed" : 10 ,
"OutSpeed" : 11
}
サンプル レスポンス
{
"@odata.context": "$metadata#Collection(com.ca.nfa.odata.interfaces)",
"value": [
{
"ID": 255,
"AgentType": "Aggregate",
"RouterAddress": "127.0.0.1",
"Description": "Description interface Aggregation2",
"InSpeed": 100000,
"OutSpeed": 1000,
"IfIndex": 255,
"PersistentIfIndex": 255,
"IfType": "WAN",
"UpdatedOn": 1554274019,
"Enabled": "Y",
"LastData": 0,
"HarvesterAddress": "127.0.0.1",
"Name": "Interface Aggregation10"
}
]
}