Returns the list of all the VpnConnection currently active under this account.
media type | data type | description |
---|---|---|
application/json | VpnConnectionsResult (JSON) | The list of active VpnConnections. |
application/xml | vpnConnectionsResult (XML) |
GET /vpn/connections
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"vpnConnection" : [ {
"id" : 12345,
"accountId" : 12345,
"createdOn" : 12345,
"modifiedOn" : 12345,
"userId" : 12345,
"deviceId" : "...",
"inetAddress" : "...",
"optlock" : 12345
}, {
"id" : 12345,
"accountId" : 12345,
"createdOn" : 12345,
"modifiedOn" : 12345,
"userId" : 12345,
"deviceId" : "...",
"inetAddress" : "...",
"optlock" : 12345
} ]
}
Sends a VPN connect request to the device identified by the specified clientId. To be able to process the request, the device must be connected to the Everyware Cloud and have the Everyware Software Framework with the VPN Remote Access bundle installed and configured. Upon receiving the request, the device will start a VPN connection to the specified VPN server. The call returns the status of the VPN Connection of such device at the end of the operation.
name | type | description |
---|---|---|
clientId | path | The client ID of the device whose VPN connect is requested. |
media type | data type | description |
---|---|---|
application/json | VpnClientStatus (JSON) | The resulting VpnClientStatus object. |
application/xml | vpnClientStatus (XML) |
POST /vpn/connect/{clientId}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 201 Created
Content-Type: application/json
{
"connected" : true,
"ipAddress" : "..."
}
Returns the details of the VpnConnection specified by the "vpnConnectionId" path parameter.
name | type | description | constraints |
---|---|---|---|
vpnConnectionId | path | The Id of the VpnConnection requested. | required |
media type | data type | description |
---|---|---|
application/json | VpnConnection (JSON) | The requested VpnConnection object. |
application/xml | vpnConnection (XML) |
GET /vpn/connections/{vpnConnectionId}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"id" : 12345,
"accountId" : 12345,
"createdOn" : 12345,
"modifiedOn" : 12345,
"userId" : 12345,
"deviceId" : "...",
"inetAddress" : "...",
"optlock" : 12345
}
Sends a VPN disconnect request to the device identified by the specified clientId. To be able to process the request, the device must be connected to the Everyware Cloud and have the Everyware Software Framework with the VPN Remote Access bundle installed and configured. Upon receiving the request, the device will stop the current VPN connection if one is active. The call returns the status of the VPN Connection of such device at the end of the operation.
name | type | description |
---|---|---|
clientId | path | The client ID of the device whose VPN disconnect is requested. |
media type | data type | description |
---|---|---|
application/json | VpnClientStatus (JSON) | The resulting VpnClientStatus object. |
application/xml | vpnClientStatus (XML) |
POST /vpn/disconnect/{clientId}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 201 Created
Content-Type: application/json
{
"connected" : true,
"ipAddress" : "..."
}
Returns the VPN connection status for the device identified by the specified clientId. To be able to process the request, the device must be connected to the Everyware Cloud and have the Everyware Software Framework with the VPN Remote Access bundle installed and configured. The call returns the status of the VPN Connection of such device at the end of the operation.
name | type | description |
---|---|---|
clientId | path | The client ID of the device whose VPN connection status is requested. |
media type | data type | description |
---|---|---|
application/json | VpnClientStatus (JSON) | The requested VpnClientStatus object. |
application/xml | vpnClientStatus (XML) |
GET /vpn/status/{clientId}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"connected" : true,
"ipAddress" : "..."
}