Get Active Adapter

This API returns the Active Adapter that was set previously; if a value is not selected, the default value in the system is used (this is the first IP that is returned by ’ipconfig’/’ifconfig’).

Request

JSON

URL http://ip:port/shunra/api/configuration/adapter/
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/adapter/
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
{
    "ip":"192.168.0.101","reverseDirection":false
}

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
<activeAdapter>
    <ip>192.168.0.101</ip>
    <reverseDirection>false</reverseDirection>
</activeAdapter>