Add Exclude IP/PORT Range

Adds a range to be excluded from all running tests. This is a general configuration that affects all tests.

This setting aggregates definitions in the .ntxx file and excludes ranges in all tests.

  • protocol: is an integer number based on the following protocol list:
    http://en.wikipedia.org/wiki/List_of_IP_protocol_numbers
    If protocol is not given, the default value is all protocols.
  • Port: port resolution is available only for TCP and UDP (6 & 17). If the port is not given, the default value is all ports.

Request

JSON

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

Content-Type: application/json

Accept: application/json

Authorization: See Web Services Authentication.

Body
{
    "from": "1.1.1.1",
    "to": "2.2.2.2",
    "port": 5555,
    "protocol": 17
}

XML

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

Content-Type: application/xml

Accept: application/xml

Authorization: See Web Services Authentication.

Body
<ExcludeRanges>
    <From>1.1.1.1</From>
    <To>2.2.2.2</To>
    <Protocol>17</Protocol>
    <Port>5555</Port>
</ExcludeRanges>

 

Response

HTTP Response Code 204 - No content
HTTP Headers  
HTTP Body