Get All Exclude IP/Port Ranges

This API is designed to get all currently configured excluded ranges in the driver.

Request

JSON

URL http://ip:port/shunra/api/configuration/exclude
HTTP Method GET
HTTP Headers

Content-Type: application/json

Accept: application/json

Authorization: See Web Services Authentication.

Body None

XML

URL http://ip:port/shunra/api/configuration/exclude
HTTP Method GET
HTTP Headers

Content-Type: application/xml

Accept: application/xml

Authorization: See Web Services Authentication.

Body None

 

Response

JSON

HTTP Response Code 200 - OK
HTTP Headers

Date: Thu, 15 Mar 2014 15:36:11 GMT

Content-Type: application/json; charset=UTF-8

Accept-Ranges: bytes

HTTP Body
{
    "rangesCollection": [{
        "from": "192.168.0.101",
        "to": "192.168.0.101",
        "protocol": 6,
        "port": 8182
    }, {
        "from": "0.0.0.1",
        "to": "255.255.255.255",
        "protocol": 6,
        "port": 1947
    }, {
        "from": "0.0.0.1",
        "to": "255.255.255.255",
        "protocol": 17,
        "port": 1947
    }]
}

XML

HTTP Response Code 200 - OK
HTTP Headers

Date: Thu, 15 Mar 2014 15:36:11 GMT

Content-Type: application/xml; charset=UTF-8

Accept-Ranges: bytes

HTTP Body
<excludeRangesList>
    <rangesCollection>
        <From>192.168.0.101</From>
        <To>192.168.0.101</To>
        <Protocol>6</Protocol>
        <Port>8182</Port>
    </rangesCollection>
    <rangesCollection>
        <From>0.0.0.1</From>
        <To>255.255.255.255</To>
        <Protocol>6</Protocol>
        <Port>1947</Port>
    </rangesCollection>
    <rangesCollection>
        <From>0.0.0.1</From>
        <To>255.255.255.255</To>
        <Protocol>17</Protocol>
        <Port>1947</Port>
    </rangesCollection>
</excludeRangesList>