Description
URI Argument
Filter index operation
Type: String
Value: "Add", "Delete"
Use "Add" to modify an existing entry
oper
POST Examples:
Example 1: Changing both MOIP Source Filter Parameter
The following example assumes that the user has successfully logged onto the unit, received the session ID,
and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
change the IP to the specific unit IP in use. This example changes both the ip address of filter slot 1 and its
filter index operation (oper).
curl -X POST -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
"https://192.168.0.1/ws/v2/service_cfg/input/moip/srcfilter?idx=1&ip=10.10.10.10&oper=Add"
If successful, the return body will be:
"response": {
"code": "10",
"result": "success",
"message": ""
}
GET Examples:
Example 2: Get full table of MOIP Source Filters
The following example assumes that the user has successfully logged onto the unit, received the session ID,
and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
change the IP to the specific unit IP in use. This example returns the full MOIP source filters for every index.
curl -X GET -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
"https://192.168.0.1/ws/v2/service_cfg/input/moip/srcfilter"
If successful, the return body will be:
HTTP/1.1 200 OK
Date: Fri, 29 Jul 2016 02:43:54 GMT
Server: Hiawatha v9.14
Connection: keep-alive
Transfer-Encoding: chunked
Status: 200
Content-type: application/json
{
"srcfilter": {
"record": [
{
"idx": "1",
"ip": "0.0.0.0",
"oper": "Inactive"
},
{
"idx": "2",
"ip": "0.0.0.0",
"oper": "Inactive"
},
{
"idx": "3",
"ip": "0.0.0.0",
"oper": "Inactive"
},
{
"idx": "4",
Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
157
API Definitions
Input Configuration Command