Add List of Exclude IP/PORT Ranges

Request

JSON

URL http://ip:port/shunra/api/configuration/excludelist
HTTP Method POST
HTTP Headers

Content-Type: application/json

Accept: application/json

Authorization: See Web Services Authentication.

Body
{
    "rangesCollection": [{
        "from": "1.1.1.1",
        "to": "2.2.2.2",
        "port": 5555,
        "protocol": 17
    }, {
        "from": "5.5.5.5",
        "to": "6.6.6.6",
        "port": 1234,
        "protocol": 17
    }]
}

XML

URL http://ip:port/shunra/api/configuration/excludelist
HTTP Method POST
HTTP Headers

Content-Type: application/xml

Accept: application/xml

Authorization: See Web Services Authentication.

Body
<excludeRangesList>
    <rangesCollection>
        <From>1.1.1.1</From>
        <To>2.2.2.2</To>
        <Protocol>17</Protocol>
        <Port>5555</Port>
    </rangesCollection>
    <rangesCollection>
        <From>5.5.5.5</From>
        <To>6.6.6.6</To>
        <Protocol>17</Protocol>
        <Port>1234</Port>
    </rangesCollection>
</excludeRangesList>

Response

HTTP Response Code 204 - No content
HTTP Headers  
HTTP Body