WTI RESTful version v2
http://{url}
This API allows communication with WTI terminal consoles, OOB management and PDU systems. Examples can be found at https://github.com/wtinetworkgear (April24)
- url: required(one of devicelocation, 192.168.168.168, www.yourlocation.com)
/api/v2/status/temperature
Returns the current temperature in the default temperature type (Celsius or Fahrenheit), plus a timestamp is UTC time.
get /api/v2/status/temperature
Returns the current temperature in the default temperature type (Celsius or Fahrenheit), plus a timestamp is UTC time.
Each request must contain the headers necessary for basic authentication
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- status: required(object)
- code: required(integer)
Numeric status code of the completed action.
- text: required(string)
Text status code of the completed action.
Example:
{ "code": 0, "text": "OK" }
- code: required(integer)
- temperature: required(integer)
Current Temperature of the WTI Unit.
Example:
85
- format: required(one of F, C)
Denotes if the temperature is displayed in Farenheit or Celsius.
Example:
F
- timestamp: required(datetime)
ISO Timestamp of the unit time when temperature was read.
Example:
2019-07-18T17:45:02+00:00
Example:
{
"status": {
"code": 0,
"text": "OK"
},
"temperature": 78,
"format": "F",
"timestamp": "2019-07-18T17:45:02+00:00"
}
HTTP status code 400
bad input parameter
HTTP status code 401
unauthorized error
HTTP status code 403
Forbidden error, user does not have access to APIs
Secured by basicAuth
Headers
- Authorization: required(string)
Used to send the Base64-encoded "username:password" credentials
HTTP status code 401
Unauthorized. Either the provided username and password combination is invalid, or the user is not allowed to access the content provided by the requested URL.
/api/v2/status/firmware
Returns the current Firmware version.
get /api/v2/status/firmware
Returns the current Firmware version.
Each request must contain the headers necessary for basic authentication
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- status: required(object)
- code: required(integer)
Numeric status code of the completed action.
- text: required(string)
Text status code of the completed action.
Example:
{ "code": 0, "text": "OK" }
- code: required(integer)
- config: required(object)
- firmware: required(string)
Current version of the firmware.
Example:
6.57
- family: required(one of 0, 1)
Family of WTI Device. 0=Power, 1=Console.
Example:
0
- fips: required(one of 0, 1)
Current status of FIPs enabled.
Example:
1
- firmware: required(string)
Example:
{
"status": {
"code": 0,
"text": "OK"
},
"config": {
"firmware": "6.57",
"family": 0
}
}
HTTP status code 400
bad input parameter
HTTP status code 401
unauthorized error
HTTP status code 403
Forbidden error, user does not have access to APIs
Secured by basicAuth
Headers
- Authorization: required(string)
Used to send the Base64-encoded "username:password" credentials
HTTP status code 401
Unauthorized. Either the provided username and password combination is invalid, or the user is not allowed to access the content provided by the requested URL.
/api/v2/status/status
Returns the system parameters, including product name, software version, ethernet types and RAM/FLASH size.
get /api/v2/status/status
Returns the system parameters, including product name, software version, ethernet types and RAM/FLASH size.
Each request must contain the headers necessary for basic authentication
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- status: required(object)
- code: required(integer)
Numeric status code of the completed action.
- text: required(string)
Text status code of the completed action.
Example:
{ "code": 0, "text": "OK" }
- code: required(integer)
- product: required(string)
The official product name of the WTI Unit.
Example:
CPM-800-1-EA
- totalports: (integer)
Total Serial ports that are accessible.
Example:
9
- totalplugs: (integer)
Total Power Plugs that are accessible.
Example:
8
- softwareversion: (string)
The Current software version of the WTI unit
Example:
6.51
- serialnumber: (string)
The Serial Number of the WTI unit
Example:
123456c
- siteid: (string - maxLength: 64)
Any AlphaNumeric text string describing the WTI unit that will appear in status displays
Example:
DSM-Tag12
- assettag: (string)
Any AlphaNumeric text string describing the WTI unit
Example:
building24
- analogmodemphonenumber: (string)
If the unit has a modem, this is the phone number of the modem.
Example:
949-555-1212
- modeminstalled: (string)
Signifies if there is a modem and what type of modem.
Example:
Yes, LTE/4G
- gig_dualphy: (string)
Example:
Yes, Yes / No
- cpu_boardprogramdate: (string)
What kind of processor is running inside the unit and what version the internal microcode is reporting.
Example:
ARM, 1-14-2016
- ram_flash: (string)
Total RAM and total FLASH available for internal program functions.
Example:
512 MB, 128 MB
- lineinputcount_rating: (string)
Number of power lines active and Amps per a line.
Example:
1, 20 Amps
- currentmonitor: (string)
Does this unit support Current monitoring.
Example:
Yes
- keylength: (string)
Current key lengths of the system keys.
Example:
2048
- opensslversion: (string)
Current version of the OpenSSL program.
Example:
1.0.2o-fips 27 Mar 2018
- opensshversion: (string)
Current version of the SSH server program.
Example:
7.6p1
- openvpnversion: (string)
Current version of the IPSec VPN server program.
Example:
2.5.7
- apacheversion: (string)
Current version of the Apache Web server program.
Example:
2.4.33
- apirelease: (string)
Current version of the RESTful interfaces supported.
Example:
v1.0, v2 (Dec24)
- uptime: (number)
Current version of the RESTful interfaces supported.
Example:
6221947.35
- option1: (string)
Example:
[object Object]
- option2: (string)
Example:
[object Object]
- option1/2: (string)
Example:
[object Object]
- option3: (string)
Example:
[object Object]
- option4: (string)
Example:
[object Object]
- option3/4: (string)
Example:
[object Object]
- macaddresses: (array of object)
Items: items
- mac: required(string)
MAC address assignment of an ethernet port.
Example:
00-00-00-00-00-00
- mac: required(string)
Example:
{
"status": {
"code": 0,
"text": "OK"
},
"product": "CPM-800-1-EA",
"totalports": 9,
"totalplugs": 9,
"softwareversion": "6.51 3-Aug-2019",
"serialnumber": "(undefined)",
"assettag": "(undefined)",
"analogmodemphonenumber": "",
"modeminstalled": "Yes, 4G/LTE",
"gig_dualphy": "Yes, Yes",
"cpu_boardprogramdate": "ARM / 4-20-2019",
"ram_flash": "512 MB / 128 MB",
"lineinputcount_rating": "1 / 20 Amps",
"currentmonitor": "No",
"keylength": "2048",
"opensslversion": "1.0.2l-fips 25 May 2019",
"opensshversion": "7.5p1",
"apacheversion": "2.4.27",
"openvpnversion": "2.5.7",
"apirelease": "v1.0, v2 (Dec24)",
"uptime": 6221947.35,
"option1": "W4G-VZW-CPM8",
"macaddresses": [
{
"mac": "1c-ba-8c-e0-cf-b4"
}
]
}
HTTP status code 400
bad input parameter
HTTP status code 401
unauthorized error
HTTP status code 403
Forbidden error, user does not have access to APIs
Secured by basicAuth
Headers
- Authorization: required(string)
Used to send the Base64-encoded "username:password" credentials
HTTP status code 401
Unauthorized. Either the provided username and password combination is invalid, or the user is not allowed to access the content provided by the requested URL.
/api/v2/status/alarms
Returns the status of all the alarms.
get /api/v2/status/alarms
Returns the status of all the alarms.
Each request must contain the headers necessary for basic authentication
HTTP status code 200
Current alarms status of the unit
Body
Media type: application/json
Type: object
Properties- status: required(object)
- code: required(integer)
Numeric status code of the completed action.
- text: required(string)
Text status code of the completed action.
Example:
{ "code": 0, "text": "OK" }
- code: required(integer)
- alarms: required(array of object)
Items: Alarms
- name: required(string)
Name of the Alarm Action.
Example:
OVER TEMPERATURE (INITIAL)
- status: required(one of 0, 1, 2, 3)
0=Alarm Off, 1=Alarm Off / Pending On, 2=Alarm On, 3=Alarm On / Pending Off.
Example:
0
- name: required(string)
Example:
{
"status": {
"code": 0,
"text": "OK"
},
"alarms": {
"name": "OVER TEMP (INITIAL)",
"status": 0
}
}
HTTP status code 400
bad input parameter
HTTP status code 401
unauthorized error
HTTP status code 403
Forbidden error, user does not have access to APIs
Secured by basicAuth
Headers
- Authorization: required(string)
Used to send the Base64-encoded "username:password" credentials
HTTP status code 401
Unauthorized. Either the provided username and password combination is invalid, or the user is not allowed to access the content provided by the requested URL.
/api/v2/config/powerplug
By passing in the appropriate options, you can search for available plug in the system.
Controls a Plug by Number or Name by passing a new state of the plug.
get /api/v2/config/powerplug
By passing in the appropriate options, you can search for available plug in the system.
Each request must contain the headers necessary for basic authentication
Query Parameters
- plug: (string)
Pass an optional search string for looking a plug, otherwise all plugs get returned.
Example:
1 or Outlet_A2
HTTP status code 200
Plug matching criteria
Body
Media type: application/json
Type: object
Properties- status: required(object)
- code: required(integer)
Numeric status code of the completed action.
- text: required(string)
Text status code of the completed action.
Example:
{ "code": 0, "text": "OK" }
- code: required(integer)
- powerplugs: required(object)
- plug: (integer)
Plug number being described.
Example:
1
- plugname: (string - maxLength: 24)
Plug name being described.
Example:
Outlet_A1
- state: (one of on, off, boot, default)
Current state of the plug described.
Example:
off
- busy: (one of 0, 1)
If the plug is currently changing states. 0=no, 1=yes
Example:
0
- bootdelay: (one of 0, 1, 2, 3, 4, 5, 6, 7, 8, 9)
On a reboot command, this is the delay time when a plug will turn on power, after it has been turned off. 0='0.5 Secs', 1='1 Sec', 2='2 Sec', 3='5 Sec', 4='15 Sec', 5='30 Sec', 6='1 Min', 7='2 Mins', 8='3 Mins', 9='5 Mins'
Example:
2
- priority: (one of 1, 2, 3, 4, 5, 6, 7, 8)
Prioritizes which plug gets its state changed first. The lower the number the higher the priority.
Example:
1
- plugoffreason: (one of 0, 1, 2, 3, 4, 5)
The reason the plug was last turned off or rebooted. 0 - Power Up, 1 - User Action, 2 - PNA, 3 - External Alarm, 4 - Circuit Switch, 5 - Contact Switch
Example:
0
- current: (integer)
If this plug supports individual current reporting. will display current AMPs use by the port.
Example:
0
- plug: (integer)
- plugdatacount: required(integer)
Number of plugs returned with the query. Valid value can from 1 to the maximum number of plugs of the WTI unit.
Example:
1
HTTP status code 400
bad input parameter
HTTP status code 401
unauthorized error
HTTP status code 403
Forbidden error, user does not have access to APIs
Secured by basicAuth
Headers
- Authorization: required(string)
Used to send the Base64-encoded "username:password" credentials
HTTP status code 401
Unauthorized. Either the provided username and password combination is invalid, or the user is not allowed to access the content provided by the requested URL.
post /api/v2/config/powerplug
Controls a Plug by Number or Name by passing a new state of the plug.
Each request must contain the headers necessary for basic authentication
Body
Media type: application/json
Type: object
Properties- plug: (integer)
Plug number whos state to change. Valid value can from 1 to the maximum number of plugs of the WTI unit.
Example:
1
- plugname: (string)
Plug name whos state to change.
Example:
Outlet_A1
- state: required(one of on, off, boot, default)
The action to take on the plug specified.
Example:
boot
Example:
{
"plug": 1,
"plugname": "Outlet_A1",
"state": "boot"
}
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- status: required(object)
- code: required(integer)
Numeric status code of the completed action.
- text: required(string)
Text status code of the completed action.
Example:
{ "code": 0, "text": "OK" }
- code: required(integer)
- powerplugs: required(object)
- plug: (integer)
Plug number being described.
Example:
1
- plugname: (string - maxLength: 24)
Plug name being described.
Example:
Outlet_A1
- state: (one of on, off, boot, default)
Current state of the plug described.
Example:
off
- busy: (one of 0, 1)
If the plug is currently changing states. 0=no, 1=yes
Example:
0
- bootdelay: (one of 0, 1, 2, 3, 4, 5, 6, 7, 8, 9)
On a reboot command, this is the delay time when a plug will turn on power, after it has been turned off. 0='0.5 Secs', 1='1 Sec', 2='2 Sec', 3='5 Sec', 4='15 Sec', 5='30 Sec', 6='1 Min', 7='2 Mins', 8='3 Mins', 9='5 Mins'
Example:
2
- priority: (one of 1, 2, 3, 4, 5, 6, 7, 8)
Prioritizes which plug gets its state changed first. The lower the number the higher the priority.
Example:
1
- plugoffreason: (one of 0, 1, 2, 3, 4, 5)
The reason the plug was last turned off or rebooted. 0 - Power Up, 1 - User Action, 2 - PNA, 3 - External Alarm, 4 - Circuit Switch, 5 - Contact Switch
Example:
0
- current: (integer)
If this plug supports individual current reporting. will display current AMPs use by the port.
Example:
0
- plug: (integer)
- plugdatacount: required(integer)
Number of plugs returned with the query. Valid value can from 1 to the maximum number of plugs of the WTI unit.
Example:
1
Example:
{
"status": {
"code": 0,
"text": "OK"
},
"powerplugs": {
"plug": 1,
"plugname": "Outlet_A1",
"state": "off",
"busy": 1,
"bootdelay": 2,
"priority": 1,
"plugoffreason": 0,
"current": 0
},
"plugdatacount": 1
}
HTTP status code 400
invalid input, object invalid
HTTP status code 401
unauthorized error
HTTP status code 403
Forbidden error, user does not have access to APIs
Secured by basicAuth
Headers
- Authorization: required(string)
Used to send the Base64-encoded "username:password" credentials
HTTP status code 401
Unauthorized. Either the provided username and password combination is invalid, or the user is not allowed to access the content provided by the requested URL.
/api/v2/config/powerplugconfig
By passing in the appropriate options, you can search for available plugs in the system.
Configure various Plug Parameters by Plug Number by passing a new configuration of the plug.
get /api/v2/config/powerplugconfig
By passing in the appropriate options, you can search for available plugs in the system.
Each request must contain the headers necessary for basic authentication
Query Parameters
- plug: (string)
Pass an optional plug number for which plug to query, otherwise all plugs get returned.
Example:
1
HTTP status code 200
Plug matching criteria
Body
Media type: application/json
Type: object
Properties- status: required(object)
- code: required(integer)
Numeric status code of the completed action.
- text: required(string)
Text status code of the completed action.
Example:
{ "code": 0, "text": "OK" }
- code: required(integer)
- powerplugs: required(object)
- plug: (integer)
Plug number being described.
Example:
1
- plugname: (string - maxLength: 24)
Name of the Plug being described.
Example:
Outlet_A1
- state: (one of on, off, boot, default)
Current state of the plug described.
Example:
off
- busy: (one of 0, 1)
If the plug is currently changing states. 0=no, 1=yes
Example:
0
- bootdelay: (one of 0, 1, 2, 3, 4, 5, 6, 7, 8, 9)
On a reboot command, this is the delay time when a plug will turn on power, after it has been turned off. 0='0.5 Secs', 1='1 Sec', 2='2 Sec', 3='5 Sec', 4='15 Sec', 5='30 Sec', 6='1 Min', 7='2 Mins', 8='3 Mins', 9='5 Mins'
Example:
3
- priority: (one of 1, 2, 3, 4, 5, 6, 7, 8)
Prioritizes which plug gets its state changed first. The lower the number the higher the priority.
Example:
1
- default: (one of 0, 1)
What the Plugs default state is when the device starts. 0 - Off, 1 - On
Example:
0
- plugoffreason: (one of 0, 1, 2, 3, 4, 5)
The reason the plug was last turned off or rebooted. 0 - Power Up, 1 - User Action, 2 - PNA, 3 - External Alarm, 4 - Circuit Switch, 5 - Contact Switch
Example:
0
- current: (integer)
If this plug supports individual current reporting. will display current AMPs use by the port.
Example:
0
- plug: (integer)
- plugdatacount: required(integer)
Number of plugs returned with the query. Valid value can from 1 to the maximum number of plugs of the WTI unit.
Example:
1
HTTP status code 400
bad input parameter
HTTP status code 401
unauthorized error
HTTP status code 403
Forbidden error, user does not have access to APIs
Secured by basicAuth
Headers
- Authorization: required(string)
Used to send the Base64-encoded "username:password" credentials
HTTP status code 401
Unauthorized. Either the provided username and password combination is invalid, or the user is not allowed to access the content provided by the requested URL.
post /api/v2/config/powerplugconfig
Configure various Plug Parameters by Plug Number by passing a new configuration of the plug.
Each request must contain the headers necessary for basic authentication
Body
Media type: application/json
Type: object
Properties- plug: required(integer)
Plug number whos parameters to change. Valid value can from 1 to the maximum number of plugs of the WTI unit.
Example:
1
- plugname: (string)
The new name of the Plug.
Example:
Outlet_A1
- bootdelay: (one of 0, 1, 2, 3, 4, 5, 6, 7, 8, 9)
On a reboot command, this is the delay time when a plug will turn on power, after it has been turned off. 0='0.5 Secs', 1='1 Sec', 2='2 Sec', 3='5 Sec', 4='15 Sec', 5='30 Sec', 6='1 Min', 7='2 Mins', 8='3 Mins', 9='5 Mins'
Example:
1
- default: (one of 0, 1)
What the Plugs default state is when the device starts. 0 - Off, 1 - On
Example:
1
- bootpriority: (integer)
Prioritizes which plug gets its state changed first. The lower the number the higher the priority. Valid value can from 1 to the maximum number of plugs of the WTI unit.
Example:
1
Example:
{
"plug": 1,
"plugname": "Outlet_A1",
"bootdelay": 0,
"default": 0,
"bootpriority": 2
}
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- status: required(object)
- code: required(integer)
Numeric status code of the completed action.
- text: required(string)
Text status code of the completed action.
Example:
{ "code": 0, "text": "OK" }
- code: required(integer)
- powerplugs: required(object)
- plug: (integer)
Plug number being described.
Example:
1
- plugname: (string - maxLength: 24)
Name of the Plug being described.
Example:
Outlet_A1
- state: (one of on, off, boot, default)
Current state of the plug described.
Example:
off
- busy: (one of 0, 1)
If the plug is currently changing states. 0=no, 1=yes
Example:
0
- bootdelay: (one of 0, 1, 2, 3, 4, 5, 6, 7, 8, 9)
On a reboot command, this is the delay time when a plug will turn on power, after it has been turned off. 0='0.5 Secs', 1='1 Sec', 2='2 Sec', 3='5 Sec', 4='15 Sec', 5='30 Sec', 6='1 Min', 7='2 Mins', 8='3 Mins', 9='5 Mins'
Example:
3
- priority: (one of 1, 2, 3, 4, 5, 6, 7, 8)
Prioritizes which plug gets its state changed first. The lower the number the higher the priority.
Example:
1
- default: (one of 0, 1)
What the Plugs default state is when the device starts. 0 - Off, 1 - On
Example:
0
- plugoffreason: (one of 0, 1, 2, 3, 4, 5)
The reason the plug was last turned off or rebooted. 0 - Power Up, 1 - User Action, 2 - PNA, 3 - External Alarm, 4 - Circuit Switch, 5 - Contact Switch
Example:
0
- current: (integer)
If this plug supports individual current reporting. will display current AMPs use by the port.
Example:
0
- plug: (integer)
- plugdatacount: required(integer)
Number of plugs returned with the query. Valid value can from 1 to the maximum number of plugs of the WTI unit.
Example:
1
Example:
{
"status": {
"code": 0,
"text": "OK"
},
"powerplugs": {
"plug": 1,
"plugname": "Outlet_A1",
"state": "off",
"busy": 1,
"bootdelay": 1,
"default": 0,
"priority": 1,
"plugoffreason": 0,
"current": 0
},
"plugdatacount": 1
}
HTTP status code 400
invalid input, object invalid
HTTP status code 401
unauthorized error
HTTP status code 403
Forbidden error, user does not have access to APIs
Secured by basicAuth
Headers
- Authorization: required(string)
Used to send the Base64-encoded "username:password" credentials
HTTP status code 401
Unauthorized. Either the provided username and password combination is invalid, or the user is not allowed to access the content provided by the requested URL.
/api/v2/config/current
By passing in the appropriate datetimes, you can extract the Current data over a certain time period. If not datetimes are passed, the realtime current is returned.
get /api/v2/config/current
By passing in the appropriate datetimes, you can extract the Current data over a certain time period. If not datetimes are passed, the realtime current is returned.
Each request must contain the headers necessary for basic authentication
Query Parameters
- startdate: (string)
The date where you want to start searching for the Current values. Must be formatted as Month-Day-Year, where Month and Day are two digits and the Year is four digits. If startdate AND enddate are omitted then the realtime current is returned. If startdate is present, enddate must also be present.
Example:
02-03-2018
- enddate: (string)
The date where you want to end searching for the Current values. Must be formatted as Month-Day-Year, where Month and Day are two digits and the Year is four digits. If startdate AND enddate are omitted then the realtime current is returned. If enddate is present, startdate must also be present.
Example:
02-20-2018
HTTP status code 200
Plug matching criteria
Body
Media type: application/json
Type: object
Properties- status: required(object)
- code: required(integer)
Numeric status code of the completed action.
- text: required(string)
Text status code of the completed action.
Example:
{ "code": 0, "text": "OK" }
- code: required(integer)
- timestamp: required(datetime)
ISO Timestamp of the unit time when Current parameters were read.
Example:
2019-07-18T17:45:02+00:00
- powerunit: required(integer)
If this unit is capable of reporting power and current. 0=Power Unit, 1=Power Unit
Example:
1
- outletmetering: (integer)
If this unit can report Current and Power per a port basis.
Example:
1
- ats: (integer)
ATS capable means if one of the plugs is removed, the other plug distributres power to the other plugs in the removed plugs branch.
Example:
1
- branchcount: (integer)
Total Branches the unit has.
Example:
1
- plugcount: (integer)
Total Plugs that are accessible.
Example:
8
- powerfactor: (integer)
Power Factor, this can be any whole number from 1 through 100.
Example:
100
- powereff: (integer)
Power Efficiency, this can be any whole number from 1 through 100
Example:
100
- powerdatacount: (integer)
Number of Current datapoints that are to follow.
Example:
45
- powerdata: required(object)
- timestamp: required(datetime)
ISO Timestamp of the WTI unit time when the Current values were recorded.
Example:
2019-07-18T17:45:02+00:00
- temperature: required(integer)
Temperature of the WTI Unit when the timestamp was recorded.
Example:
85
- format: required(one of C, F)
Denotes if the temperature is displayed in Farenheit or Celsius.
Example:
F
- branch1: required(object)
- voltage1: (number)
Voltage Position 1 of the WTI Unit when the timestamp was recorded
Example:
112
- voltage2: (number)
Voltage Position 2 of the WTI Unit when the timestamp was recorded
Example:
112
- voltage3: (number)
Voltage Position 3 of the WTI Unit when the timestamp was recorded
Example:
112
- voltage4: (number)
Voltage Position 4 of the WTI Unit when the timestamp was recorded
Example:
112
- current1: required(number)
Current Position 1 of the WTI Unit when the timestamp was recorded
Example:
6
- current2: required(number)
Current Position 2 of the WTI Unit when the timestamp was recorded
Example:
6
- current3: (number)
Current Position 3 of the WTI Unit when the timestamp was recorded
Example:
6
- current4: (number)
Current Position 4 of the WTI Unit when the timestamp was recorded
Example:
6
Example:
{ "voltage1": 112, "voltage2": 112, "current1": 6, "current2": 6 }
- voltage1: (number)
- branch2: required(object)
- voltage1: (number)
Voltage Position 1 of the WTI Unit when the timestamp was recorded
Example:
112
- voltage2: (number)
Voltage Position 2 of the WTI Unit when the timestamp was recorded
Example:
112
- voltage3: (number)
Voltage Position 3 of the WTI Unit when the timestamp was recorded
Example:
112
- voltage4: (number)
Voltage Position 4 of the WTI Unit when the timestamp was recorded
Example:
112
- current1: required(number)
Current Position 1 of the WTI Unit when the timestamp was recorded
Example:
6
- current2: required(number)
Current Position 2 of the WTI Unit when the timestamp was recorded
Example:
6
- current3: (number)
Current Position 3 of the WTI Unit when the timestamp was recorded
Example:
6
- current4: (number)
Current Position 4 of the WTI Unit when the timestamp was recorded
Example:
6
Example:
{ "voltage1": 112, "voltage2": 112, "current1": 6, "current2": 6 }
- voltage1: (number)
- branch3: required(object)
- voltage1: (number)
Voltage Position 1 of the WTI Unit when the timestamp was recorded
Example:
112
- voltage2: (number)
Voltage Position 2 of the WTI Unit when the timestamp was recorded
Example:
112
- voltage3: (number)
Voltage Position 3 of the WTI Unit when the timestamp was recorded
Example:
112
- voltage4: (number)
Voltage Position 4 of the WTI Unit when the timestamp was recorded
Example:
112
- current1: required(number)
Current Position 1 of the WTI Unit when the timestamp was recorded
Example:
6
- current2: required(number)
Current Position 2 of the WTI Unit when the timestamp was recorded
Example:
6
- current3: (number)
Current Position 3 of the WTI Unit when the timestamp was recorded
Example:
6
- current4: (number)
Current Position 4 of the WTI Unit when the timestamp was recorded
Example:
6
Example:
{ "voltage1": 112, "voltage2": 112, "current1": 6, "current2": 6 }
- voltage1: (number)
- branch4: required(object)
- voltage1: (number)
Voltage Position 1 of the WTI Unit when the timestamp was recorded
Example:
112
- voltage2: (number)
Voltage Position 2 of the WTI Unit when the timestamp was recorded
Example:
112
- voltage3: (number)
Voltage Position 3 of the WTI Unit when the timestamp was recorded
Example:
112
- voltage4: (number)
Voltage Position 4 of the WTI Unit when the timestamp was recorded
Example:
112
- current1: required(number)
Current Position 1 of the WTI Unit when the timestamp was recorded
Example:
6
- current2: required(number)
Current Position 2 of the WTI Unit when the timestamp was recorded
Example:
6
- current3: (number)
Current Position 3 of the WTI Unit when the timestamp was recorded
Example:
6
- current4: (number)
Current Position 4 of the WTI Unit when the timestamp was recorded
Example:
6
Example:
{ "voltage1": 112, "voltage2": 112, "current1": 6, "current2": 6 }
- voltage1: (number)
Example:
{ "timestamp": "2019-07-18T17:45:02+00:00", "temperature": 85, "format": "F", "branch1": { "voltage1": 112, "voltage2": 117, "current1": 0, "current2": 0 }, "branch2": { "voltage1": 0, "voltage2": 0, "current1": 0, "current2": 0 }, "branch3": { "voltage1": 0, "voltage2": 0, "current1": 0, "current2": 0 }, "branch4": { "voltage1": 0, "voltage2": 0, "current1": 0, "current2": 0 } }
- timestamp: required(datetime)
HTTP status code 400
bad input parameter
HTTP status code 401
unauthorized error
HTTP status code 403
Forbidden error, user does not have access to APIs
Secured by basicAuth
Headers
- Authorization: required(string)
Used to send the Base64-encoded "username:password" credentials
HTTP status code 401
Unauthorized. Either the provided username and password combination is invalid, or the user is not allowed to access the content provided by the requested URL.
/api/v2/config/power
By passing in the appropriate datetimes, you can extract the Power data over a certain time period. If not datetimes are passed, the realtime power is returned.
get /api/v2/config/power
By passing in the appropriate datetimes, you can extract the Power data over a certain time period. If not datetimes are passed, the realtime power is returned.
Each request must contain the headers necessary for basic authentication
Query Parameters
- startdate: (string)
The date where you want to start searching for the Power values. Must be formatted as Month-Day-Year, where Month and Day are two digits and the Year is four digits. If startdate AND enddate are omitted then the realtime power is returned. If startdate is present, enddate must also be present.
Example:
02-03-2018
- enddate: (string)
The date where you want to end searching for the Power values. Must be formatted as Month-Day-Year, where Month and Day are two digits and the Year is four digits. If startdate AND enddate are omitted then the realtime power is returned. If enddate is present, startdate must also be present.
Example:
02-20-2018
HTTP status code 200
Plug matching criteria
Body
Media type: application/json
Type: object
Properties- status: required(object)
- code: required(integer)
Numeric status code of the completed action.
- text: required(string)
Text status code of the completed action.
Example:
{ "code": 0, "text": "OK" }
- code: required(integer)
- timestamp: required(datetime)
ISO Timestamp of the unit time when Current parameters were read.
Example:
2019-07-18T17:45:02+00:00
- powerunit: required(integer)
If this unit is capable of reporting power and current. 0=Power Unit, 1=Power Unit
Example:
1
- outletmetering: (integer)
If this unit can report Current and Power per a port basis.
Example:
1
- ats: (integer)
ATS capable means if one of the plugs is removed, the other plug distributres power to the other plugs in the removed plugs branch.
Example:
1
- branchcount: (integer)
Total Branches the unit has.
Example:
1
- plugcount: (integer)
Total Plugs that are accessible.
Example:
8
- powerfactor: (integer)
Power Factor, this can be any whole number from 1 through 100.
Example:
100
- powereff: (integer)
Power Efficiency, this can be any whole number from 1 through 100
Example:
100
- powerdatacount: (integer)
Number of Current datapoints that are to follow.
Example:
45
- powerdata: required(object)
- timestamp: required(datetime)
ISO Timestamp of the WTI unit time when the Power values were recorded.
Example:
2019-07-18T17:45:02+00:00
- branch1: required(object)
- voltage1: (number)
Voltage Position 1 of the WTI Unit when the timestamp was recorded
Example:
112
- current1: required(number)
Current Position 1 of the WTI Unit when the timestamp was recorded
Example:
6
- current2: required(number)
Current Position 2 of the WTI Unit when the timestamp was recorded
Example:
6
- current3: (number)
Current Position 3 of the WTI Unit when the timestamp was recorded
Example:
6
- current4: (number)
Current Position 4 of the WTI Unit when the timestamp was recorded
Example:
6
Example:
{ "voltage1": 112, "current1": 6, "current2": 0, "current3": 0, "current4": 0 }
- voltage1: (number)
- branch2: required(object)
- voltage1: (number)
Voltage Position 1 of the WTI Unit when the timestamp was recorded
Example:
112
- current1: required(number)
Current Position 1 of the WTI Unit when the timestamp was recorded
Example:
6
- current2: required(number)
Current Position 2 of the WTI Unit when the timestamp was recorded
Example:
6
- current3: (number)
Current Position 3 of the WTI Unit when the timestamp was recorded
Example:
6
- current4: (number)
Current Position 4 of the WTI Unit when the timestamp was recorded
Example:
6
Example:
{ "voltage1": 112, "current1": 6, "current2": 0, "current3": 0, "current4": 0 }
- voltage1: (number)
- branch3: required(object)
- voltage1: (number)
Voltage Position 1 of the WTI Unit when the timestamp was recorded
Example:
112
- current1: required(number)
Current Position 1 of the WTI Unit when the timestamp was recorded
Example:
6
- current2: required(number)
Current Position 2 of the WTI Unit when the timestamp was recorded
Example:
6
- current3: (number)
Current Position 3 of the WTI Unit when the timestamp was recorded
Example:
6
- current4: (number)
Current Position 4 of the WTI Unit when the timestamp was recorded
Example:
6
Example:
{ "voltage1": 112, "current1": 6, "current2": 0, "current3": 0, "current4": 0 }
- voltage1: (number)
- branch4: required(object)
- voltage1: (number)
Voltage Position 1 of the WTI Unit when the timestamp was recorded
Example:
112
- current1: required(number)
Current Position 1 of the WTI Unit when the timestamp was recorded
Example:
6
- current2: required(number)
Current Position 2 of the WTI Unit when the timestamp was recorded
Example:
6
- current3: (number)
Current Position 3 of the WTI Unit when the timestamp was recorded
Example:
6
- current4: (number)
Current Position 4 of the WTI Unit when the timestamp was recorded
Example:
6
Example:
{ "voltage1": 112, "current1": 6, "current2": 0, "current3": 0, "current4": 0 }
- voltage1: (number)
Example:
{ "timestamp": "2019-07-18T17:45:02+00:00", "branch1": { "voltage1": 112, "current1": 117, "current2": 0, "current3": 0, "current4": 0 }, "branch2": { "voltage1": 0, "current1": 0, "current2": 0, "current3": 0, "current4": 0 }, "branch3": { "voltage1": 0, "current1": 0, "current2": 0, "current3": 0, "current4": 0 }, "branch4": { "voltage1": 0, "current1": 0, "current2": 0, "current3": 0, "current4": 0 } }
- timestamp: required(datetime)
HTTP status code 400
bad input parameter
HTTP status code 401
unauthorized error
HTTP status code 403
Forbidden error, user does not have access to APIs
Secured by basicAuth
Headers
- Authorization: required(string)
Used to send the Base64-encoded "username:password" credentials
HTTP status code 401
Unauthorized. Either the provided username and password combination is invalid, or the user is not allowed to access the content provided by the requested URL.
/api/v2/config/users
By passing in the appropriate options, you can search for available User in the system.
Adds a user to a unit.
Edits an existing user to a unit.
By passing in the appropriate options, you can delete a User from the unit.
get /api/v2/config/users
By passing in the appropriate options, you can search for available User in the system.
Each request must contain the headers necessary for basic authentication
Query Parameters
- username: required(string - maxLength: 32)
pass an optional search string for looking a User.
Example:
super
HTTP status code 200
User matching criteria
Body
Media type: application/json
Type: object
Properties- status: required(object)
- code: required(integer)
Numeric status code of the completed action.
- text: required(string)
Text status code of the completed action.
Example:
{ "code": 0, "text": "OK" }
- code: required(integer)
- users: required(object)
- username: required(string - minLength: 5 - maxLength: 32)
Name of the user that is being modified.
Example:
super
- newpasswd: (string - minLength: 5 - maxLength: 32)
Name of the user password that is being modified.
Example:
super
- accesslevel: (one of 0, 1, 2, 3)
User's permission level. 0=View Only, 1=User, 2=SuperUser, 3=Administrator.
Example:
0
- portaccess: (string - maxLength: 42)
Allow or Deny port access. 0=Deny Access, 1=allow access. Starting from Port 1 to the maximum number of ports of the WTI unit.
Example:
11111111
- plugaccess: (string - maxLength: 20)
Allow or Deny plug access. 0=Deny Access, 1=allow access. Starting from Port 1 to the maximum number of plugs of the WTI unit.
Example:
11111111
- groupaccess: (string - maxLength: 54)
Allow or Deny group access. 0=Deny Access, 1=allow access. Starting from group 1 to group 54.
Example:
11111111
- accessserial: (one of 0, 1)
Allow or Deny Login via the serial ports for this user.
Example:
0
- accessssh: (one of 0, 1)
Allow or Deny Login via SSH and Telnet for this user.
Example:
0
- accessweb: (one of 0, 1)
Allow or Deny Login via the Web interface for this user.
Example:
0
- accessoutbound: (one of 0, 1)
Allow or Deny outbound SSH and Telnet capabilities for this user.
Example:
0
- accessmonitor: (one of 0, 1)
Allow or Deny this user to be able to moniter Power on a WTI Power device.
Example:
0
- callbackphone: (string - maxLength: 32)
For modem Mode, this number will be dialed to confirm access after a user has dialed into the modem for security.
Example:
9495869950
- tokenkey: (string - minLength: 5 - maxLength: 64)
If allowing API access via a token, this will be the token created.
Example:
thisisarandomtoken
- tokenminutes: (integer)
If allowing API access via a token, this is the time length the token is valid. (1 - 1048320)
Example:
43200
- tokendate: (integer)
If allowing API access via a token, this is the expiration time in seconds from Epoch.
Example:
1697144087
- username: required(string - minLength: 5 - maxLength: 32)
Example:
{
"status": {
"code": 0,
"text": "OK"
},
"users": {
"username": "super",
"accesslevel": 3,
"portaccess": "11111111111111111111111111111",
"plugaccess": "11111111111111111111",
"groupaccess": "111111111111111111111111111111111111111111111111111111",
"accessserial": 1,
"accessssh": 1,
"accessweb": 1,
"accessoutbound": 1,
"accessmonitor": 1,
"callbackphone": "9495869950",
"tokenkey": "randomstringofcharacters",
"tokenminutes": 43200,
"tokendate": 1697144087
}
}
HTTP status code 400
bad input parameter
HTTP status code 401
unauthorized error
HTTP status code 403
Forbidden error, user does not have access to APIs
HTTP status code 409
an existing item does not exist
Secured by basicAuth
Headers
- Authorization: required(string)
Used to send the Base64-encoded "username:password" credentials
HTTP status code 401
Unauthorized. Either the provided username and password combination is invalid, or the user is not allowed to access the content provided by the requested URL.
post /api/v2/config/users
Adds a user to a unit.
Each request must contain the headers necessary for basic authentication
Body
Media type: application/json
Type: object
Properties- users: required(object)
- username: required(string - minLength: 5 - maxLength: 32)
Name of the user that is being modified.
Example:
super
- newpasswd: required(string - minLength: 5 - maxLength: 32)
Name of the user password that is being modified.
Example:
super
- accesslevel: (one of 0, 1, 2, 3)
User's permission level. 0=View Only, 1=User, 2=SuperUser, 3=Administrator.
Example:
0
- portaccess: (string - maxLength: 42)
Allow or Deny port access. 0=Deny Access, 1=allow access. Starting from Port 1 to the maximum number of ports of the WTI unit.
Example:
11111111
- plugaccess: (string - maxLength: 20)
Allow or Deny plug access. 0=Deny Access, 1=allow access. Starting from Port 1 to the maximum number of plugs of the WTI unit.
Example:
11111111
- groupaccess: (string - maxLength: 54)
Allow or Deny group access. 0=Deny Access, 1=allow access. Starting from group 1 to group 54.
Example:
11111111
- accessserial: (one of 0, 1)
Allow or Deny Login via the serial ports for this user.
Example:
0
- accessssh: (one of 0, 1)
Allow or Deny Login via SSH and Telnet for this user.
Example:
0
- accessweb: (one of 0, 1)
Allow or Deny Login via the Web interface for this user.
Example:
0
- accessoutbound: (one of 0, 1)
Allow or Deny outbound SSH and Telnet capabilities for this user.
Example:
0
- accessmonitor: (one of 0, 1)
Allow or Deny this user to be able to monitor Power on a WTI Power device.
Example:
0
- callbackphone: (string - maxLength: 32)
For modem Mode, this number will be dialed to confirm access after a user has dialed into the modem for security.
Example:
9495869950
- tokenkey: (string - minLength: 5 - maxLength: 64)
If allowing API access via a token, this will be the token created.
Example:
thisisarandomtoken
- tokenminutes: (integer)
If allowing API access via a token, this is the time length the token is valid. (1 - 1048320)
Example:
43200
- tokenrekey: (one of 0, 1)
If allowing API access via a token, this is the regeneration the token based on ther current date plus tokenminutes.
Example:
0
- username: required(string - minLength: 5 - maxLength: 32)
Example:
{
"users": {
"username": "super",
"newpasswd": "super",
"accesslevel": 3,
"portaccess": "11111111111111111111111111111",
"plugaccess": "11111111111111111111",
"groupaccess": "111111111111111111111111111111111111111111111111111111",
"accessserial": 1,
"accessssh": 1,
"accessweb": 1,
"accessoutbound": 1,
"accessmonitor": 1,
"callbackphone": "9495869950",
"tokenkey": "randomstringofcharacters",
"tokenminutes": 43200,
"tokenrekey": 1
}
}
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- status: required(object)
- code: required(integer)
Numeric status code of the completed action.
- text: required(string)
Text status code of the completed action.
Example:
{ "code": 0, "text": "OK" }
- code: required(integer)
- users: required(object)
- username: required(string - minLength: 5 - maxLength: 32)
Name of the user that is being modified.
Example:
super
- changes: required(integer)
"ORd bits describing what has been modified." "UserName: 1, Password: 2, Access Level: 4, Port Access Array: 8, Plug Access Array: 16, " "Plug Group Access: 32, Call back: 64, Serial Access: 128, SSH Access: 256, Web Access: 512," "SNMP Access: 1024, Outbound Access: 2048, Monitor Access: 4096, API Access 8192" "API Token: 16384, API Minutes: 32768, API Rekey: 65536", Got Username: "131072"
Example:
8196
- errorcode: required(integer)
Status code of this particular user action.
Example:
0
- username: required(string - minLength: 5 - maxLength: 32)
Example:
{
"status": {
"code": 0,
"text": "OK"
},
"users": {
"username": "super",
"changes": 3,
"errorcode": 0
}
}
HTTP status code 400
invalid input, object invalid
HTTP status code 401
unauthorized error
HTTP status code 403
Forbidden error, user does not have access to APIs
Secured by basicAuth
Headers
- Authorization: required(string)
Used to send the Base64-encoded "username:password" credentials
HTTP status code 401
Unauthorized. Either the provided username and password combination is invalid, or the user is not allowed to access the content provided by the requested URL.
put /api/v2/config/users
Edits an existing user to a unit.
Each request must contain the headers necessary for basic authentication
Body
Media type: application/json
Type: object
Properties- users: required(object)
- username: required(string - minLength: 5 - maxLength: 32)
Name of the user that is being modified.
Example:
super
- newpasswd: (string - minLength: 5 - maxLength: 32)
Name of the user password that is being modified.
Example:
super
- accesslevel: (one of 0, 1, 2, 3)
User's permission level. 0=View Only, 1=User, 2=SuperUser, 3=Administrator.
Example:
0
- portaccess: (string - maxLength: 42)
Allow or Deny port access. 0=Deny Access, 1=allow access. Starting from Port 1 to the maximum number of ports of the WTI unit.
Example:
11111111
- plugaccess: (string - maxLength: 20)
Allow or Deny plug access. 0=Deny Access, 1=allow access. Starting from Port 1 to the maximum number of plugs of the WTI unit.
Example:
11111111
- groupaccess: (string - maxLength: 54)
Allow or Deny group access. 0=Deny Access, 1=allow access. Starting from group 1 to group 54.
Example:
11111111
- accessserial: (one of 0, 1)
Allow or Deny Login via the serial ports for this user.
Example:
0
- accessssh: (one of 0, 1)
Allow or Deny Login via SSH and Telnet for this user.
Example:
0
- accessweb: (one of 0, 1)
Allow or Deny Login via the Web interface for this user.
Example:
0
- accessoutbound: (one of 0, 1)
Allow or Deny outbound SSH and Telnet capabilities for this user.
Example:
0
- accessmonitor: (one of 0, 1)
Allow or Deny this user to be able to moniter Power on a WTI Power device.
Example:
0
- callbackphone: (string - maxLength: 32)
For modem Mode, this number will be dialed to confirm access after a user has dialed into the modem for security.
Example:
9495869950
- tokenkey: (string - minLength: 5 - maxLength: 64)
If allowing API access via a token, this will be the token created.
Example:
thisisarandomtoken
- tokenminutes: (integer)
If allowing API access via a token, this is the time length the token is valid. (1 - 1048320)
Example:
43200
- tokenrekey: (one of 0, 1)
If allowing API access via a token, this is the regeneration the token based on ther current date plus tokenminutes.
Example:
0
- username: required(string - minLength: 5 - maxLength: 32)
Example:
{
"users": {
"username": "super",
"newpasswd": "super",
"accesslevel": 3,
"portaccess": "11111111111111111111111111111",
"plugaccess": "11111111111111111111",
"groupaccess": "111111111111111111111111111111111111111111111111111111",
"accessserial": 1,
"accessssh": 1,
"accessweb": 1,
"accessoutbound": 1,
"accessmonitor": 1,
"callbackphone": "9495869950",
"tokenkey": "randomstringofcharacters",
"tokenminutes": 43200,
"tokenrekey": 1
}
}
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- status: required(object)
- code: required(integer)
Numeric status code of the completed action.
- text: required(string)
Text status code of the completed action.
Example:
{ "code": 0, "text": "OK" }
- code: required(integer)
- users: required(object)
- username: required(string - minLength: 5 - maxLength: 32)
Name of the user that is being modified.
Example:
super
- changes: required(integer)
"ORd bits describing what has been modified." "UserName: 1, Password: 2, Access Level: 4, Port Access Array: 8, Plug Access Array: 16, " "Plug Group Access: 32, Call back: 64, Serial Access: 128, SSH Access: 256, Web Access: 512," "SNMP Access: 1024, Outbound Access: 2048, Monitor Access: 4096, API Access 8192" "API Token: 16384, API Minutes: 32768, API Rekey: 65536", Got Username: "131072"
Example:
8196
- errorcode: required(integer)
Status code of this particular user action.
Example:
0
- username: required(string - minLength: 5 - maxLength: 32)
Example:
{
"status": {
"code": 0,
"text": "OK"
},
"users": {
"username": "super",
"changes": 3,
"errorcode": 0
}
}
HTTP status code 400
invalid input, object invalid
HTTP status code 401
unauthorized error
HTTP status code 403
Forbidden error, user does not have access to APIs
HTTP status code 409
an existing item does not exist
Secured by basicAuth
Headers
- Authorization: required(string)
Used to send the Base64-encoded "username:password" credentials
HTTP status code 401
Unauthorized. Either the provided username and password combination is invalid, or the user is not allowed to access the content provided by the requested URL.
delete /api/v2/config/users
By passing in the appropriate options, you can delete a User from the unit.
Each request must contain the headers necessary for basic authentication
Query Parameters
- username: required(string - minLength: 5 - maxLength: 32)
Name of the user that is being deleted.
Example:
super
HTTP status code 200
User matching criteria
Body
Media type: application/json
Type: object
Properties- status: required(object)
- code: required(integer)
Numeric status code of the completed action.
- text: required(string)
Text status code of the completed action.
Example:
{ "code": 0, "text": "OK" }
- code: required(integer)
- users: required(object)
- username: required(string - minLength: 5 - maxLength: 32)
Name of the user that is being deleted.
Example:
super
- errorcode: required(integer)
Status code if this user was deleted.
Example:
0
- username: required(string - minLength: 5 - maxLength: 32)
Example:
{
"status": {
"code": 0,
"text": "OK"
},
"users": {
"username": "super",
"errorcode": 0
}
}
HTTP status code 400
bad input parameter
HTTP status code 401
unauthorized error
HTTP status code 403
Forbidden error, user does not have access to APIs
HTTP status code 409
an existing item does not exist
Secured by basicAuth
Headers
- Authorization: required(string)
Used to send the Base64-encoded "username:password" credentials
HTTP status code 401
Unauthorized. Either the provided username and password combination is invalid, or the user is not allowed to access the content provided by the requested URL.
/api/v2/config/serialports
By passing in the appropriate options, you can search for available port in the system. The modifying user needs SuperUser or Admin rights in the WTI Device to use this command.
Configure a Port by Number by passing a new configuration of the port. The modifying user needs SuperUser or Admin rights in the WTI Device to use this command.
get /api/v2/config/serialports
By passing in the appropriate options, you can search for available port in the system. The modifying user needs SuperUser or Admin rights in the WTI Device to use this command.
Each request must contain the headers necessary for basic authentication
Query Parameters
- plug: (string)
Pass an optional search string for a port, otherwise all ports get returned.
Example:
ports=1,2
HTTP status code 200
Port matching criteria
Body
Media type: application/json
Type: object
Properties- status: required(object)
- code: required(integer)
Numeric status code of the completed action.
- text: required(string)
Text status code of the completed action.
Example:
{ "code": 0, "text": "OK" }
- code: required(integer)
- serialports: required(object)
- port: required(integer)
Number of the port that is being displayed.
Example:
1
- portname: (string - minLength: 0 - maxLength: 24)
Name of the Port that is displayed.
Example:
Port1
- baud: (one of 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
Port's Baud Rate. 0=300, 1=1200, 2=2400, 3=4800, 4=9600, 5=19200, 6=38400, 7=57600, 8=115200, 9=230400, 10=460800.
Example:
0
- parity: (one of 0, 1, 2, 3, 4, 5)
Port's Data Bits/Parity Setting. 0=7-None, 1=7-Even, 2=7-Odd, 3=8-None, 4=8-Even, 5=8-Odd.
Example:
3
- stopbits: (one of 1, 2)
Port's Stop Bit Setting. 1=1 Stop Bit, 2=2 Stop Bit.
Example:
1
- handshake: (one of 0, 1, 2, 3)
Port's Handshaking Method. 0=None, 1=XON/XOFF, 2=RTS/CTS, 3=Both.
Example:
3
- mode: (one of 0, 1, 2, 3, 4)
Port Mode. 0=Any-to-Any. 1=Passive, 2=Buffer, 3=Modem, 4=ModemPPP.
Example:
0
- cmd: (one of 0, 1)
Port's Admin Mode. 0=Deny, 1=Permit.
Example:
0
- seq: (one of 1, 2, 3)
Port's Sequence Disconnect. 1=Three Characters (
before and after), 2=One Character Only, 3=Off Example:
1
- logoff: (string - maxLength: 2)
Port's Logoff character. If preceded by a ^ character, the sequence will be a control character. Used if seq is set to 0 or 1
Example:
^X
- tout: (one of 0, 1, 2, 3, 4, 5)
Port's Inactivity Timeout. 0=Off, 1=5 Min, 2=15 Min, 3=30 Min, 4=90 Min, 5=1 Min.
Example:
1
- echo: (one of 0, 1)
Port's Command Echo. 0=Off, 1=On
Example:
0
- break: (one of 0, 1)
If the Port passes a break sequence through. 0=No, 1=Yes
Example:
1
- connstatus: (string - maxLength: 16)
Port's current connection status. If Free or connected.
Example:
Free
- port: required(integer)
HTTP status code 400
bad input parameter
HTTP status code 401
unauthorized error
HTTP status code 403
Forbidden error, user does not have access to APIs
Secured by basicAuth
Headers
- Authorization: required(string)
Used to send the Base64-encoded "username:password" credentials
HTTP status code 401
Unauthorized. Either the provided username and password combination is invalid, or the user is not allowed to access the content provided by the requested URL.
put /api/v2/config/serialports
Configure a Port by Number by passing a new configuration of the port. The modifying user needs SuperUser or Admin rights in the WTI Device to use this command.
Each request must contain the headers necessary for basic authentication
Body
Media type: application/json
Type: object
Properties- serialports: required(object)
- port: required(integer)
Number of the port that is being displayed.
Example:
1
- portname: (string - minLength: 0 - maxLength: 24)
Name of the Port that is displayed.
Example:
Port1
- baud: (one of 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
Port's Baud Rate. 0=300, 1=1200, 2=2400, 3=4800, 4=9600, 5=19200, 6=38400, 7=57600, 8=115200, 9=230400, 10=460800.
Example:
0
- parity: (one of 0, 1, 2, 3, 4, 5)
Port's Data Bits/Parity Setting. 0=7-None, 1=7-Even, 2=7-Odd, 3=8-None, 4=8-Even, 5=8-Odd.
Example:
3
- stopbits: (one of 1, 2)
Port's Stop Bit Setting. 1=1 Stop Bit, 2=2 Stop Bit.
Example:
1
- handshake: (one of 0, 1, 2, 3)
Port's Handshaking Method. 0=None, 1=XON/XOFF, 2=RTS/CTS, 3=Both.
Example:
3
- mode: (one of 0, 1, 2, 3, 4)
Port Mode. 0=Any-to-Any. 1=Passive, 2=Buffer, 3=Modem, 4=ModemPPP.
Example:
0
- cmd: (one of 0, 1)
Port's Admin Mode. 0=Deny, 1=Permit.
Example:
0
- seq: (one of 1, 2, 3)
Port's Sequence Disconnect. 1=Three Characters (
before and after), 2=One Character Only, 3=Off Example:
1
- logoff: (string - maxLength: 2)
Port's Logoff character. If preceded by a ^ character, the sequence will be a control character. Used if seq is set to 0 or 1
Example:
^X
- tout: (one of 0, 1, 2, 3, 4, 5)
Port's Inactivity Timeout. 0=Off, 1=5 Min, 2=15 Min, 3=30 Min, 4=90 Min, 5=1 Min.
Example:
1
- echo: (one of 0, 1)
Port's Command Echo. 0=Off, 1=On
Example:
0
- break: (one of 0, 1)
If the Port passes a break sequence through. 0=No, 1=Yes
Example:
1
- port: required(integer)
Example:
{
"serialports": {
"port": 4,
"portname": "RouterLabel",
"baud": 7,
"handshake": 1,
"stopbits": 1,
"parity": 0,
"mode": 0,
"cmd": 0,
"seq": 1,
"tout": 1,
"echo": 0,
"break": 0,
"logoff": "^H"
}
}
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- status: required(object)
- code: required(integer)
Numeric status code of the completed action.
- text: required(string)
Text status code of the completed action.
Example:
{ "code": 0, "text": "OK" }
- code: required(integer)
- serialports: required(object)
- port: required(integer)
Number of the port that is being displayed.
Example:
1
- portname: (string - minLength: 0 - maxLength: 24)
Name of the Port that is displayed.
Example:
Port1
- baud: (one of 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
Port's Baud Rate. 0=300, 1=1200, 2=2400, 3=4800, 4=9600, 5=19200, 6=38400, 7=57600, 8=115200, 9=230400, 10=460800.
Example:
0
- parity: (one of 0, 1, 2, 3, 4, 5)
Port's Data Bits/Parity Setting. 0=7-None, 1=7-Even, 2=7-Odd, 3=8-None, 4=8-Even, 5=8-Odd.
Example:
3
- stopbits: (one of 1, 2)
Port's Stop Bit Setting. 1=1 Stop Bit, 2=2 Stop Bit.
Example:
1
- handshake: (one of 0, 1, 2, 3)
Port's Handshaking Method. 0=None, 1=XON/XOFF, 2=RTS/CTS, 3=Both.
Example:
3
- mode: (one of 0, 1, 2, 3, 4)
Port Mode. 0=Any-to-Any. 1=Passive, 2=Buffer, 3=Modem, 4=ModemPPP.
Example:
0
- cmd: (one of 0, 1)
Port's Admin Mode. 0=Deny, 1=Permit.
Example:
0
- seq: (one of 1, 2, 3)
Port's Sequence Disconnect. 1=Three Characters (
before and after), 2=One Character Only, 3=Off Example:
1
- logoff: (string - maxLength: 2)
Port's Logoff character. If preceded by a ^ character, the sequence will be a control character. Used if seq is set to 0 or 1
Example:
^X
- tout: (one of 0, 1, 2, 3, 4, 5)
Port's Inactivity Timeout. 0=Off, 1=5 Min, 2=15 Min, 3=30 Min, 4=90 Min, 5=1 Min.
Example:
1
- echo: (one of 0, 1)
Port's Command Echo. 0=Off, 1=On
Example:
0
- break: (one of 0, 1)
If the Port passes a break sequence through. 0=No, 1=Yes
Example:
1
- connstatus: (string - maxLength: 16)
Port's current connection status. If Free or connected.
Example:
Free
- port: required(integer)
Example:
{
"status": {
"code": 0,
"text": "OK"
},
"serialports": {
"port": 4,
"portname": "RouterLabel",
"baud": 7,
"handshake": 1,
"stopbits": 1,
"parity": 0,
"mode": 0,
"cmd": 0,
"seq": 1,
"tout": 1,
"echo": 0,
"break": 0,
"logoff": "^H",
"connstatus": "Free"
}
}
HTTP status code 400
invalid input, object invalid
HTTP status code 401
unauthorized error
HTTP status code 403
Forbidden error, user does not have access to APIs
Secured by basicAuth
Headers
- Authorization: required(string)
Used to send the Base64-encoded "username:password" credentials
HTTP status code 401
Unauthorized. Either the provided username and password combination is invalid, or the user is not allowed to access the content provided by the requested URL.
/api/v2/config/serialportsaction
By passing in the appropriate options, you can search for available port status in the system.
Configure a Port by Number by passing a new configuration of the port. The modifying user needs SuperUser or Admin rights in the WTI Device to use this command.
get /api/v2/config/serialportsaction
By passing in the appropriate options, you can search for available port status in the system.
Each request must contain the headers necessary for basic authentication
Query Parameters
- ports: (string)
Pass an optional search string for a port, otherwise all ports get returned.
Example:
ports=1,2
HTTP status code 200
Port matching criteria
Body
Media type: application/json
Type: object
Properties- status: required(object)
- code: required(integer)
Numeric status code of the completed action.
- text: required(string)
Text status code of the completed action.
Example:
{ "code": 0, "text": "OK" }
- code: required(integer)
- serialports: required(object)
- port: required(integer)
Number of the port that is being displayed.
Example:
1
- connstatus: (string - maxLength: 16)
Port's current connection status. If Free or connected (C-xx).
Example:
Free
- port: required(integer)
HTTP status code 400
bad input parameter
HTTP status code 401
unauthorized error
HTTP status code 403
Forbidden error, user does not have access to APIs
Secured by basicAuth
Headers
- Authorization: required(string)
Used to send the Base64-encoded "username:password" credentials
HTTP status code 401
Unauthorized. Either the provided username and password combination is invalid, or the user is not allowed to access the content provided by the requested URL.
put /api/v2/config/serialportsaction
Configure a Port by Number by passing a new configuration of the port. The modifying user needs SuperUser or Admin rights in the WTI Device to use this command.
Each request must contain the headers necessary for basic authentication
Body
Media type: application/json
Type: object
Properties- serialports: required(object)
- port: required(integer)
Number of the initial port being connected or disconnected.
Example:
4
- action: required(one of 1, 2)
Action to take on the ports. 1=Connect, 2=Disconnect.
Example:
1
- portremote: required(integer)
Number of the remote port being connected.
Example:
5
- port: required(integer)
Example:
{
"serialports": {
"port": 4,
"action": 1,
"portremote": 5
}
}
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- status: required(object)
- code: required(integer)
Numeric status code of the completed action.
- text: required(string)
Text status code of the completed action.
Example:
{ "code": 0, "text": "OK" }
- code: required(integer)
- serialports: required(object)
- port: required(integer)
Number of the initial port being connected or disconnected.
Example:
4
- action: required(one of 1, 2)
Action to taken on the ports. 1=Connect, 2=Disconnect.
Example:
1
- portremote: (integer)
Number of the remote port being connected. Only needed on an action of Connect.
Example:
5
- connstatus: required(string - maxLength: 16)
For a connection this will be either be the current connection status of the port or 'failed'. For disconnect, will return the current connection status of the port.
Example:
ok
- port: required(integer)
Example:
{
"status": {
"code": 0,
"text": "OK"
},
"serialports": {
"port": 4,
"action": 1,
"portremote": 5,
"connstatus": "ok"
}
}
HTTP status code 400
invalid input, object invalid
HTTP status code 401
unauthorized error
HTTP status code 403
Forbidden error, user does not have access to APIs
Secured by basicAuth
Headers
- Authorization: required(string)
Used to send the Base64-encoded "username:password" credentials
HTTP status code 401
Unauthorized. Either the provided username and password combination is invalid, or the user is not allowed to access the content provided by the requested URL.
/api/v2/config/aaaserver
Configures either a RADIUS or TACACS AAA Server.
Configures either a RADIUS or TACACS AAA Server.
get /api/v2/config/aaaserver
Configures either a RADIUS or TACACS AAA Server.
Each request must contain the headers necessary for basic authentication
Query Parameters
- service: required(one of radius, tacacs)
The type of AAA Server to query.
Example:
radius
HTTP status code 200
AAA server matching criteria
Body
Media type: application/json
Type: object
Properties- status: required(object)
- code: required(integer)
Numeric status code of the completed action.
- text: required(string)
Text status code of the completed action.
Example:
{ "code": 0, "text": "OK" }
- code: required(integer)
- aaaserver: required(object)
- service: required(one of radius, tacacs)
Type of AAA Service
Example:
radius
- enable: required(one of 0, 1)
AAA Service state
Example:
0
- ietf-ipv4: required(object)
- primary: required(array of object)
Items: items
- ip: required(string - maxLength: 64)
.
Example:
192.168.0.12
- secret: required(string - maxLength: 64)
.
Example:
secretpassword
- ip: required(string - maxLength: 64)
- secondary: required(array of object)
Items: items
- ip: required(string - maxLength: 64)
.
Example:
192.168.0.12
- secret: required(string - maxLength: 64)
.
Example:
secretpassword
- ip: required(string - maxLength: 64)
- primary: required(array of object)
- ietf-ipv6: required(object)
- primary: required(array of object)
Items: items
- ip: required(string - maxLength: 64)
.
Example:
192.168.0.12
- secret: required(string - maxLength: 64)
.
Example:
secretpassword
- ip: required(string - maxLength: 64)
- secondary: required(array of object)
Items: items
- ip: required(string - maxLength: 64)
.
Example:
192.168.0.12
- secret: required(string - maxLength: 64)
.
Example:
secretpassword
- ip: required(string - maxLength: 64)
- primary: required(array of object)
- fallbacktime: required(integer)
AAA Service fallback timeout
Example:
10
- fallbacklocal: required(one of 0, 1)
AAA Service fallback to local password if error
Example:
0
- authport: required(integer)
AAA Service Authorization port
Example:
1812
- acctport: required(integer)
AAA Service Accounting port (RADIUS only)
Example:
1813
- retries: required(integer)
AAA Service server transmission retry
Example:
0
- onetimeenable: required(one of 0, 1)
AAA Service 2FA compatible login (RADIUS only)
Example:
0
- onetimetimer: required(integer)
AAA Service 2FA login timer (RADIUS only)
Example:
10
- onetimetype: required(one of 0, 1)
Onetime login storage type 0 - DBM, 1 - Cookies (RADIUS only)
Example:
0
- sessionenable: required(one of 0, 1)
AAA Service Session requested (RADIUS only)
Example:
1
- req_mess_auth: (one of 0, 1)
AAA Require Message Authorization (RADIUS only). 0 - Off 1- On
Example:
0
- debug: required(one of 0, 1)
AAA Service debug messages (RADIUS only)
Example:
0
- service: required(one of radius, tacacs)
Example:
{
"status": {
"code": 0,
"text": "OK"
},
"aaaserver": {
"service": "radius",
"enable": 0,
"ietf-ipv4": {
"primary": [
{
"ip": "192.168.0.140",
"secret": "secretpassword"
}
],
"secondary": [
{
"ip": "",
"secret": ""
}
]
},
"ietf-ipv6": {
"primary": [
{
"ip": "",
"secret": ""
}
],
"secondary": [
{
"ip": "",
"secret": ""
}
]
},
"fallbacktime": 10,
"fallbacklocal": 1,
"authport": 1812,
"acctport": 1813,
"retries": 33,
"onetimeenable": 0,
"onetimetimer": 10,
"onetimetype": 0,
"sessionenable": 1,
"req_mess_auth": 1,
"debug": 0
}
}
HTTP status code 400
bad input parameter
HTTP status code 401
unauthorized error
HTTP status code 403
Forbidden error, user does not have access to APIs
HTTP status code 409
an existing item does not exist
Secured by basicAuth
Headers
- Authorization: required(string)
Used to send the Base64-encoded "username:password" credentials
HTTP status code 401
Unauthorized. Either the provided username and password combination is invalid, or the user is not allowed to access the content provided by the requested URL.
put /api/v2/config/aaaserver
Configures either a RADIUS or TACACS AAA Server.
Each request must contain the headers necessary for basic authentication
Body
Media type: application/json
Type: object
Properties- aaaserver: required(object)
- service: required(one of radius, tacacs)
Type of AAA Service
Example:
radius
- enable: required(one of 0, 1)
AAA Service state
Example:
0
- ietf-ipv4: required(object)
- primary: required(array of object)
Items: items
- ip: required(string - maxLength: 64)
.
Example:
192.168.0.12
- secret: required(string - maxLength: 64)
.
Example:
secretpassword
- ip: required(string - maxLength: 64)
- secondary: required(array of object)
Items: items
- ip: required(string - maxLength: 64)
.
Example:
192.168.0.12
- secret: required(string - maxLength: 64)
.
Example:
secretpassword
- ip: required(string - maxLength: 64)
- primary: required(array of object)
- ietf-ipv6: required(object)
- primary: required(array of object)
Items: items
- ip: required(string - maxLength: 64)
.
Example:
192.168.0.12
- secret: required(string - maxLength: 64)
.
Example:
secretpassword
- ip: required(string - maxLength: 64)
- secondary: required(array of object)
Items: items
- ip: required(string - maxLength: 64)
.
Example:
192.168.0.12
- secret: required(string - maxLength: 64)
.
Example:
secretpassword
- ip: required(string - maxLength: 64)
- primary: required(array of object)
- fallbacktime: required(integer)
AAA Service fallback timeout
Example:
10
- fallbacklocal: required(one of 0, 1)
AAA Service fallback to local password if error
Example:
0
- authport: required(integer)
AAA Service Authorization port
Example:
1812
- acctport: required(integer)
AAA Service Accounting port (RADIUS only)
Example:
1813
- retries: required(integer)
AAA Service server transmission retry
Example:
0
- onetimeenable: required(one of 0, 1)
AAA Service 2FA compatible login (RADIUS only)
Example:
0
- onetimetimer: required(integer)
AAA Service 2FA login timer (RADIUS only)
Example:
10
- onetimetype: required(one of 0, 1)
Onetime login storage type 0 - DBM, 1 - Cookies (RADIUS only)
Example:
0
- sessionenable: required(one of 0, 1)
AAA Service Session requested (RADIUS only)
Example:
1
- req_mess_auth: (one of 0, 1)
AAA Require Message Authorization (RADIUS only). 0 - Off 1- On
Example:
0
- debug: required(one of 0, 1)
AAA Service debug messages (RADIUS only)
Example:
0
- service: required(one of radius, tacacs)
Example:
{
"aaaserver": {
"service": "radius",
"enable": 0,
"ietf-ipv4": {
"primary": [
{
"ip": "192.168.0.140",
"secret": "secretpassword"
}
],
"secondary": [
{
"ip": "",
"secret": ""
}
]
},
"ietf-ipv6": {
"primary": [
{
"ip": "",
"secret": ""
}
],
"secondary": [
{
"ip": "",
"secret": ""
}
]
},
"fallbacktime": 10,
"fallbacklocal": 1,
"authport": 1812,
"acctport": 1813,
"retries": 33,
"onetimeenable": 0,
"onetimetimer": 10,
"onetimetype": 0,
"sessionenable": 1,
"req_mess_auth": 1,
"debug": 0
}
}
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- status: required(object)
- code: required(integer)
Numeric status code of the completed action.
- text: required(string)
Text status code of the completed action.
Example:
{ "code": 0, "text": "OK" }
- code: required(integer)
- aaaserver: required(object)
- service: required(one of radius, tacacs)
Type of AAA Service
Example:
radius
- enable: required(one of 0, 1)
AAA Service state
Example:
0
- ietf-ipv4: required(object)
- primary: required(array of object)
Items: items
- ip: required(string - maxLength: 64)
.
Example:
192.168.0.12
- secret: required(string - maxLength: 64)
.
Example:
secretpassword
- ip: required(string - maxLength: 64)
- secondary: required(array of object)
Items: items
- ip: required(string - maxLength: 64)
.
Example:
192.168.0.12
- secret: required(string - maxLength: 64)
.
Example:
secretpassword
- ip: required(string - maxLength: 64)
- primary: required(array of object)
- ietf-ipv6: required(object)
- primary: required(array of object)
Items: items
- ip: required(string - maxLength: 64)
.
Example:
192.168.0.12
- secret: required(string - maxLength: 64)
.
Example:
secretpassword
- ip: required(string - maxLength: 64)
- secondary: required(array of object)
Items: items
- ip: required(string - maxLength: 64)
.
Example:
192.168.0.12
- secret: required(string - maxLength: 64)
.
Example:
secretpassword
- ip: required(string - maxLength: 64)
- primary: required(array of object)
- fallbacktime: required(integer)
AAA Service fallback timeout
Example:
10
- fallbacklocal: required(one of 0, 1)
AAA Service fallback to local password if error
Example:
0
- authport: required(integer)
AAA Service Authorization port
Example:
1812
- acctport: required(integer)
AAA Service Accounting port (RADIUS only)
Example:
1813
- retries: required(integer)
AAA Service server transmission retry
Example:
0
- onetimeenable: required(one of 0, 1)
AAA Service 2FA compatible login (RADIUS only)
Example:
0
- onetimetimer: required(integer)
AAA Service 2FA login timer (RADIUS only)
Example:
10
- onetimetype: required(one of 0, 1)
Onetime login storage type 0 - DBM, 1 - Cookies (RADIUS only)
Example:
0
- sessionenable: required(one of 0, 1)
AAA Service Session requested (RADIUS only)
Example:
1
- req_mess_auth: (one of 0, 1)
AAA Require Message Authorization (RADIUS only). 0 - Off 1- On
Example:
0
- debug: required(one of 0, 1)
AAA Service debug messages (RADIUS only)
Example:
0
- service: required(one of radius, tacacs)
Example:
{
"status": {
"code": 0,
"text": "OK"
},
"aaaserver": {
"service": "radius",
"enable": 0,
"ietf-ipv4": {
"primary": [
{
"ip": "192.168.0.140",
"secret": "secretpassword"
}
],
"secondary": [
{
"ip": "",
"secret": ""
}
]
},
"ietf-ipv6": {
"primary": [
{
"ip": "",
"secret": ""
}
],
"secondary": [
{
"ip": "",
"secret": ""
}
]
},
"fallbacktime": 10,
"fallbacklocal": 1,
"authport": 1812,
"acctport": 1813,
"retries": 33,
"onetimeenable": 0,
"onetimetimer": 10,
"onetimetype": 0,
"sessionenable": 1,
"req_mess_auth": 1,
"debug": 0
}
}
HTTP status code 400
invalid input, object invalid
HTTP status code 401
unauthorized error
HTTP status code 403
Forbidden error, user does not have access to APIs
Secured by basicAuth
Headers
- Authorization: required(string)
Used to send the Base64-encoded "username:password" credentials
HTTP status code 401
Unauthorized. Either the provided username and password combination is invalid, or the user is not allowed to access the content provided by the requested URL.
/api/v2/config/interface
By passing in the appropriate option, you can retrieve parameters for a specified network interface.
By passing in the appropriate options, you can edit the parameters for a specified network interface.
get /api/v2/config/interface
By passing in the appropriate option, you can retrieve parameters for a specified network interface.
Each request must contain the headers necessary for basic authentication
Query Parameters
- ports: (one of eth0, eth1, ppp0)
pass an search string looking a network interface, if no interface is passed, all network interfaces are returned
Example:
eth0
HTTP status code 200
Network interface matching criteria
Body
Media type: application/json
Type: object
Properties- status: required(object)
- code: required(integer)
Numeric status code of the completed action.
- text: required(string)
Text status code of the completed action.
Example:
{ "code": 0, "text": "OK" }
- code: required(integer)
- interface: required(object)
- name: required(one of eth0, eth1, ppp0)
Name of network interface
Example:
eth0
- type: required(one of 0, 1, 2, 3)
0 - Fixed Ethernet, 1 - PPP, 2- PPP/Cellular, 3- USB.
Example:
0
- ietf-ipv4: required(object)
- address: required(array of object)
Items: items
- ip: required(string - maxLength: 64)
.
Example:
192.168.0.12
- netmask: required(string - maxLength: 64)
.
Example:
255.255.255.0
- gateway: required(string - maxLength: 64)
.
Example:
192.168.0.1
- ip: required(string - maxLength: 64)
- dhcpclient: (array of object)
Items: items
- enable: required(one of 0, 1)
Enable the DHCP client for the named network interface.
Example:
0
- hostname: required(string - maxLength: 64)
.
Example:
secretpassword
- lease: required(integer)
.
Example:
-1
- obdns: required(integer)
.
Example:
0
- updns: required(integer)
This option will set 'send fqdn.server-update' to either yes or no in the dhclient configuration file.
Example:
0
- enable: required(one of 0, 1)
- dhcpserver: (array of object)
Items: items
- enable: required(one of 0, 1)
Enable the DHCP server for the named network interface.
Example:
0
- gateway: required(string - maxLength: 64)
.
Example:
192.168.0.2
- primarydns: required(string - maxLength: 64)
.
Example:
8.8.8.8
- seconddns: required(string - maxLength: 64)
.
Example:
4.4.4.4
- dname: required(string - maxLength: 64)
.
Example:
smith.urlname.com
- deflease: required(integer)
Default Lease time associated with the DHCP request.
Example:
600
- maxlease: required(integer)
Maximum lease time associated with the DHCP request.
Example:
7000
- poolstart: required(integer)
Starting Pool range forthe IP addresses given to DHCP requests.
Example:
2
- poolend: required(integer)
Ending Pool range forthe IP addresses given to DHCP requests.
Example:
254
- enable: required(one of 0, 1)
- address: required(array of object)
- ietf-ipv6: required(object)
- address: required(array of object)
Items: items
- ip: required(string - maxLength: 64)
.
Example:
192.168.0.12
- netmask: required(string - maxLength: 64)
.
Example:
255.255.255.0
- gateway: required(string - maxLength: 64)
.
Example:
192.168.0.1
- ip: required(string - maxLength: 64)
- dhcpclient: (array of object)
Items: items
- enable: required(one of 0, 1)
Enable the DHCP client for the named network interface.
Example:
0
- hostname: required(string - maxLength: 64)
.
Example:
secretpassword
- lease: required(integer)
.
Example:
-1
- obdns: required(integer)
.
Example:
0
- updns: required(integer)
This option will set 'send fqdn.server-update' to either yes or no in the dhclient configuration file.
Example:
0
- enable: required(one of 0, 1)
- dhcpserver: (array of object)
Items: items
- enable: required(one of 0, 1)
Enable the DHCP server for the named network interface.
Example:
0
- gateway: required(string - maxLength: 64)
.
Example:
192.168.0.2
- primarydns: required(string - maxLength: 64)
.
Example:
8.8.8.8
- seconddns: required(string - maxLength: 64)
.
Example:
4.4.4.4
- dname: required(string - maxLength: 64)
.
Example:
smith.urlname.com
- deflease: required(integer)
Default Lease time associated with the DHCP request.
Example:
600
- maxlease: required(integer)
Maximum lease time associated with the DHCP request.
Example:
7000
- poolstart: required(integer)
Starting Pool range forthe IP addresses given to DHCP requests.
Example:
2
- poolend: required(integer)
Ending Pool range forthe IP addresses given to DHCP requests.
Example:
254
- enable: required(one of 0, 1)
- address: required(array of object)
- name: required(one of eth0, eth1, ppp0)
Example:
{
"status": {
"code": 0,
"text": "OK"
},
"interface": {
"name": "eth0",
"type": 0,
"ietf-ipv4": {
"address": [
{
"ip": "192.168.0.169",
"netmask": "255.255.255.0",
"gateway": "192.168.0.1"
}
],
"dhcpclient": [
{
"enable": 0,
"hostname": "",
"lease": -1,
"obdns": 255,
"updns": 255
}
]
},
"ietf-ipv6": {
"address": [
{
"ip": "",
"netmask": "",
"gateway": ""
}
]
}
}
}
HTTP status code 400
bad input parameter
HTTP status code 401
unauthorized error
HTTP status code 403
Forbidden error, user does not have access to APIs
HTTP status code 409
an existing item does not exist
Secured by basicAuth
Headers
- Authorization: required(string)
Used to send the Base64-encoded "username:password" credentials
HTTP status code 401
Unauthorized. Either the provided username and password combination is invalid, or the user is not allowed to access the content provided by the requested URL.
put /api/v2/config/interface
By passing in the appropriate options, you can edit the parameters for a specified network interface.
Each request must contain the headers necessary for basic authentication
Body
Media type: application/json
Type: object
Properties- interface: required(object)
- name: required(one of eth0, eth1, qmimux0, ppp0)
.
Example:
eth0
- ietf-ipv4: required(object)
- address: required(array of object)
Items: items
- ip: required(string - maxLength: 64)
.
Example:
192.168.0.12
- netmask: required(string - maxLength: 64)
.
Example:
255.255.255.0
- gateway: required(string - maxLength: 64)
.
Example:
192.168.0.1
- ip: required(string - maxLength: 64)
- dhcpclient: (array of object)
Items: items
- enable: required(one of 0, 1)
Enable the DHCP client for the named network interface.
Example:
0
- hostname: required(string - maxLength: 64)
.
Example:
secretpassword
- lease: required(integer)
.
Example:
-1
- obdns: required(integer)
.
Example:
0
- updns: required(integer)
This option will set 'send fqdn.server-update' to either yes or no in the dhclient configuration file.
Example:
0
- enable: required(one of 0, 1)
- dhcpserver: (array of object)
Items: items
- enable: required(one of 0, 1)
Enable the DHCP server for the named network interface.
Example:
0
- gateway: required(string - maxLength: 64)
.
Example:
192.168.0.2
- primarydns: required(string - maxLength: 64)
.
Example:
8.8.8.8
- seconddns: required(string - maxLength: 64)
.
Example:
4.4.4.4
- dname: required(string - maxLength: 64)
.
Example:
smith.urlname.com
- deflease: required(integer)
Default Lease time associated with the DHCP request.
Example:
600
- maxlease: required(integer)
Maximum lease time associated with the DHCP request.
Example:
7000
- poolstart: required(integer)
Starting Pool range forthe IP addresses given to DHCP requests.
Example:
2
- poolend: required(integer)
Ending Pool range forthe IP addresses given to DHCP requests.
Example:
254
- enable: required(one of 0, 1)
- address: required(array of object)
- ietf-ipv6: required(object)
- address: required(array of object)
Items: items
- ip: required(string - maxLength: 64)
.
Example:
192.168.0.12
- netmask: required(string - maxLength: 64)
.
Example:
255.255.255.0
- gateway: required(string - maxLength: 64)
.
Example:
192.168.0.1
- ip: required(string - maxLength: 64)
- dhcpclient: (array of object)
Items: items
- enable: required(one of 0, 1)
Enable the DHCP client for the named network interface.
Example:
0
- hostname: required(string - maxLength: 64)
.
Example:
secretpassword
- lease: required(integer)
.
Example:
-1
- obdns: required(integer)
.
Example:
0
- updns: required(integer)
This option will set 'send fqdn.server-update' to either yes or no in the dhclient configuration file.
Example:
0
- enable: required(one of 0, 1)
- dhcpserver: (array of object)
Items: items
- enable: required(one of 0, 1)
Enable the DHCP server for the named network interface.
Example:
0
- gateway: required(string - maxLength: 64)
.
Example:
192.168.0.2
- primarydns: required(string - maxLength: 64)
.
Example:
8.8.8.8
- seconddns: required(string - maxLength: 64)
.
Example:
4.4.4.4
- dname: required(string - maxLength: 64)
.
Example:
smith.urlname.com
- deflease: required(integer)
Default Lease time associated with the DHCP request.
Example:
600
- maxlease: required(integer)
Maximum lease time associated with the DHCP request.
Example:
7000
- poolstart: required(integer)
Starting Pool range forthe IP addresses given to DHCP requests.
Example:
2
- poolend: required(integer)
Ending Pool range forthe IP addresses given to DHCP requests.
Example:
254
- enable: required(one of 0, 1)
- address: required(array of object)
- name: required(one of eth0, eth1, qmimux0, ppp0)
Example:
{
"interface": {
"name": "eth0",
"ietf-ipv4": {
"address": [
{
"ip": "192.168.0.169",
"netmask": "255.255.255.0",
"gateway": "192.168.0.1"
}
],
"dhcpclient": [
{
"enable": 0,
"hostname": "",
"lease": -1,
"obdns": 255,
"updns": 255
}
]
},
"ietf-ipv6": {
"address": [
{
"ip": "",
"netmask": "",
"gateway": ""
}
]
}
}
}
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- status: required(object)
- code: required(integer)
Numeric status code of the completed action.
- text: required(string)
Text status code of the completed action.
Example:
{ "code": 0, "text": "OK" }
- code: required(integer)
- interface: required(object)
- name: required(one of eth0, eth1, ppp0)
Name of network interface
Example:
eth0
- type: required(one of 0, 1, 2, 3)
0 - Fixed Ethernet, 1 - PPP, 2- PPP/Cellular, 3- USB.
Example:
0
- ietf-ipv4: required(object)
- address: required(array of object)
Items: items
- ip: required(string - maxLength: 64)
.
Example:
192.168.0.12
- netmask: required(string - maxLength: 64)
.
Example:
255.255.255.0
- gateway: required(string - maxLength: 64)
.
Example:
192.168.0.1
- ip: required(string - maxLength: 64)
- dhcpclient: (array of object)
Items: items
- enable: required(one of 0, 1)
Enable the DHCP client for the named network interface.
Example:
0
- hostname: required(string - maxLength: 64)
.
Example:
secretpassword
- lease: required(integer)
.
Example:
-1
- obdns: required(integer)
.
Example:
0
- updns: required(integer)
This option will set 'send fqdn.server-update' to either yes or no in the dhclient configuration file.
Example:
0
- enable: required(one of 0, 1)
- dhcpserver: (array of object)
Items: items
- enable: required(one of 0, 1)
Enable the DHCP server for the named network interface.
Example:
0
- gateway: required(string - maxLength: 64)
.
Example:
192.168.0.2
- primarydns: required(string - maxLength: 64)
.
Example:
8.8.8.8
- seconddns: required(string - maxLength: 64)
.
Example:
4.4.4.4
- dname: required(string - maxLength: 64)
.
Example:
smith.urlname.com
- deflease: required(integer)
Default Lease time associated with the DHCP request.
Example:
600
- maxlease: required(integer)
Maximum lease time associated with the DHCP request.
Example:
7000
- poolstart: required(integer)
Starting Pool range forthe IP addresses given to DHCP requests.
Example:
2
- poolend: required(integer)
Ending Pool range forthe IP addresses given to DHCP requests.
Example:
254
- enable: required(one of 0, 1)
- address: required(array of object)
- ietf-ipv6: required(object)
- address: required(array of object)
Items: items
- ip: required(string - maxLength: 64)
.
Example:
192.168.0.12
- netmask: required(string - maxLength: 64)
.
Example:
255.255.255.0
- gateway: required(string - maxLength: 64)
.
Example:
192.168.0.1
- ip: required(string - maxLength: 64)
- dhcpclient: (array of object)
Items: items
- enable: required(one of 0, 1)
Enable the DHCP client for the named network interface.
Example:
0
- hostname: required(string - maxLength: 64)
.
Example:
secretpassword
- lease: required(integer)
.
Example:
-1
- obdns: required(integer)
.
Example:
0
- updns: required(integer)
This option will set 'send fqdn.server-update' to either yes or no in the dhclient configuration file.
Example:
0
- enable: required(one of 0, 1)
- dhcpserver: (array of object)
Items: items
- enable: required(one of 0, 1)
Enable the DHCP server for the named network interface.
Example:
0
- gateway: required(string - maxLength: 64)
.
Example:
192.168.0.2
- primarydns: required(string - maxLength: 64)
.
Example:
8.8.8.8
- seconddns: required(string - maxLength: 64)
.
Example:
4.4.4.4
- dname: required(string - maxLength: 64)
.
Example:
smith.urlname.com
- deflease: required(integer)
Default Lease time associated with the DHCP request.
Example:
600
- maxlease: required(integer)
Maximum lease time associated with the DHCP request.
Example:
7000
- poolstart: required(integer)
Starting Pool range forthe IP addresses given to DHCP requests.
Example:
2
- poolend: required(integer)
Ending Pool range forthe IP addresses given to DHCP requests.
Example:
254
- enable: required(one of 0, 1)
- address: required(array of object)
- name: required(one of eth0, eth1, ppp0)
Example:
{
"status": {
"code": 0,
"text": "OK"
},
"interface": {
"name": "eth0",
"type": 0,
"ietf-ipv4": {
"address": [
{
"ip": "192.168.0.169",
"netmask": "255.255.255.0",
"gateway": "192.168.0.1"
}
],
"dhcpclient": [
{
"enable": 0,
"hostname": "",
"lease": -1,
"obdns": 255,
"updns": 255
}
]
},
"ietf-ipv6": {
"address": [
{
"ip": "",
"netmask": "",
"gateway": ""
}
]
}
}
}
HTTP status code 400
invalid input, object invalid
HTTP status code 401
unauthorized error
HTTP status code 403
Forbidden error, user does not have access to APIs
Secured by basicAuth
Headers
- Authorization: required(string)
Used to send the Base64-encoded "username:password" credentials
HTTP status code 401
Unauthorized. Either the provided username and password combination is invalid, or the user is not allowed to access the content provided by the requested URL.
/api/v2/config/hostname
You can retrieve Unit Identification parameters
By passing in the appropriate options, you can edit the parameters for the Device Identification parameters.
get /api/v2/config/hostname
You can retrieve Unit Identification parameters
Each request must contain the headers necessary for basic authentication
HTTP status code 200
Unit Identification matching criteria
Body
Media type: application/json
Type: object
Properties- status: required(object)
- code: required(integer)
Numeric status code of the completed action.
- text: required(string)
Text status code of the completed action.
Example:
{ "code": 0, "text": "OK" }
- code: required(integer)
- unitid: required(object)
- timestamp: required(datetime)
ISO Timestamp of the unit time when temperature was read.
Example:
2019-07-18T17:45:02+00:00
- siteid: required(string - maxLength: 64)
This be displayed in the external reporting logs
Example:
DSMLABIRVINE
- location: required(string - maxLength: 32)
This be displayed in the external reporting logs
Example:
RACK12IRVINE
- assettag: required(string - maxLength: 32)
This be displayed in the external reporting logs
Example:
1028561
- hostname: required(string - maxLength: 64)
This be displayed in the external reporting logs
Example:
testhost
- domain: required(string - maxLength: 64)
This be displayed in the external reporting logs
Example:
test.com
- timestamp: required(datetime)
Example:
{
"status": {
"code": 0,
"text": "OK"
},
"unitid": {
"timestamp": "2019-08-02T07:53:28+00:00",
"siteid": "DSMLABIRVINE",
"location": "RACK12IRVINE",
"assettag": "1028561",
"hostname": "testhost",
"domain": "test.com"
}
}
HTTP status code 400
bad input parameter
HTTP status code 401
unauthorized error
HTTP status code 403
Forbidden error, user does not have access to APIs
HTTP status code 409
an existing item does not exist
Secured by basicAuth
Headers
- Authorization: required(string)
Used to send the Base64-encoded "username:password" credentials
HTTP status code 401
Unauthorized. Either the provided username and password combination is invalid, or the user is not allowed to access the content provided by the requested URL.
put /api/v2/config/hostname
By passing in the appropriate options, you can edit the parameters for the Device Identification parameters.
Each request must contain the headers necessary for basic authentication
Body
Media type: application/json
Type: object
Properties- unitid: required(object)
- siteid: required(string - maxLength: 64)
This be displayed in the external reporting logs
Example:
DSMLABIRVINE
- location: required(string - maxLength: 32)
This be displayed in the external reporting logs
Example:
RACK12IRVINE
- assettag: required(string - maxLength: 32)
This be displayed in the external reporting logs
Example:
1028561
- hostname: required(string - maxLength: 64)
This be displayed in the external reporting logs
Example:
testhost
- domain: required(string - maxLength: 64)
This be displayed in the external reporting logs
Example:
test.com
- siteid: required(string - maxLength: 64)
Example:
{
"unitid": {
"siteid": "DSMLABIRVINE",
"location": "RACK12IRVINE",
"assettag": "1028561",
"hostname": "testhost",
"domain": "test.com"
}
}
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- status: required(object)
- code: required(integer)
Numeric status code of the completed action.
- text: required(string)
Text status code of the completed action.
Example:
{ "code": 0, "text": "OK" }
- code: required(integer)
- unitid: required(object)
- timestamp: required(datetime)
ISO Timestamp of the unit time when temperature was read.
Example:
2019-07-18T17:45:02+00:00
- siteid: required(string - maxLength: 64)
This be displayed in the external reporting logs
Example:
DSMLABIRVINE
- location: required(string - maxLength: 32)
This be displayed in the external reporting logs
Example:
RACK12IRVINE
- assettag: required(string - maxLength: 32)
This be displayed in the external reporting logs
Example:
1028561
- hostname: required(string - maxLength: 64)
This be displayed in the external reporting logs
Example:
testhost
- domain: required(string - maxLength: 64)
This be displayed in the external reporting logs
Example:
test.com
- timestamp: required(datetime)
Example:
{
"status": {
"code": 0,
"text": "OK"
},
"unitid": {
"timestamp": "2019-08-02T07:53:28+00:00",
"siteid": "DSMLABIRVINE",
"location": "RACK12IRVINE",
"assettag": "1028561",
"hostname": "testhost",
"domain": "test.com"
}
}
HTTP status code 400
invalid input, object invalid
HTTP status code 401
unauthorized error
HTTP status code 403
Forbidden error, user does not have access to APIs
Secured by basicAuth
Headers
- Authorization: required(string)
Used to send the Base64-encoded "username:password" credentials
HTTP status code 401
Unauthorized. Either the provided username and password combination is invalid, or the user is not allowed to access the content provided by the requested URL.
/api/v2/config/ssh
You can retrieve Unit SSH parameters
By passing in the appropriate options, you can edit the parameters for the SSH service.
get /api/v2/config/ssh
You can retrieve Unit SSH parameters
Each request must contain the headers necessary for basic authentication
HTTP status code 200
Unit SSH matching criteria
Body
Media type: application/json
Type: object
Properties- status: required(object)
- code: required(integer)
Numeric status code of the completed action.
- text: required(string)
Text status code of the completed action.
Example:
{ "code": 0, "text": "OK" }
- code: required(integer)
- ssh: required(object)
- enable: required(one of 0, 1)
0 - disable SSH for unit, 1 - enable SSH for unit
Example:
1
- port: required(integer - minimum: 1 - maximum: 9999)
Port that SSH will listen for a connection.
Example:
22
- level: required(one of 0, 1)
0 - Normal, 1 - High
Example:
1
- viewenable: required(one of 0, 1)
SSH View Enable
Example:
1
- viewbidirect: required(one of 0, 1)
SSH View Port BiDirection
Example:
1
- enable: required(one of 0, 1)
Example:
{
"status": {
"code": 0,
"text": "OK"
},
"ssh": {
"enable": 1,
"port": 22,
"level": 1,
"viewenable": 0,
"viewbidirect": 0
}
}
HTTP status code 400
bad input parameter
HTTP status code 401
unauthorized error
HTTP status code 403
Forbidden error, user does not have access to APIs
HTTP status code 409
an existing item does not exist
Secured by basicAuth
Headers
- Authorization: required(string)
Used to send the Base64-encoded "username:password" credentials
HTTP status code 401
Unauthorized. Either the provided username and password combination is invalid, or the user is not allowed to access the content provided by the requested URL.
put /api/v2/config/ssh
By passing in the appropriate options, you can edit the parameters for the SSH service.
Each request must contain the headers necessary for basic authentication
Body
Media type: application/json
Type: object
Properties- ssh: required(object)
- enable: required(one of 0, 1)
0 - disable SSH for unit, 1 - enable SSH for unit
Example:
1
- port: required(integer - minimum: 1 - maximum: 9999)
Port that SSH will listen for a connection.
Example:
22
- level: required(one of 0, 1)
0 - Normal, 1 - High
Example:
1
- viewenable: required(one of 0, 1)
SSH View Enable
Example:
1
- viewbidirect: required(one of 0, 1)
SSH View Port BiDirection
Example:
1
- enable: required(one of 0, 1)
Example:
{
"ssh": {
"enable": 1,
"port": 22,
"level": 1,
"viewenable": 0,
"viewbidirect": 0
}
}
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- status: required(object)
- code: required(integer)
Numeric status code of the completed action.
- text: required(string)
Text status code of the completed action.
Example:
{ "code": 0, "text": "OK" }
- code: required(integer)
- ssh: required(object)
- enable: required(one of 0, 1)
0 - disable SSH for unit, 1 - enable SSH for unit
Example:
1
- port: required(integer - minimum: 1 - maximum: 9999)
Port that SSH will listen for a connection.
Example:
22
- level: required(one of 0, 1)
0 - Normal, 1 - High
Example:
1
- viewenable: required(one of 0, 1)
SSH View Enable
Example:
1
- viewbidirect: required(one of 0, 1)
SSH View Port BiDirection
Example:
1
- enable: required(one of 0, 1)
Example:
{
"status": {
"code": 0,
"text": "OK"
},
"ssh": {
"enable": 1,
"port": 22,
"level": 1,
"viewenable": 0,
"viewbidirect": 0
}
}
HTTP status code 400
invalid input, object invalid
HTTP status code 401
unauthorized error
HTTP status code 403
Forbidden error, user does not have access to APIs
Secured by basicAuth
Headers
- Authorization: required(string)
Used to send the Base64-encoded "username:password" credentials
HTTP status code 401
Unauthorized. Either the provided username and password combination is invalid, or the user is not allowed to access the content provided by the requested URL.
/api/v2/config/dnsservices
You can retrieve Unit DNS Server parameters
By passing in the appropriate options, you can edit the parameters for the Device DNS Server parameters.
get /api/v2/config/dnsservices
You can retrieve Unit DNS Server parameters
Each request must contain the headers necessary for basic authentication
HTTP status code 200
Unit DNS Server matching criteria
Body
Media type: application/json
Type: object
Properties- status: required(object)
- code: required(integer)
Numeric status code of the completed action.
- text: required(string)
Text status code of the completed action.
Example:
{ "code": 0, "text": "OK" }
- code: required(integer)
- dnsservices: required(object)
- servers: required(object)
- dnsserver1: required(array of object)
Items: items
- ip: required(string - maxLength: 42)
This be displayed in the external reporting logs
Example:
166.216.138.41
- ip: required(string - maxLength: 42)
- dnsserver2: required(array of object)
Items: items
- ip: required(string - maxLength: 42)
This be displayed in the external reporting logs
Example:
166.216.138.42
- ip: required(string - maxLength: 42)
- dnsserver3: required(array of object)
Items: items
- ip: required(string - maxLength: 42)
This be displayed in the external reporting logs
Example:
8.8.8.8
- ip: required(string - maxLength: 42)
- dnsserver4: required(array of object)
Items: items
- ip: required(string - maxLength: 42)
This be displayed in the external reporting logs
Example:
8.8.4.4
- ip: required(string - maxLength: 42)
- dnsserver1: required(array of object)
- servers: required(object)
Example:
{
"status": {
"code": 0,
"text": "OK"
},
"dnsservices": {
"servers": {
"dnsserver1": [
{
"ip": "8.8.8.8"
}
],
"dnsserver2": [
{
"ip": "8.8.4.4"
}
],
"dnsserver3": [
{
"ip": "1.1.1.1"
}
],
"dnsserver4": [
{
"ip": ""
}
]
}
}
}
HTTP status code 400
bad input parameter
HTTP status code 401
unauthorized error
HTTP status code 403
Forbidden error, user does not have access to APIs
HTTP status code 409
an existing item does not exist
Secured by basicAuth
Headers
- Authorization: required(string)
Used to send the Base64-encoded "username:password" credentials
HTTP status code 401
Unauthorized. Either the provided username and password combination is invalid, or the user is not allowed to access the content provided by the requested URL.
put /api/v2/config/dnsservices
By passing in the appropriate options, you can edit the parameters for the Device DNS Server parameters.
Each request must contain the headers necessary for basic authentication
Body
Media type: application/json
Type: object
Properties- dnsservices: required(object)
- servers: required(object)
- dnsserver1: required(array of object)
Items: items
- ip: required(string - maxLength: 42)
This be displayed in the external reporting logs
Example:
166.216.138.41
- ip: required(string - maxLength: 42)
- dnsserver2: required(array of object)
Items: items
- ip: required(string - maxLength: 42)
This be displayed in the external reporting logs
Example:
166.216.138.42
- ip: required(string - maxLength: 42)
- dnsserver3: required(array of object)
Items: items
- ip: required(string - maxLength: 42)
This be displayed in the external reporting logs
Example:
8.8.8.8
- ip: required(string - maxLength: 42)
- dnsserver4: required(array of object)
Items: items
- ip: required(string - maxLength: 42)
This be displayed in the external reporting logs
Example:
8.8.4.4
- ip: required(string - maxLength: 42)
- dnsserver1: required(array of object)
- servers: required(object)
Example:
{
"dnsservices": {
"servers": {
"dnsserver1": [
{
"ip": "8.8.8.8"
}
],
"dnsserver2": [
{
"ip": "8.8.4.4"
}
],
"dnsserver3": [
{
"ip": "1.1.1.1"
}
],
"dnsserver4": [
{
"ip": ""
}
]
}
}
}
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- status: required(object)
- code: required(integer)
Numeric status code of the completed action.
- text: required(string)
Text status code of the completed action.
Example:
{ "code": 0, "text": "OK" }
- code: required(integer)
- dnsservices: required(object)
- servers: required(object)
- dnsserver1: required(array of object)
Items: items
- ip: required(string - maxLength: 42)
This be displayed in the external reporting logs
Example:
166.216.138.41
- ip: required(string - maxLength: 42)
- dnsserver2: required(array of object)
Items: items
- ip: required(string - maxLength: 42)
This be displayed in the external reporting logs
Example:
166.216.138.42
- ip: required(string - maxLength: 42)
- dnsserver3: required(array of object)
Items: items
- ip: required(string - maxLength: 42)
This be displayed in the external reporting logs
Example:
8.8.8.8
- ip: required(string - maxLength: 42)
- dnsserver4: required(array of object)
Items: items
- ip: required(string - maxLength: 42)
This be displayed in the external reporting logs
Example:
8.8.4.4
- ip: required(string - maxLength: 42)
- dnsserver1: required(array of object)
- servers: required(object)
Example:
{
"status": {
"code": 0,
"text": "OK"
},
"dnsservices": {
"servers": {
"dnsserver1": [
{
"ip": "8.8.8.8"
}
],
"dnsserver2": [
{
"ip": "8.8.4.4"
}
],
"dnsserver3": [
{
"ip": "1.1.1.1"
}
],
"dnsserver4": [
{
"ip": ""
}
]
}
}
}
HTTP status code 400
invalid input, object invalid
HTTP status code 401
unauthorized error
HTTP status code 403
Forbidden error, user does not have access to APIs
Secured by basicAuth
Headers
- Authorization: required(string)
Used to send the Base64-encoded "username:password" credentials
HTTP status code 401
Unauthorized. Either the provided username and password combination is invalid, or the user is not allowed to access the content provided by the requested URL.
/api/v2/config/telnet
You can retrieve Unit Telnet parameters
By passing in the appropriate options, you can edit the parameters for the Telnet service.
get /api/v2/config/telnet
You can retrieve Unit Telnet parameters
Each request must contain the headers necessary for basic authentication
HTTP status code 200
Unit Telnet matching criteria
Body
Media type: application/json
Type: object
Properties- status: required(object)
- code: required(integer)
Numeric status code of the completed action.
- text: required(string)
Text status code of the completed action.
Example:
{ "code": 0, "text": "OK" }
- code: required(integer)
- telnet: required(object)
- enable: required(one of 0, 1)
0 - disable Telnet for unit, 1 - enable Telnet for unit
Example:
1
- port: required(integer - minimum: 1 - maximum: 9999)
Port that Telnet will listen for a connection.
Example:
23
- persource: required(integer - minimum: 1 - maximum: 25)
Connections allowed per a compute
Example:
4
- enable: required(one of 0, 1)
Example:
{
"status": {
"code": 0,
"text": "OK"
},
"telnet": {
"enable": 1,
"port": 23,
"persource": 4
}
}
HTTP status code 400
bad input parameter
HTTP status code 401
unauthorized error
HTTP status code 403
Forbidden error, user does not have access to APIs
HTTP status code 409
an existing item does not exist
Secured by basicAuth
Headers
- Authorization: required(string)
Used to send the Base64-encoded "username:password" credentials
HTTP status code 401
Unauthorized. Either the provided username and password combination is invalid, or the user is not allowed to access the content provided by the requested URL.
put /api/v2/config/telnet
By passing in the appropriate options, you can edit the parameters for the Telnet service.
Each request must contain the headers necessary for basic authentication
Body
Media type: application/json
Type: object
Properties- telnet: required(object)
- enable: required(one of 0, 1)
0 - disable Telnet for unit, 1 - enable Telnet for unit
Example:
1
- port: required(integer - minimum: 1 - maximum: 9999)
Port that Telnet will listen for a connection.
Example:
23
- persource: required(integer - minimum: 1 - maximum: 25)
Connections allowed per a compute
Example:
4
- enable: required(one of 0, 1)
Example:
{
"telnet": {
"enable": 1,
"port": 22,
"persource": 4
}
}
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- status: required(object)
- code: required(integer)
Numeric status code of the completed action.
- text: required(string)
Text status code of the completed action.
Example:
{ "code": 0, "text": "OK" }
- code: required(integer)
- telnet: required(object)
- enable: required(one of 0, 1)
0 - disable Telnet for unit, 1 - enable Telnet for unit
Example:
1
- port: required(integer - minimum: 1 - maximum: 9999)
Port that Telnet will listen for a connection.
Example:
23
- persource: required(integer - minimum: 1 - maximum: 25)
Connections allowed per a compute
Example:
4
- enable: required(one of 0, 1)
Example:
{
"status": {
"code": 0,
"text": "OK"
},
"telnet": {
"enable": 1,
"port": 23,
"persource": 4
}
}
HTTP status code 400
invalid input, object invalid
HTTP status code 401
unauthorized error
HTTP status code 403
Forbidden error, user does not have access to APIs
Secured by basicAuth
Headers
- Authorization: required(string)
Used to send the Base64-encoded "username:password" credentials
HTTP status code 401
Unauthorized. Either the provided username and password combination is invalid, or the user is not allowed to access the content provided by the requested URL.
/api/v2/config/cellular
You can retrieve Unit Cellular parameters
By passing in the appropriate options, you can edit the parameters for the cellular service.
get /api/v2/config/cellular
You can retrieve Unit Cellular parameters
Each request must contain the headers necessary for basic authentication
HTTP status code 200
Unit Cellular matching criteria
Body
Media type: application/json
Type: object
Properties- apn: required(string - maxLength: 64)
Carrier APN of the cellular device
Example:
vzwwireless
- cellenable: required(one of 0, 1)
If the cellular subsystem is enabled
- status: required(object)
- code: required(integer)
Numeric status code of the completed action.
- text: required(string)
Text status code of the completed action.
Example:
{ "code": 0, "text": "OK" }
- code: required(integer)
- wof: required(object)
- enabled: required(one of 0, 1)
If the Wakeup on Failure is enabled.
Example:
1
- active: required(one of 0, 1)
If the Wakeup on Failure is active.
Example:
1
- autorecov: required(one of 0, 1)
If Autorecovery is enabled.
Example:
1
- gatewayport: required(one of 0, 1, 2, 3)
WOF Gateway Port.
Example:
1
- sleepmode: required(one of 0, 1)
WOF Sleep Mode. 0 Attach, 1 - Detach
Example:
1
- interfacemon: required(one of 0, 1, 2, 3)
WOF Interface monitor. 0 - eth0, 1 - eth1, 2 - eth0 AND eth1, 3 - eth0 OR eth1
Example:
1
- host1: required(string - maxLength: 64)
Primary Address/Host to Ping
Example:
192.168.0.12
- host2: required(string - maxLength: 64)
Secondary Address/Host to Ping
Example:
192.10.10.22
- pinginter1: required(integer - minimum: 1 - maximum: 3600)
Ping Interval
Example:
60
- afppinginter1: required(integer - minimum: 1 - maximum: 3600)
Interval after Failed Ping
Example:
10
- conscfail1: required(integer - minimum: 1 - maximum: 60)
Consecutive Failures
Example:
5
- enabled: required(one of 0, 1)
- passth: required(object)
- enabled: required(one of 0, 1)
Passthrough enabled.
Example:
1
- active: required(one of 0, 1)
Passthrough active.
Example:
1
- interfacemon: required(one of 0, 1)
Interface Monitor. 0 - eth0, 1 = eth1
Example:
1
- mac: required(string - maxLength: 64)
AC address of your downstream device/router
Example:
aa:bb:cc:dd:ee:ff
- httptermenable: required(one of 0, 1)
http local termination port enable.
Example:
1
- httpterm: required(integer - minimum: 1 - maximum: 9999)
http local termination port.
Example:
80
- httpstermenable: required(one of 0, 1)
https local termination port enable.
Example:
1
- httpsterm: required(integer - minimum: 1 - maximum: 9999)
https local termination port
Example:
443
- sshtermenable: required(one of 0, 1)
SSH local termination port enable.
Example:
1
- sshterm: required(integer - minimum: 1 - maximum: 9999)
SSH local termination port.
Example:
22
- enabled: required(one of 0, 1)
- modresp: required(object)
- CGSN: required(string - maxLength: 16)
CGSN number associated with the cellular device
Example:
274728091103603
- ICCID: required(string - maxLength: 24)
ICCID number associated with the cellular device
Example:
89064403222218725422
- FWSWITCH: required(string - maxLength: 16)
FWSWITCH associated with the cellular device
Example:
0,1
- CEMODE: required(string - maxLength: 16)
CEMODE associated with the cellular device
Example:
2
- CGDCONT: required(string - maxLength: 16)
CGDCONT associated with the cellular device
Example:
OK
- CGREG: required(string - maxLength: 16)
CGREG associated with the cellular device
Example:
0,1
- COPS: required(string - maxLength: 16)
COPS associated with the cellular device
Example:
0,0,'AT&T',7
- COPSCARRIER: required(string - maxLength: 16)
COPSCARRIER associated with the cellular device
Example:
AT&T
- COPSSERVICE: required(string - maxLength: 16)
COPSSERVICE associated with the cellular device
Example:
4G/LTE
- CSQ: required(string - maxLength: 16)
CSQ associated with the cellular device
Example:
31,3
- CGMM: required(string - maxLength: 16)
CGMM associated with the cellular device
Example:
LE910C4-NF
- CGMR: required(string - maxLength: 16)
CGMR associated with the cellular device
Example:
M0F.660006
- CNUM: required(string - maxLength: 32)
CNUM associated with the cellular device
Example:
'19495551212','19495551212',129
- CGMI: required(string - maxLength: 16)
CGMI associated with the cellular device
Example:
Telit
- GCAP: required(string - maxLength: 16)
GCAP associated with the cellular device
Example:
+CGSM,+DS,+MS
- CGATT: required(string - maxLength: 16)
CGATT associated with the cellular device
Example:
1
- CGSN: required(string - maxLength: 16)
Example:
{
"status": {
"code": 0,
"text": "OK"
},
"apn": "vzwwireless",
"cellenable": 1,
"cellstatus": {
"phonenumber": "19495551212",
"IMEI": "254378082104603",
"carrier": "AT&T",
"band": "4G/LTE",
"signalquality": "30",
"attached": 1,
"sessionest": 1
},
"wof": {
"enabled": 0,
"active": 0,
"autorecov": 1,
"gatewayport": 0,
"sleepmode": 0,
"interfacemon": 3,
"host1": "192.168.0.206",
"host2": "192.168.0.1",
"pinginter1": 60,
"afppinginter1": 10,
"conscfail1": 5,
"gatewayaddr": ""
},
"passth": {
"enabled": 0,
"active": 0,
"interfacemon": 0,
"mac": "",
"httptermenable": 0,
"httpterm": 80,
"httpstermenable": 0,
"httpsterm": 443,
"sshtermenable": 1,
"sshterm": 22
},
"modresp": {
"CGSN": "254378082104603",
"ICCID": "89016105272311772482",
"FWSWITCH": "0,1",
"CEMODE": "2",
"CGDCONT": "OK",
"CGREG": "0,1",
"COPS": "0,0,'AT&T',7",
"COPSCARRIER": "AT&T",
"COPSSERVICE": "4G/LTE",
"CSQ": "30,3",
"CGMM": "LE910C4-NF",
"CGMR": "M0F.660006",
"CNUM": "'19495551212','19495551212',129",
"CGMI": "Telit",
"GCAP": "+CGSM,+DS,+MS",
"CGATT": "1"
}
}
HTTP status code 400
bad input parameter
HTTP status code 401
unauthorized error
HTTP status code 403
Forbidden error, user does not have access to APIs
HTTP status code 409
an existing item does not exist
Secured by basicAuth
Headers
- Authorization: required(string)
Used to send the Base64-encoded "username:password" credentials
HTTP status code 401
Unauthorized. Either the provided username and password combination is invalid, or the user is not allowed to access the content provided by the requested URL.
put /api/v2/config/cellular
By passing in the appropriate options, you can edit the parameters for the cellular service.
Each request must contain the headers necessary for basic authentication
Body
Media type: application/json
Type: object
Properties- apn: required(string - maxLength: 64)
Carrier APN of the cellular device
Example:
vzwwireless
- cellenable: required(one of 0, 1)
Enable/Disable cellular subsystem
- wof: required(object)
- enabled: required(one of 0, 1)
If the Wakeup on Failure is enabled.
Example:
1
- autorecov: required(one of 0, 1)
If Autorecovery is enabled.
Example:
1
- gatewayport: required(one of 0, 1, 2, 3)
WOF Gateway Port.
Example:
1
- sleepmode: required(one of 0, 1)
WOF Sleep Mode. 0 Attach, 1 - Detach
Example:
1
- interfacemon: required(one of 0, 1, 2, 3)
WOF Interface monitor. 0 - eth0, 1 - eth1, 2 - eth0 AND eth1, 3 - eth0 OR eth1
Example:
1
- host1: required(string - maxLength: 64)
Primary Address/Host to Ping
Example:
192.168.0.12
- host2: required(string - maxLength: 64)
Secondary Address/Host to Ping
Example:
192.10.10.22
- pinginter1: required(integer - minimum: 1 - maximum: 3600)
Ping Interval
Example:
60
- afppinginter1: required(integer - minimum: 1 - maximum: 3600)
Interval after Failed Ping
Example:
10
- conscfail1: required(integer - minimum: 1 - maximum: 60)
Consecutive Failures
Example:
5
- enabled: required(one of 0, 1)
- passth: required(object)
- enabled: required(one of 0, 1)
Passthrough enabled.
Example:
1
- interfacemon: required(one of 0, 1)
Interface Monitor. 0 - eth0, 1 = eth1
Example:
1
- mac: required(string - maxLength: 64)
AC address of your downstream device/router
Example:
aa:bb:cc:dd:ee:ff
- httptermenable: required(one of 0, 1)
http local termination port enable.
Example:
1
- httpterm: required(integer - minimum: 1 - maximum: 9999)
http local termination port.
Example:
80
- httpstermenable: required(one of 0, 1)
https local termination port enable.
Example:
1
- httpsterm: required(integer - minimum: 1 - maximum: 9999)
https local termination port
Example:
443
- sshtermenable: required(one of 0, 1)
SSH local termination port enable.
Example:
1
- sshterm: required(integer - minimum: 1 - maximum: 9999)
SSH local termination port.
Example:
22
- enabled: required(one of 0, 1)
Example:
{
"apn": "vzwwireless",
"cellenable": 1,
"wof": {
"enabled": 0,
"autorecov": 1,
"gatewayport": 0,
"sleepmode": 0,
"interfacemon": 3,
"host1": "192.168.0.206",
"host2": "192.168.0.1",
"pinginter1": 60,
"afppinginter1": 10,
"conscfail1": 5,
"gatewayaddr": ""
},
"passth": {
"enabled": 0,
"interfacemon": 0,
"mac": "",
"httptermenable": 0,
"httpterm": 80,
"httpstermenable": 0,
"httpsterm": 443,
"sshtermenable": 1,
"sshterm": 22
}
}
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- apn: required(string - maxLength: 64)
Carrier APN of the cellular device
Example:
vzwwireless
- cellenable: required(one of 0, 1)
If the cellular subsystem is enabled
- status: required(object)
- code: required(integer)
Numeric status code of the completed action.
- text: required(string)
Text status code of the completed action.
Example:
{ "code": 0, "text": "OK" }
- code: required(integer)
- wof: required(object)
- enabled: required(one of 0, 1)
If the Wakeup on Failure is enabled.
Example:
1
- active: required(one of 0, 1)
If the Wakeup on Failure is active.
Example:
1
- autorecov: required(one of 0, 1)
If Autorecovery is enabled.
Example:
1
- gatewayport: required(one of 0, 1, 2, 3)
WOF Gateway Port.
Example:
1
- sleepmode: required(one of 0, 1)
WOF Sleep Mode. 0 Attach, 1 - Detach
Example:
1
- interfacemon: required(one of 0, 1, 2, 3)
WOF Interface monitor. 0 - eth0, 1 - eth1, 2 - eth0 AND eth1, 3 - eth0 OR eth1
Example:
1
- host1: required(string - maxLength: 64)
Primary Address/Host to Ping
Example:
192.168.0.12
- host2: required(string - maxLength: 64)
Secondary Address/Host to Ping
Example:
192.10.10.22
- pinginter1: required(integer - minimum: 1 - maximum: 3600)
Ping Interval
Example:
60
- afppinginter1: required(integer - minimum: 1 - maximum: 3600)
Interval after Failed Ping
Example:
10
- conscfail1: required(integer - minimum: 1 - maximum: 60)
Consecutive Failures
Example:
5
- enabled: required(one of 0, 1)
- passth: required(object)
- enabled: required(one of 0, 1)
Passthrough enabled.
Example:
1
- active: required(one of 0, 1)
Passthrough active.
Example:
1
- interfacemon: required(one of 0, 1)
Interface Monitor. 0 - eth0, 1 = eth1
Example:
1
- mac: required(string - maxLength: 64)
AC address of your downstream device/router
Example:
aa:bb:cc:dd:ee:ff
- httptermenable: required(one of 0, 1)
http local termination port enable.
Example:
1
- httpterm: required(integer - minimum: 1 - maximum: 9999)
http local termination port.
Example:
80
- httpstermenable: required(one of 0, 1)
https local termination port enable.
Example:
1
- httpsterm: required(integer - minimum: 1 - maximum: 9999)
https local termination port
Example:
443
- sshtermenable: required(one of 0, 1)
SSH local termination port enable.
Example:
1
- sshterm: required(integer - minimum: 1 - maximum: 9999)
SSH local termination port.
Example:
22
- enabled: required(one of 0, 1)
- modresp: required(object)
- CGSN: required(string - maxLength: 16)
CGSN number associated with the cellular device
Example:
274728091103603
- ICCID: required(string - maxLength: 24)
ICCID number associated with the cellular device
Example:
89064403222218725422
- FWSWITCH: required(string - maxLength: 16)
FWSWITCH associated with the cellular device
Example:
0,1
- CEMODE: required(string - maxLength: 16)
CEMODE associated with the cellular device
Example:
2
- CGDCONT: required(string - maxLength: 16)
CGDCONT associated with the cellular device
Example:
OK
- CGREG: required(string - maxLength: 16)
CGREG associated with the cellular device
Example:
0,1
- COPS: required(string - maxLength: 16)
COPS associated with the cellular device
Example:
0,0,'AT&T',7
- COPSCARRIER: required(string - maxLength: 16)
COPSCARRIER associated with the cellular device
Example:
AT&T
- COPSSERVICE: required(string - maxLength: 16)
COPSSERVICE associated with the cellular device
Example:
4G/LTE
- CSQ: required(string - maxLength: 16)
CSQ associated with the cellular device
Example:
31,3
- CGMM: required(string - maxLength: 16)
CGMM associated with the cellular device
Example:
LE910C4-NF
- CGMR: required(string - maxLength: 16)
CGMR associated with the cellular device
Example:
M0F.660006
- CNUM: required(string - maxLength: 32)
CNUM associated with the cellular device
Example:
'19495551212','19495551212',129
- CGMI: required(string - maxLength: 16)
CGMI associated with the cellular device
Example:
Telit
- GCAP: required(string - maxLength: 16)
GCAP associated with the cellular device
Example:
+CGSM,+DS,+MS
- CGATT: required(string - maxLength: 16)
CGATT associated with the cellular device
Example:
1
- CGSN: required(string - maxLength: 16)
Example:
{
"status": {
"code": 0,
"text": "OK"
},
"apn": "vzwwireless",
"cellenable": 1,
"cellstatus": {
"phonenumber": "19495551212",
"IMEI": "254378082104603",
"carrier": "AT&T",
"band": "4G/LTE",
"signalquality": "30",
"attached": 1,
"sessionest": 1
},
"wof": {
"enabled": 0,
"active": 0,
"autorecov": 1,
"gatewayport": 0,
"sleepmode": 0,
"interfacemon": 3,
"host1": "192.168.0.206",
"host2": "192.168.0.1",
"pinginter1": 60,
"afppinginter1": 10,
"conscfail1": 5,
"gatewayaddr": ""
},
"passth": {
"enabled": 0,
"active": 0,
"interfacemon": 0,
"mac": "",
"httptermenable": 0,
"httpterm": 80,
"httpstermenable": 0,
"httpsterm": 443,
"sshtermenable": 1,
"sshterm": 22
},
"modresp": {
"CGSN": "254378082104603",
"ICCID": "89016105272311772482",
"FWSWITCH": "0,1",
"CEMODE": "2",
"CGDCONT": "OK",
"CGREG": "0,1",
"COPS": "0,0,'AT&T',7",
"COPSCARRIER": "AT&T",
"COPSSERVICE": "4G/LTE",
"CSQ": "30,3",
"CGMM": "LE910C4-NF",
"CGMR": "M0F.660006",
"CNUM": "'19495551212','19495551212',129",
"CGMI": "Telit",
"GCAP": "+CGSM,+DS,+MS",
"CGATT": "1"
}
}
HTTP status code 400
invalid input, object invalid
HTTP status code 401
unauthorized error
HTTP status code 403
Forbidden error, user does not have access to APIs
Secured by basicAuth
Headers
- Authorization: required(string)
Used to send the Base64-encoded "username:password" credentials
HTTP status code 401
Unauthorized. Either the provided username and password combination is invalid, or the user is not allowed to access the content provided by the requested URL.
/api/v2/config/vpnipsec
You can retrieve IPSec Clients parameters
By passing in the appropriate options, you can edit the parameters for IPSec Clients.
get /api/v2/config/vpnipsec
You can retrieve IPSec Clients parameters
Each request must contain the headers necessary for basic authentication
Query Parameters
- tunnel: (string - maxLength: 8)
pass an search string looking an IPSec client, if no IPSec client is passed, all IPSec clients are returned
Example:
1,2
HTTP status code 200
IPSec Clients matching criteria
Body
Media type: application/json
Type: object
Properties- status: required(object)
- code: required(integer)
Numeric status code of the completed action.
- text: required(string)
Text status code of the completed action.
Example:
{ "code": 0, "text": "OK" }
- code: required(integer)
- ipsecclient: required(object)
- tunnels: required(array of IPSecClientItemResponse)
Items: IPSecClientItemResponse
- index: required(integer - minimum: 1 - maximum: 10)
IPSec Client Index
Example:
1
- enable: required(one of 0, 1)
If the Wakeup on Failure is enabled.
Example:
1
- tunnelname: required(string - maxLength: 16)
Phone number associated with the cellular device
Example:
TunnelName1
- authtype: required(one of 0, 1)
Sets the type of SA that will be produced. 0 - ESP, 1 - AH
Example:
1
- leftaddress: required(string - maxLength: 16)
The IP address of the left participant's public-network interface
Example:
19495551212
- leftrid: required(string - maxLength: 16)
How the left participant should be identified for authentication
Example:
19495551212
- leftsubnet: required(string - maxLength: 16)
Private subnet behind the left participant.
Example:
19495551212
- rightaddress: required(string - maxLength: 16)
The IP address of the right participant's public-network interface
Example:
19495551212
- rightrid: required(string - maxLength: 16)
How the right participant should be identified for authentication
Example:
19495551212
- rightsubnet: required(string - maxLength: 16)
Private subnet behind the right participant
Example:
19495551212
- forceendcaps: required(one of 0, 1)
Force UDP encapsulation for ESP packets even if no NAT situation is detected..
Example:
1
- assocport: required(one of 0, 1, 2, 3)
Associated port of IPSec Client. 0 - default, 1 - eth0, 2 - eth1, 3 - cellular
Example:
1
- associp: required(string - maxLength: 16)
Associated IP Address of IPSec Client
Example:
19495551212
- presharedkey: (string - maxLength: 64)
Pre-shared Secret (Static Key File) of IPSec Client,
are encoded as \n and \r. To help with the conversion, please visit: https://my.wti.com/ssltojson.aspx Example:
thisisasecretkey
- servercert: (string - maxLength: 4096)
Server Certificate of IPSec Client,
are encoded as \n and \r. To help with the conversion, please visit: https://my.wti.com/ssltojson.aspx Example:
certdata
- clientcert: (string - maxLength: 4096)
Client Certificate of IPSec Client,
are encoded as \n and \r. To help with the conversion, please visit: https://my.wti.com/ssltojson.aspx Example:
certdata
- clientkey: (string - maxLength: 4096)
Client Key Certificate of IPSec Client,
are encoded as \n and \r. To help with the conversion, please visit: https://my.wti.com/ssltojson.aspx Example:
certdata
- servercacert: (string - maxLength: 4096)
Server CA Certificate of IPSec Client
Example:
certdata
- index: required(integer - minimum: 1 - maximum: 10)
- eapusers: required(object)
- indexu: (one of 1, 2, 3, 4)
Index of the EAP user for IPSec Client.
Example:
1
- user: (string - maxLength: 32)
Phone number associated with the cellular device.
Example:
username1
- pass: (string - maxLength: 32)
Phone number associated with the cellular device.
Example:
password1
- indexu: (one of 1, 2, 3, 4)
- options: required(object)
- indexo: (one of 1, 2, 3, 4)
Index of the Custom Tunnel Options for IPSec Client.
Example:
1
- param: (string - maxLength: 128)
Name of the Custom Tunnel Options for IPSec Client
Example:
param1
- value: (string - maxLength: 128)
Value of the Custom Tunnel Options for IPSec Client
Example:
value1
- indexo: (one of 1, 2, 3, 4)
- tunnels: required(array of IPSecClientItemResponse)
HTTP status code 400
bad input parameter
HTTP status code 401
unauthorized error
HTTP status code 403
Forbidden error, user does not have access to APIs
HTTP status code 409
an existing item does not exist
Secured by basicAuth
Headers
- Authorization: required(string)
Used to send the Base64-encoded "username:password" credentials
HTTP status code 401
Unauthorized. Either the provided username and password combination is invalid, or the user is not allowed to access the content provided by the requested URL.
put /api/v2/config/vpnipsec
By passing in the appropriate options, you can edit the parameters for IPSec Clients.
Each request must contain the headers necessary for basic authentication
Body
Media type: application/json
Type: object
Properties- ipsecclient: required(object)
- tunnels: required(array of IPSecClientItemResponse)
Items: IPSecClientItemResponse
- index: required(integer - minimum: 1 - maximum: 10)
IPSec Client Index
Example:
1
- enable: required(one of 0, 1)
If the Wakeup on Failure is enabled.
Example:
1
- tunnelname: required(string - maxLength: 16)
Phone number associated with the cellular device
Example:
TunnelName1
- authtype: required(one of 0, 1)
Sets the type of SA that will be produced. 0 - ESP, 1 - AH
Example:
1
- leftaddress: required(string - maxLength: 16)
The IP address of the left participant's public-network interface
Example:
19495551212
- leftrid: required(string - maxLength: 16)
How the left participant should be identified for authentication
Example:
19495551212
- leftsubnet: required(string - maxLength: 16)
Private subnet behind the left participant.
Example:
19495551212
- rightaddress: required(string - maxLength: 16)
The IP address of the right participant's public-network interface
Example:
19495551212
- rightrid: required(string - maxLength: 16)
How the right participant should be identified for authentication
Example:
19495551212
- rightsubnet: required(string - maxLength: 16)
Private subnet behind the right participant
Example:
19495551212
- forceendcaps: required(one of 0, 1)
Force UDP encapsulation for ESP packets even if no NAT situation is detected..
Example:
1
- assocport: required(one of 0, 1, 2, 3)
Associated port of IPSec Client. 0 - default, 1 - eth0, 2 - eth1, 3 - cellular
Example:
1
- associp: required(string - maxLength: 16)
Associated IP Address of IPSec Client
Example:
19495551212
- presharedkey: (string - maxLength: 64)
Pre-shared Secret (Static Key File) of IPSec Client,
are encoded as \n and \r. To help with the conversion, please visit: https://my.wti.com/ssltojson.aspx Example:
thisisasecretkey
- servercert: (string - maxLength: 4096)
Server Certificate of IPSec Client,
are encoded as \n and \r. To help with the conversion, please visit: https://my.wti.com/ssltojson.aspx Example:
certdata
- clientcert: (string - maxLength: 4096)
Client Certificate of IPSec Client,
are encoded as \n and \r. To help with the conversion, please visit: https://my.wti.com/ssltojson.aspx Example:
certdata
- clientkey: (string - maxLength: 4096)
Client Key Certificate of IPSec Client,
are encoded as \n and \r. To help with the conversion, please visit: https://my.wti.com/ssltojson.aspx Example:
certdata
- servercacert: (string - maxLength: 4096)
Server CA Certificate of IPSec Client
Example:
certdata
- index: required(integer - minimum: 1 - maximum: 10)
- eapusers: required(object)
- indexu: (one of 1, 2, 3, 4)
Index of the EAP user for IPSec Client.
Example:
1
- user: (string - maxLength: 32)
Phone number associated with the cellular device.
Example:
username1
- pass: (string - maxLength: 32)
Phone number associated with the cellular device.
Example:
password1
- indexu: (one of 1, 2, 3, 4)
- options: required(object)
- indexo: (one of 1, 2, 3, 4)
Index of the Custom Tunnel Options for IPSec Client.
Example:
1
- param: (string - maxLength: 128)
Name of the Custom Tunnel Options for IPSec Client
Example:
param1
- value: (string - maxLength: 128)
Value of the Custom Tunnel Options for IPSec Client
Example:
value1
- indexo: (one of 1, 2, 3, 4)
- tunnels: required(array of IPSecClientItemResponse)
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- status: required(object)
- code: required(integer)
Numeric status code of the completed action.
- text: required(string)
Text status code of the completed action.
Example:
{ "code": 0, "text": "OK" }
- code: required(integer)
- ipsecclient: required(object)
- tunnels: required(array of IPSecClientItemResponse)
Items: IPSecClientItemResponse
- index: required(integer - minimum: 1 - maximum: 10)
IPSec Client Index
Example:
1
- enable: required(one of 0, 1)
If the Wakeup on Failure is enabled.
Example:
1
- tunnelname: required(string - maxLength: 16)
Phone number associated with the cellular device
Example:
TunnelName1
- authtype: required(one of 0, 1)
Sets the type of SA that will be produced. 0 - ESP, 1 - AH
Example:
1
- leftaddress: required(string - maxLength: 16)
The IP address of the left participant's public-network interface
Example:
19495551212
- leftrid: required(string - maxLength: 16)
How the left participant should be identified for authentication
Example:
19495551212
- leftsubnet: required(string - maxLength: 16)
Private subnet behind the left participant.
Example:
19495551212
- rightaddress: required(string - maxLength: 16)
The IP address of the right participant's public-network interface
Example:
19495551212
- rightrid: required(string - maxLength: 16)
How the right participant should be identified for authentication
Example:
19495551212
- rightsubnet: required(string - maxLength: 16)
Private subnet behind the right participant
Example:
19495551212
- forceendcaps: required(one of 0, 1)
Force UDP encapsulation for ESP packets even if no NAT situation is detected..
Example:
1
- assocport: required(one of 0, 1, 2, 3)
Associated port of IPSec Client. 0 - default, 1 - eth0, 2 - eth1, 3 - cellular
Example:
1
- associp: required(string - maxLength: 16)
Associated IP Address of IPSec Client
Example:
19495551212
- presharedkey: (string - maxLength: 64)
Pre-shared Secret (Static Key File) of IPSec Client,
are encoded as \n and \r. To help with the conversion, please visit: https://my.wti.com/ssltojson.aspx Example:
thisisasecretkey
- servercert: (string - maxLength: 4096)
Server Certificate of IPSec Client,
are encoded as \n and \r. To help with the conversion, please visit: https://my.wti.com/ssltojson.aspx Example:
certdata
- clientcert: (string - maxLength: 4096)
Client Certificate of IPSec Client,
are encoded as \n and \r. To help with the conversion, please visit: https://my.wti.com/ssltojson.aspx Example:
certdata
- clientkey: (string - maxLength: 4096)
Client Key Certificate of IPSec Client,
are encoded as \n and \r. To help with the conversion, please visit: https://my.wti.com/ssltojson.aspx Example:
certdata
- servercacert: (string - maxLength: 4096)
Server CA Certificate of IPSec Client
Example:
certdata
- index: required(integer - minimum: 1 - maximum: 10)
- eapusers: required(object)
- indexu: (one of 1, 2, 3, 4)
Index of the EAP user for IPSec Client.
Example:
1
- user: (string - maxLength: 32)
Phone number associated with the cellular device.
Example:
username1
- pass: (string - maxLength: 32)
Phone number associated with the cellular device.
Example:
password1
- indexu: (one of 1, 2, 3, 4)
- options: required(object)
- indexo: (one of 1, 2, 3, 4)
Index of the Custom Tunnel Options for IPSec Client.
Example:
1
- param: (string - maxLength: 128)
Name of the Custom Tunnel Options for IPSec Client
Example:
param1
- value: (string - maxLength: 128)
Value of the Custom Tunnel Options for IPSec Client
Example:
value1
- indexo: (one of 1, 2, 3, 4)
- tunnels: required(array of IPSecClientItemResponse)
HTTP status code 400
invalid input, object invalid
HTTP status code 401
unauthorized error
HTTP status code 403
Forbidden error, user does not have access to APIs
Secured by basicAuth
Headers
- Authorization: required(string)
Used to send the Base64-encoded "username:password" credentials
HTTP status code 401
Unauthorized. Either the provided username and password combination is invalid, or the user is not allowed to access the content provided by the requested URL.
/api/v2/config/timedate
You can retrieve parameters pertaining to the time, date and ntp servers.
By passing in the appropriate options, you can edit the parameters for the time, date and ntp servers.
get /api/v2/config/timedate
You can retrieve parameters pertaining to the time, date and ntp servers.
Each request must contain the headers necessary for basic authentication
HTTP status code 200
Time, Date and NTP parameters
Body
Media type: application/json
Type: object
Properties- status: required(object)
- code: required(integer)
Numeric status code of the completed action.
- text: required(string)
Text status code of the completed action.
Example:
{ "code": 0, "text": "OK" }
- code: required(integer)
- date: (string)
Example:
06/20/2019
- time: (string)
Example:
17:35:30
- timezone: (integer)
Numeric representation of the timezone of the device
Example:
5
- ntp: required(object)
- enable: required(one of 0, 1)
0 - Disabled, 1 - Enabled
Example:
0
- ietf-ipv4: required(object)
- address: required(array of object)
Items: items
- primary: required(string - maxLength: 64)
.
Example:
192.168.0.12
- secondary: required(string - maxLength: 64)
.
Example:
255.255.255.0
- primary: required(string - maxLength: 64)
- address: required(array of object)
- ietf-ipv6: required(object)
- address: required(array of object)
Items: items
- primary: required(string - maxLength: 64)
.
Example:
192.168.0.12
- secondary: required(string - maxLength: 64)
.
Example:
255.255.255.0
- primary: required(string - maxLength: 64)
- address: required(array of object)
- timeout: (integer)
Timeout of the NTP Client
Example:
5
- enable: required(one of 0, 1)
Example:
{
"status": {
"code": 0,
"text": "OK"
},
"date": "06/02/2019",
"time": "17:05:30",
"timezone": 5,
"ntp": {
"enable": 0,
"ietf-ipv4": {
"address": [
{
"primary": "216.239.35.0",
"secondary": "216.239.35.4"
}
]
},
"ietf-ipv6": {
"address": [
{
"primary": "",
"secondary": ""
}
]
},
"timeout": 6
}
}
HTTP status code 400
bad input parameter
HTTP status code 401
unauthorized error
HTTP status code 403
Forbidden error, user does not have access to APIs
HTTP status code 409
an existing item does not exist
Secured by basicAuth
Headers
- Authorization: required(string)
Used to send the Base64-encoded "username:password" credentials
HTTP status code 401
Unauthorized. Either the provided username and password combination is invalid, or the user is not allowed to access the content provided by the requested URL.
put /api/v2/config/timedate
By passing in the appropriate options, you can edit the parameters for the time, date and ntp servers.
Each request must contain the headers necessary for basic authentication
Body
Media type: application/json
Type: object
Properties- date: (string)
Example:
06/20/2019
- time: (string)
Example:
17:35:30
- timezone: (integer)
Numeric representation of the timezone of the device
Example:
5
- ntp: required(object)
- enable: required(one of 0, 1)
0 - Disabled, 1 - Enabled
Example:
0
- ietf-ipv4: required(object)
- address: required(array of object)
Items: items
- primary: required(string - maxLength: 64)
.
Example:
192.168.0.12
- secondary: required(string - maxLength: 64)
.
Example:
255.255.255.0
- primary: required(string - maxLength: 64)
- address: required(array of object)
- ietf-ipv6: required(object)
- address: required(array of object)
Items: items
- primary: required(string - maxLength: 64)
.
Example:
192.168.0.12
- secondary: required(string - maxLength: 64)
.
Example:
255.255.255.0
- primary: required(string - maxLength: 64)
- address: required(array of object)
- timeout: (integer)
Timeout of the NTP Client
Example:
5
- enable: required(one of 0, 1)
Example:
{
"date": "06/20/2019",
"time": "17:28:55",
"timezone": 5,
"ntp": {
"enable": 0,
"ietf-ipv4": {
"address": [
{
"primary": "216.239.35.0",
"secondary": "216.239.35.4"
}
]
},
"ietf-ipv6": {
"address": [
{
"primary": "",
"secondary": ""
}
]
},
"timeout": 6
}
}
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- status: required(object)
- code: required(integer)
Numeric status code of the completed action.
- text: required(string)
Text status code of the completed action.
Example:
{ "code": 0, "text": "OK" }
- code: required(integer)
- date: (string)
Example:
06/20/2019
- time: (string)
Example:
17:35:30
- timezone: (integer)
Numeric representation of the timezone of the device
Example:
5
- ntp: required(object)
- enable: required(one of 0, 1)
0 - Disabled, 1 - Enabled
Example:
0
- ietf-ipv4: required(object)
- address: required(array of object)
Items: items
- primary: required(string - maxLength: 64)
.
Example:
192.168.0.12
- secondary: required(string - maxLength: 64)
.
Example:
255.255.255.0
- primary: required(string - maxLength: 64)
- address: required(array of object)
- ietf-ipv6: required(object)
- address: required(array of object)
Items: items
- primary: required(string - maxLength: 64)
.
Example:
192.168.0.12
- secondary: required(string - maxLength: 64)
.
Example:
255.255.255.0
- primary: required(string - maxLength: 64)
- address: required(array of object)
- timeout: (integer)
Timeout of the NTP Client
Example:
5
- enable: required(one of 0, 1)
Example:
{
"status": {
"code": 0,
"text": "OK"
},
"date": "06/20/2019",
"time": "17:28:55",
"timezone": 5,
"ntp": {
"enable": 0,
"ietf-ipv4": {
"address": [
{
"primary": "216.239.35.0",
"secondary": "216.239.35.4"
}
]
},
"ietf-ipv6": {
"address": [
{
"primary": "",
"secondary": ""
}
]
},
"timeout": 6
}
}
HTTP status code 400
invalid input, object invalid
HTTP status code 401
unauthorized error
HTTP status code 403
Forbidden error, user does not have access to APIs
Secured by basicAuth
Headers
- Authorization: required(string)
Used to send the Base64-encoded "username:password" credentials
HTTP status code 401
Unauthorized. Either the provided username and password combination is invalid, or the user is not allowed to access the content provided by the requested URL.
/api/v2/config/web
You can retrieve parameters pertaining to the web servers.
By passing in the appropriate options, you can edit the parameters for the web server.
get /api/v2/config/web
You can retrieve parameters pertaining to the web servers.
Each request must contain the headers necessary for basic authentication
HTTP status code 200
Web parameters
Body
Media type: application/json
Type: object
Properties- status: required(object)
- code: required(integer)
Numeric status code of the completed action.
- text: required(string)
Text status code of the completed action.
Example:
{ "code": 0, "text": "OK" }
- code: required(integer)
- trace: (one of 0, 1)
Determines the behaviour on TRACE requests
Example:
0
- ocsp: (one of 0, 1)
Determines if OCSP Stapling is enabled or disabled
Example:
0
- webterm: (one of 0, 1)
Determines if the Web Terminal feature is enabled or disabled
Example:
0
- timeout: (integer)
This is the time in minutes where if there is no user activity on a web session you will be logged out (0-9999). 0 is No timeout.
Example:
0
- web: required(object)
- name: required(one of eth0, eth1, ppp0)
Name of network interface
Example:
eth0
- httpenable: (one of 0, 1)
Defines if the WEB unsecure mode is enabled or disabled, 0 - Disabled, 1 - Enabled
Example:
0
- httpport: (integer)
Defines the port number used by the unsecure WEB. Default is 80
Example:
80
- httpsenable: (one of 0, 1)
Defines if the WEB secure mode is enabled or disabled, 0 - Disabled, 1 - Enabled
Example:
1
- httpsport: (integer)
Defines the port number used by the secure WEB. Default is 443
Example:
443
- harden: (one of 0, 1, 2)
Defines the security level of the WEB server
Example:
2
- tlsmode: (one of 0, 1, 2)
Define the TLS choice between TLS v1, TLS v1.1 or TLS v1.2
Example:
2
- privkey: (string)
Private Key,
are encoded as \n and \r. To help with the conversion, please visit: https://my.wti.com/ssltojson.aspx Example:
certdata
- signkey: (string)
Signed CRT Certificate,
are encoded as \n and \r. To help with the conversion, please visit: https://my.wti.com/ssltojson.aspx Example:
certdata
- interkey: (string)
CA Intermediate Certificate,
are encoded as \n and \r. To help with the conversion, please visit: https://my.wti.com/ssltojson.aspx Example:
certdata
- name: required(one of eth0, eth1, ppp0)
- totalports: (integer)
Total Web ports that are returned
Example:
1
Example:
{
"status": {
"code": 0,
"text": "OK"
},
"trace": 0,
"ocsp": 1,
"webterm": 1,
"timeout": 0,
"web": {
"name": "eth0",
"httpenable": 1,
"httpport": 80,
"httpsenable": 1,
"httpsport": 443,
"harden": 2,
"tlsmode": 1
},
"totalports": 1
}
HTTP status code 400
bad input parameter
HTTP status code 401
unauthorized error
HTTP status code 403
Forbidden error, user does not have access to APIs
HTTP status code 409
an existing item does not exist
Secured by basicAuth
Headers
- Authorization: required(string)
Used to send the Base64-encoded "username:password" credentials
HTTP status code 401
Unauthorized. Either the provided username and password combination is invalid, or the user is not allowed to access the content provided by the requested URL.
put /api/v2/config/web
By passing in the appropriate options, you can edit the parameters for the web server.
Each request must contain the headers necessary for basic authentication
Body
Media type: application/json
Type: object
Properties- trace: (integer)
Determines the behaviour on TRACE requests
Example:
0
- web: required(object)
- name: required(one of eth0, eth1, ppp0)
Name of network interface
Example:
eth0
- httpenable: (one of 0, 1)
Defines if the WEB unsecure mode is enabled or disabled, 0 - Disabled, 1 - Enabled
Example:
0
- httpport: (integer)
Defines the port number used by the unsecure WEB. Default is 80
Example:
80
- httpsenable: (one of 0, 1)
Defines if the WEB secure mode is enabled or disabled, 0 - Disabled, 1 - Enabled
Example:
1
- httpsport: (integer)
Defines the port number used by the secure WEB. Default is 443
Example:
443
- harden: (one of 0, 1, 2)
Defines the security level of the WEB server
Example:
2
- tlsmode: (one of 0, 1, 2)
Define the TLS choice between TLS v1, TLS v1.1 or TLS v1.2
Example:
2
- privkey: (string)
Private Key,
are encoded as \n and \r. To help with the conversion, please visit: https://my.wti.com/ssltojson.aspx Example:
certdata
- signkey: (string)
Signed CRT Certificate,
are encoded as \n and \r. To help with the conversion, please visit: https://my.wti.com/ssltojson.aspx Example:
certdata
- interkey: (string)
CA Intermediate Certificate,
are encoded as \n and \r. To help with the conversion, please visit: https://my.wti.com/ssltojson.aspx Example:
certdata
- name: required(one of eth0, eth1, ppp0)
Example:
{
"trace": 0,
"web": {
"name": "eth1",
"httpenable": 1,
"httpport": 80,
"httpsenable": 1,
"httpsport": 443,
"harden": 2,
"tlsmode": 1
}
}
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- status: required(object)
- code: required(integer)
Numeric status code of the completed action.
- text: required(string)
Text status code of the completed action.
Example:
{ "code": 0, "text": "OK" }
- code: required(integer)
- trace: (integer)
Determines the behaviour on TRACE requests
Example:
0
- web: required(object)
- name: required(one of eth0, eth1, ppp0)
Name of network interface
Example:
eth0
- httpenable: (one of 0, 1)
Defines if the WEB unsecure mode is enabled or disabled, 0 - Disabled, 1 - Enabled
Example:
0
- httpport: (integer)
Defines the port number used by the unsecure WEB. Default is 80
Example:
80
- httpsenable: (one of 0, 1)
Defines if the WEB secure mode is enabled or disabled, 0 - Disabled, 1 - Enabled
Example:
1
- httpsport: (integer)
Defines the port number used by the secure WEB. Default is 443
Example:
443
- harden: (one of 0, 1, 2)
Defines the security level of the WEB server
Example:
2
- tlsmode: (one of 0, 1, 2)
Define the TLS choice between TLS v1, TLS v1.1 or TLS v1.2
Example:
2
- privkey: (string)
Private Key,
are encoded as \n and \r. To help with the conversion, please visit: https://my.wti.com/ssltojson.aspx Example:
certdata
- signkey: (string)
Signed CRT Certificate,
are encoded as \n and \r. To help with the conversion, please visit: https://my.wti.com/ssltojson.aspx Example:
certdata
- interkey: (string)
CA Intermediate Certificate,
are encoded as \n and \r. To help with the conversion, please visit: https://my.wti.com/ssltojson.aspx Example:
certdata
- name: required(one of eth0, eth1, ppp0)
- totalports: (integer)
Total Web ports that are returned
Example:
1
Example:
{
"status": {
"code": 0,
"text": "OK"
},
"trace": 0,
"web": {
"name": "eth1",
"httpenable": 1,
"httpport": 80,
"httpsenable": 1,
"httpsport": 443,
"harden": 2,
"tlsmode": 1
},
"totalports": 1
}
HTTP status code 400
invalid input, object invalid
HTTP status code 401
unauthorized error
HTTP status code 403
Forbidden error, user does not have access to APIs
Secured by basicAuth
Headers
- Authorization: required(string)
Used to send the Base64-encoded "username:password" credentials
HTTP status code 401
Unauthorized. Either the provided username and password combination is invalid, or the user is not allowed to access the content provided by the requested URL.
/api/v2/config/snmptrap
You can retrieve parameters pertaining to the SNMP Trap mechanism.
By passing in the appropriate options, you can edit the parameters for SNMP Traps.
get /api/v2/config/snmptrap
You can retrieve parameters pertaining to the SNMP Trap mechanism.
Each request must contain the headers necessary for basic authentication
HTTP status code 200
Get SNMP Trap parameters
Body
Media type: application/json
Type: object
Properties- status: required(object)
- code: required(integer)
Numeric status code of the completed action.
- text: required(string)
Text status code of the completed action.
Example:
{ "code": 0, "text": "OK" }
- code: required(integer)
- snmptraps: required(object)
- ietf-ipv4: (object)
- version: required(one of 0, 1, 2)
Trap Version 0 = v1, 1 = v2, 2 = v3
Example:
1
- community: required(string - maxLength: 32)
Community Name
Example:
community
- trapengineidv3: required(string - maxLength: 32)
V3 Trap Engine ID
Example:
92395
- managers: required(array of SNMPTrapManagerDefinition)
Items: SNMPTrapManagerDefinition
- manager: required(string - maxLength: 32)
Manager Name being defined
Example:
samsmith
- index: required(one of 1, 2, 3, 4)
Slot of Manager name being defined
Example:
1
- manager: required(string - maxLength: 32)
- version: required(one of 0, 1, 2)
- ietf-ipv6: (object)
- version: required(one of 0, 1, 2)
Trap Version 0 = v1, 1 = v2, 2 = v3
Example:
1
- community: required(string - maxLength: 32)
Community Name
Example:
community
- trapengineidv3: required(string - maxLength: 32)
V3 Trap Engine ID
Example:
92395
- managers: required(array of SNMPTrapManagerDefinition)
Items: SNMPTrapManagerDefinition
- manager: required(string - maxLength: 32)
Manager Name being defined
Example:
samsmith
- index: required(one of 1, 2, 3, 4)
Slot of Manager name being defined
Example:
1
- manager: required(string - maxLength: 32)
- version: required(one of 0, 1, 2)
- ietf-ipv4: (object)
Example:
{
"status": {
"code": 0,
"text": "OK"
},
"snmptraps": {
"ietf-ipv4": {
"version": 2,
"community": "community",
"trapengineidv3": "32432",
"managers": [
{
"manager": "manag1",
"index": 1
},
{
"manager": "manag4",
"index": 4
}
]
}
}
}
HTTP status code 400
bad input parameter
HTTP status code 401
unauthorized error
HTTP status code 403
Forbidden error, user does not have access to APIs
HTTP status code 409
an existing item does not exist
Secured by basicAuth
Headers
- Authorization: required(string)
Used to send the Base64-encoded "username:password" credentials
HTTP status code 401
Unauthorized. Either the provided username and password combination is invalid, or the user is not allowed to access the content provided by the requested URL.
put /api/v2/config/snmptrap
By passing in the appropriate options, you can edit the parameters for SNMP Traps.
Each request must contain the headers necessary for basic authentication
Body
Media type: application/json
Type: object
Properties- snmptraps: required(object)
- ietf-ipv4: (object)
- clear: required(one of 0, 1)
Clear the Manager entries before writing new ones
Example:
1
- version: required(one of 0, 1, 2)
Trap Version 0 = v1, 1 = v2, 2 = v3
Example:
1
- community: required(string - maxLength: 32)
Community Name
Example:
community
- trapengineidv3: required(string - maxLength: 32)
V3 Trap Engine ID
Example:
92395
- managers: required(array of SNMPTrapManagerDefinition)
Items: SNMPTrapManagerDefinition
- manager: required(string - maxLength: 32)
Manager Name being defined
Example:
samsmith
- index: required(one of 1, 2, 3, 4)
Slot of Manager name being defined
Example:
1
- manager: required(string - maxLength: 32)
- clear: required(one of 0, 1)
- ietf-ipv6: (object)
- clear: required(one of 0, 1)
Clear the Manager entries before writing new ones
Example:
1
- version: required(one of 0, 1, 2)
Trap Version 0 = v1, 1 = v2, 2 = v3
Example:
1
- community: required(string - maxLength: 32)
Community Name
Example:
community
- trapengineidv3: required(string - maxLength: 32)
V3 Trap Engine ID
Example:
92395
- managers: required(array of SNMPTrapManagerDefinition)
Items: SNMPTrapManagerDefinition
- manager: required(string - maxLength: 32)
Manager Name being defined
Example:
samsmith
- index: required(one of 1, 2, 3, 4)
Slot of Manager name being defined
Example:
1
- manager: required(string - maxLength: 32)
- clear: required(one of 0, 1)
- ietf-ipv4: (object)
Example:
{
"snmptraps": {
"ietf-ipv4": {
"clear": 0,
"community": "community",
"version": 2,
"trapengineidv3": "",
"managers": [
{
"manager": "manag1",
"index": 1
},
{
"manager": "manag3",
"index": 3
}
]
}
}
}
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- status: required(object)
- code: required(integer)
Numeric status code of the completed action.
- text: required(string)
Text status code of the completed action.
Example:
{ "code": 0, "text": "OK" }
- code: required(integer)
- snmptraps: required(object)
- ietf-ipv4: (object)
- version: required(one of 0, 1, 2)
Trap Version 0 = v1, 1 = v2, 2 = v3
Example:
1
- community: required(string - maxLength: 32)
Community Name
Example:
community
- trapengineidv3: required(string - maxLength: 32)
V3 Trap Engine ID
Example:
92395
- managers: required(array of SNMPTrapManagerDefinition)
Items: SNMPTrapManagerDefinition
- manager: required(string - maxLength: 32)
Manager Name being defined
Example:
samsmith
- index: required(one of 1, 2, 3, 4)
Slot of Manager name being defined
Example:
1
- manager: required(string - maxLength: 32)
- version: required(one of 0, 1, 2)
- ietf-ipv6: (object)
- version: required(one of 0, 1, 2)
Trap Version 0 = v1, 1 = v2, 2 = v3
Example:
1
- community: required(string - maxLength: 32)
Community Name
Example:
community
- trapengineidv3: required(string - maxLength: 32)
V3 Trap Engine ID
Example:
92395
- managers: required(array of SNMPTrapManagerDefinition)
Items: SNMPTrapManagerDefinition
- manager: required(string - maxLength: 32)
Manager Name being defined
Example:
samsmith
- index: required(one of 1, 2, 3, 4)
Slot of Manager name being defined
Example:
1
- manager: required(string - maxLength: 32)
- version: required(one of 0, 1, 2)
- ietf-ipv4: (object)
Example:
{
"status": {
"code": 0,
"text": "OK"
},
"snmptraps": {
"ietf-ipv4": {
"version": 2,
"community": "community",
"trapengineidv3": "32432",
"managers": [
{
"manager": "manag1",
"index": 1
},
{
"manager": "manag4",
"index": 4
}
]
}
}
}
HTTP status code 400
invalid input, object invalid
HTTP status code 401
unauthorized error
HTTP status code 403
Forbidden error, user does not have access to APIs
Secured by basicAuth
Headers
- Authorization: required(string)
Used to send the Base64-encoded "username:password" credentials
HTTP status code 401
Unauthorized. Either the provided username and password combination is invalid, or the user is not allowed to access the content provided by the requested URL.
/api/v2/config/snmpaccess
You can retrieve parameters pertaining to the SNMP mechanism.
By passing in the appropriate options, you can edit the parameters for SNMP.
get /api/v2/config/snmpaccess
You can retrieve parameters pertaining to the SNMP mechanism.
Each request must contain the headers necessary for basic authentication
Query Parameters
- plug: (string)
Pass an optional search string for a port, otherwise all ports get returned.
Example:
ports=eth0
HTTP status code 200
Get SNMP parameters
Body
Media type: application/json
Type: object
Properties- status: required(object)
- code: required(integer)
Numeric status code of the completed action.
- text: required(string)
Text status code of the completed action.
Example:
{ "code": 0, "text": "OK" }
- code: required(integer)
- snmpaccess: required(object)
- eth0: (array of object)
Items: items
- ietf-ipv4: (object)
- enable: required(one of 0, 1)
Enable SNMP for a particular port and protocol
Example:
1
- version: required(one of 0, 1, 2)
Trap Version 0 = v1/v2, 1 = v3, 2 = v1/v2/v3
Example:
1
- readonly: required(one of 0, 1)
Read Only 0 = No, 1 = Yes
Example:
0
- systemname: required(string - maxLength: 32)
System Name
Example:
industry01
- contact: required(string - maxLength: 32)
Contact information of person in charge
Example:
support@wti.com
- location: required(string - maxLength: 32)
Location of device
Example:
Irvine, California
- rocommunity: required(string - maxLength: 32)
Read Only Community Name
Example:
public
- rwcommunity: required(string - maxLength: 32)
Read Write Community Name
Example:
public
- users: (array of SNMPUsersDefinition)
Items: SNMPUsersDefinition
- username: required(string - maxLength: 32)
User Name being defined
Example:
samsmith
- authpriv: required(one of 0, 1)
Authorization and Privacy 0 = Auth/NoPriv, 1 = Auth/Priv
Example:
1
- authpass: required(string - maxLength: 32)
Authorization Password
Example:
password1234
- authproto: required(one of 0, 1)
Authorization Protocol 0 = MD5, 1 = SHA1
Example:
0
- privpass: required(string - maxLength: 32)
Privacy Password
Example:
password1234
- privproto: required(one of 0, 1)
Privacy Protocol 0 = DES, 1 = AES128
Example:
1
- index: required(one of 1, 2, 3, 4)
Slot of User name being defined
Example:
1
- username: required(string - maxLength: 32)
- enable: required(one of 0, 1)
- ietf-ipv6: (object)
- enable: required(one of 0, 1)
Enable SNMP for a particular port and protocol
Example:
1
- version: required(one of 0, 1, 2)
Trap Version 0 = v1/v2, 1 = v3, 2 = v1/v2/v3
Example:
1
- readonly: required(one of 0, 1)
Read Only 0 = No, 1 = Yes
Example:
0
- systemname: required(string - maxLength: 32)
System Name
Example:
industry01
- contact: required(string - maxLength: 32)
Contact information of person in charge
Example:
support@wti.com
- location: required(string - maxLength: 32)
Location of device
Example:
Irvine, California
- rocommunity: required(string - maxLength: 32)
Read Only Community Name
Example:
public
- rwcommunity: required(string - maxLength: 32)
Read Write Community Name
Example:
public
- users: (array of SNMPUsersDefinition)
Items: SNMPUsersDefinition
- username: required(string - maxLength: 32)
User Name being defined
Example:
samsmith
- authpriv: required(one of 0, 1)
Authorization and Privacy 0 = Auth/NoPriv, 1 = Auth/Priv
Example:
1
- authpass: required(string - maxLength: 32)
Authorization Password
Example:
password1234
- authproto: required(one of 0, 1)
Authorization Protocol 0 = MD5, 1 = SHA1
Example:
0
- privpass: required(string - maxLength: 32)
Privacy Password
Example:
password1234
- privproto: required(one of 0, 1)
Privacy Protocol 0 = DES, 1 = AES128
Example:
1
- index: required(one of 1, 2, 3, 4)
Slot of User name being defined
Example:
1
- username: required(string - maxLength: 32)
- enable: required(one of 0, 1)
- ietf-ipv4: (object)
- eth1: (array of object)
Items: items
- ietf-ipv4: (object)
- enable: required(one of 0, 1)
Enable SNMP for a particular port and protocol
Example:
1
- version: required(one of 0, 1, 2)
Trap Version 0 = v1/v2, 1 = v3, 2 = v1/v2/v3
Example:
1
- readonly: required(one of 0, 1)
Read Only 0 = No, 1 = Yes
Example:
0
- systemname: required(string - maxLength: 32)
System Name
Example:
industry01
- contact: required(string - maxLength: 32)
Contact information of person in charge
Example:
support@wti.com
- location: required(string - maxLength: 32)
Location of device
Example:
Irvine, California
- rocommunity: required(string - maxLength: 32)
Read Only Community Name
Example:
public
- rwcommunity: required(string - maxLength: 32)
Read Write Community Name
Example:
public
- users: (array of SNMPUsersDefinition)
Items: SNMPUsersDefinition
- username: required(string - maxLength: 32)
User Name being defined
Example:
samsmith
- authpriv: required(one of 0, 1)
Authorization and Privacy 0 = Auth/NoPriv, 1 = Auth/Priv
Example:
1
- authpass: required(string - maxLength: 32)
Authorization Password
Example:
password1234
- authproto: required(one of 0, 1)
Authorization Protocol 0 = MD5, 1 = SHA1
Example:
0
- privpass: required(string - maxLength: 32)
Privacy Password
Example:
password1234
- privproto: required(one of 0, 1)
Privacy Protocol 0 = DES, 1 = AES128
Example:
1
- index: required(one of 1, 2, 3, 4)
Slot of User name being defined
Example:
1
- username: required(string - maxLength: 32)
- enable: required(one of 0, 1)
- ietf-ipv6: (object)
- enable: required(one of 0, 1)
Enable SNMP for a particular port and protocol
Example:
1
- version: required(one of 0, 1, 2)
Trap Version 0 = v1/v2, 1 = v3, 2 = v1/v2/v3
Example:
1
- readonly: required(one of 0, 1)
Read Only 0 = No, 1 = Yes
Example:
0
- systemname: required(string - maxLength: 32)
System Name
Example:
industry01
- contact: required(string - maxLength: 32)
Contact information of person in charge
Example:
support@wti.com
- location: required(string - maxLength: 32)
Location of device
Example:
Irvine, California
- rocommunity: required(string - maxLength: 32)
Read Only Community Name
Example:
public
- rwcommunity: required(string - maxLength: 32)
Read Write Community Name
Example:
public
- users: (array of SNMPUsersDefinition)
Items: SNMPUsersDefinition
- username: required(string - maxLength: 32)
User Name being defined
Example:
samsmith
- authpriv: required(one of 0, 1)
Authorization and Privacy 0 = Auth/NoPriv, 1 = Auth/Priv
Example:
1
- authpass: required(string - maxLength: 32)
Authorization Password
Example:
password1234
- authproto: required(one of 0, 1)
Authorization Protocol 0 = MD5, 1 = SHA1
Example:
0
- privpass: required(string - maxLength: 32)
Privacy Password
Example:
password1234
- privproto: required(one of 0, 1)
Privacy Protocol 0 = DES, 1 = AES128
Example:
1
- index: required(one of 1, 2, 3, 4)
Slot of User name being defined
Example:
1
- username: required(string - maxLength: 32)
- enable: required(one of 0, 1)
- ietf-ipv4: (object)
- ppp0: (array of object)
Items: items
- ietf-ipv4: (object)
- enable: required(one of 0, 1)
Enable SNMP for a particular port and protocol
Example:
1
- version: required(one of 0, 1, 2)
Trap Version 0 = v1/v2, 1 = v3, 2 = v1/v2/v3
Example:
1
- readonly: required(one of 0, 1)
Read Only 0 = No, 1 = Yes
Example:
0
- systemname: required(string - maxLength: 32)
System Name
Example:
industry01
- contact: required(string - maxLength: 32)
Contact information of person in charge
Example:
support@wti.com
- location: required(string - maxLength: 32)
Location of device
Example:
Irvine, California
- rocommunity: required(string - maxLength: 32)
Read Only Community Name
Example:
public
- rwcommunity: required(string - maxLength: 32)
Read Write Community Name
Example:
public
- users: (array of SNMPUsersDefinition)
Items: SNMPUsersDefinition
- username: required(string - maxLength: 32)
User Name being defined
Example:
samsmith
- authpriv: required(one of 0, 1)
Authorization and Privacy 0 = Auth/NoPriv, 1 = Auth/Priv
Example:
1
- authpass: required(string - maxLength: 32)
Authorization Password
Example:
password1234
- authproto: required(one of 0, 1)
Authorization Protocol 0 = MD5, 1 = SHA1
Example:
0
- privpass: required(string - maxLength: 32)
Privacy Password
Example:
password1234
- privproto: required(one of 0, 1)
Privacy Protocol 0 = DES, 1 = AES128
Example:
1
- index: required(one of 1, 2, 3, 4)
Slot of User name being defined
Example:
1
- username: required(string - maxLength: 32)
- enable: required(one of 0, 1)
- ietf-ipv6: (object)
- enable: required(one of 0, 1)
Enable SNMP for a particular port and protocol
Example:
1
- version: required(one of 0, 1, 2)
Trap Version 0 = v1/v2, 1 = v3, 2 = v1/v2/v3
Example:
1
- readonly: required(one of 0, 1)
Read Only 0 = No, 1 = Yes
Example:
0
- systemname: required(string - maxLength: 32)
System Name
Example:
industry01
- contact: required(string - maxLength: 32)
Contact information of person in charge
Example:
support@wti.com
- location: required(string - maxLength: 32)
Location of device
Example:
Irvine, California
- rocommunity: required(string - maxLength: 32)
Read Only Community Name
Example:
public
- rwcommunity: required(string - maxLength: 32)
Read Write Community Name
Example:
public
- users: (array of SNMPUsersDefinition)
Items: SNMPUsersDefinition
- username: required(string - maxLength: 32)
User Name being defined
Example:
samsmith
- authpriv: required(one of 0, 1)
Authorization and Privacy 0 = Auth/NoPriv, 1 = Auth/Priv
Example:
1
- authpass: required(string - maxLength: 32)
Authorization Password
Example:
password1234
- authproto: required(one of 0, 1)
Authorization Protocol 0 = MD5, 1 = SHA1
Example:
0
- privpass: required(string - maxLength: 32)
Privacy Password
Example:
password1234
- privproto: required(one of 0, 1)
Privacy Protocol 0 = DES, 1 = AES128
Example:
1
- index: required(one of 1, 2, 3, 4)
Slot of User name being defined
Example:
1
- username: required(string - maxLength: 32)
- enable: required(one of 0, 1)
- ietf-ipv4: (object)
- eth0: (array of object)
Example:
{
"status": {
"code": 0,
"text": "OK"
},
"snmpaccess": {
"eth0": [
{
"ietf-ipv4": {
"enable": 0,
"version": 2,
"readonly": 0,
"systemname": "",
"contact": "",
"location": "",
"rocommunity": "public",
"rwcommunity": "public",
"users": [
{
"username": "fgffgfg",
"authpriv": 1,
"authpass": "sdsdsdsd",
"authproto": 0,
"privpass": "",
"privproto": 0,
"index": 1
}
]
}
}
]
}
}
HTTP status code 400
bad input parameter
HTTP status code 401
unauthorized error
HTTP status code 403
Forbidden error, user does not have access to APIs
HTTP status code 409
an existing item does not exist
Secured by basicAuth
Headers
- Authorization: required(string)
Used to send the Base64-encoded "username:password" credentials
HTTP status code 401
Unauthorized. Either the provided username and password combination is invalid, or the user is not allowed to access the content provided by the requested URL.
put /api/v2/config/snmpaccess
By passing in the appropriate options, you can edit the parameters for SNMP.
Each request must contain the headers necessary for basic authentication
Body
Media type: application/json
Type: object
Properties- snmpaccess: required(object)
- eth0: (array of object)
Items: items
- ietf-ipv4: (object)
- enable: required(one of 0, 1)
Enable SNMP for a particular port and protocol
Example:
1
- version: required(one of 0, 1, 2)
Trap Version 0 = v1/v2, 1 = v3, 2 = v1/v2/v3
Example:
1
- readonly: required(one of 0, 1)
Read Only 0 = No, 1 = Yes
Example:
0
- systemname: required(string - maxLength: 32)
System Name
Example:
industry01
- contact: required(string - maxLength: 32)
Contact information of person in charge
Example:
support@wti.com
- location: required(string - maxLength: 32)
Location of device
Example:
Irvine, California
- rocommunity: required(string - maxLength: 32)
Read Only Community Name
Example:
public
- rwcommunity: required(string - maxLength: 32)
Read Write Community Name
Example:
public
- users: (array of SNMPUsersDefinition)
Items: SNMPUsersDefinition
- username: required(string - maxLength: 32)
User Name being defined
Example:
samsmith
- authpriv: required(one of 0, 1)
Authorization and Privacy 0 = Auth/NoPriv, 1 = Auth/Priv
Example:
1
- authpass: required(string - maxLength: 32)
Authorization Password
Example:
password1234
- authproto: required(one of 0, 1)
Authorization Protocol 0 = MD5, 1 = SHA1
Example:
0
- privpass: required(string - maxLength: 32)
Privacy Password
Example:
password1234
- privproto: required(one of 0, 1)
Privacy Protocol 0 = DES, 1 = AES128
Example:
1
- index: required(one of 1, 2, 3, 4)
Slot of User name being defined
Example:
1
- username: required(string - maxLength: 32)
- enable: required(one of 0, 1)
- ietf-ipv6: (object)
- enable: required(one of 0, 1)
Enable SNMP for a particular port and protocol
Example:
1
- version: required(one of 0, 1, 2)
Trap Version 0 = v1/v2, 1 = v3, 2 = v1/v2/v3
Example:
1
- readonly: required(one of 0, 1)
Read Only 0 = No, 1 = Yes
Example:
0
- systemname: required(string - maxLength: 32)
System Name
Example:
industry01
- contact: required(string - maxLength: 32)
Contact information of person in charge
Example:
support@wti.com
- location: required(string - maxLength: 32)
Location of device
Example:
Irvine, California
- rocommunity: required(string - maxLength: 32)
Read Only Community Name
Example:
public
- rwcommunity: required(string - maxLength: 32)
Read Write Community Name
Example:
public
- users: (array of SNMPUsersDefinition)
Items: SNMPUsersDefinition
- username: required(string - maxLength: 32)
User Name being defined
Example:
samsmith
- authpriv: required(one of 0, 1)
Authorization and Privacy 0 = Auth/NoPriv, 1 = Auth/Priv
Example:
1
- authpass: required(string - maxLength: 32)
Authorization Password
Example:
password1234
- authproto: required(one of 0, 1)
Authorization Protocol 0 = MD5, 1 = SHA1
Example:
0
- privpass: required(string - maxLength: 32)
Privacy Password
Example:
password1234
- privproto: required(one of 0, 1)
Privacy Protocol 0 = DES, 1 = AES128
Example:
1
- index: required(one of 1, 2, 3, 4)
Slot of User name being defined
Example:
1
- username: required(string - maxLength: 32)
- enable: required(one of 0, 1)
- ietf-ipv4: (object)
- eth1: (array of object)
Items: items
- ietf-ipv4: (object)
- enable: required(one of 0, 1)
Enable SNMP for a particular port and protocol
Example:
1
- version: required(one of 0, 1, 2)
Trap Version 0 = v1/v2, 1 = v3, 2 = v1/v2/v3
Example:
1
- readonly: required(one of 0, 1)
Read Only 0 = No, 1 = Yes
Example:
0
- systemname: required(string - maxLength: 32)
System Name
Example:
industry01
- contact: required(string - maxLength: 32)
Contact information of person in charge
Example:
support@wti.com
- location: required(string - maxLength: 32)
Location of device
Example:
Irvine, California
- rocommunity: required(string - maxLength: 32)
Read Only Community Name
Example:
public
- rwcommunity: required(string - maxLength: 32)
Read Write Community Name
Example:
public
- users: (array of SNMPUsersDefinition)
Items: SNMPUsersDefinition
- username: required(string - maxLength: 32)
User Name being defined
Example:
samsmith
- authpriv: required(one of 0, 1)
Authorization and Privacy 0 = Auth/NoPriv, 1 = Auth/Priv
Example:
1
- authpass: required(string - maxLength: 32)
Authorization Password
Example:
password1234
- authproto: required(one of 0, 1)
Authorization Protocol 0 = MD5, 1 = SHA1
Example:
0
- privpass: required(string - maxLength: 32)
Privacy Password
Example:
password1234
- privproto: required(one of 0, 1)
Privacy Protocol 0 = DES, 1 = AES128
Example:
1
- index: required(one of 1, 2, 3, 4)
Slot of User name being defined
Example:
1
- username: required(string - maxLength: 32)
- enable: required(one of 0, 1)
- ietf-ipv6: (object)
- enable: required(one of 0, 1)
Enable SNMP for a particular port and protocol
Example:
1
- version: required(one of 0, 1, 2)
Trap Version 0 = v1/v2, 1 = v3, 2 = v1/v2/v3
Example:
1
- readonly: required(one of 0, 1)
Read Only 0 = No, 1 = Yes
Example:
0
- systemname: required(string - maxLength: 32)
System Name
Example:
industry01
- contact: required(string - maxLength: 32)
Contact information of person in charge
Example:
support@wti.com
- location: required(string - maxLength: 32)
Location of device
Example:
Irvine, California
- rocommunity: required(string - maxLength: 32)
Read Only Community Name
Example:
public
- rwcommunity: required(string - maxLength: 32)
Read Write Community Name
Example:
public
- users: (array of SNMPUsersDefinition)
Items: SNMPUsersDefinition
- username: required(string - maxLength: 32)
User Name being defined
Example:
samsmith
- authpriv: required(one of 0, 1)
Authorization and Privacy 0 = Auth/NoPriv, 1 = Auth/Priv
Example:
1
- authpass: required(string - maxLength: 32)
Authorization Password
Example:
password1234
- authproto: required(one of 0, 1)
Authorization Protocol 0 = MD5, 1 = SHA1
Example:
0
- privpass: required(string - maxLength: 32)
Privacy Password
Example:
password1234
- privproto: required(one of 0, 1)
Privacy Protocol 0 = DES, 1 = AES128
Example:
1
- index: required(one of 1, 2, 3, 4)
Slot of User name being defined
Example:
1
- username: required(string - maxLength: 32)
- enable: required(one of 0, 1)
- ietf-ipv4: (object)
- ppp0: (array of object)
Items: items
- ietf-ipv4: (object)
- enable: required(one of 0, 1)
Enable SNMP for a particular port and protocol
Example:
1
- version: required(one of 0, 1, 2)
Trap Version 0 = v1/v2, 1 = v3, 2 = v1/v2/v3
Example:
1
- readonly: required(one of 0, 1)
Read Only 0 = No, 1 = Yes
Example:
0
- systemname: required(string - maxLength: 32)
System Name
Example:
industry01
- contact: required(string - maxLength: 32)
Contact information of person in charge
Example:
support@wti.com
- location: required(string - maxLength: 32)
Location of device
Example:
Irvine, California
- rocommunity: required(string - maxLength: 32)
Read Only Community Name
Example:
public
- rwcommunity: required(string - maxLength: 32)
Read Write Community Name
Example:
public
- users: (array of SNMPUsersDefinition)
Items: SNMPUsersDefinition
- username: required(string - maxLength: 32)
User Name being defined
Example:
samsmith
- authpriv: required(one of 0, 1)
Authorization and Privacy 0 = Auth/NoPriv, 1 = Auth/Priv
Example:
1
- authpass: required(string - maxLength: 32)
Authorization Password
Example:
password1234
- authproto: required(one of 0, 1)
Authorization Protocol 0 = MD5, 1 = SHA1
Example:
0
- privpass: required(string - maxLength: 32)
Privacy Password
Example:
password1234
- privproto: required(one of 0, 1)
Privacy Protocol 0 = DES, 1 = AES128
Example:
1
- index: required(one of 1, 2, 3, 4)
Slot of User name being defined
Example:
1
- username: required(string - maxLength: 32)
- enable: required(one of 0, 1)
- ietf-ipv6: (object)
- enable: required(one of 0, 1)
Enable SNMP for a particular port and protocol
Example:
1
- version: required(one of 0, 1, 2)
Trap Version 0 = v1/v2, 1 = v3, 2 = v1/v2/v3
Example:
1
- readonly: required(one of 0, 1)
Read Only 0 = No, 1 = Yes
Example:
0
- systemname: required(string - maxLength: 32)
System Name
Example:
industry01
- contact: required(string - maxLength: 32)
Contact information of person in charge
Example:
support@wti.com
- location: required(string - maxLength: 32)
Location of device
Example:
Irvine, California
- rocommunity: required(string - maxLength: 32)
Read Only Community Name
Example:
public
- rwcommunity: required(string - maxLength: 32)
Read Write Community Name
Example:
public
- users: (array of SNMPUsersDefinition)
Items: SNMPUsersDefinition
- username: required(string - maxLength: 32)
User Name being defined
Example:
samsmith
- authpriv: required(one of 0, 1)
Authorization and Privacy 0 = Auth/NoPriv, 1 = Auth/Priv
Example:
1
- authpass: required(string - maxLength: 32)
Authorization Password
Example:
password1234
- authproto: required(one of 0, 1)
Authorization Protocol 0 = MD5, 1 = SHA1
Example:
0
- privpass: required(string - maxLength: 32)
Privacy Password
Example:
password1234
- privproto: required(one of 0, 1)
Privacy Protocol 0 = DES, 1 = AES128
Example:
1
- index: required(one of 1, 2, 3, 4)
Slot of User name being defined
Example:
1
- username: required(string - maxLength: 32)
- enable: required(one of 0, 1)
- ietf-ipv4: (object)
- eth0: (array of object)
Example:
{
"snmpaccess": {
"eth0": [
{
"ietf-ipv4": {
"enable": 0,
"version": 2,
"readonly": 0,
"systemname": "",
"contact": "",
"location": "",
"rocommunity": "public",
"rwcommunity": "public",
"users": [
{
"username": "fgffgfg",
"authpriv": 1,
"authpass": "sdsdsdsd",
"authproto": 0,
"privpass": "",
"privproto": 0,
"index": 1
}
]
}
}
]
}
}
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- status: required(object)
- code: required(integer)
Numeric status code of the completed action.
- text: required(string)
Text status code of the completed action.
Example:
{ "code": 0, "text": "OK" }
- code: required(integer)
- snmpaccess: required(object)
- eth0: (array of object)
Items: items
- ietf-ipv4: (object)
- enable: required(one of 0, 1)
Enable SNMP for a particular port and protocol
Example:
1
- version: required(one of 0, 1, 2)
Trap Version 0 = v1/v2, 1 = v3, 2 = v1/v2/v3
Example:
1
- readonly: required(one of 0, 1)
Read Only 0 = No, 1 = Yes
Example:
0
- systemname: required(string - maxLength: 32)
System Name
Example:
industry01
- contact: required(string - maxLength: 32)
Contact information of person in charge
Example:
support@wti.com
- location: required(string - maxLength: 32)
Location of device
Example:
Irvine, California
- rocommunity: required(string - maxLength: 32)
Read Only Community Name
Example:
public
- rwcommunity: required(string - maxLength: 32)
Read Write Community Name
Example:
public
- users: (array of SNMPUsersDefinition)
Items: SNMPUsersDefinition
- username: required(string - maxLength: 32)
User Name being defined
Example:
samsmith
- authpriv: required(one of 0, 1)
Authorization and Privacy 0 = Auth/NoPriv, 1 = Auth/Priv
Example:
1
- authpass: required(string - maxLength: 32)
Authorization Password
Example:
password1234
- authproto: required(one of 0, 1)
Authorization Protocol 0 = MD5, 1 = SHA1
Example:
0
- privpass: required(string - maxLength: 32)
Privacy Password
Example:
password1234
- privproto: required(one of 0, 1)
Privacy Protocol 0 = DES, 1 = AES128
Example:
1
- index: required(one of 1, 2, 3, 4)
Slot of User name being defined
Example:
1
- username: required(string - maxLength: 32)
- enable: required(one of 0, 1)
- ietf-ipv6: (object)
- enable: required(one of 0, 1)
Enable SNMP for a particular port and protocol
Example:
1
- version: required(one of 0, 1, 2)
Trap Version 0 = v1/v2, 1 = v3, 2 = v1/v2/v3
Example:
1
- readonly: required(one of 0, 1)
Read Only 0 = No, 1 = Yes
Example:
0
- systemname: required(string - maxLength: 32)
System Name
Example:
industry01
- contact: required(string - maxLength: 32)
Contact information of person in charge
Example:
support@wti.com
- location: required(string - maxLength: 32)
Location of device
Example:
Irvine, California
- rocommunity: required(string - maxLength: 32)
Read Only Community Name
Example:
public
- rwcommunity: required(string - maxLength: 32)
Read Write Community Name
Example:
public
- users: (array of SNMPUsersDefinition)
Items: SNMPUsersDefinition
- username: required(string - maxLength: 32)
User Name being defined
Example:
samsmith
- authpriv: required(one of 0, 1)
Authorization and Privacy 0 = Auth/NoPriv, 1 = Auth/Priv
Example:
1
- authpass: required(string - maxLength: 32)
Authorization Password
Example:
password1234
- authproto: required(one of 0, 1)
Authorization Protocol 0 = MD5, 1 = SHA1
Example:
0
- privpass: required(string - maxLength: 32)
Privacy Password
Example:
password1234
- privproto: required(one of 0, 1)
Privacy Protocol 0 = DES, 1 = AES128
Example:
1
- index: required(one of 1, 2, 3, 4)
Slot of User name being defined
Example:
1
- username: required(string - maxLength: 32)
- enable: required(one of 0, 1)
- ietf-ipv4: (object)
- eth1: (array of object)
Items: items
- ietf-ipv4: (object)
- enable: required(one of 0, 1)
Enable SNMP for a particular port and protocol
Example:
1
- version: required(one of 0, 1, 2)
Trap Version 0 = v1/v2, 1 = v3, 2 = v1/v2/v3
Example:
1
- readonly: required(one of 0, 1)
Read Only 0 = No, 1 = Yes
Example:
0
- systemname: required(string - maxLength: 32)
System Name
Example:
industry01
- contact: required(string - maxLength: 32)
Contact information of person in charge
Example:
support@wti.com
- location: required(string - maxLength: 32)
Location of device
Example:
Irvine, California
- rocommunity: required(string - maxLength: 32)
Read Only Community Name
Example:
public
- rwcommunity: required(string - maxLength: 32)
Read Write Community Name
Example:
public
- users: (array of SNMPUsersDefinition)
Items: SNMPUsersDefinition
- username: required(string - maxLength: 32)
User Name being defined
Example:
samsmith
- authpriv: required(one of 0, 1)
Authorization and Privacy 0 = Auth/NoPriv, 1 = Auth/Priv
Example:
1
- authpass: required(string - maxLength: 32)
Authorization Password
Example:
password1234
- authproto: required(one of 0, 1)
Authorization Protocol 0 = MD5, 1 = SHA1
Example:
0
- privpass: required(string - maxLength: 32)
Privacy Password
Example:
password1234
- privproto: required(one of 0, 1)
Privacy Protocol 0 = DES, 1 = AES128
Example:
1
- index: required(one of 1, 2, 3, 4)
Slot of User name being defined
Example:
1
- username: required(string - maxLength: 32)
- enable: required(one of 0, 1)
- ietf-ipv6: (object)
- enable: required(one of 0, 1)
Enable SNMP for a particular port and protocol
Example:
1
- version: required(one of 0, 1, 2)
Trap Version 0 = v1/v2, 1 = v3, 2 = v1/v2/v3
Example:
1
- readonly: required(one of 0, 1)
Read Only 0 = No, 1 = Yes
Example:
0
- systemname: required(string - maxLength: 32)
System Name
Example:
industry01
- contact: required(string - maxLength: 32)
Contact information of person in charge
Example:
support@wti.com
- location: required(string - maxLength: 32)
Location of device
Example:
Irvine, California
- rocommunity: required(string - maxLength: 32)
Read Only Community Name
Example:
public
- rwcommunity: required(string - maxLength: 32)
Read Write Community Name
Example:
public
- users: (array of SNMPUsersDefinition)
Items: SNMPUsersDefinition
- username: required(string - maxLength: 32)
User Name being defined
Example:
samsmith
- authpriv: required(one of 0, 1)
Authorization and Privacy 0 = Auth/NoPriv, 1 = Auth/Priv
Example:
1
- authpass: required(string - maxLength: 32)
Authorization Password
Example:
password1234
- authproto: required(one of 0, 1)
Authorization Protocol 0 = MD5, 1 = SHA1
Example:
0
- privpass: required(string - maxLength: 32)
Privacy Password
Example:
password1234
- privproto: required(one of 0, 1)
Privacy Protocol 0 = DES, 1 = AES128
Example:
1
- index: required(one of 1, 2, 3, 4)
Slot of User name being defined
Example:
1
- username: required(string - maxLength: 32)
- enable: required(one of 0, 1)
- ietf-ipv4: (object)
- ppp0: (array of object)
Items: items
- ietf-ipv4: (object)
- enable: required(one of 0, 1)
Enable SNMP for a particular port and protocol
Example:
1
- version: required(one of 0, 1, 2)
Trap Version 0 = v1/v2, 1 = v3, 2 = v1/v2/v3
Example:
1
- readonly: required(one of 0, 1)
Read Only 0 = No, 1 = Yes
Example:
0
- systemname: required(string - maxLength: 32)
System Name
Example:
industry01
- contact: required(string - maxLength: 32)
Contact information of person in charge
Example:
support@wti.com
- location: required(string - maxLength: 32)
Location of device
Example:
Irvine, California
- rocommunity: required(string - maxLength: 32)
Read Only Community Name
Example:
public
- rwcommunity: required(string - maxLength: 32)
Read Write Community Name
Example:
public
- users: (array of SNMPUsersDefinition)
Items: SNMPUsersDefinition
- username: required(string - maxLength: 32)
User Name being defined
Example:
samsmith
- authpriv: required(one of 0, 1)
Authorization and Privacy 0 = Auth/NoPriv, 1 = Auth/Priv
Example:
1
- authpass: required(string - maxLength: 32)
Authorization Password
Example:
password1234
- authproto: required(one of 0, 1)
Authorization Protocol 0 = MD5, 1 = SHA1
Example:
0
- privpass: required(string - maxLength: 32)
Privacy Password
Example:
password1234
- privproto: required(one of 0, 1)
Privacy Protocol 0 = DES, 1 = AES128
Example:
1
- index: required(one of 1, 2, 3, 4)
Slot of User name being defined
Example:
1
- username: required(string - maxLength: 32)
- enable: required(one of 0, 1)
- ietf-ipv6: (object)
- enable: required(one of 0, 1)
Enable SNMP for a particular port and protocol
Example:
1
- version: required(one of 0, 1, 2)
Trap Version 0 = v1/v2, 1 = v3, 2 = v1/v2/v3
Example:
1
- readonly: required(one of 0, 1)
Read Only 0 = No, 1 = Yes
Example:
0
- systemname: required(string - maxLength: 32)
System Name
Example:
industry01
- contact: required(string - maxLength: 32)
Contact information of person in charge
Example:
support@wti.com
- location: required(string - maxLength: 32)
Location of device
Example:
Irvine, California
- rocommunity: required(string - maxLength: 32)
Read Only Community Name
Example:
public
- rwcommunity: required(string - maxLength: 32)
Read Write Community Name
Example:
public
- users: (array of SNMPUsersDefinition)
Items: SNMPUsersDefinition
- username: required(string - maxLength: 32)
User Name being defined
Example:
samsmith
- authpriv: required(one of 0, 1)
Authorization and Privacy 0 = Auth/NoPriv, 1 = Auth/Priv
Example:
1
- authpass: required(string - maxLength: 32)
Authorization Password
Example:
password1234
- authproto: required(one of 0, 1)
Authorization Protocol 0 = MD5, 1 = SHA1
Example:
0
- privpass: required(string - maxLength: 32)
Privacy Password
Example:
password1234
- privproto: required(one of 0, 1)
Privacy Protocol 0 = DES, 1 = AES128
Example:
1
- index: required(one of 1, 2, 3, 4)
Slot of User name being defined
Example:
1
- username: required(string - maxLength: 32)
- enable: required(one of 0, 1)
- ietf-ipv4: (object)
- eth0: (array of object)
HTTP status code 400
invalid input, object invalid
HTTP status code 401
unauthorized error
HTTP status code 403
Forbidden error, user does not have access to APIs
Secured by basicAuth
Headers
- Authorization: required(string)
Used to send the Base64-encoded "username:password" credentials
HTTP status code 401
Unauthorized. Either the provided username and password combination is invalid, or the user is not allowed to access the content provided by the requested URL.
/api/v2/config/iptables
You can retrieve parameters pertaining to the IPTables mechanism.
By passing in the appropriate options, you can edit the parameters for IPTables.
get /api/v2/config/iptables
You can retrieve parameters pertaining to the IPTables mechanism.
Each request must contain the headers necessary for basic authentication
Query Parameters
- plug: (string)
Pass an optional search string for a port, otherwise all ports get returned.
Example:
ports=eth0
HTTP status code 200
Get IPTables parameters
Body
Media type: application/json
Type: object
Properties- status: required(object)
- code: required(integer)
Numeric status code of the completed action.
- text: required(string)
Text status code of the completed action.
Example:
{ "code": 0, "text": "OK" }
- code: required(integer)
- iptables: required(object)
- ietf-ipv4: (object)
- clear: required(one of 0, 1)
If all the iptable entries were cleared
Example:
1
- entries: required(array of IPTABLESEntryDefinition)
Items: IPTABLESEntryDefinition
- entry: required(string - maxLength: 256)
IPTables Entry being defined
Example:
iptables -A INPUT -i lo -j ACCEPT
- index: required(integer)
Slot of Entry name being defined, range 1 to 48
Example:
1
- entry: required(string - maxLength: 256)
- clear: required(one of 0, 1)
- ietf-ipv6: (object)
- clear: required(one of 0, 1)
If all the iptable entries were cleared
Example:
1
- entries: required(array of IPTABLESEntryDefinition)
Items: IPTABLESEntryDefinition
- entry: required(string - maxLength: 256)
IPTables Entry being defined
Example:
iptables -A INPUT -i lo -j ACCEPT
- index: required(integer)
Slot of Entry name being defined, range 1 to 48
Example:
1
- entry: required(string - maxLength: 256)
- clear: required(one of 0, 1)
- ietf-ipv4: (object)
Example:
{
"status": {
"code": 0,
"text": "OK"
},
"iptables": {
"ietf-ipv4": {
"clear": 1,
"entries": [
{
"entry": "iptables -A INPUT -i lo -j ACCEPT",
"index": 1
}
]
}
}
}
HTTP status code 400
bad input parameter
HTTP status code 401
unauthorized error
HTTP status code 403
Forbidden error, user does not have access to APIs
HTTP status code 409
an existing item does not exist
Secured by basicAuth
Headers
- Authorization: required(string)
Used to send the Base64-encoded "username:password" credentials
HTTP status code 401
Unauthorized. Either the provided username and password combination is invalid, or the user is not allowed to access the content provided by the requested URL.
put /api/v2/config/iptables
By passing in the appropriate options, you can edit the parameters for IPTables.
Each request must contain the headers necessary for basic authentication
Body
Media type: application/json
Type: object
Properties- iptables: required(object)
- ietf-ipv4: (object)
- clear: required(one of 0, 1)
If all the iptable entries were cleared
Example:
1
- entries: required(array of IPTABLESEntryDefinition)
Items: IPTABLESEntryDefinition
- entry: required(string - maxLength: 256)
IPTables Entry being defined
Example:
iptables -A INPUT -i lo -j ACCEPT
- index: required(integer)
Slot of Entry name being defined, range 1 to 48
Example:
1
- entry: required(string - maxLength: 256)
- clear: required(one of 0, 1)
- ietf-ipv6: (object)
- clear: required(one of 0, 1)
If all the iptable entries were cleared
Example:
1
- entries: required(array of IPTABLESEntryDefinition)
Items: IPTABLESEntryDefinition
- entry: required(string - maxLength: 256)
IPTables Entry being defined
Example:
iptables -A INPUT -i lo -j ACCEPT
- index: required(integer)
Slot of Entry name being defined, range 1 to 48
Example:
1
- entry: required(string - maxLength: 256)
- clear: required(one of 0, 1)
- ietf-ipv4: (object)
Example:
{
"iptables": {
"ietf-ipv4": {
"clear": 1,
"entries": [
{
"entry": "iptables -A INPUT -i lo -j ACCEPT",
"index": 1
}
]
}
}
}
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- status: required(object)
- code: required(integer)
Numeric status code of the completed action.
- text: required(string)
Text status code of the completed action.
Example:
{ "code": 0, "text": "OK" }
- code: required(integer)
- iptables: required(object)
- ietf-ipv4: (object)
- clear: required(one of 0, 1)
If all the iptable entries were cleared
Example:
1
- entries: required(array of IPTABLESEntryDefinition)
Items: IPTABLESEntryDefinition
- entry: required(string - maxLength: 256)
IPTables Entry being defined
Example:
iptables -A INPUT -i lo -j ACCEPT
- index: required(integer)
Slot of Entry name being defined, range 1 to 48
Example:
1
- entry: required(string - maxLength: 256)
- clear: required(one of 0, 1)
- ietf-ipv6: (object)
- clear: required(one of 0, 1)
If all the iptable entries were cleared
Example:
1
- entries: required(array of IPTABLESEntryDefinition)
Items: IPTABLESEntryDefinition
- entry: required(string - maxLength: 256)
IPTables Entry being defined
Example:
iptables -A INPUT -i lo -j ACCEPT
- index: required(integer)
Slot of Entry name being defined, range 1 to 48
Example:
1
- entry: required(string - maxLength: 256)
- clear: required(one of 0, 1)
- ietf-ipv4: (object)
Example:
{
"status": {
"code": 0,
"text": "OK"
},
"iptables": {
"ietf-ipv4": {
"clear": 1,
"entries": [
{
"entry": "iptables -A INPUT -i lo -j ACCEPT",
"index": 1
}
]
}
}
}
HTTP status code 400
invalid input, object invalid
HTTP status code 401
unauthorized error
HTTP status code 403
Forbidden error, user does not have access to APIs
Secured by basicAuth
Headers
- Authorization: required(string)
Used to send the Base64-encoded "username:password" credentials
HTTP status code 401
Unauthorized. Either the provided username and password combination is invalid, or the user is not allowed to access the content provided by the requested URL.
/api/v2/config/syslogserver
You can retrieve parameters pertaining to the SYSLOG Server mechanism.
By passing in the appropriate options, you can edit the parameters for SYSLOG Server.
get /api/v2/config/syslogserver
You can retrieve parameters pertaining to the SYSLOG Server mechanism.
Each request must contain the headers necessary for basic authentication
Query Parameters
- plug: (string)
Pass an optional search string for a port, otherwise all ports get returned.
Example:
ports=eth0
HTTP status code 200
Get SYSLOG Server parameters
Body
Media type: application/json
Type: object
Properties- status: required(object)
- code: required(integer)
Numeric status code of the completed action.
- text: required(string)
Text status code of the completed action.
Example:
{ "code": 0, "text": "OK" }
- code: required(integer)
- syslogserver: required(object)
- eth0: (array of object)
Items: items
- ietf-ipv4: (object)
- enable: required(one of 0, 1)
Enable Enable SYSLOG SERVER for a particular port and protocol
Example:
1
- port: (integer)
Defines the port number used by the SYSLOG Server. Default is 514
Example:
514
- transport: (one of 0, 1)
Defines the transfer protocol type used by the SYSLOG Server. 0=UDP, 1=TCP; Default is 0
Example:
0
- secure: (one of 0, 1)
Defines if a secure connection is used by the SYSLOG Server. Default is 0
Example:
0
- clear: (one of 0, 1)
If all the SYSLOG server block entries are cleared
Example:
1
- entries: (array of SYSLOGSERVERBlockDefinition)
Items: SYSLOGSERVERBlockDefinition
- block: required(array of object)
Items: items
- address: required(string - maxLength: 32)
SYSLOG IP address to block is being defined
Example:
201.55.21.8
- index: required(one of 1, 2, 3, 4)
Slot of Entry name being defined, range 1 to 4
Example:
1
- address: required(string - maxLength: 32)
- block: required(array of object)
- enable: required(one of 0, 1)
- ietf-ipv6: (object)
- enable: required(one of 0, 1)
Enable Enable SYSLOG SERVER for a particular port and protocol
Example:
1
- port: (integer)
Defines the port number used by the SYSLOG Server. Default is 514
Example:
514
- transport: (one of 0, 1)
Defines the transfer protocol type used by the SYSLOG Server. 0=UDP, 1=TCP; Default is 0
Example:
0
- secure: (one of 0, 1)
Defines if a secure connection is used by the SYSLOG Server. Default is 0
Example:
0
- clear: (one of 0, 1)
If all the SYSLOG server block entries are cleared
Example:
1
- entries: (array of SYSLOGSERVERBlockDefinition)
Items: SYSLOGSERVERBlockDefinition
- block: required(array of object)
Items: items
- address: required(string - maxLength: 32)
SYSLOG IP address to block is being defined
Example:
201.55.21.8
- index: required(one of 1, 2, 3, 4)
Slot of Entry name being defined, range 1 to 4
Example:
1
- address: required(string - maxLength: 32)
- block: required(array of object)
- enable: required(one of 0, 1)
- ietf-ipv4: (object)
- eth0: (array of object)
Example:
{
"status": {
"code": 0,
"text": "OK"
},
"syslogserver": {
"eth0": [
{
"ietf-ipv4": {
"enable": 0,
"port": 514,
"transport": 0,
"secure": 0,
"block": [
{
"address": "",
"index": 1
}
]
}
}
]
}
}
HTTP status code 400
bad input parameter
HTTP status code 401
unauthorized error
HTTP status code 403
Forbidden error, user does not have access to APIs
HTTP status code 409
an existing item does not exist
Secured by basicAuth
Headers
- Authorization: required(string)
Used to send the Base64-encoded "username:password" credentials
HTTP status code 401
Unauthorized. Either the provided username and password combination is invalid, or the user is not allowed to access the content provided by the requested URL.
put /api/v2/config/syslogserver
By passing in the appropriate options, you can edit the parameters for SYSLOG Server.
Each request must contain the headers necessary for basic authentication
Body
Media type: applicatio/json
Type: object
Properties- syslogserver: required(object)
- eth0: (array of object)
Items: items
- ietf-ipv4: (object)
- enable: required(one of 0, 1)
Enable Enable SYSLOG SERVER for a particular port and protocol
Example:
1
- port: (integer)
Defines the port number used by the SYSLOG Server. Default is 514
Example:
514
- transport: (one of 0, 1)
Defines the transfer protocol type used by the SYSLOG Server. 0=UDP, 1=TCP; Default is 0
Example:
0
- secure: (one of 0, 1)
Defines if a secure connection is used by the SYSLOG Server. Default is 0
Example:
0
- clear: (one of 0, 1)
If all the SYSLOG server block entries are cleared
Example:
1
- entries: (array of SYSLOGSERVERBlockDefinition)
Items: SYSLOGSERVERBlockDefinition
- block: required(array of object)
Items: items
- address: required(string - maxLength: 32)
SYSLOG IP address to block is being defined
Example:
201.55.21.8
- index: required(one of 1, 2, 3, 4)
Slot of Entry name being defined, range 1 to 4
Example:
1
- address: required(string - maxLength: 32)
- block: required(array of object)
- enable: required(one of 0, 1)
- ietf-ipv6: (object)
- enable: required(one of 0, 1)
Enable Enable SYSLOG SERVER for a particular port and protocol
Example:
1
- port: (integer)
Defines the port number used by the SYSLOG Server. Default is 514
Example:
514
- transport: (one of 0, 1)
Defines the transfer protocol type used by the SYSLOG Server. 0=UDP, 1=TCP; Default is 0
Example:
0
- secure: (one of 0, 1)
Defines if a secure connection is used by the SYSLOG Server. Default is 0
Example:
0
- clear: (one of 0, 1)
If all the SYSLOG server block entries are cleared
Example:
1
- entries: (array of SYSLOGSERVERBlockDefinition)
Items: SYSLOGSERVERBlockDefinition
- block: required(array of object)
Items: items
- address: required(string - maxLength: 32)
SYSLOG IP address to block is being defined
Example:
201.55.21.8
- index: required(one of 1, 2, 3, 4)
Slot of Entry name being defined, range 1 to 4
Example:
1
- address: required(string - maxLength: 32)
- block: required(array of object)
- enable: required(one of 0, 1)
- ietf-ipv4: (object)
- eth0: (array of object)
Example:
{
"syslogserver": {
"eth0": [
{
"ietf-ipv4": {
"enable": 0,
"port": 514,
"transport": 0,
"secure": 0,
"block": [
{
"address": "",
"index": 1
}
]
}
}
]
}
}
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- status: required(object)
- code: required(integer)
Numeric status code of the completed action.
- text: required(string)
Text status code of the completed action.
Example:
{ "code": 0, "text": "OK" }
- code: required(integer)
- syslogserver: required(object)
- eth0: (array of object)
Items: items
- ietf-ipv4: (object)
- enable: required(one of 0, 1)
Enable Enable SYSLOG SERVER for a particular port and protocol
Example:
1
- port: (integer)
Defines the port number used by the SYSLOG Server. Default is 514
Example:
514
- transport: (one of 0, 1)
Defines the transfer protocol type used by the SYSLOG Server. 0=UDP, 1=TCP; Default is 0
Example:
0
- secure: (one of 0, 1)
Defines if a secure connection is used by the SYSLOG Server. Default is 0
Example:
0
- clear: (one of 0, 1)
If all the SYSLOG server block entries are cleared
Example:
1
- entries: (array of SYSLOGSERVERBlockDefinition)
Items: SYSLOGSERVERBlockDefinition
- block: required(array of object)
Items: items
- address: required(string - maxLength: 32)
SYSLOG IP address to block is being defined
Example:
201.55.21.8
- index: required(one of 1, 2, 3, 4)
Slot of Entry name being defined, range 1 to 4
Example:
1
- address: required(string - maxLength: 32)
- block: required(array of object)
- enable: required(one of 0, 1)
- ietf-ipv6: (object)
- enable: required(one of 0, 1)
Enable Enable SYSLOG SERVER for a particular port and protocol
Example:
1
- port: (integer)
Defines the port number used by the SYSLOG Server. Default is 514
Example:
514
- transport: (one of 0, 1)
Defines the transfer protocol type used by the SYSLOG Server. 0=UDP, 1=TCP; Default is 0
Example:
0
- secure: (one of 0, 1)
Defines if a secure connection is used by the SYSLOG Server. Default is 0
Example:
0
- clear: (one of 0, 1)
If all the SYSLOG server block entries are cleared
Example:
1
- entries: (array of SYSLOGSERVERBlockDefinition)
Items: SYSLOGSERVERBlockDefinition
- block: required(array of object)
Items: items
- address: required(string - maxLength: 32)
SYSLOG IP address to block is being defined
Example:
201.55.21.8
- index: required(one of 1, 2, 3, 4)
Slot of Entry name being defined, range 1 to 4
Example:
1
- address: required(string - maxLength: 32)
- block: required(array of object)
- enable: required(one of 0, 1)
- ietf-ipv4: (object)
- eth0: (array of object)
Example:
{
"status": {
"code": 0,
"text": "OK"
},
"syslogserver": {
"eth0": [
{
"ietf-ipv4": {
"enable": 0,
"port": 514,
"transport": 0,
"secure": 0,
"block": [
{
"address": "",
"index": 1
}
]
}
}
]
}
}
HTTP status code 400
invalid input, object invalid
HTTP status code 401
unauthorized error
HTTP status code 403
Forbidden error, user does not have access to APIs
Secured by basicAuth
Headers
- Authorization: required(string)
Used to send the Base64-encoded "username:password" credentials
HTTP status code 401
Unauthorized. Either the provided username and password combination is invalid, or the user is not allowed to access the content provided by the requested URL.
/api/v2/config/syslogclient
You can retrieve parameters pertaining to the SYSLOG Client mechanism.
By passing in the appropriate options, you can edit the parameters for SYSLOG Client.
get /api/v2/config/syslogclient
You can retrieve parameters pertaining to the SYSLOG Client mechanism.
Each request must contain the headers necessary for basic authentication
Query Parameters
- plug: (string)
Pass an optional search string for a port, otherwise all ports get returned.
Example:
ports=eth0
HTTP status code 200
Get SYSLOG Client parameters
Body
Media type: application/json
Type: object
Properties- status: required(object)
- code: required(integer)
Numeric status code of the completed action.
- text: required(string)
Text status code of the completed action.
Example:
{ "code": 0, "text": "OK" }
- code: required(integer)
- syslogclient: required(object)
- ietf-ipv4: (object)
- clear: required(one of 0, 1)
If all the SYSLOG Client entries are cleared
Example:
1
- clients: required(array of object)
Items: items
- address: required(string - maxLength: 32)
SYSLOG Client IP address is being defined
Example:
201.55.21.8
- port: (integer)
Defines the port number used by the SYSLOG Client. Default is 514
Example:
514
- transport: required(one of 0, 1)
Slot of Entry name being defined, 0 = UDP, 1 = TCP
Example:
0
- secure: (one of 0, 1)
Defines if a secure connection is used by the SYSLOG Client. Default is 0
Example:
0
- cert: required(string)
SYSLOG Client certificate is being defined
- index: required(one of 1, 2, 3, 4)
Slot of SYSLOG Client being defined, range 1 to 4
Example:
1
- address: required(string - maxLength: 32)
- clear: required(one of 0, 1)
- ietf-ipv6: (object)
- clear: required(one of 0, 1)
If all the SYSLOG Client entries are cleared
Example:
1
- clients: required(array of object)
Items: items
- address: required(string - maxLength: 32)
SYSLOG Client IP address is being defined
Example:
201.55.21.8
- port: (integer)
Defines the port number used by the SYSLOG Client. Default is 514
Example:
514
- transport: required(one of 0, 1)
Slot of Entry name being defined, 0 = UDP, 1 = TCP
Example:
0
- secure: (one of 0, 1)
Defines if a secure connection is used by the SYSLOG Client. Default is 0
Example:
0
- cert: required(string)
SYSLOG Client certificate is being defined
- index: required(one of 1, 2, 3, 4)
Slot of SYSLOG Client being defined, range 1 to 4
Example:
1
- address: required(string - maxLength: 32)
- clear: required(one of 0, 1)
- ietf-ipv4: (object)
Example:
{
"status": {
"code": 0,
"text": "OK"
},
"syslogclient": {
"ietf-ipv4": {
"clear": 0,
"clients": [
{
"address": "9.9.9.1",
"port": 504,
"transport": 0,
"secure": 0,
"cert": "",
"index": 1
}
]
}
}
}
HTTP status code 400
bad input parameter
HTTP status code 401
unauthorized error
HTTP status code 403
Forbidden error, user does not have access to APIs
HTTP status code 409
an existing item does not exist
Secured by basicAuth
Headers
- Authorization: required(string)
Used to send the Base64-encoded "username:password" credentials
HTTP status code 401
Unauthorized. Either the provided username and password combination is invalid, or the user is not allowed to access the content provided by the requested URL.
put /api/v2/config/syslogclient
By passing in the appropriate options, you can edit the parameters for SYSLOG Client.
Each request must contain the headers necessary for basic authentication
Body
Media type: application/json
Type: object
Properties- syslogclient: required(object)
- ietf-ipv4: (object)
- clear: required(one of 0, 1)
If all the SYSLOG Client entries are cleared
Example:
1
- clients: required(array of object)
Items: items
- address: required(string - maxLength: 32)
SYSLOG Client IP address is being defined
Example:
201.55.21.8
- port: (integer)
Defines the port number used by the SYSLOG Client. Default is 514
Example:
514
- transport: required(one of 0, 1)
Slot of Entry name being defined, 0 = UDP, 1 = TCP
Example:
0
- secure: (one of 0, 1)
Defines if a secure connection is used by the SYSLOG Client. Default is 0
Example:
0
- cert: required(string)
SYSLOG Client certificate is being defined
- index: required(one of 1, 2, 3, 4)
Slot of SYSLOG Client being defined, range 1 to 4
Example:
1
- address: required(string - maxLength: 32)
- clear: required(one of 0, 1)
- ietf-ipv6: (object)
- clear: required(one of 0, 1)
If all the SYSLOG Client entries are cleared
Example:
1
- clients: required(array of object)
Items: items
- address: required(string - maxLength: 32)
SYSLOG Client IP address is being defined
Example:
201.55.21.8
- port: (integer)
Defines the port number used by the SYSLOG Client. Default is 514
Example:
514
- transport: required(one of 0, 1)
Slot of Entry name being defined, 0 = UDP, 1 = TCP
Example:
0
- secure: (one of 0, 1)
Defines if a secure connection is used by the SYSLOG Client. Default is 0
Example:
0
- cert: required(string)
SYSLOG Client certificate is being defined
- index: required(one of 1, 2, 3, 4)
Slot of SYSLOG Client being defined, range 1 to 4
Example:
1
- address: required(string - maxLength: 32)
- clear: required(one of 0, 1)
- ietf-ipv4: (object)
Example:
{
"syslogclient": {
"ietf-ipv4": {
"clear": 0,
"clients": [
{
"address": "9.9.9.1",
"port": 504,
"transport": 0,
"secure": 0,
"cert": "",
"index": 1
}
]
}
}
}
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- status: required(object)
- code: required(integer)
Numeric status code of the completed action.
- text: required(string)
Text status code of the completed action.
Example:
{ "code": 0, "text": "OK" }
- code: required(integer)
- syslogclient: required(object)
- ietf-ipv4: (object)
- clear: required(one of 0, 1)
If all the SYSLOG Client entries are cleared
Example:
1
- clients: required(array of object)
Items: items
- address: required(string - maxLength: 32)
SYSLOG Client IP address is being defined
Example:
201.55.21.8
- port: (integer)
Defines the port number used by the SYSLOG Client. Default is 514
Example:
514
- transport: required(one of 0, 1)
Slot of Entry name being defined, 0 = UDP, 1 = TCP
Example:
0
- secure: (one of 0, 1)
Defines if a secure connection is used by the SYSLOG Client. Default is 0
Example:
0
- cert: required(string)
SYSLOG Client certificate is being defined
- index: required(one of 1, 2, 3, 4)
Slot of SYSLOG Client being defined, range 1 to 4
Example:
1
- address: required(string - maxLength: 32)
- clear: required(one of 0, 1)
- ietf-ipv6: (object)
- clear: required(one of 0, 1)
If all the SYSLOG Client entries are cleared
Example:
1
- clients: required(array of object)
Items: items
- address: required(string - maxLength: 32)
SYSLOG Client IP address is being defined
Example:
201.55.21.8
- port: (integer)
Defines the port number used by the SYSLOG Client. Default is 514
Example:
514
- transport: required(one of 0, 1)
Slot of Entry name being defined, 0 = UDP, 1 = TCP
Example:
0
- secure: (one of 0, 1)
Defines if a secure connection is used by the SYSLOG Client. Default is 0
Example:
0
- cert: required(string)
SYSLOG Client certificate is being defined
- index: required(one of 1, 2, 3, 4)
Slot of SYSLOG Client being defined, range 1 to 4
Example:
1
- address: required(string - maxLength: 32)
- clear: required(one of 0, 1)
- ietf-ipv4: (object)
Example:
{
"status": {
"code": 0,
"text": "OK"
},
"syslogclient": {
"ietf-ipv4": {
"clear": 0,
"clients": [
{
"address": "9.9.9.1",
"port": 504,
"transport": 0,
"secure": 0,
"cert": "",
"index": 1
}
]
}
}
}
HTTP status code 400
invalid input, object invalid
HTTP status code 401
unauthorized error
HTTP status code 403
Forbidden error, user does not have access to APIs
Secured by basicAuth
Headers
- Authorization: required(string)
Used to send the Base64-encoded "username:password" credentials
HTTP status code 401
Unauthorized. Either the provided username and password combination is invalid, or the user is not allowed to access the content provided by the requested URL.
/api/v2/config/circuit
By passing in the appropriate options, you can search for available circuits in the system.
Controls a Circuit by Number or Name by passing a new state of the circuit.
get /api/v2/config/circuit
By passing in the appropriate options, you can search for available circuits in the system.
Each request must contain the headers necessary for basic authentication
Query Parameters
- circuit: (string)
Pass an optional search string for looking a circuit, otherwise all circuits get returned.
Example:
1 or Circuit_01_Common
HTTP status code 200
Circuit matching criteria
Body
Media type: application/json
Type: object
Properties- status: required(object)
- code: required(integer)
Numeric status code of the completed action.
- text: required(string)
Text status code of the completed action.
Example:
{ "code": 0, "text": "OK" }
- code: required(integer)
- alarminput: required(one of 0, 1)
0 - LOW, 1 - HIGH
Example:
1
- alarmcontact: required(one of 0, 1)
0 - Normal, 1 = Alarm
Example:
0
- circuits: required(object)
- circuit: (integer)
Plug number being described.
Example:
1
- circuitname: (string - maxLength: 24)
Circuit name being described.
Example:
Outlet_A1
- circuit_a_name: (string - maxLength: 24)
Plug name being described.
Example:
Outlet_A1
- circuit_b_name: (string - maxLength: 24)
Plug name being described.
Example:
Outlet_A1
- position: (one of A, B)
Current position of the circuit described.
Example:
A
- default: (one of A, B)
What the Circuits default Position is when the device starts.
Example:
A
- switchreason: (one of 0, 1, 2, 3, 4, 5)
The reason the plug was last turned off or rebooted. 0 - Power Up, 1 - User Action, 2 - PNA, 3 - External Alarm, 4 - Circuit Switch, 5 - Contact Switch
Example:
0
- circuit: (integer)
- circuitdatacount: required(integer)
Number of circuits returned with the query. Valid value can from 1 to the maximum number of circuits of the WTI unit.
Example:
1
HTTP status code 400
bad input parameter
HTTP status code 401
unauthorized error
HTTP status code 403
Forbidden error, user does not have access to APIs
Secured by basicAuth
Headers
- Authorization: required(string)
Used to send the Base64-encoded "username:password" credentials
HTTP status code 401
Unauthorized. Either the provided username and password combination is invalid, or the user is not allowed to access the content provided by the requested URL.
post /api/v2/config/circuit
Controls a Circuit by Number or Name by passing a new state of the circuit.
Each request must contain the headers necessary for basic authentication
Body
Media type: application/json
Type: object
Properties- circuit: (integer)
Circuit number whos state to change. Valid value can from 1 to the maximum number of circuits of the WTI unit.
Example:
1
- circuitname: (string)
Circuit name whos state to change.
Example:
Outlet_A1
- position: required(one of A, B)
The action to take on the circuit specified.
Example:
A
Example:
{
"circuit": 3,
"circuitname": "Circuit_03_Common",
"position": "B"
}
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- status: required(object)
- code: required(integer)
Numeric status code of the completed action.
- text: required(string)
Text status code of the completed action.
Example:
{ "code": 0, "text": "OK" }
- code: required(integer)
- alarminput: required(one of 0, 1)
0 - LOW, 1 - HIGH
Example:
1
- alarmcontact: required(one of 0, 1)
0 - Normal, 1 = Alarm
Example:
0
- circuits: required(object)
- circuit: (integer)
Plug number being described.
Example:
1
- circuitname: (string - maxLength: 24)
Circuit name being described.
Example:
Outlet_A1
- circuit_a_name: (string - maxLength: 24)
Plug name being described.
Example:
Outlet_A1
- circuit_b_name: (string - maxLength: 24)
Plug name being described.
Example:
Outlet_A1
- position: (one of A, B)
Current position of the circuit described.
Example:
A
- default: (one of A, B)
What the Circuits default Position is when the device starts.
Example:
A
- switchreason: (one of 0, 1, 2, 3, 4, 5)
The reason the plug was last turned off or rebooted. 0 - Power Up, 1 - User Action, 2 - PNA, 3 - External Alarm, 4 - Circuit Switch, 5 - Contact Switch
Example:
0
- circuit: (integer)
- circuitdatacount: required(integer)
Number of circuits returned with the query. Valid value can from 1 to the maximum number of circuits of the WTI unit.
Example:
1
Example:
{
"status": {
"code": 0,
"text": "OK"
},
"alarminput": 0,
"alarmcontact": 0,
"circuits": {
"circuit": 3,
"circuitname": "Circuit_03_Common",
"circuit_a_name": "Circuit_03_A",
"circuit_b_name": "Circuit_03_B",
"position": "A",
"default": "A",
"priority": 1,
"switchreason": 0
},
"circuitdatacount": 1
}
HTTP status code 400
invalid input, object invalid
HTTP status code 401
unauthorized error
HTTP status code 403
Forbidden error, user does not have access to APIs
Secured by basicAuth
Headers
- Authorization: required(string)
Used to send the Base64-encoded "username:password" credentials
HTTP status code 401
Unauthorized. Either the provided username and password combination is invalid, or the user is not allowed to access the content provided by the requested URL.
/api/v2/config/circuitconfig
By passing in the appropriate options, you can search for available circuits in the system.
Configure various Circuit Parameters by Circuit Number by passing a new configuration of the Circuit.
get /api/v2/config/circuitconfig
By passing in the appropriate options, you can search for available circuits in the system.
Each request must contain the headers necessary for basic authentication
Query Parameters
- circuit: (string)
Pass an optional circuit number for which circuit to query, otherwise all circuits get returned.
Example:
1
HTTP status code 200
Circuit matching criteria
Body
Media type: application/json
Type: object
Properties- status: required(object)
- code: required(integer)
Numeric status code of the completed action.
- text: required(string)
Text status code of the completed action.
Example:
{ "code": 0, "text": "OK" }
- code: required(integer)
- circuits: required(object)
- circuit: (integer)
Plug number being described.
Example:
1
- circuitname: (string - maxLength: 24)
Name of the Circuit being described.
Example:
Outlet_A1
- circuit_a_name: (string - maxLength: 24)
Name of the Circuit being described.
Example:
Outlet_A1
- circuit_b_name: (string - maxLength: 24)
Name of the Circuit being described.
Example:
Outlet_A1
- position: (one of A, B)
Current state of the plug described.
Example:
A
- default: (one of A, B)
What the Circuits default Position is when the device starts.
Example:
A
- switchreason: (one of 0, 1, 2, 3, 4, 5)
The reason the plug was last turned off or rebooted. 0 - Power Up, 1 - User Action, 2 - PNA, 3 - External Alarm, 4 - Circuit Switch, 5 - Contact Switch
Example:
0
- circuit: (integer)
- circuitcount: required(integer)
Number of circuits returned with the query. Valid value can from 1 to the maximum number of circuits of the WTI unit.
Example:
1
HTTP status code 400
bad input parameter
HTTP status code 401
unauthorized error
HTTP status code 403
Forbidden error, user does not have access to APIs
Secured by basicAuth
Headers
- Authorization: required(string)
Used to send the Base64-encoded "username:password" credentials
HTTP status code 401
Unauthorized. Either the provided username and password combination is invalid, or the user is not allowed to access the content provided by the requested URL.
post /api/v2/config/circuitconfig
Configure various Circuit Parameters by Circuit Number by passing a new configuration of the Circuit.
Each request must contain the headers necessary for basic authentication
Body
Media type: application/json
Type: object
Properties- circuit: required(integer)
Circuit number whos parameters to change. Valid value can from 1 to the maximum number of Circuit of the WTI unit.
Example:
1
- circuitname: (string)
The new name of the Circuit.
Example:
Outlet_A1
- circuit_a_name: (string)
The new name of the Circuit.
Example:
Outlet_A1
- circuit_b_name: (string)
The new name of the Circuit.
Example:
Outlet_A1
- default: (one of A, B)
What the Circuits default position is when the device starts.
Example:
A
Example:
{
"circuit": 3,
"circuitname": "Circuit_03_Common",
"circuit_a_name": "Circuit_03_A",
"circuit_b_name": "Circuit_03_B",
"default": "A"
}
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- status: required(object)
- code: required(integer)
Numeric status code of the completed action.
- text: required(string)
Text status code of the completed action.
Example:
{ "code": 0, "text": "OK" }
- code: required(integer)
- circuits: required(object)
- circuit: (integer)
Plug number being described.
Example:
1
- circuitname: (string - maxLength: 24)
Name of the Circuit being described.
Example:
Outlet_A1
- circuit_a_name: (string - maxLength: 24)
Name of the Circuit being described.
Example:
Outlet_A1
- circuit_b_name: (string - maxLength: 24)
Name of the Circuit being described.
Example:
Outlet_A1
- position: (one of A, B)
Current state of the plug described.
Example:
A
- default: (one of A, B)
What the Circuits default Position is when the device starts.
Example:
A
- switchreason: (one of 0, 1, 2, 3, 4, 5)
The reason the plug was last turned off or rebooted. 0 - Power Up, 1 - User Action, 2 - PNA, 3 - External Alarm, 4 - Circuit Switch, 5 - Contact Switch
Example:
0
- circuit: (integer)
- circuitscount: required(integer)
Number of circuits returned with the query. Valid value can from 1 to the maximum number of circuits of the WTI unit.
Example:
1
Example:
{
"status": {
"code": 0,
"text": "OK"
},
"circuits": {
"circuit": 3,
"circuitname": "Circuit_03_Common",
"circuit_a_name": "Circuit_03_A",
"circuit_b_name": "Circuit_03_B",
"position": "A",
"default": "A",
"bootdelay": 1,
"priority": 1,
"switchreason": 0
},
"circuitscount": 1
}
HTTP status code 400
invalid input, object invalid
HTTP status code 401
unauthorized error
HTTP status code 403
Forbidden error, user does not have access to APIs
Secured by basicAuth
Headers
- Authorization: required(string)
Used to send the Base64-encoded "username:password" credentials
HTTP status code 401
Unauthorized. Either the provided username and password combination is invalid, or the user is not allowed to access the content provided by the requested URL.
/api/v2/config/lockout
You can retrieve parameters pertaining to the Invalid Lockout mechanism.
By passing in the appropriate options, you can edit the parameters for Invalid Lockout.
get /api/v2/config/lockout
You can retrieve parameters pertaining to the Invalid Lockout mechanism.
Each request must contain the headers necessary for basic authentication
HTTP status code 200
Get Invalid Lockout parameters
Body
Media type: application/json
Type: object
Properties- status: required(object)
- code: required(integer)
Numeric status code of the completed action.
- text: required(string)
Text status code of the completed action.
Example:
{ "code": 0, "text": "OK" }
- code: required(integer)
- lockout: required(object)
- name: required(one of serial, ssh, telnet, web)
Name of service
Example:
ssh
- enable: (one of 0, 1)
Enable Lockout Service Name.
- attempts: (integer)
"Number of attempts before lockout is activated." "For serial: valid range 1 to 99. For ssh, telnet and web: valid range 1 to 120"
Example:
1
- duration: (integer)
"Lockout Duration when the Lockout attempts has been met." "For SSH, Telnet and Web: The number of seconds during the 'duration' to signal a lockout condition." "It is also the number of seconds before unlock condition." "Valid range is 1 to 480" "For Serial: There is a preset number of options for the lockout condition." "0 - 15 Min, 1 - 30 Min, 2 - 1 Hour, 3 - 2 Hours, 4 - 6 Hours," "5 - 12 Hours, 6 - 24 Hours, 7 - Infinite (Must be unlocked by command)"
Example:
10
- name: required(one of serial, ssh, telnet, web)
Example:
{
"status": {
"code": 0,
"text": "OK"
},
"lockout": {
"name": "serial",
"enable": 0,
"attempts": 5,
"duration": 6
}
}
HTTP status code 400
bad input parameter
HTTP status code 401
unauthorized error
HTTP status code 403
Forbidden error, user does not have access to APIs
HTTP status code 409
an existing item does not exist
Secured by basicAuth
Headers
- Authorization: required(string)
Used to send the Base64-encoded "username:password" credentials
HTTP status code 401
Unauthorized. Either the provided username and password combination is invalid, or the user is not allowed to access the content provided by the requested URL.
put /api/v2/config/lockout
By passing in the appropriate options, you can edit the parameters for Invalid Lockout.
Each request must contain the headers necessary for basic authentication
Body
Media type: application/json
Type: object
Properties- lockout: required(object)
- name: required(one of serial, ssh, telnet, web)
Name of service
Example:
ssh
- enable: (one of 0, 1)
Enable Lockout Service Name.
- attempts: (integer)
"Number of attempts before lockout is activated." "For serial: valid range 1 to 99. For ssh, telnet and web: valid range 1 to 120"
Example:
1
- duration: (integer)
"Lockout Duration when the Lockout attempts has been met." "For SSH, Telnet and Web: The number of seconds during the 'duration' to signal a lockout condition." "It is also the number of seconds before unlock condition." "Valid range is 1 to 480" "For Serial: There is a preset number of options for the lockout condition." "0 - 15 Min, 1 - 30 Min, 2 - 1 Hour, 3 - 2 Hours, 4 - 6 Hours," "5 - 12 Hours, 6 - 24 Hours, 7 - Infinite (Must be unlocked by command)"
Example:
10
- name: required(one of serial, ssh, telnet, web)
Example:
{
"lockout": {
"name": "serial",
"enable": 0,
"attempts": 5,
"duration": 6
}
}
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- status: required(object)
- code: required(integer)
Numeric status code of the completed action.
- text: required(string)
Text status code of the completed action.
Example:
{ "code": 0, "text": "OK" }
- code: required(integer)
- lockout: required(object)
- name: required(one of serial, ssh, telnet, web)
Name of service
Example:
ssh
- enable: (one of 0, 1)
Enable Lockout Service Name.
- attempts: (integer)
"Number of attempts before lockout is activated." "For serial: valid range 1 to 99. For ssh, telnet and web: valid range 1 to 120"
Example:
1
- duration: (integer)
"Lockout Duration when the Lockout attempts has been met." "For SSH, Telnet and Web: The number of seconds during the 'duration' to signal a lockout condition." "It is also the number of seconds before unlock condition." "Valid range is 1 to 480" "For Serial: There is a preset number of options for the lockout condition." "0 - 15 Min, 1 - 30 Min, 2 - 1 Hour, 3 - 2 Hours, 4 - 6 Hours," "5 - 12 Hours, 6 - 24 Hours, 7 - Infinite (Must be unlocked by command)"
Example:
10
- name: required(one of serial, ssh, telnet, web)
Example:
{
"status": {
"code": 0,
"text": "OK"
},
"lockout": {
"name": "serial",
"enable": 0,
"attempts": 5,
"duration": 6
}
}
HTTP status code 400
invalid input, object invalid
HTTP status code 401
unauthorized error
HTTP status code 403
Forbidden error, user does not have access to APIs
Secured by basicAuth
Headers
- Authorization: required(string)
Used to send the Base64-encoded "username:password" credentials
HTTP status code 401
Unauthorized. Either the provided username and password combination is invalid, or the user is not allowed to access the content provided by the requested URL.
/api/v2/config/pluggroupreboot
You can turn on, off and reboot plugs by predefined group names.
put /api/v2/config/pluggroupreboot
You can turn on, off and reboot plugs by predefined group names.
Each request must contain the headers necessary for basic authentication
Body
Media type: application/json
Type: object
Properties- pluggroupreboot: required(object)
- groupname: required(string - maxLength: 24)
Name of the Group being defined for this collection of plugs
Example:
test_even_plugs
- state: required(one of off, on, boot)
Action to take on the Plug Group, can be 'on', 'off' or 'boot'
Example:
boot
- groupname: required(string - maxLength: 24)
Example:
{
"pluggroupreboot": {
"groupname": "test_even_plugs",
"state": "boot"
}
}
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- status: required(object)
- code: required(integer)
Numeric status code of the completed action.
- text: required(string)
Text status code of the completed action.
Example:
{ "code": 0, "text": "OK" }
- code: required(integer)
- powerplugs: required(object)
- plug: (integer)
Plug number being described.
Example:
1
- plugname: (string - maxLength: 24)
Plug name being described.
Example:
Outlet_A1
- state: (one of on, off, boot, default)
Current state of the plug described.
Example:
off
- busy: (one of 0, 1)
If the plug is currently changing states. 0=no, 1=yes
Example:
0
- bootdelay: (one of 0, 1, 2, 3, 4, 5, 6, 7, 8, 9)
On a reboot command, this is the delay time when a plug will turn on power, after it has been turned off. 0='0.5 Secs', 1='1 Sec', 2='2 Sec', 3='5 Sec', 4='15 Sec', 5='30 Sec', 6='1 Min', 7='2 Mins', 8='3 Mins', 9='5 Mins'
Example:
2
- priority: (one of 1, 2, 3, 4, 5, 6, 7, 8)
Prioritizes which plug gets its state changed first. The lower the number the higher the priority.
Example:
1
- plugoffreason: (one of 0, 1, 2, 3, 4, 5)
The reason the plug was last turned off or rebooted. 0 - Power Up, 1 - User Action, 2 - PNA, 3 - External Alarm, 4 - Circuit Switch, 5 - Contact Switch
Example:
0
- current: (integer)
If this plug supports individual current reporting. will display current AMPs use by the port.
Example:
0
- plug: (integer)
Example:
{
"status": {
"code": 0,
"text": "OK"
},
"powerplugs": {
"plug": 1,
"plugname": "Outlet_A1",
"state": "off",
"busy": 1,
"bootdelay": 2,
"priority": 1,
"plugoffreason": 0
}
}
HTTP status code 400
invalid input, object invalid
HTTP status code 401
unauthorized error
HTTP status code 403
Forbidden error, user does not have access to APIs
Secured by basicAuth
Headers
- Authorization: required(string)
Used to send the Base64-encoded "username:password" credentials
HTTP status code 401
Unauthorized. Either the provided username and password combination is invalid, or the user is not allowed to access the content provided by the requested URL.
/api/v2/config/pluggroups
You can retrieve Unit Plug Group parameters
By passing in the appropriate options, you can edit the parameters for the Plug Groups.
get /api/v2/config/pluggroups
You can retrieve Unit Plug Group parameters
Each request must contain the headers necessary for basic authentication
HTTP status code 200
Unit Plug Group matching criteria
Body
Media type: application/json
Type: object
Properties- status: required(object)
- code: required(integer)
Numeric status code of the completed action.
- text: required(string)
Text status code of the completed action.
Example:
{ "code": 0, "text": "OK" }
- code: required(integer)
- pluggroups: required(object)
- groupname: required(string - maxLength: 24)
Name of the Group being defined for this collection of plugs
Example:
test_even_plugs
- groupaccess: required(string)
Plugs belonging to this group, 0 - Plug does not belong to this group, 1 - Plug does belong to this group.
Example:
01010101000000000000
- index: (integer)
The Index of the GroupName currently being displayed, range 1 to 54
Example:
1
- groupname: required(string - maxLength: 24)
Example:
{
"status": {
"code": 0,
"text": "OK"
},
"pluggroups": {
"groupname": "test_even",
"groupaccess": "01010101",
"index": 1
}
}
HTTP status code 400
bad input parameter
HTTP status code 401
unauthorized error
HTTP status code 403
Forbidden error, user does not have access to APIs
HTTP status code 409
an existing item does not exist
Secured by basicAuth
Headers
- Authorization: required(string)
Used to send the Base64-encoded "username:password" credentials
HTTP status code 401
Unauthorized. Either the provided username and password combination is invalid, or the user is not allowed to access the content provided by the requested URL.
put /api/v2/config/pluggroups
By passing in the appropriate options, you can edit the parameters for the Plug Groups.
Each request must contain the headers necessary for basic authentication
Body
Media type: application/json
Type: object
Properties- pluggroups: required(object)
- groupname: required(string - maxLength: 24)
Name of the Group being defined for this collection of plugs
Example:
test_even_plugs
- groupaccess: required(string)
Plugs belonging to this group, 0 - Plug does not belong to this group, 1 - Plug does belong to this group.
Example:
01010101000000000000
- index: (integer)
The Index of the GroupName currently being displayed, range 1 to 54
Example:
1
- groupname: required(string - maxLength: 24)
Example:
{
"pluggroups": {
"groupname": "test_even",
"groupaccess": "01010101",
"index": 1
}
}
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- status: required(object)
- code: required(integer)
Numeric status code of the completed action.
- text: required(string)
Text status code of the completed action.
Example:
{ "code": 0, "text": "OK" }
- code: required(integer)
- pluggroups: required(object)
- groupname: required(string - maxLength: 24)
Name of the Group being defined for this collection of plugs
Example:
test_even_plugs
- groupaccess: required(string)
Plugs belonging to this group, 0 - Plug does not belong to this group, 1 - Plug does belong to this group.
Example:
01010101000000000000
- index: (integer)
The Index of the GroupName currently being displayed, range 1 to 54
Example:
1
- groupname: required(string - maxLength: 24)
Example:
{
"status": {
"code": 0,
"text": "OK"
},
"pluggroups": {
"groupname": "test_even",
"groupaccess": "01010101",
"index": 1
}
}
HTTP status code 400
invalid input, object invalid
HTTP status code 401
unauthorized error
HTTP status code 403
Forbidden error, user does not have access to APIs
Secured by basicAuth
Headers
- Authorization: required(string)
Used to send the Base64-encoded "username:password" credentials
HTTP status code 401
Unauthorized. Either the provided username and password combination is invalid, or the user is not allowed to access the content provided by the requested URL.
/api/v2/config/staticroute
You can retrieve parameters pertaining to the Static Route mechanism.
By passing in the appropriate options, you can edit the parameters for Static Routes.
get /api/v2/config/staticroute
You can retrieve parameters pertaining to the Static Route mechanism.
Each request must contain the headers necessary for basic authentication
Query Parameters
- plug: (string)
Pass an optional search string for a port, otherwise all ports get returned.
Example:
ports=eth0
HTTP status code 200
Get Static Route parameters
Body
Media type: application/json
Type: object
Properties- status: required(object)
- code: required(integer)
Numeric status code of the completed action.
- text: required(string)
Text status code of the completed action.
Example:
{ "code": 0, "text": "OK" }
- code: required(integer)
- staticroute: required(object)
- eth0: (array of object)
Items: items
- ietf-ipv4: (object)
- clear: required(one of 0, 1)
If all the Static Route entries were cleared
Example:
1
- entries: required(array of STATICROUTEEntryDefinition)
Items: STATICROUTEEntryDefinition
- entry: required(string - maxLength: 256)
Static Route Entry being defined
Example:
iptables -A INPUT -i lo -j ACCEPT
- index: required(one of 1, 2, 3, 4, 5, 6, 7, 8)
Slot of Entry name being defined, range 1 to 8
Example:
1
- entry: required(string - maxLength: 256)
- clear: required(one of 0, 1)
- ietf-ipv6: (object)
- clear: required(one of 0, 1)
If all the Static Route entries were cleared
Example:
1
- entries: required(array of STATICROUTEEntryDefinition)
Items: STATICROUTEEntryDefinition
- entry: required(string - maxLength: 256)
Static Route Entry being defined
Example:
iptables -A INPUT -i lo -j ACCEPT
- index: required(one of 1, 2, 3, 4, 5, 6, 7, 8)
Slot of Entry name being defined, range 1 to 8
Example:
1
- entry: required(string - maxLength: 256)
- clear: required(one of 0, 1)
- ietf-ipv4: (object)
- eth0: (array of object)
Example:
{
"status": {
"code": 0,
"text": "OK"
},
"staticroute": {
"eth0": [
{
"entry": "",
"index": 1
},
{
"entry": "",
"index": 2
},
{
"entry": "",
"index": 3
},
{
"entry": "",
"index": 4
},
{
"entry": "",
"index": 5
},
{
"entry": "",
"index": 6
},
{
"entry": "",
"index": 7
},
{
"entry": "",
"index": 8
}
]
}
}
HTTP status code 400
bad input parameter
HTTP status code 401
unauthorized error
HTTP status code 403
Forbidden error, user does not have access to APIs
HTTP status code 409
an existing item does not exist
Secured by basicAuth
Headers
- Authorization: required(string)
Used to send the Base64-encoded "username:password" credentials
HTTP status code 401
Unauthorized. Either the provided username and password combination is invalid, or the user is not allowed to access the content provided by the requested URL.
put /api/v2/config/staticroute
By passing in the appropriate options, you can edit the parameters for Static Routes.
Each request must contain the headers necessary for basic authentication
Body
Media type: application/json
Type: object
Properties- staticroute: required(object)
- eth0: (array of object)
Items: items
- ietf-ipv4: (object)
- clear: required(one of 0, 1)
If all the Static Route entries were cleared
Example:
1
- entries: required(array of STATICROUTEEntryDefinition)
Items: STATICROUTEEntryDefinition
- entry: required(string - maxLength: 256)
Static Route Entry being defined
Example:
iptables -A INPUT -i lo -j ACCEPT
- index: required(one of 1, 2, 3, 4, 5, 6, 7, 8)
Slot of Entry name being defined, range 1 to 8
Example:
1
- entry: required(string - maxLength: 256)
- clear: required(one of 0, 1)
- ietf-ipv6: (object)
- clear: required(one of 0, 1)
If all the Static Route entries were cleared
Example:
1
- entries: required(array of STATICROUTEEntryDefinition)
Items: STATICROUTEEntryDefinition
- entry: required(string - maxLength: 256)
Static Route Entry being defined
Example:
iptables -A INPUT -i lo -j ACCEPT
- index: required(one of 1, 2, 3, 4, 5, 6, 7, 8)
Slot of Entry name being defined, range 1 to 8
Example:
1
- entry: required(string - maxLength: 256)
- clear: required(one of 0, 1)
- ietf-ipv4: (object)
- eth0: (array of object)
Example:
{
"staticroute": {
"eth0": [
{
"entry": "route 1.1.1.1",
"index": 1
}
]
}
}
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- status: required(object)
- code: required(integer)
Numeric status code of the completed action.
- text: required(string)
Text status code of the completed action.
Example:
{ "code": 0, "text": "OK" }
- code: required(integer)
- staticroute: required(object)
- eth0: (array of object)
Items: items
- ietf-ipv4: (object)
- clear: required(one of 0, 1)
If all the Static Route entries were cleared
Example:
1
- entries: required(array of STATICROUTEEntryDefinition)
Items: STATICROUTEEntryDefinition
- entry: required(string - maxLength: 256)
Static Route Entry being defined
Example:
iptables -A INPUT -i lo -j ACCEPT
- index: required(one of 1, 2, 3, 4, 5, 6, 7, 8)
Slot of Entry name being defined, range 1 to 8
Example:
1
- entry: required(string - maxLength: 256)
- clear: required(one of 0, 1)
- ietf-ipv6: (object)
- clear: required(one of 0, 1)
If all the Static Route entries were cleared
Example:
1
- entries: required(array of STATICROUTEEntryDefinition)
Items: STATICROUTEEntryDefinition
- entry: required(string - maxLength: 256)
Static Route Entry being defined
Example:
iptables -A INPUT -i lo -j ACCEPT
- index: required(one of 1, 2, 3, 4, 5, 6, 7, 8)
Slot of Entry name being defined, range 1 to 8
Example:
1
- entry: required(string - maxLength: 256)
- clear: required(one of 0, 1)
- ietf-ipv4: (object)
- eth0: (array of object)
Example:
{
"status": {
"code": 0,
"text": "OK"
},
"staticroute": {
"eth0": [
{
"entry": "",
"index": 1
},
{
"entry": "",
"index": 2
},
{
"entry": "",
"index": 3
},
{
"entry": "",
"index": 4
},
{
"entry": "",
"index": 5
},
{
"entry": "",
"index": 6
},
{
"entry": "",
"index": 7
},
{
"entry": "",
"index": 8
}
]
}
}
HTTP status code 400
invalid input, object invalid
HTTP status code 401
unauthorized error
HTTP status code 403
Forbidden error, user does not have access to APIs
Secured by basicAuth
Headers
- Authorization: required(string)
Used to send the Base64-encoded "username:password" credentials
HTTP status code 401
Unauthorized. Either the provided username and password combination is invalid, or the user is not allowed to access the content provided by the requested URL.
/api/v2/config/rebootlocalunit
This command will reboot the WTI unit itself.
get /api/v2/config/rebootlocalunit
This command will reboot the WTI unit itself.
Each request must contain the headers necessary for basic authentication
HTTP status code 200
Reboot WTI Device
Body
Media type: application/json
Type: object
Properties- status: required(object)
- code: required(integer)
Numeric status code of the completed action.
- text: required(string)
Text status code of the completed action.
Example:
{ "code": 0, "text": "OK" }
- code: required(integer)
Example:
{
"status": {
"code": 0,
"text": "OK"
}
}
HTTP status code 400
bad input parameter
HTTP status code 401
unauthorized error
HTTP status code 403
Forbidden error, user does not have access to APIs
HTTP status code 409
an existing item does not exist
Secured by basicAuth
Headers
- Authorization: required(string)
Used to send the Base64-encoded "username:password" credentials
HTTP status code 401
Unauthorized. Either the provided username and password combination is invalid, or the user is not allowed to access the content provided by the requested URL.
/api/v2/config/settings
This command will download/get XML of the configuration of the WTI unit itself.
get /api/v2/config/settings
This command will download/get XML of the configuration of the WTI unit itself.
Each request must contain the headers necessary for basic authentication
HTTP status code 200
Reboot WTI Device
Body
Media type: application/xml
Type: object
HTTP status code 400
bad input parameter
HTTP status code 401
unauthorized error
HTTP status code 403
Forbidden error, user does not have access to APIs
HTTP status code 409
an existing item does not exist
Secured by basicAuth
Headers
- Authorization: required(string)
Used to send the Base64-encoded "username:password" credentials
HTTP status code 401
Unauthorized. Either the provided username and password combination is invalid, or the user is not allowed to access the content provided by the requested URL.