|
DLI ISO32 Object Model Reference
|
| object | config/ |
| Object representing configuration server | |
This object contains the following items:
Sample CLI write command:
uom set config ...
Sample CLI read command:
uom get config
⇒
...
| array | config/links/ |
| List of user-defined links to display in the web UI | |
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This array represents a value in persistent storage.
This array contains Link elements.
Sample uom library read command:
print(uom.dump(uom.config.links))
⇒
{{description="test 5",href="test_url7"},{description="test 3",href="test_url5"}}
Sample CLI link creation command:
uom insert "config/links/0" "{\"description\":\"test 5\",\"href\":\"test_url7\"}"
See also Links list: Link
| object | config/links/N/ |
| User-defined link | |
Retrieving the value is denied if not administrative user
This object represents a value in persistent storage.
This object contains the following items:
| href | URI |
| description | Description |
Sample CLI deletion command (note that link_index is a variable):
uom remove "config/links/${link_index}"
Sample uom library write command (note that _link_index is a variable):
uom.config.links[_link_index]={description="test 3",href="test_url5"}
| string | config/links/N/href/ |
| The target URI of the link | |
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This string represents a value in persistent storage.
Sample curl write command (note that :link_index is a URL template argument):
curl --digest -u admin:1234 -H "X-CSRF: x" -X PUT -H "Content-type: application/json" -H "Accept: application/json" --data-binary "\"test_url7\"" "http://192.168.0.100/restapi/config/links/:link_index/href/"
Sample uom library write command (note that _link_index is a variable):
uom.config.links[_link_index].href="test_url5"
| string | config/links/N/description/ |
| The textual representation of the link | |
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This string represents a value in persistent storage.
Sample uom library read command (note that _link_index is a variable):
print(uom.dump(uom.config.links[_link_index].description))
⇒
"test 3"
Sample uom library write command (note that _link_index is a variable):
uom.config.links[_link_index].description="test 5"
| array | config/plots/ |
| List of plots to display in the web UI | |
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This array represents a value in persistent storage.
This array contains Plot elements.
Sample JS request plot creation command:
request.post({url:"config/plots/",body:{"x2":{"min":null,"softmax":null,"max":null,"tics":null,"mtics":null,"softmin":null},"y2":{"min":0,"softmax":1,"max":null,"tics":null,"mtics":null,"softmin":null},"data":[{"ds":"buses.0.voltage","style":{"type":"solid","style":"lines","width":1,"color":"FF0000","axes":"x1y1","marker":"plus","size":0},"title":"Bus A voltage"},{"ds":"buses.0.current","style":{"type":"solid","style":"lines","width":1,"color":"0000FF","axes":"x1y2","marker":"plus","size":0},"title":"Bus A current"}],"width":640,"title":"Bus A status","display":false,"y1":{"min":0,"softmax":110,"max":null,"tics":null,"mtics":null,"softmin":null},"x1":{"min":null,"softmax":null,"max":null,"tics":null,"mtics":null,"softmin":null},"height":480}});
Sample uom library plot creation command:
uom.insert(uom.config.plots,3,{data={{ds="buses.0.total_energy",style={axes="x1y1",color="FF0000",marker="plus",size=0,style="lines",type="solid",width=1},title="Bus A total energy"},{ds="buses.1.total_energy",style={axes="x1y1",color="0000FF",marker="plus",size=0,style="lines",type="solid",width=1},title="Bus B total energy"}},display=false,height=480,title="Bus energy consumption",width=640,x1={max=null,min=null,mtics=null,softmax=null,softmin=null,tics=null},x2={max=null,min=null,mtics=null,softmax=null,softmin=null,tics=null},y1={max=null,min=null,mtics=null,softmax=null,softmin=null,tics=null},y2={max=null,min=null,mtics=null,softmax=null,softmin=null,tics=null}})
| object | config/plots/N/ |
| Configuration of plot for measured values | |
This object contains the following items:
| title | Title |
| display | Display |
| width | Width |
| height | Height |
| x1 | X1 axis settings |
| x2 | X2 axis settings |
| y1 | Y1 axis settings |
| y2 | Y2 axis settings |
| data | Plot lines |
Sample curl read command (note that :plot_index is a URL template argument):
curl --digest -u admin:1234 -H "Accept: application/json" "http://192.168.0.100/restapi/config/plots/:plot_index/"
⇒
Sample uom library read command (note that _plot_index is a variable):
print(uom.dump(uom.config.plots[_plot_index]))
⇒
See also Plot: Title
See also Plot: Display
See also Plot: Width
See also Plot: Height
See also Plot: X1 axis settings
See also Plot: X2 axis settings
See also Plot: Y1 axis settings
See also Plot: Y2 axis settings
See also Plot: Plot lines
| string | config/plots/N/title/ |
| The title of the plot | |
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This string represents a value in persistent storage.
Sample uom library write command (note that _plot_index is a variable):
uom.config.plots[_plot_index].title="Bus energy consumption"
Sample uom library read command (note that _plot_index is a variable):
print(uom.dump(uom.config.plots[_plot_index].title))
⇒
"Illuminance"
| sum (boolean) | config/plots/N/display/ |
| Indicates whether the plot should be displayed | |
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant true | Shown | The plot is shown | |
| constant false | Hidden | The plot is hidden | |
Sample uom library write command (note that _plot_index is a variable):
uom.config.plots[_plot_index].display=false
Sample curl read command (note that :plot_index is a URL template argument):
curl --digest -u admin:1234 -H "Accept: application/json" "http://192.168.0.100/restapi/config/plots/:plot_index/display/"
⇒
true
| number | config/plots/N/width/ |
| The width of the plot | |
The value represents screen length, the standard unit of which is the pixel (px).
The value is subject to the following constraints: all of the following is true:
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This number represents a value in persistent storage.
Sample requests read command (note that _plot_index is a variable):
print(requests.get('http://192.168.0.100/restapi/config/plots/'+str(_plot_index)+'/width/',auth=auth,headers=headers).json())
⇒
640
Sample requests write command (note that _plot_index is a variable):
requests.put('http://192.168.0.100/restapi/config/plots/'+str(_plot_index)+'/width/',auth=auth,headers=headers,json=640)
| number | config/plots/N/height/ |
| The height of the plot | |
The value represents screen length, the standard unit of which is the pixel (px).
The value is subject to the following constraints: all of the following is true:
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This number represents a value in persistent storage.
Sample curl read command (note that :plot_index is a URL template argument):
curl --digest -u admin:1234 -H "Accept: application/json" "http://192.168.0.100/restapi/config/plots/:plot_index/height/"
⇒
480
Sample JS request write command (note that _plot_index is a variable):
request.put({url:"config/plots/"+_plot_index.toString()+"/height/",body:480});
| object | config/plots/N/x1/ |
| Configuration for X1 axis | |
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This object is composite, i.e. is modified as a whole.
This object represents a value in persistent storage.
This object contains the following items:
| min | Minimum, if any |
| max | Maximum, if any |
| softmin | Soft minimum, if any |
| softmax | Soft maximum, if any |
| tics | Major tick interval, if any |
| mtics | Minor ticks per major tick, if any |
Sample uom library read command (note that _plot_index is a variable):
print(uom.dump(uom.config.plots[_plot_index].x1))
⇒
{max=null,min=null,mtics=null,softmax=null,softmin=null,tics=null}
Sample CLI read command (note that plot_index is a variable):
uom get "config/plots/${plot_index}/x1"
⇒
{"min":null,"softmax":null,"max":null,"tics":null,"mtics":null,"softmin":null}
| sum (optional number) | config/plots/N/x1/min/ |
| Minimum value to display on the axis, if any | |
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This sum is a part of a composite value which is modified as a whole.
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant null | Automatic | The maximum value is derived from data and the soft maximum | |
| number | Minimum | Minimum value to display on the axis | |
Sample requests read command (note that _plot_index is a variable):
print(requests.get('http://192.168.0.100/restapi/config/plots/'+str(_plot_index)+'/x1/min/',auth=auth,headers=headers).json())
⇒
None
Sample JS request write command (note that _plot_index is a variable):
request.put({url:"config/plots/"+_plot_index.toString()+"/x1/min/",body:null});
| sum (optional number) | config/plots/N/x1/max/ |
| Maximum value to display on the axis, if any | |
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This sum is a part of a composite value which is modified as a whole.
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant null | Automatic | The minimum value is derived from data and the soft minimum | |
| number | Maximum | Maximum value to display on the axis | |
Sample uom library write command (note that _plot_index is a variable):
uom.config.plots[_plot_index].x1.max=null
Sample CLI write command (note that plot_index is a variable):
uom set "config/plots/${plot_index}/x1/max" "null"
| sum (optional number) | config/plots/N/x1/softmin/ |
| Minimum value to display on the axis unless values exist below it, if any | |
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This sum is a part of a composite value which is modified as a whole.
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant null | None | No soft maximum defined | |
| number | Soft minimum | Minimum value to display on the axis unless values exist below it | |
Sample curl write command (note that :plot_index is a URL template argument):
curl --digest -u admin:1234 -H "X-CSRF: x" -X PUT -H "Content-type: application/json" -H "Accept: application/json" --data-binary "null" "http://192.168.0.100/restapi/config/plots/:plot_index/x1/softmin/"
Sample curl read command (note that :plot_index is a URL template argument):
curl --digest -u admin:1234 -H "Accept: application/json" "http://192.168.0.100/restapi/config/plots/:plot_index/x1/softmin/"
⇒
null
| sum (optional number) | config/plots/N/x1/softmax/ |
| Maximum value to display on the axis unless values exist above it, if any | |
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This sum is a part of a composite value which is modified as a whole.
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant null | None | No soft minimum defined | |
| number | Soft maximum | Maximum value to display on the axis unless values exist above it | |
Sample requests write command (note that _plot_index is a variable):
requests.put('http://192.168.0.100/restapi/config/plots/'+str(_plot_index)+'/x1/softmax/',auth=auth,headers=headers,json=None)
Sample requests read command (note that _plot_index is a variable):
print(requests.get('http://192.168.0.100/restapi/config/plots/'+str(_plot_index)+'/x1/softmax/',auth=auth,headers=headers).json())
⇒
None
| sum (optional number) | config/plots/N/x1/tics/ |
| The interval, in value units, between major ticks of the axis, if any | |
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This sum is a part of a composite value which is modified as a whole.
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant null | Automatic | The tick interval is derived from data and size | |
| number | Major tick interval | The interval, in value units, between major ticks of the axis | |
Sample uom library read command (note that _plot_index is a variable):
print(uom.dump(uom.config.plots[_plot_index].x1.tics))
⇒
null
Sample curl write command (note that :plot_index is a URL template argument):
curl --digest -u admin:1234 -H "X-CSRF: x" -X PUT -H "Content-type: application/json" -H "Accept: application/json" --data-binary "null" "http://192.168.0.100/restapi/config/plots/:plot_index/x1/tics/"
| sum (optional number) | config/plots/N/x1/mtics/ |
| The number of minor ticks between two major ticks, if any | |
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This sum is a part of a composite value which is modified as a whole.
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant null | None | There are no minor ticks | |
| number | Minor ticks per major tick | The number of minor ticks between two major ticks | all of the following is true: |
Sample uom library read command (note that _plot_index is a variable):
print(uom.dump(uom.config.plots[_plot_index].x1.mtics))
⇒
null
Sample requests read command (note that _plot_index is a variable):
print(requests.get('http://192.168.0.100/restapi/config/plots/'+str(_plot_index)+'/x1/mtics/',auth=auth,headers=headers).json())
⇒
None
| object | config/plots/N/x2/ |
| Configuration for X2 axis | |
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This object is composite, i.e. is modified as a whole.
This object represents a value in persistent storage.
This object contains the following items:
| min | Minimum, if any |
| max | Maximum, if any |
| softmin | Soft minimum, if any |
| softmax | Soft maximum, if any |
| tics | Major tick interval, if any |
| mtics | Minor ticks per major tick, if any |
Sample uom library write command (note that _plot_index is a variable):
uom.config.plots[_plot_index].x2={max=null,min=null,mtics=null,softmax=null,softmin=null,tics=null}
Sample requests read command (note that _plot_index is a variable):
print(requests.get('http://192.168.0.100/restapi/config/plots/'+str(_plot_index)+'/x2/',auth=auth,headers=headers).json())
⇒
{'min': None, 'softmax': None, 'max': None, 'tics': None, 'mtics': None, 'softmin': None}
| sum (optional number) | config/plots/N/x2/min/ |
| Minimum value to display on the axis, if any | |
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This sum is a part of a composite value which is modified as a whole.
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant null | Automatic | The maximum value is derived from data and the soft maximum | |
| number | Minimum | Minimum value to display on the axis | |
Sample JS request read command (note that _plot_index is a variable):
request.get({url:"config/plots/"+_plot_index.toString()+"/x2/min/"},function(error,response,body) {console.log(body)});
⇒
null
Sample JS request write command (note that _plot_index is a variable):
request.put({url:"config/plots/"+_plot_index.toString()+"/x2/min/",body:null});
| sum (optional number) | config/plots/N/x2/max/ |
| Maximum value to display on the axis, if any | |
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This sum is a part of a composite value which is modified as a whole.
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant null | Automatic | The minimum value is derived from data and the soft minimum | |
| number | Maximum | Maximum value to display on the axis | |
Sample uom library write command (note that _plot_index is a variable):
uom.config.plots[_plot_index].x2.max=null
Sample CLI write command (note that plot_index is a variable):
uom set "config/plots/${plot_index}/x2/max" "null"
| sum (optional number) | config/plots/N/x2/softmin/ |
| Minimum value to display on the axis unless values exist below it, if any | |
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This sum is a part of a composite value which is modified as a whole.
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant null | None | No soft maximum defined | |
| number | Soft minimum | Minimum value to display on the axis unless values exist below it | |
Sample CLI write command (note that plot_index is a variable):
uom set "config/plots/${plot_index}/x2/softmin" "null"
Sample uom library read command (note that _plot_index is a variable):
print(uom.dump(uom.config.plots[_plot_index].x2.softmin))
⇒
null
| sum (optional number) | config/plots/N/x2/softmax/ |
| Maximum value to display on the axis unless values exist above it, if any | |
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This sum is a part of a composite value which is modified as a whole.
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant null | None | No soft minimum defined | |
| number | Soft maximum | Maximum value to display on the axis unless values exist above it | |
Sample requests read command (note that _plot_index is a variable):
print(requests.get('http://192.168.0.100/restapi/config/plots/'+str(_plot_index)+'/x2/softmax/',auth=auth,headers=headers).json())
⇒
None
Sample JS request read command (note that _plot_index is a variable):
request.get({url:"config/plots/"+_plot_index.toString()+"/x2/softmax/"},function(error,response,body) {console.log(body)});
⇒
null
| sum (optional number) | config/plots/N/x2/tics/ |
| The interval, in value units, between major ticks of the axis, if any | |
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This sum is a part of a composite value which is modified as a whole.
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant null | Automatic | The tick interval is derived from data and size | |
| number | Major tick interval | The interval, in value units, between major ticks of the axis | |
Sample uom library read command (note that _plot_index is a variable):
print(uom.dump(uom.config.plots[_plot_index].x2.tics))
⇒
null
Sample CLI write command (note that plot_index is a variable):
uom set "config/plots/${plot_index}/x2/tics" "null"
| sum (optional number) | config/plots/N/x2/mtics/ |
| The number of minor ticks between two major ticks, if any | |
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This sum is a part of a composite value which is modified as a whole.
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant null | None | There are no minor ticks | |
| number | Minor ticks per major tick | The number of minor ticks between two major ticks | all of the following is true: |
Sample CLI read command (note that plot_index is a variable):
uom get "config/plots/${plot_index}/x2/mtics"
⇒
null
Sample curl read command (note that :plot_index is a URL template argument):
curl --digest -u admin:1234 -H "Accept: application/json" "http://192.168.0.100/restapi/config/plots/:plot_index/x2/mtics/"
⇒
null
| object | config/plots/N/y1/ |
| Configuration for Y1 axis | |
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This object is composite, i.e. is modified as a whole.
This object represents a value in persistent storage.
This object contains the following items:
| min | Minimum, if any |
| max | Maximum, if any |
| softmin | Soft minimum, if any |
| softmax | Soft maximum, if any |
| tics | Major tick interval, if any |
| mtics | Minor ticks per major tick, if any |
Sample uom library write command (note that _plot_index is a variable):
uom.config.plots[_plot_index].y1={max=null,min=0,mtics=null,softmax=1,softmin=null,tics=null}
Sample curl write command (note that :plot_index is a URL template argument):
curl --digest -u admin:1234 -H "X-CSRF: x" -X PUT -H "Content-type: application/json" -H "Accept: application/json" --data-binary "{\"min\":0,\"softmax\":1,\"max\":null,\"tics\":null,\"mtics\":null,\"softmin\":null}" "http://192.168.0.100/restapi/config/plots/:plot_index/y1/"
| sum (optional number) | config/plots/N/y1/min/ |
| Minimum value to display on the axis, if any | |
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This sum is a part of a composite value which is modified as a whole.
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant null | Automatic | The maximum value is derived from data and the soft maximum | |
| number | Minimum | Minimum value to display on the axis | |
Sample requests write command (note that _plot_index is a variable):
requests.put('http://192.168.0.100/restapi/config/plots/'+str(_plot_index)+'/y1/min/',auth=auth,headers=headers,json=0)
Sample uom library write command (note that _plot_index is a variable):
uom.config.plots[_plot_index].y1.min=0
| sum (optional number) | config/plots/N/y1/max/ |
| Maximum value to display on the axis, if any | |
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This sum is a part of a composite value which is modified as a whole.
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant null | Automatic | The minimum value is derived from data and the soft minimum | |
| number | Maximum | Maximum value to display on the axis | |
Sample JS request read command (note that _plot_index is a variable):
request.get({url:"config/plots/"+_plot_index.toString()+"/y1/max/"},function(error,response,body) {console.log(body)});
⇒
null
Sample requests read command (note that _plot_index is a variable):
print(requests.get('http://192.168.0.100/restapi/config/plots/'+str(_plot_index)+'/y1/max/',auth=auth,headers=headers).json())
⇒
None
| sum (optional number) | config/plots/N/y1/softmin/ |
| Minimum value to display on the axis unless values exist below it, if any | |
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This sum is a part of a composite value which is modified as a whole.
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant null | None | No soft maximum defined | |
| number | Soft minimum | Minimum value to display on the axis unless values exist below it | |
Sample requests read command (note that _plot_index is a variable):
print(requests.get('http://192.168.0.100/restapi/config/plots/'+str(_plot_index)+'/y1/softmin/',auth=auth,headers=headers).json())
⇒
None
Sample curl write command (note that :plot_index is a URL template argument):
curl --digest -u admin:1234 -H "X-CSRF: x" -X PUT -H "Content-type: application/json" -H "Accept: application/json" --data-binary "null" "http://192.168.0.100/restapi/config/plots/:plot_index/y1/softmin/"
| sum (optional number) | config/plots/N/y1/softmax/ |
| Maximum value to display on the axis unless values exist above it, if any | |
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This sum is a part of a composite value which is modified as a whole.
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant null | None | No soft minimum defined | |
| number | Soft maximum | Maximum value to display on the axis unless values exist above it | |
Sample CLI read command (note that plot_index is a variable):
uom get "config/plots/${plot_index}/y1/softmax"
⇒
null
Sample curl write command (note that :plot_index is a URL template argument):
curl --digest -u admin:1234 -H "X-CSRF: x" -X PUT -H "Content-type: application/json" -H "Accept: application/json" --data-binary "null" "http://192.168.0.100/restapi/config/plots/:plot_index/y1/softmax/"
| sum (optional number) | config/plots/N/y1/tics/ |
| The interval, in value units, between major ticks of the axis, if any | |
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This sum is a part of a composite value which is modified as a whole.
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant null | Automatic | The tick interval is derived from data and size | |
| number | Major tick interval | The interval, in value units, between major ticks of the axis | |
Sample requests write command (note that _plot_index is a variable):
requests.put('http://192.168.0.100/restapi/config/plots/'+str(_plot_index)+'/y1/tics/',auth=auth,headers=headers,json=None)
Sample curl write command (note that :plot_index is a URL template argument):
curl --digest -u admin:1234 -H "X-CSRF: x" -X PUT -H "Content-type: application/json" -H "Accept: application/json" --data-binary "null" "http://192.168.0.100/restapi/config/plots/:plot_index/y1/tics/"
| sum (optional number) | config/plots/N/y1/mtics/ |
| The number of minor ticks between two major ticks, if any | |
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This sum is a part of a composite value which is modified as a whole.
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant null | None | There are no minor ticks | |
| number | Minor ticks per major tick | The number of minor ticks between two major ticks | all of the following is true: |
Sample uom library read command (note that _plot_index is a variable):
print(uom.dump(uom.config.plots[_plot_index].y1.mtics))
⇒
null
Sample JS request read command (note that _plot_index is a variable):
request.get({url:"config/plots/"+_plot_index.toString()+"/y1/mtics/"},function(error,response,body) {console.log(body)});
⇒
null
| object | config/plots/N/y2/ |
| Configuration for Y2 axis | |
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This object is composite, i.e. is modified as a whole.
This object represents a value in persistent storage.
This object contains the following items:
| min | Minimum, if any |
| max | Maximum, if any |
| softmin | Soft minimum, if any |
| softmax | Soft maximum, if any |
| tics | Major tick interval, if any |
| mtics | Minor ticks per major tick, if any |
Sample CLI write command (note that plot_index is a variable):
uom set "config/plots/${plot_index}/y2" "{\"min\":null,\"softmax\":null,\"max\":null,\"tics\":null,\"mtics\":null,\"softmin\":null}"
Sample curl read command (note that :plot_index is a URL template argument):
curl --digest -u admin:1234 -H "Accept: application/json" "http://192.168.0.100/restapi/config/plots/:plot_index/y2/"
⇒
{"min":null,"softmax":null,"max":null,"tics":null,"mtics":null,"softmin":null}
| sum (optional number) | config/plots/N/y2/min/ |
| Minimum value to display on the axis, if any | |
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This sum is a part of a composite value which is modified as a whole.
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant null | Automatic | The maximum value is derived from data and the soft maximum | |
| number | Minimum | Minimum value to display on the axis | |
Sample JS request read command (note that _plot_index is a variable):
request.get({url:"config/plots/"+_plot_index.toString()+"/y2/min/"},function(error,response,body) {console.log(body)});
⇒
null
Sample curl write command (note that :plot_index is a URL template argument):
curl --digest -u admin:1234 -H "X-CSRF: x" -X PUT -H "Content-type: application/json" -H "Accept: application/json" --data-binary "0" "http://192.168.0.100/restapi/config/plots/:plot_index/y2/min/"
| sum (optional number) | config/plots/N/y2/max/ |
| Maximum value to display on the axis, if any | |
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This sum is a part of a composite value which is modified as a whole.
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant null | Automatic | The minimum value is derived from data and the soft minimum | |
| number | Maximum | Maximum value to display on the axis | |
Sample JS request read command (note that _plot_index is a variable):
request.get({url:"config/plots/"+_plot_index.toString()+"/y2/max/"},function(error,response,body) {console.log(body)});
⇒
null
Sample requests read command (note that _plot_index is a variable):
print(requests.get('http://192.168.0.100/restapi/config/plots/'+str(_plot_index)+'/y2/max/',auth=auth,headers=headers).json())
⇒
None
| sum (optional number) | config/plots/N/y2/softmin/ |
| Minimum value to display on the axis unless values exist below it, if any | |
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This sum is a part of a composite value which is modified as a whole.
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant null | None | No soft maximum defined | |
| number | Soft minimum | Minimum value to display on the axis unless values exist below it | |
Sample uom library read command (note that _plot_index is a variable):
print(uom.dump(uom.config.plots[_plot_index].y2.softmin))
⇒
null
Sample uom library write command (note that _plot_index is a variable):
uom.config.plots[_plot_index].y2.softmin=null
| sum (optional number) | config/plots/N/y2/softmax/ |
| Maximum value to display on the axis unless values exist above it, if any | |
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This sum is a part of a composite value which is modified as a whole.
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant null | None | No soft minimum defined | |
| number | Soft maximum | Maximum value to display on the axis unless values exist above it | |
Sample requests write command (note that _plot_index is a variable):
requests.put('http://192.168.0.100/restapi/config/plots/'+str(_plot_index)+'/y2/softmax/',auth=auth,headers=headers,json=None)
Sample CLI write command (note that plot_index is a variable):
uom set "config/plots/${plot_index}/y2/softmax" "null"
| sum (optional number) | config/plots/N/y2/tics/ |
| The interval, in value units, between major ticks of the axis, if any | |
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This sum is a part of a composite value which is modified as a whole.
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant null | Automatic | The tick interval is derived from data and size | |
| number | Major tick interval | The interval, in value units, between major ticks of the axis | |
Sample uom library write command (note that _plot_index is a variable):
uom.config.plots[_plot_index].y2.tics=null
Sample CLI write command (note that plot_index is a variable):
uom set "config/plots/${plot_index}/y2/tics" "null"
| sum (optional number) | config/plots/N/y2/mtics/ |
| The number of minor ticks between two major ticks, if any | |
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This sum is a part of a composite value which is modified as a whole.
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant null | None | There are no minor ticks | |
| number | Minor ticks per major tick | The number of minor ticks between two major ticks | all of the following is true: |
Sample curl read command (note that :plot_index is a URL template argument):
curl --digest -u admin:1234 -H "Accept: application/json" "http://192.168.0.100/restapi/config/plots/:plot_index/y2/mtics/"
⇒
null
Sample uom library write command (note that _plot_index is a variable):
uom.config.plots[_plot_index].y2.mtics=null
| object | config/plots/N/data/N/style/ |
| Style of the plot line | |
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This object is a part of a composite value which is modified as a whole.
This object represents a value in persistent storage.
This object contains the following items:
| style | Line style |
| type | Line type |
| color | Line color |
| width | Line width |
| marker | Marker type |
| size | Marker size |
| axes | Base axes |
Sample curl read command (note that :plot_index and :plot_line_configuration_index are URL template arguments):
curl --digest -u admin:1234 -H "Accept: application/json" "http://192.168.0.100/restapi/config/plots/:plot_index/data/:plot_line_configuration_index/style/"
⇒
{"type":"solid","style":"lines","width":1,"color":"FF0000","axes":"x1y1","marker":"plus","size":0}
Sample uom library write command (note that _plot_index and _plot_line_configuration_index are variables):
uom.config.plots[_plot_index].data[_plot_line_configuration_index].style={axes="x1y1",color="0000FF",marker="plus",size=0,style="lines",type="solid",width=1}
| string | config/plots/N/data/N/style/style/ |
| The style of the line | |
The value is subject to the following constraints: plot styles[the value]
This string is a part of a composite value which is modified as a whole.
This string represents a value in persistent storage.
Sample CLI read command (note that plot_index and plot_line_configuration_index are variables):
uom get "config/plots/${plot_index}/data/${plot_line_configuration_index}/style/style"
⇒
"lines"
Sample JS request read command (note that _plot_index and _plot_line_configuration_index are variables):
request.get({url:"config/plots/"+_plot_index.toString()+"/data/"+_plot_line_configuration_index.toString()+"/style/style/"},function(error,response,body) {console.log(body)});
⇒
"lines"
| string | config/plots/N/data/N/style/type/ |
| The type of the line | |
The value is subject to the following constraints: line types[the value]
This string is a part of a composite value which is modified as a whole.
This string represents a value in persistent storage.
Sample requests write command (note that _plot_index and _plot_line_configuration_index are variables):
requests.put('http://192.168.0.100/restapi/config/plots/'+str(_plot_index)+'/data/'+str(_plot_line_configuration_index)+'/style/type/',auth=auth,headers=headers,json='solid')
Sample JS request read command (note that _plot_index and _plot_line_configuration_index are variables):
request.get({url:"config/plots/"+_plot_index.toString()+"/data/"+_plot_line_configuration_index.toString()+"/style/type/"},function(error,response,body) {console.log(body)});
⇒
"solid"
| string | config/plots/N/data/N/style/color/ |
| The color of the line | |
The value is subject to the following constraints: the value matches ^[0-9A-F]{6}$
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This string is a part of a composite value which is modified as a whole.
This string represents a value in persistent storage.
Sample CLI read command (note that plot_index and plot_line_configuration_index are variables):
uom get "config/plots/${plot_index}/data/${plot_line_configuration_index}/style/color"
⇒
"FF0000"
Sample curl write command (note that :plot_index and :plot_line_configuration_index are URL template arguments):
curl --digest -u admin:1234 -H "X-CSRF: x" -X PUT -H "Content-type: application/json" -H "Accept: application/json" --data-binary "\"FF0000\"" "http://192.168.0.100/restapi/config/plots/:plot_index/data/:plot_line_configuration_index/style/color/"
| number | config/plots/N/data/N/style/width/ |
| The width of the line | |
The value represents screen length, the standard unit of which is the pixel (px).
The value is subject to the following constraints: all of the following is true:
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This number is a part of a composite value which is modified as a whole.
This number represents a value in persistent storage.
Sample requests read command (note that _plot_index and _plot_line_configuration_index are variables):
print(requests.get('http://192.168.0.100/restapi/config/plots/'+str(_plot_index)+'/data/'+str(_plot_line_configuration_index)+'/style/width/',auth=auth,headers=headers).json())
⇒
1
Sample CLI write command (note that plot_index and plot_line_configuration_index are variables):
uom set "config/plots/${plot_index}/data/${plot_line_configuration_index}/style/width" "1"
| string | config/plots/N/data/N/style/marker/ |
| The type of the marker | |
The value is subject to the following constraints: marker types[the value]
This string is a part of a composite value which is modified as a whole.
This string represents a value in persistent storage.
Sample JS request read command (note that _plot_index and _plot_line_configuration_index are variables):
request.get({url:"config/plots/"+_plot_index.toString()+"/data/"+_plot_line_configuration_index.toString()+"/style/marker/"},function(error,response,body) {console.log(body)});
⇒
"plus"
Sample CLI write command (note that plot_index and plot_line_configuration_index are variables):
uom set "config/plots/${plot_index}/data/${plot_line_configuration_index}/style/marker" "\"plus\""
| number | config/plots/N/data/N/style/size/ |
| The size of the markers | |
The value represents screen length, the standard unit of which is the pixel (px).
The value is subject to the following constraints: all of the following is true:
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This number is a part of a composite value which is modified as a whole.
This number represents a value in persistent storage.
Sample requests write command (note that _plot_index and _plot_line_configuration_index are variables):
requests.put('http://192.168.0.100/restapi/config/plots/'+str(_plot_index)+'/data/'+str(_plot_line_configuration_index)+'/style/size/',auth=auth,headers=headers,json=0)
Sample uom library read command (note that _plot_index and _plot_line_configuration_index are variables):
print(uom.dump(uom.config.plots[_plot_index].data[_plot_line_configuration_index].style.size))
⇒
0
| string | config/plots/N/data/N/style/axes/ |
| The axes on which the line should be plotted. Units of lines plotted on the same axes must match | |
The value is subject to the following constraints: axes[the value]
This string is a part of a composite value which is modified as a whole.
This string represents a value in persistent storage.
Sample curl write command (note that :plot_index and :plot_line_configuration_index are URL template arguments):
curl --digest -u admin:1234 -H "X-CSRF: x" -X PUT -H "Content-type: application/json" -H "Accept: application/json" --data-binary "\"x1y1\"" "http://192.168.0.100/restapi/config/plots/:plot_index/data/:plot_line_configuration_index/style/axes/"
Sample requests read command (note that _plot_index and _plot_line_configuration_index are variables):
print(requests.get('http://192.168.0.100/restapi/config/plots/'+str(_plot_index)+'/data/'+str(_plot_line_configuration_index)+'/style/axes/',auth=auth,headers=headers).json())
⇒
'x1y1'
| array | config/plots/N/data/ |
| Configurations of values to plot | |
This array is composite, i.e. is modified as a whole.
This array contains Plot line configuration elements.
Sample requests write command (note that _plot_index is a variable):
requests.put('http://192.168.0.100/restapi/config/plots/'+str(_plot_index)+'/data/',auth=auth,headers=headers,json=[{'ds': 'buses.0.voltage', 'style': {'type': 'solid', 'style': 'lines', 'width': 1, 'color': 'FF0000', 'axes': 'x1y1', 'marker': 'plus', 'size': 0}, 'title': 'Bus A voltage'}, {'ds': 'buses.0.current', 'style': {'type': 'solid', 'style': 'lines', 'width': 1, 'color': '0000FF', 'axes': 'x1y2', 'marker': 'plus', 'size': 0}, 'title': 'Bus A current'}])
Sample curl plot line configuration creation command (note that :plot_index is a URL template argument):
curl --digest -u admin:1234 -H "X-CSRF: x" -H "Content-type: application/json" -H "Accept: application/json" --data-binary "{\"ds\":\"buses.0.voltage\",\"style\":{\"type\":\"solid\",\"style\":\"lines\",\"width\":1,\"color\":\"FF0000\",\"axes\":\"x1y1\",\"marker\":\"plus\",\"size\":0},\"title\":\"Bus A voltage\"}" "http://192.168.0.100/restapi/config/plots/:plot_index/data/"
| object | config/plots/N/data/N/ |
| Properties of a plot line | |
This object is a part of a composite value which is modified as a whole.
This object contains the following items:
| ds | Data source |
| title | Title |
| style | Style |
Sample CLI read command (note that plot_index and plot_line_configuration_index are variables):
uom get "config/plots/${plot_index}/data/${plot_line_configuration_index}"
⇒
{"ds":"buses.1.voltage","style":{"type":"solid","style":"lines","width":1,"color":"0000FF","axes":"x1y1","marker":"plus","size":0},"title":"Bus B voltage"}
Sample requests deletion command (note that _plot_index and _plot_line_configuration_index are variables):
requests.delete('http://192.168.0.100/restapi/config/plots/'+str(_plot_index)+'/data/'+str(_plot_line_configuration_index)+'/',auth=auth,headers=headers)
| string | config/plots/N/data/N/ds/ |
| Identifier of the data source to use | |
The value is subject to the following constraints: measured values[the value]
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This string is a part of a composite value which is modified as a whole.
This string represents a value in persistent storage.
Sample curl read command (note that :plot_index and :plot_line_configuration_index are URL template arguments):
curl --digest -u admin:1234 -H "Accept: application/json" "http://192.168.0.100/restapi/config/plots/:plot_index/data/:plot_line_configuration_index/ds/"
⇒
"buses.1.total_energy"
Sample uom library write command (note that _plot_index and _plot_line_configuration_index are variables):
uom.config.plots[_plot_index].data[_plot_line_configuration_index].ds="environment.illuminance"
| string | config/plots/N/data/N/title/ |
| The title of the plot line | |
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This string is a part of a composite value which is modified as a whole.
This string represents a value in persistent storage.
Sample uom library read command (note that _plot_index and _plot_line_configuration_index are variables):
print(uom.dump(uom.config.plots[_plot_index].data[_plot_line_configuration_index].title))
⇒
"Bus A total energy"
Sample uom library write command (note that _plot_index and _plot_line_configuration_index are variables):
uom.config.plots[_plot_index].data[_plot_line_configuration_index].title="Temperature"
See also Plot line configuration: Style
| array | config/meters/ |
| List of meters to display in the web UI | |
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This array represents a value in persistent storage.
This array contains Meter configuration elements.
Sample uom library read command:
print(uom.dump(uom.config.meters))
⇒
<...>
Sample requests write command:
requests.put('http://192.168.0.100/restapi/config/meters/',auth=auth,headers=headers,json=<...>)
| object | config/meters/N/ |
| Configuration of meter for a measured value | |
This object contains the following items:
| title | Title |
| display | Display |
| data | Data source |
| width | Width |
| height | Height |
| scale | Display scale |
| decimals | Decimals |
| color | Arrow color |
| min_value | Minimum value |
| sectors | Meter sectors |
Sample curl write command (note that :meter_configuration_index is a URL template argument):
curl --digest -u admin:1234 -H "X-CSRF: x" -X PUT -H "Content-type: application/json" -H "Accept: application/json" --data-binary "{\"decimals\":1,\"color\":\"\",\"sectors\":[{\"color\":\"0000FF\",\"name\":\"Low\",\"value\":10},{\"color\":\"00FF00\",\"name\":\"Optimal\",\"value\":13},{\"color\":\"FF0000\",\"name\":\"High\",\"value\":15}],\"data\":\"relay_voltage\",\"width\":128,\"title\":\"Relay voltage\",\"display\":true,\"min_value\":8,\"scale\":\"linear\",\"height\":64}" "http://192.168.0.100/restapi/config/meters/:meter_configuration_index/"
Sample curl read command (note that :meter_configuration_index is a URL template argument):
curl --digest -u admin:1234 -H "Accept: application/json" "http://192.168.0.100/restapi/config/meters/:meter_configuration_index/"
⇒
See also Meter configuration: Title
See also Meter configuration: Display
See also Meter configuration: Data source
See also Meter configuration: Width
See also Meter configuration: Height
See also Meter configuration: Display scale
See also Meter configuration: Decimals
See also Meter configuration: Arrow color
See also Meter configuration: Minimum value
See also Meter configuration: Meter sectors
| string | config/meters/N/title/ |
| The title of the meter | |
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This string represents a value in persistent storage.
Sample curl read command (note that :meter_configuration_index is a URL template argument):
curl --digest -u admin:1234 -H "Accept: application/json" "http://192.168.0.100/restapi/config/meters/:meter_configuration_index/title/"
⇒
"Illuminance"
Sample CLI read command (note that meter_configuration_index is a variable):
uom get "config/meters/${meter_configuration_index}/title"
⇒
"Battery voltage"
| sum (boolean) | config/meters/N/display/ |
| Indicates whether the meter should be displayed | |
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant true | Shown | The meter is shown | |
| constant false | Hidden | The meter is hidden | |
Sample JS request read command (note that _meter_configuration_index is a variable):
request.get({url:"config/meters/"+_meter_configuration_index.toString()+"/display/"},function(error,response,body) {console.log(body)});
⇒
false
Sample uom library write command (note that _meter_configuration_index is a variable):
uom.config.meters[_meter_configuration_index].display=true
| string | config/meters/N/data/ |
| Identifier of the data source to use | |
The value is subject to the following constraints: measured values[the value]
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This string represents a value in persistent storage.
Sample JS request read command (note that _meter_configuration_index is a variable):
request.get({url:"config/meters/"+_meter_configuration_index.toString()+"/data/"},function(error,response,body) {console.log(body)});
⇒
"buses.1.voltage"
Sample curl read command (note that :meter_configuration_index is a URL template argument):
curl --digest -u admin:1234 -H "Accept: application/json" "http://192.168.0.100/restapi/config/meters/:meter_configuration_index/data/"
⇒
"environment.illuminance"
| number | config/meters/N/width/ |
| The width of the meter | |
The value represents screen length, the standard unit of which is the pixel (px).
The value is subject to the following constraints: all of the following is true:
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This number represents a value in persistent storage.
Sample CLI write command (note that meter_configuration_index is a variable):
uom set "config/meters/${meter_configuration_index}/width" "128"
Sample requests read command (note that _meter_configuration_index is a variable):
print(requests.get('http://192.168.0.100/restapi/config/meters/'+str(_meter_configuration_index)+'/width/',auth=auth,headers=headers).json())
⇒
128
| number | config/meters/N/height/ |
| The height of the meter | |
The value represents screen length, the standard unit of which is the pixel (px).
The value is subject to the following constraints: all of the following is true:
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This number represents a value in persistent storage.
Sample uom library read command (note that _meter_configuration_index is a variable):
print(uom.dump(uom.config.meters[_meter_configuration_index].height))
⇒
64
Sample JS request read command (note that _meter_configuration_index is a variable):
request.get({url:"config/meters/"+_meter_configuration_index.toString()+"/height/"},function(error,response,body) {console.log(body)});
⇒
64
| string | config/meters/N/scale/ |
| The scale function to use for display | |
The value is subject to the following constraints: plot scales[the value]
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This string represents a value in persistent storage.
Sample uom library read command (note that _meter_configuration_index is a variable):
print(uom.dump(uom.config.meters[_meter_configuration_index].scale))
⇒
"linear"
Sample requests read command (note that _meter_configuration_index is a variable):
print(requests.get('http://192.168.0.100/restapi/config/meters/'+str(_meter_configuration_index)+'/scale/',auth=auth,headers=headers).json())
⇒
'linear'
| number | config/meters/N/decimals/ |
| Number of decimal places to show in displayed value | |
The value represents count, the standard unit of which is the time (times).
The value is subject to the following constraints: all of the following is true:
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This number represents a value in persistent storage.
Sample JS request read command (note that _meter_configuration_index is a variable):
request.get({url:"config/meters/"+_meter_configuration_index.toString()+"/decimals/"},function(error,response,body) {console.log(body)});
⇒
1
Sample CLI read command (note that meter_configuration_index is a variable):
uom get "config/meters/${meter_configuration_index}/decimals"
⇒
2
| string | config/meters/N/color/ |
| The color of the meter arrow | |
The value is subject to the following constraints: the value matches ^[0-9A-F]{6}$
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This string represents a value in persistent storage.
Sample curl write command (note that :meter_configuration_index is a URL template argument):
curl --digest -u admin:1234 -H "X-CSRF: x" -X PUT -H "Content-type: application/json" -H "Accept: application/json" --data-binary "\"\"" "http://192.168.0.100/restapi/config/meters/:meter_configuration_index/color/"
Sample requests read command (note that _meter_configuration_index is a variable):
print(requests.get('http://192.168.0.100/restapi/config/meters/'+str(_meter_configuration_index)+'/color/',auth=auth,headers=headers).json())
⇒
''
| number | config/meters/N/min_value/ |
| The minimum value to be displayed on the meter | |
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This number represents a value in persistent storage.
Sample JS request read command (note that _meter_configuration_index is a variable):
request.get({url:"config/meters/"+_meter_configuration_index.toString()+"/min_value/"},function(error,response,body) {console.log(body)});
⇒
90
Sample CLI read command (note that meter_configuration_index is a variable):
uom get "config/meters/${meter_configuration_index}/min_value"
⇒
4
| array | config/meters/N/sectors/ |
| Configuration of meter sectors | |
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This array is composite, i.e. is modified as a whole.
This array represents a value in persistent storage.
This array contains Sector configuration elements.
Sample requests sector configuration creation command (note that _meter_configuration_index is a variable):
requests.post('http://192.168.0.100/restapi/config/meters/'+str(_meter_configuration_index)+'/sectors/',auth=auth,headers=headers,json={'color': '00FF00', 'name': 'Optimal', 'value': 1000})
Sample JS request write command (note that _meter_configuration_index is a variable):
request.put({url:"config/meters/"+_meter_configuration_index.toString()+"/sectors/",body:[{"color":"0000FF","name":"Cold","value":273},{"color":"00FF00","name":"Optimal","value":322},{"color":"FF0000","name":"Hot","value":366}]});
| object | config/meters/N/sectors/N/ |
| Configuration of a meter sector | |
This object is a part of a composite value which is modified as a whole.
This object contains the following items:
| name | Name |
| value | Maximum value |
| color | Color |
Sample CLI read command (note that meter_configuration_index and sector_configuration_index are variables):
uom get "config/meters/${meter_configuration_index}/sectors/${sector_configuration_index}"
⇒
{"color":"00FF00","name":"Optimal","value":12}
Sample CLI write command (note that meter_configuration_index and sector_configuration_index are variables):
uom set "config/meters/${meter_configuration_index}/sectors/${sector_configuration_index}" "{\"color\":\"00FF00\",\"name\":\"Optimal\",\"value\":5.5}"
| string | config/meters/N/sectors/N/name/ |
| The name of the sector | |
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This string is a part of a composite value which is modified as a whole.
This string represents a value in persistent storage.
Sample JS request write command (note that _meter_configuration_index and _sector_configuration_index are variables):
request.put({url:"config/meters/"+_meter_configuration_index.toString()+"/sectors/"+_sector_configuration_index.toString()+"/name/",body:"Hot"});
Sample uom library read command (note that _meter_configuration_index and _sector_configuration_index are variables):
print(uom.dump(uom.config.meters[_meter_configuration_index].sectors[_sector_configuration_index].name))
⇒
"Optimal"
| number | config/meters/N/sectors/N/value/ |
| The maximum value for the sector | |
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This number is a part of a composite value which is modified as a whole.
This number represents a value in persistent storage.
Sample CLI write command (note that meter_configuration_index and sector_configuration_index are variables):
uom set "config/meters/${meter_configuration_index}/sectors/${sector_configuration_index}/value" "15"
Sample requests read command (note that _meter_configuration_index and _sector_configuration_index are variables):
print(requests.get('http://192.168.0.100/restapi/config/meters/'+str(_meter_configuration_index)+'/sectors/'+str(_sector_configuration_index)+'/value/',auth=auth,headers=headers).json())
⇒
10000
| string | config/meters/N/sectors/N/color/ |
| The color of the sector | |
The value is subject to the following constraints: the value matches ^[0-9A-F]{6}$
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This string is a part of a composite value which is modified as a whole.
This string represents a value in persistent storage.
Sample curl read command (note that :meter_configuration_index and :sector_configuration_index are URL template arguments):
curl --digest -u admin:1234 -H "Accept: application/json" "http://192.168.0.100/restapi/config/meters/:meter_configuration_index/sectors/:sector_configuration_index/color/"
⇒
"00FF00"
Sample requests read command (note that _meter_configuration_index and _sector_configuration_index are variables):
print(requests.get('http://192.168.0.100/restapi/config/meters/'+str(_meter_configuration_index)+'/sectors/'+str(_sector_configuration_index)+'/color/',auth=auth,headers=headers).json())
⇒
'00FF00'
| string | config/contact/ |
| The person or entity responsible for this unit and information on how to contact them | |
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This string represents a value in persistent storage.
Changes to this string do not take effect immediately.
Sample CLI read command:
uom get "config/contact"
⇒
"support@example.com"
Sample curl read command:
curl --digest -u admin:1234 -H "Accept: application/json" "http://192.168.0.100/restapi/config/contact/"
⇒
"support@example.com"
| map | config/contacts/ |
| Contacts related to the unit in different ways | |
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This map represents a value in persistent storage.
This map contains Contact elements.
Sample curl write command:
curl --digest -u admin:1234 -H "X-CSRF: x" -X PUT -H "Content-type: application/json" -H "Accept: application/json" --data-binary "{\"engineering\":{\"phone\":null,\"fax\":\"+5204814497889\",\"name\":\"Engineering\",\"email\":\"engineering@baz.example.com\"},\"sales\":{\"phone\":\"+5118407996105\",\"fax\":null,\"name\":\"Sales\",\"email\":\"sales@baz.example.com\"},\"security\":{\"phone\":\"+3505637292797\",\"fax\":\"+8163132927228\",\"name\":\"Security\",\"email\":null},\"features\":{\"phone\":null,\"fax\":null,\"name\":\"Features\",\"email\":\"features@foo.example.com\"}}" "http://192.168.0.100/restapi/config/contacts/"
Sample JS request write command:
request.put({url:"config/contacts/",body:{"engineering":{"phone":"+00876487380853","fax":"+571313333573523","name":"Engineering","email":"engineering@bar.example.com"},"sales":{"phone":null,"fax":"+110719137660090","name":"Sales","email":"sales@bar.example.com"},"security":{"phone":null,"fax":null,"name":"Security","email":"security@foo.example.com"}}});
See also Related contacts: Contact
| object | config/contacts/S/ |
| Contact properties | |
The value is subject to the following constraints: not index of the value matches ^(|$.*)$
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This object represents a value in persistent storage.
This object contains the following items:
| name | Name |
| Email, if any | |
| phone | Phone number, if any |
| fax | Fax number, if any |
Sample curl deletion command (note that :contact is a URL template argument):
curl --digest -u admin:1234 -H "X-CSRF: x" -X DELETE -H "Accept: application/json" "http://192.168.0.100/restapi/config/contacts/:contact/"
Sample JS request deletion command (note that _contact is a variable):
request.delete({url:"config/contacts/"+_contact+"/"});
| string | config/contacts/S/name/ |
| Contact name | |
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This string represents a value in persistent storage.
Sample curl read command (note that :contact is a URL template argument):
curl --digest -u admin:1234 -H "Accept: application/json" "http://192.168.0.100/restapi/config/contacts/:contact/name/"
⇒
"Sales"
Sample uom library read command (note that _contact is a variable):
print(uom.dump(uom.config.contacts[_contact].name))
⇒
"Security"
| sum (optional string) | config/contacts/S/email/ |
| Contact email address, if any | |
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant null | None | No email address stored | |
| string | Contact email address | the value is not equal to "" | |
Sample CLI read command (note that contact is a variable):
uom get "config/contacts/${contact}/email"
⇒
"sales@bar.example.com"
Sample curl write command (note that :contact is a URL template argument):
curl --digest -u admin:1234 -H "X-CSRF: x" -X PUT -H "Content-type: application/json" -H "Accept: application/json" --data-binary "\"engineering@baz.example.com\"" "http://192.168.0.100/restapi/config/contacts/:contact/email/"
| sum (optional string) | config/contacts/S/phone/ |
| Contact phone number, if any | |
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant null | None | No phone number stored | |
| string | Phone number | Contact phone number | the value is not equal to "" |
Sample CLI read command (note that contact is a variable):
uom get "config/contacts/${contact}/phone"
⇒
"+8676454743773"
Sample curl read command (note that :contact is a URL template argument):
curl --digest -u admin:1234 -H "Accept: application/json" "http://192.168.0.100/restapi/config/contacts/:contact/phone/"
⇒
null
| sum (optional string) | config/contacts/S/fax/ |
| Contact fax number, if any | |
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant null | None | No fax number stored | |
| string | Fax number | Contact fax number | the value is not equal to "" |
Sample uom library write command (note that _contact is a variable):
uom.config.contacts[_contact].fax=null
Sample uom library read command (note that _contact is a variable):
print(uom.dump(uom.config.contacts[_contact].fax))
⇒
"+21210823326228"
| string | config/location/ |
| The physical location of this unit (e.g. '1st floor, rack 9') | |
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This string represents a value in persistent storage.
Changes to this string do not take effect immediately.
Sample requests read command:
print(requests.get('http://192.168.0.100/restapi/config/location/',auth=auth,headers=headers).json())
⇒
'Server room'
Sample curl write command:
curl --digest -u admin:1234 -H "X-CSRF: x" -X PUT -H "Content-type: application/json" -H "Accept: application/json" --data-binary "\"Server room\"" "http://192.168.0.100/restapi/config/location/"
| string | config/oid/ |
| Object identifier of unit model (should be registered under dliRegistration OID) | |
Retrieving the value is denied if not administrative user
This string does not support direct modification.
This string represents a value in persistent storage.
Sample CLI read command:
uom get "config/oid"
⇒
"1.3.6.1.4.1.45770.1.3"
Sample JS request read command:
request.get({url:"config/oid/"},function(error,response,body) {console.log(body)});
⇒
"1.3.6.1.4.1.45770.1.3"
| string | config/version/ |
| Version number of frontend software | |
Retrieving the value is denied if not administrative user
This string does not support direct modification.
This string represents a value in persistent storage.
Sample requests read command:
print(requests.get('http://192.168.0.100/restapi/config/version/',auth=auth,headers=headers).json())
⇒
'1.8.1.0'
Sample CLI read command:
uom get "config/version"
⇒
"1.8.1.0"
| string | config/hardware_id/ |
| Identifier of unit hardware model | |
Retrieving the value is denied if not administrative user
This string does not support direct modification.
This string represents a value in persistent storage.
Sample requests read command:
print(requests.get('http://192.168.0.100/restapi/config/hardware_id/',auth=auth,headers=headers).json())
⇒
'EPCR5'
Sample CLI read command:
uom get "config/hardware_id"
⇒
"EPCR5"
| string | config/serial/ |
| Unit's serial number | |
Retrieving the value is denied if not administrative user
This string does not support direct modification.
This string represents a value in persistent storage.
Sample requests read command:
print(requests.get('http://192.168.0.100/restapi/config/serial/',auth=auth,headers=headers).json())
⇒
'ISO322203123456'
Sample uom library read command:
print(uom.dump(uom.config.serial))
⇒
"ISO322203123456"
| string | config/outlet_label/ |
| User-visible label for an outlet controlled by a relay | |
This string does not support direct modification.
This string represents a value in persistent storage.
Sample requests read command:
print(requests.get('http://192.168.0.100/restapi/config/outlet_label/',auth=auth,headers=headers).json())
⇒
'Outlet'
Sample uom library read command:
print(uom.dump(uom.config.outlet_label))
⇒
"Outlet"
| string | config/brand_company_name/ |
| The name of the company which produced the device | |
Retrieving the value is denied if not administrative user
This string does not support direct modification.
This string represents a value in persistent storage.
Sample JS request read command:
request.get({url:"config/brand_company_name/"},function(error,response,body) {console.log(body)});
⇒
"Digital Loggers, Inc."
Sample requests read command:
print(requests.get('http://192.168.0.100/restapi/config/brand_company_name/',auth=auth,headers=headers).json())
⇒
'Digital Loggers, Inc.'
| string | config/brand_name/ |
| Default brand name, unless overridden | |
Retrieving the value is denied if not administrative user
This string does not support direct modification.
This string represents a value in persistent storage.
Sample requests read command:
print(requests.get('http://192.168.0.100/restapi/config/brand_name/',auth=auth,headers=headers).json())
⇒
'Ethernet Power Controller'
Sample curl read command:
curl --digest -u admin:1234 -H "Accept: application/json" "http://192.168.0.100/restapi/config/brand_name/"
⇒
"Ethernet Power Controller"
| string | config/brand_url/ |
| Default brand URL, unless overridden | |
Retrieving the value is denied if not administrative user
This string does not support direct modification.
This string represents a value in persistent storage.
Sample uom library read command:
print(uom.dump(uom.config.brand_url))
⇒
"https://baz.example.com:48443/foo/foo/bar/quux/foo.html"
Sample JS request read command:
request.get({url:"config/brand_url/"},function(error,response,body) {console.log(body)});
⇒
"https://bar.example.com:18443/bar/quux.htm"
| string | config/brand_manual_url/ |
| Brand product manual URL | |
Retrieving the value is denied if not administrative user
This string does not support direct modification.
This string represents a value in persistent storage.
Sample uom library read command:
print(uom.dump(uom.config.brand_manual_url))
⇒
"http://bar.example.com/foo.htm"
Sample requests read command:
print(requests.get('http://192.168.0.100/restapi/config/brand_manual_url/',auth=auth,headers=headers).json())
⇒
'http://bar.example.com:80/baz/quux/bar/quux/bar.htm'
| string | config/brand_faq_url/ |
| Brand product FAQ URL | |
Retrieving the value is denied if not administrative user
This string does not support direct modification.
This string represents a value in persistent storage.
Sample curl read command:
curl --digest -u admin:1234 -H "Accept: application/json" "http://192.168.0.100/restapi/config/brand_faq_url/"
⇒
"http://foo.example.com:2/quux/bar/foo/bar/bar/bar.html"
Sample uom library read command:
print(uom.dump(uom.config.brand_faq_url))
⇒
"http://foo.example.com:80/foo/bar/bar/baz/quux.html"
| string | config/brand_product_info_url/ |
| Brand product information URL | |
Retrieving the value is denied if not administrative user
This string does not support direct modification.
This string represents a value in persistent storage.
Sample requests read command:
print(requests.get('http://192.168.0.100/restapi/config/brand_product_info_url/',auth=auth,headers=headers).json())
⇒
'http://baz.example.com/bar.html'
Sample JS request read command:
request.get({url:"config/brand_product_info_url/"},function(error,response,body) {console.log(body)});
⇒
"https://bar.example.com:443/baz.html"
| string | config/support_email/ |
| Product support email | |
Retrieving the value is denied if not administrative user
This string does not support direct modification.
This string represents a value in persistent storage.
Sample requests read command:
print(requests.get('http://192.168.0.100/restapi/config/support_email/',auth=auth,headers=headers).json())
⇒
'support@example.com'
Sample uom library read command:
print(uom.dump(uom.config.support_email))
⇒
"support@example.com"
| string | config/register_url/ |
| Default registration URL, unless overridden | |
Retrieving the value is denied if not administrative user
This string does not support direct modification.
This string represents a value in persistent storage.
Sample curl read command:
curl --digest -u admin:1234 -H "Accept: application/json" "http://192.168.0.100/restapi/config/register_url/"
⇒
"https://baz.example.com/baz/quux/quux/bar/foo/foo/baz/foo/baz.htm"
Sample CLI read command:
uom get "config/register_url"
⇒
"https://baz.example.com:18443/quux/baz/quux/baz.html"
| string | config/support_url/ |
| Default support URL, unless overridden | |
Retrieving the value is denied if not administrative user
This string does not support direct modification.
This string represents a value in persistent storage.
Sample CLI read command:
uom get "config/support_url"
⇒
"http://foo.example.com:1/baz/quux/quux/quux/foo/baz/foo/bar/quux/quux/quux.htm"
Sample uom library read command:
print(uom.dump(uom.config.support_url))
⇒
"https://foo.example.com/bar/foo.html"
| string | config/update_url/ |
| Default update URL, unless overridden | |
Retrieving the value is denied if not administrative user
This string does not support direct modification.
This string represents a value in persistent storage.
Sample JS request read command:
request.get({url:"config/update_url/"},function(error,response,body) {console.log(body)});
⇒
"https://baz.example.com/foo/foo/quux.html"
Sample CLI read command:
uom get "config/update_url"
⇒
"http://foo.example.com:5/foo/quux/foo/foo/foo.htm"
| sum (optional string) | config/custom_brand_company_name/ |
| User-visible brand company name, if any | |
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant null | Default | Use default brand company name | |
| string | Custom brand company name | User-visible brand company name | the value is not equal to "" |
Sample uom library write command:
uom.config.custom_brand_company_name="Whatever Systems Inc."
Sample curl write command:
curl --digest -u admin:1234 -H "X-CSRF: x" -X PUT -H "Content-type: application/json" -H "Accept: application/json" --data-binary "\"Whatever Systems Inc.\"" "http://192.168.0.100/restapi/config/custom_brand_company_name/"
| sum (optional string) | config/custom_brand_name/ |
| User-visible product brand name, if any | |
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant null | Default | Use default product brand name | |
| string | Custom brand name | User-visible product brand name | the value is not equal to "" |
Sample CLI write command:
uom set "config/custom_brand_name" "\"Amazing Controller III\""
Sample requests read command:
print(requests.get('http://192.168.0.100/restapi/config/custom_brand_name/',auth=auth,headers=headers).json())
⇒
'Amazing Controller III'
| sum (optional string) | config/custom_brand_url/ |
| User-visible brand URL, if any | |
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant null | Default | Use default brand URL | |
| string | Custom brand URL | User-visible brand URL | the value is not equal to "" |
Sample uom library write command:
uom.config.custom_brand_url="http://foo.example.com/bar/baz/baz.htm"
Sample CLI write command:
uom set "config/custom_brand_url" "\"http://baz.example.com:8020/bar/quux/foo/quux/quux/bar/baz/bar.html\""
| sum (optional string) | config/custom_brand_logo/ |
| User-visible brand logo URL, if any | |
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant null | Default | Use default brand logo | |
| string | Custom brand logo URL | User-visible brand logo URL | the value is not equal to "" |
Sample JS request write command:
request.put({url:"config/custom_brand_logo/",body:"https://baz.example.com/baz/quux.jpg"});
Sample CLI write command:
uom set "config/custom_brand_logo" "\"https://bar.example.com/foo.gif\""
| sum (optional number) | config/custom_brand_logo_width/ |
| User-visible brand logo width, if any | |
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant null | Default | Use default brand logo width | |
| number | Custom brand logo width | User-visible brand logo width | |
Sample requests read command:
print(requests.get('http://192.168.0.100/restapi/config/custom_brand_logo_width/',auth=auth,headers=headers).json())
⇒
22
Sample curl write command:
curl --digest -u admin:1234 -H "X-CSRF: x" -X PUT -H "Content-type: application/json" -H "Accept: application/json" --data-binary "22" "http://192.168.0.100/restapi/config/custom_brand_logo_width/"
| sum (optional number) | config/custom_brand_logo_height/ |
| User-visible brand logo height, if any | |
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant null | Default | Use default brand logo height | |
| number | Custom brand logo height | User-visible brand logo height | |
Sample uom library write command:
uom.config.custom_brand_logo_height=32
Sample curl write command:
curl --digest -u admin:1234 -H "X-CSRF: x" -X PUT -H "Content-type: application/json" -H "Accept: application/json" --data-binary "32" "http://192.168.0.100/restapi/config/custom_brand_logo_height/"
| sum (optional string) | config/custom_support_email/ |
| User-visible product support email, if any | |
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant null | Default | Use default support email | |
| string | Custom support email | User-visible product support email | the value is not equal to "" |
Sample CLI read command:
uom get "config/custom_support_email"
⇒
"support@example.com"
Sample uom library read command:
print(uom.dump(uom.config.custom_support_email))
⇒
"support@example.com"
| sum (optional string) | config/custom_register_url/ |
| User-visible registration URL, if any | |
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant null | Default | Use default registration URL | |
| string | Custom registration URL | User-visible registration URL | the value is not equal to "" |
Sample uom library write command:
uom.config.custom_register_url="http://foo.example.com/bar/baz/baz/bar/bar/bar/baz/foo.htm"
Sample JS request write command:
request.put({url:"config/custom_register_url/",body:"https://foo.example.com:8443/foo/baz/baz/bar/baz.htm"});
| sum (optional string) | config/custom_support_url/ |
| User-visible support URL, if any | |
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant null | Default | Use default support URL | |
| string | Custom support URL | User-visible support URL | the value is not equal to "" |
Sample requests read command:
print(requests.get('http://192.168.0.100/restapi/config/custom_support_url/',auth=auth,headers=headers).json())
⇒
'http://foo.example.com/baz/foo/baz.htm'
Sample uom library write command:
uom.config.custom_support_url="http://baz.example.com:2/baz/foo.html"
| sum (optional string) | config/custom_update_url/ |
| User-visible update URL, if any | |
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant null | Default | Use default update URL | |
| string | Custom update URL | User-visible update URL | the value is not equal to "" |
Sample CLI write command:
uom set "config/custom_update_url" "\"https://baz.example.com:443/foo/quux/quux.html\""
Sample CLI read command:
uom get "config/custom_update_url"
⇒
"http://baz.example.com:80/bar.html"
| sum (optional string) | config/custom_help_url/ |
| User-visible help URL, if any | |
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant null | Internal help | Use the internal embedded help system | |
| string | Custom help URL | User-visible help URL | the value is not equal to "" |
Sample curl write command:
curl --digest -u admin:1234 -H "X-CSRF: x" -X PUT -H "Content-type: application/json" -H "Accept: application/json" --data-binary "\"https://foo.example.com:48443/foo/bar/foo/quux/quux/quux/baz/foo/baz/foo/foo/baz/bar/bar/foo.html\"" "http://192.168.0.100/restapi/config/custom_help_url/"
Sample uom library read command:
print(uom.dump(uom.config.custom_help_url))
⇒
"https://baz.example.com:8443/baz/baz/baz/baz/bar/quux/bar/quux/baz.html"
| sum (optional enumerated string) | config/customization_status/ |
| Status of customization options | |
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant null | Default | Customization options can be changed and/or locked | |
| constant "open" | Open | Customization options can be changed, but cannot be locked | |
| constant "locked" | Locked | Customization options are locked and cannot be changed | |
Sample uom library write command:
uom.config.customization_status="open"
Sample curl write command:
curl --digest -u admin:1234 -H "X-CSRF: x" -X PUT -H "Content-type: application/json" -H "Accept: application/json" --data-binary "\"open\"" "http://192.168.0.100/restapi/config/customization_status/"
| sum (boolean) | config/registration_status/ |
| Status of the unit registration | |
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant true | Defined | The user has either registered the unit, or refused to do so | |
| constant false | Undefined | The user hasn't decided on registering the unit and needs to be reminded | |
Sample curl read command:
curl --digest -u admin:1234 -H "Accept: application/json" "http://192.168.0.100/restapi/config/registration_status/"
⇒
true
Sample requests write command:
requests.put('http://192.168.0.100/restapi/config/registration_status/',auth=auth,headers=headers,json=False)
| sum (boolean) | config/refresh_enabled/ |
| Periodically refresh web UI status page | |
Changing the value is denied if not administrative user
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant true | Enabled | The feature is enabled | |
| constant false | Disabled | The feature is disabled | |
Sample uom library write command:
uom.config.refresh_enabled=false
Sample requests write command:
requests.put('http://192.168.0.100/restapi/config/refresh_enabled/',auth=auth,headers=headers,json=False)
| number | config/refresh_delay_minutes/ |
| Status page refresh delay, if refresh is enabled | |
The value represents time, the standard unit of which is the second (s).
The value is subject to the following constraints: the value is greater than 0
Changing the value is denied if not administrative user
This number represents a value in persistent storage.
Sample CLI write command:
uom set "config/refresh_delay_minutes" "1"
Sample JS request read command:
request.get({url:"config/refresh_delay_minutes/"},function(error,response,body) {console.log(body)});
⇒
1
| string | config/image_format/ |
| Default image format for plots and meters | |
The value is subject to the following constraints: image formats[the value]
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This string represents a value in persistent storage.
Sample curl read command:
curl --digest -u admin:1234 -H "Accept: application/json" "http://192.168.0.100/restapi/config/image_format/"
⇒
"jpg"
Sample CLI write command:
uom set "config/image_format" "\"png\""
| string | config/hostname/ |
| Host name of the unit (sent by DHCP client, redirected to on network configuration changes when next IP address is unknown) | |
The value is subject to the following constraints: the value matches ^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]).)*([A-Za-z]([A-Za-z0-9-]*[A-Za-z0-9])?|[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z]([A-Za-z0-9-]*[A-Za-z0-9])?)$
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This string represents a value in persistent storage.
Changes to this string do not take effect immediately.
Sample curl write command:
curl --digest -u admin:1234 -H "X-CSRF: x" -X PUT -H "Content-type: application/json" -H "Accept: application/json" --data-binary "\"baz.example.com\"" "http://192.168.0.100/restapi/config/hostname/"
Sample CLI read command:
uom get "config/hostname"
⇒
"baz.example.com"
| string | config/timezone/ |
| System time zone | |
The value is subject to the following constraints: known timezones[the value]
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This string represents a value in persistent storage.
Sample requests read command:
print(requests.get('http://192.168.0.100/restapi/config/timezone/',auth=auth,headers=headers).json())
⇒
'UTC'
Sample CLI read command:
uom get "config/timezone"
⇒
"UTC"
| array | config/http_ports/ |
| HTTP port bindings | |
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This array is composite, i.e. is modified as a whole.
This array represents a value in persistent storage.
This array represents an unordered set (order of its elements doesn't matter, and each value should not be supplied more than once).
Changes to this array do not take effect immediately.
This array contains Port binding elements.
Sample JS request port binding creation command:
request.post({url:"config/http_ports/",body:{"port":"8033","address":"192.168.0.54"}});
Sample curl port binding creation command:
curl --digest -u admin:1234 -H "X-CSRF: x" -H "Content-type: application/json" -H "Accept: application/json" --data-binary "{\"port\":\"80\",\"address\":\"192.168.0.8\"}" "http://192.168.0.100/restapi/config/http_ports/"
See also HTTP ports: Port binding
| object | config/http_ports/N/ |
| Address and port to bind service to | |
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This object is a part of a composite value which is modified as a whole.
This object represents a value in persistent storage.
Changes to this object do not take effect immediately.
This object contains the following items:
| address | Address |
| port | Port |
Sample CLI read command (note that port_binding_index is a variable):
uom get "config/http_ports/${port_binding_index}"
⇒
{"port":"80","address":"192.168.0.29"}
Sample CLI write command (note that port_binding_index is a variable):
uom set "config/http_ports/${port_binding_index}" "{\"port\":\"8074\",\"address\":\"192.168.0.13\"}"
| sum (string) | config/http_ports/N/address/ |
| Address to listen on | |
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This sum is a part of a composite value which is modified as a whole.
This sum represents a value in persistent storage.
Changes to this sum do not take effect immediately.
This sum can assume the following values:
| string | IPv4 address | IPv4 address to listen on | the value matches ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]).){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$ |
| string | IPv6 address | IPv6 address to listen on | the value matches ^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]).){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$ |
Sample uom library write command (note that _port_binding_index is a variable):
uom.config.http_ports[_port_binding_index].address="192.168.0.4"
Sample curl write command (note that :port_binding_index is a URL template argument):
curl --digest -u admin:1234 -H "X-CSRF: x" -X PUT -H "Content-type: application/json" -H "Accept: application/json" --data-binary "\"192.168.0.8\"" "http://192.168.0.100/restapi/config/http_ports/:port_binding_index/address/"
| number | config/http_ports/N/port/ |
| Port number to bind to | |
The value is subject to the following constraints: all of the following is true:
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This number is a part of a composite value which is modified as a whole.
This number represents a value in persistent storage.
Changes to this number do not take effect immediately.
Sample requests write command (note that _port_binding_index is a variable):
requests.put('http://192.168.0.100/restapi/config/http_ports/'+str(_port_binding_index)+'/port/',auth=auth,headers=headers,json='8018')
Sample uom library write command (note that _port_binding_index is a variable):
uom.config.http_ports[_port_binding_index].port="3"
| array | config/https_ports/ |
| HTTPS port bindings | |
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This array is composite, i.e. is modified as a whole.
This array represents a value in persistent storage.
This array represents an unordered set (order of its elements doesn't matter, and each value should not be supplied more than once).
Changes to this array do not take effect immediately.
This array contains Port binding elements.
Sample requests read command:
print(requests.get('http://192.168.0.100/restapi/config/https_ports/',auth=auth,headers=headers).json())
⇒
[{'port': '8089', 'address': '192.168.0.74'}, {'port': '80', 'address': '192.168.0.8'}, {'port': '4', 'address': '192.168.0.8'}]
Sample curl read command:
curl --digest -u admin:1234 -H "Accept: application/json" "http://192.168.0.100/restapi/config/https_ports/"
⇒
[{"port":"80","address":"192.168.0.4"},{"port":"5","address":"192.168.0.11"}]
See also HTTPS ports: Port binding
| object | config/https_ports/N/ |
| Address and port to bind service to | |
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This object is a part of a composite value which is modified as a whole.
This object represents a value in persistent storage.
Changes to this object do not take effect immediately.
This object contains the following items:
| address | Address |
| port | Port |
Sample curl deletion command (note that :port_binding_index is a URL template argument):
curl --digest -u admin:1234 -H "X-CSRF: x" -X DELETE -H "Accept: application/json" "http://192.168.0.100/restapi/config/https_ports/:port_binding_index/"
Sample uom library read command (note that _port_binding_index is a variable):
print(uom.dump(uom.config.https_ports[_port_binding_index]))
⇒
{address="192.168.0.9",port="80"}
| sum (string) | config/https_ports/N/address/ |
| Address to listen on | |
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This sum is a part of a composite value which is modified as a whole.
This sum represents a value in persistent storage.
Changes to this sum do not take effect immediately.
This sum can assume the following values:
| string | IPv4 address | IPv4 address to listen on | the value matches ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]).){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$ |
| string | IPv6 address | IPv6 address to listen on | the value matches ^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]).){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$ |
Sample JS request read command (note that _port_binding_index is a variable):
request.get({url:"config/https_ports/"+_port_binding_index.toString()+"/address/"},function(error,response,body) {console.log(body)});
⇒
"192.168.0.9"
Sample JS request write command (note that _port_binding_index is a variable):
request.put({url:"config/https_ports/"+_port_binding_index.toString()+"/address/",body:"192.168.0.32"});
| number | config/https_ports/N/port/ |
| Port number to bind to | |
The value is subject to the following constraints: all of the following is true:
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This number is a part of a composite value which is modified as a whole.
This number represents a value in persistent storage.
Changes to this number do not take effect immediately.
Sample uom library read command (note that _port_binding_index is a variable):
print(uom.dump(uom.config.https_ports[_port_binding_index].port))
⇒
"8074"
Sample CLI read command (note that port_binding_index is a variable):
uom get "config/https_ports/${port_binding_index}/port"
⇒
"80"
| object | config/https_cert/ |
| HTTPS certificate configuration | |
Retrieving the value is denied if not administrative user
This object contains the following items:
Sample JS request read command:
request.get({url:"config/https_cert/"},function(error,response,body) {console.log(body)});
⇒
<...>
Sample JS request write command:
request.put({url:"config/https_cert/",body:<...>});
| number | config/https_cert/bits/ |
| Size of new private keys | |
The value represents count, the standard unit of which is the time (times).
The value is subject to the following constraints: all of the following is true:
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This number represents a value in persistent storage.
Sample JS request write command:
request.put({url:"config/https_cert/bits/",body:8192});
Sample curl read command:
curl --digest -u admin:1234 -H "Accept: application/json" "http://192.168.0.100/restapi/config/https_cert/bits/"
⇒
2048
| map | config/https_cert/distinguished_name/ |
| New certificate distinguished name elements | |
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This map is composite, i.e. is modified as a whole.
This map represents a value in persistent storage.
This map contains Values elements.
Sample requests values creation command:
requests.put('http://192.168.0.100/restapi/config/https_cert/distinguished_name/countryName/',auth=auth,headers=headers,json=['US'])
Sample requests read command:
print(requests.get('http://192.168.0.100/restapi/config/https_cert/distinguished_name/',auth=auth,headers=headers).json())
⇒
{'commonName': ['Digital Loggers Unit'], 'countryName': ['US'], 'stateOrProvinceName': ['California'], 'localityName': ['Santa Clara']}
See also Distinguished name: Values
| sum (enumerated string) | config/https_cert/string_mask/ |
| The set of string types to use for new certificates | |
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant "default" | OpenSSL default | PrintableString, T61String and BMPString | |
| constant "pkix" | PKIX | PrintableString and BMPString | |
| constant "utf8only" | UTF-8 strings only | UTF8String | |
| constant "nombstr" | No multibyte strings | PrintableString and T61String | |
Sample curl read command:
curl --digest -u admin:1234 -H "Accept: application/json" "http://192.168.0.100/restapi/config/https_cert/string_mask/"
⇒
"nombstr"
Sample requests write command:
requests.put('http://192.168.0.100/restapi/config/https_cert/string_mask/',auth=auth,headers=headers,json='utf8only')
| sum (optional array) | config/https_cert/domains/ |
| Explicit domain name list to certify for when enrolling certificate, if any | |
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant null | Use hostname | Certify for the current hostname when enrolling certificate | |
| array | Domain names override | Explicit domain name list to certify for when enrolling certificate | |
Sample JS request read command:
request.get({url:"config/https_cert/domains/"},function(error,response,body) {console.log(body)});
⇒
["baz.example.com"]
Sample uom library write command:
uom.config.https_cert.domains=null
See also Domain names override, if any: Domain names override
| sum (optional array) | config/https_cert/addresses/ |
| Explicit list of addresses to certify for when enrolling certificate, if any | |
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant null | Use all known addresses | Certify for all current addresses when enrolling certificate automatically | |
| array | Addresses override | Explicit list of addresses to certify for when enrolling certificate | |
Sample requests read command:
print(requests.get('http://192.168.0.100/restapi/config/https_cert/addresses/',auth=auth,headers=headers).json())
⇒
['23.253.224.233', '58.23.186.71']
Sample uom library write command:
uom.config.https_cert.addresses=null
See also Addresses override, if any: Addresses override
| sum (boolean) | config/https_cert/automatic_renewal/ |
| Automatic renewal of certificate at or near expiry | |
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant true | Enabled | The feature is enabled | |
| constant false | Disabled | The feature is disabled | |
Sample CLI write command:
uom set "config/https_cert/automatic_renewal" "true"
Sample JS request read command:
request.get({url:"config/https_cert/automatic_renewal/"},function(error,response,body) {console.log(body)});
⇒
true
| string | config/https_cert/renewal_method/ |
| Method to use when renewing the certificate | |
The value is subject to the following constraints: renewal methods[the value]
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This string represents a value in persistent storage.
Sample JS request read command:
request.get({url:"config/https_cert/renewal_method/"},function(error,response,body) {console.log(body)});
⇒
"selfsigned"
Sample CLI read command:
uom get "config/https_cert/renewal_method"
⇒
"est"
See also HTTPS certificate settings: Data
| sum (variant) | config/https_cert/csr/ |
| The certificate signing request to sign (read may fail if key generation is in progress) | |
Retrieving the value is denied if not administrative user
This sum does not support direct modification.
This sum can change as if by itself or indirectly because of other actions.
Changes to this sum cannot be tracked.
This sum can assume the following values:
| string | HTTPS certificate signing request | The certificate signing request you need to sign in order to obtain an HTTPS certificate for the unit, to be honored by an external entity | |
| constant false | Certificate signing request generation failure | No valid certificate signing request could be generated, check distinguished name settings | |
Sample curl read command:
curl --digest -u admin:1234 -H "Accept: application/json" "http://192.168.0.100/restapi/config/https_cert/csr/"
⇒
Sample JS request read command:
request.get({url:"config/https_cert/csr/"},function(error,response,body) {console.log(body)});
⇒
| string | config/https_cert/cert/ |
| HTTPS certificate chain presented by the unit to clients (read may fail if renewal is in progress) | |
The value contains PEM format data (has native MIME type application/x-pem-file).
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
Using the string as a field for indexing into the grandparent collection is denied
This string represents a value in persistent storage.
This string can change as if by itself or indirectly because of other actions.
Changes to this string cannot be tracked.
Changes to this string may have an effect besides setting value.
Changes to this string do not take effect immediately.
Sample CLI write command:
uom set "config/https_cert/cert" "\"-----BEGIN CERTIFICATE-----\\nMIIClvhClhNhBiH40pGGBw7CVYkCevgEZYTKUAZFtyy5hGBj5U/JQ8XxjIANDsdo\\n9xIkCCjBJQTXAb2CxUMUS6peV3W8uzG3wbq9qaMA0skCUoQRIpynxnRTs+dnzwsw\\nj5OJUbMMLat91KUtIIr6lK/m+olwhiVQqvlLX7kukd4ozbiIvZQhwRTwGFtzzOPq\\nBBtLxn6auwaVeuREL8Aod74u03uQVkmjxg4vTCWO97wq1N4OXHDBQK5TQ/vxmihk\\nnfu0CJBLF1Pe8qCR3PuQXNsZJq=\\n-----END CERTIFICATE-----\\n\""
Sample JS request read command:
request.get({url:"config/https_cert/cert/"},function(error,response,body) {console.log(body)});
⇒
"-----BEGIN CERTIFICATE-----\nMII+fBX0CWt5AH+EDgwx4nSQyc/R6Kfu+YugmSj++c6Aw6R9pN6wBbMADOdLkJFl\nRfeAgfposlxJxnj4jwh66wWmIH5Z3/mWhQjN5YC+JAJHz2Nj/4r71OvLh1xm2jJl\n39HdOHzadGah==\n-----END CERTIFICATE-----\n"
| string | config/https_cert/key/ |
| The key used by the HTTPS certificate presented by the unit; certificate will be renewed as a side effect of writing; writing actual data is not recommended, please use the certificate request signing path instead | |
The value contains PEM format data (has native MIME type application/x-pem-file).
Retrieving the value is denied
Changing the value is denied if not administrative user
Using the string as a field for indexing into the grandparent collection is denied
This string represents a value in persistent storage.
This string can change as if by itself or indirectly because of other actions.
Changes to this string cannot be tracked.
Changes to this string may have an effect besides setting value.
Changes to this string do not take effect immediately.
This string should be displayed in a secure manner.
Representation of the resource cannot be obtained. Attempts to do so via a JSON API will succeed but return '{"$ref":""}' which means "the value of this resource".
Sample uom library write command:
uom.config.https_cert.key="-----BEGIN PRIVATE KEY-----\ MIIvl38EvgTn3qFWEbFnvb5Kozd41hxb1BXoHh3DOY0TPI0fvHSquaBjZqpcYnEb\ QIUVXu4aOVuQAqkfhfFuOrkDTJ1kw2XNN2uwy+XNVRqiIaN/FfwfWhv00ymy1JMQ\ HMMHvlpNcYiCyjTdg89N3BP2zO5JmXi3w5NstDGVo/jmkCPRNaqSoGWoge7TCsZ8\ z1tCKO0L8o6NEZmqQEfinTPRdufVUqVTuPhEqkc+ZlNpK9gnQLVDrxgUrM0LCYq7\ YOpJ0qunDj8PPxrnT4eQn9I9BgOmXYm6ycR/SLoi4z7Wx+JQ4ztu8B3MuU9S2xa0\ 112OsmVrv1owNF0M8wXM0wHX5lb2LeePijpaVLSRPHNoZQBjNk6PgQyoBatZEX+y\ qZoB2GdLfRw5egUPpw6FvwTVq2mO2lhuKV6OnlmTDibuO6KE2SVzP+VF3Hg72N2P\ BqizcCCKp7lxT/0yX0NYXfdrLnwlsLg3BP3pdIATRyQw+TvXVJ52+lvMYs7QDqWR\ bHuvUONSrKSKF0ra8vbvr+Uj8wz+TRF5kA1EaQjRmBn2EeeOaGJSGpBQmBQFeiNO\ QfVsPzfcnjsSOG2hcXzRlQEytWccv1XLj2E82wnrggK5zPobyo3jEJh8sKmnOJ98\ QITM6K2pgAo5+Q4pWp4sXEku1YINjSn9nGYwddlKpaSq0YfZOlRx0Br3mASVfGhT\ GPCvBZln1cqcHP03s+54sAs2eOkw6DVOfkKsJ6fNkV/2x27q2EwwRp/5Dl2L+amf\ 6XgFD3/l43i8CYDTVAwKB2ay7yzjlf4tDm9TsAEyGz7VYN+3ZxQm01l9/lvmR/gg\ rAg2QfLQos+Ct3nrWatZM2b8zOb/5IpyUV1xBON/HNEAT110dwc0/DA+dn/k6qjc\ nZZBzbVNrhtvlvZiXbjnnjQb==\ -----END PRIVATE KEY-----\ "
Sample JS request write command:
request.put({url:"config/https_cert/key/",body:"-----BEGIN PRIVATE KEY-----\nMIIhtNLnbQDiaiAdfvDBvnV2gxtPNYQPMR6GqT4SvJAW1N9jIPwEDRIwPCMpmoE8\nR6rXamtnIwAUgVwdlA546WJVL5JbGb+jkrHKeA7z7KTqrQTdcajl72GVAc6TE6C+\nWLeiVdsr7ijZBMCo6+xBHSOwbtBk6CkeZPN52GyB+inC501E1/SKUtH6mUsvidaH\n+P7GOKH68WEAZUDaza5stDeN5Z6l9Qp9rySFJlNUHdht8wU7Xb/RqgryFzjRPZdG\n6YutyOBb54m2bvbCx33dw1vvnMLM0ex8Cr2BFFpMMbRzX3CU8H74K207ROWU3TeI\niVc+K/NxSNUXc+iv8oGDrQ==\n-----END PRIVATE KEY-----\n"});
See also HTTPS certificate settings: Renew certificate
See also HTTPS certificate settings: Generate key
See also HTTPS certificate settings: Known DN OIDs
| map | config/https_cert/known_renewal_methods/ |
| Known renewal methods | |
Retrieving the value is denied if not administrative user
This map is composite, i.e. is modified as a whole.
This map does not support direct modification.
This map contains Renewal method elements.
Creating elements in this collection is not supported.
Sample uom library read command:
print(uom.dump(uom.config.https_cert.known_renewal_methods))
⇒
<...>
Sample CLI read command:
uom get "config/https_cert/known_renewal_methods"
⇒
...
See also Renewal methods: Renewal method
| array | config/https_cert/distinguished_name/S/ |
| Distinguished name element value set | |
The value is subject to the following constraints: any of the following is true:
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This array is a part of a composite value which is modified as a whole.
This array represents a value in persistent storage.
This array contains Value elements.
Sample curl deletion command (note that :values is a URL template argument):
curl --digest -u admin:1234 -H "X-CSRF: x" -X DELETE -H "Accept: application/json" "http://192.168.0.100/restapi/config/https_cert/distinguished_name/:values/"
Sample requests value creation command (note that _values is a variable):
requests.post('http://192.168.0.100/restapi/config/https_cert/distinguished_name/'+_values+'/',auth=auth,headers=headers,json='US')
| string | config/https_cert/distinguished_name/S/N/ |
| Distinguished name element value | |
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This string is a part of a composite value which is modified as a whole.
This string represents a value in persistent storage.
Sample uom library read command (note that _values and _value_index are variables):
print(uom.dump(uom.config.https_cert.distinguished_name[_values][_value_index]))
⇒
"California"
Sample JS request write command (note that _values and _value_index are variables):
request.put({url:"config/https_cert/distinguished_name/"+_values+"/"+_value_index.toString()+"/",body:"Santa Clara"});
| (possibly) array | config/https_cert/domains/ |
| Explicit domain name list to certify for when enrolling certificate | |
This array contains Hostname elements.
Sample CLI hostname creation command:
uom insert "config/https_cert/domains/2" "\"bar.example.com\""
Sample curl hostname creation command:
curl --digest -u admin:1234 -H "X-CSRF: x" -H "Content-type: application/json" -H "Accept: application/json" --data-binary "\"foo.example.com\"" "http://192.168.0.100/restapi/config/https_cert/domains/"
| string | config/https_cert/domains/N/ |
| Hostname to certify for | |
The value is subject to the following constraints: the value matches ^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]).)*([A-Za-z]([A-Za-z0-9-]*[A-Za-z0-9])?|[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z]([A-Za-z0-9-]*[A-Za-z0-9])?)$
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This string represents a value in persistent storage.
Sample curl write command (note that :hostname_index is a URL template argument):
curl --digest -u admin:1234 -H "X-CSRF: x" -X PUT -H "Content-type: application/json" -H "Accept: application/json" --data-binary "\"bar.example.com\"" "http://192.168.0.100/restapi/config/https_cert/domains/:hostname_index/"
Sample requests read command (note that _hostname_index is a variable):
print(requests.get('http://192.168.0.100/restapi/config/https_cert/domains/'+str(_hostname_index)+'/',auth=auth,headers=headers).json())
⇒
'foo.example.com'
| (possibly) array | config/https_cert/addresses/ |
| Explicit list of addresses to certify for when enrolling certificate | |
This array contains IPv4 address elements.
Sample CLI IPv4 address creation command:
uom insert "config/https_cert/addresses/0" "\"46.43.177.111\""
Sample curl IPv4 address creation command:
curl --digest -u admin:1234 -H "X-CSRF: x" -H "Content-type: application/json" -H "Accept: application/json" --data-binary "\"239.240.28.228\"" "http://192.168.0.100/restapi/config/https_cert/addresses/"
| string | config/https_cert/addresses/N/ |
| IPv4 address to certify for, in dotted quad notation | |
The value is subject to the following constraints: the value matches ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]).){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This string represents a value in persistent storage.
Sample uom library write command (note that _ipv4_address_index is a variable):
uom.config.https_cert.addresses[_ipv4_address_index]="135.207.252.239"
Sample requests write command (note that _ipv4_address_index is a variable):
requests.put('http://192.168.0.100/restapi/config/https_cert/addresses/'+str(_ipv4_address_index)+'/',auth=auth,headers=headers,json='215.216.253.4')
| map | config/https_cert/renewal_data/ |
| Renewal-method-specific data | |
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This map represents a value in persistent storage.
This map contains Data item elements.
Sample curl write command:
curl --digest -u admin:1234 -H "X-CSRF: x" -X PUT -H "Content-type: application/json" -H "Accept: application/json" --data-binary "{\"acmev1_key_size\":\"5895\",\"acmev1_url\":\"http://]%f2%B4p]\",\"acmev1_agreement\":\" \",\"acmev1_key_type\":\"dsa\",\"acmev1_contacts\":\"] \"}" "http://192.168.0.100/restapi/config/https_cert/renewal_data/"
Sample uom library read command:
print(uom.dump(uom.config.https_cert.renewal_data))
⇒
{acmev1_agreement=" 7%9E ",acmev1_contacts=" ",acmev1_key_size="1",acmev1_key_type="rsa",acmev1_url="https://g"}
| string | config/https_cert/renewal_data/S/ |
| Item of renewal-method-specific data | |
The value is subject to the following constraints: the value matches renewal methods[certificate renewal method].data_items[index of the value].regexp
Retrieving the value is denied if any of the following is true:
Changing the value is denied if any of the following is true:
Using the string as a field for indexing into the grandparent collection is denied if any of the following is true:
This string represents a value in persistent storage.
This string should be displayed in a secure manner if all of the following is true:
Sample JS request deletion command (note that _data_item is a variable):
request.delete({url:"config/https_cert/renewal_data/"+_data_item+"/"});
Sample uom library deletion command (note that _data_item is a variable):
uom.remove(uom.config.https_cert.renewal_data,_data_item)
| call | config/https_cert/renew_cert/ |
| Initiate attempt to renew the certificate using the selected method | |
Performing the function call is denied if any of the following is true:
The call has no arguments (supply empty tuple).
The call returns the following results:
Sample JS request invocation:
request.post({url:"config/https_cert/renew_cert/",body:[]});
⇒
(no output)
Sample uom library invocation:
uom.config.https_cert.renew_cert()
⇒
(no output)
| constant null | config/https_cert/renew_cert/results: 1/ |
| No additional information available | |
This constant does not correspond to an actual resource.
| call | config/https_cert/generate_key/ |
| Initiate generation of a new private key; certificate renewal will be attempted as a side effect; if that fails, the key is unchanged | |
Performing the function call is denied if any of the following is true:
The call has no arguments (supply empty tuple).
The call returns the following results:
Sample requests invocation:
requests.post('http://192.168.0.100/restapi/config/https_cert/generate_key/',auth=auth,headers=headers,json={})
⇒
(no output)
Sample curl invocation:
curl --digest -u admin:1234 -H "X-CSRF: x" -H "Content-type: application/json" -H "Accept: application/json" --data-binary "[]" "http://192.168.0.100/restapi/config/https_cert/generate_key/"
⇒
null
| constant null | config/https_cert/generate_key/results: 1/ |
| No additional information available | |
This constant does not correspond to an actual resource.
| map | config/https_cert/known_dn_oids/ |
| Known distinguished name element object identifiers | |
Retrieving the value is denied if not administrative user
This map does not support direct modification.
This map contains OID elements.
Creating elements in this collection is not supported.
Sample CLI read command:
uom get "config/https_cert/known_dn_oids"
⇒
Sample requests read command:
print(requests.get('http://192.168.0.100/restapi/config/https_cert/known_dn_oids/',auth=auth,headers=headers).json())
⇒
| string | config/https_cert/known_dn_oids/S/ |
| Object identifier value | |
Retrieving the value is denied if not administrative user
This string does not support direct modification.
Sample JS request read command (note that _oid is a variable):
request.get({url:"config/https_cert/known_dn_oids/"+_oid+"/"},function(error,response,body) {console.log(body)});
⇒
"2.5.4.23"
Sample CLI read command (note that oid is a variable):
uom get "config/https_cert/known_dn_oids/${oid}"
⇒
"2.5.4.13"
| object | config/https_cert/known_renewal_methods/S/data_items/S/ |
| Properties of data item | |
This object is a part of a composite value which is modified as a whole.
This object contains the following items:
| name | Name |
| regexp | Regular expression |
| secret | Secret |
Sample uom library write command (note that _renewal_method and _data_item_properties are variables):
uom.config.https_cert.known_renewal_methods[_renewal_method].data_items[_data_item_properties]={name="Number of days to issue new certificates for",regexp="^[1-9][0-9]*$",secret=false}
Sample curl read command (note that :renewal_method and :data_item_properties are URL template arguments):
curl --digest -u admin:1234 -H "Accept: application/json" "http://192.168.0.100/restapi/config/https_cert/known_renewal_methods/:renewal_method/data_items/:data_item_properties/"
⇒
{"regexp":"^((]|[!#&'()*+,/:;=?@[$A-Za-z0-9._~-]|(%[0-9A-Fa-f][0-9A-Fa-f]))| )+$","name":"ACMEv2 service agreement","secret":false}
| string | config/https_cert/known_renewal_methods/S/data_items/S/name/ |
| Data item name | |
Retrieving the value is denied if not administrative user
This string is a part of a composite value which is modified as a whole.
This string does not support direct modification.
Sample CLI read command (note that renewal_method and data_item_properties are variables):
uom get "config/https_cert/known_renewal_methods/${renewal_method}/data_items/${data_item_properties}/name"
⇒
"ACMEv1 service agreement"
Sample curl read command (note that :renewal_method and :data_item_properties are URL template arguments):
curl --digest -u admin:1234 -H "Accept: application/json" "http://192.168.0.100/restapi/config/https_cert/known_renewal_methods/:renewal_method/data_items/:data_item_properties/name/"
⇒
"ACMEv2 directory endpoint URL"
| string | config/https_cert/known_renewal_methods/S/data_items/S/regexp/ |
| Regular expression which the data item must match | |
Retrieving the value is denied if not administrative user
This string is a part of a composite value which is modified as a whole.
This string does not support direct modification.
Sample requests read command (note that _renewal_method and _data_item_properties are variables):
print(requests.get('http://192.168.0.100/restapi/config/https_cert/known_renewal_methods/'+_renewal_method+'/data_items/'+_data_item_properties+'/regexp/',auth=auth,headers=headers).json())
⇒
'^(RS256|RS384|RS512|ES256|ES384|ES512)$'
Sample uom library read command (note that _renewal_method and _data_item_properties are variables):
print(uom.dump(uom.config.https_cert.known_renewal_methods[_renewal_method].data_items[_data_item_properties].regexp))
⇒
"^((]|[!#&'()*+,/:;=?@[$A-Za-z0-9._~-]|(%[0-9A-Fa-f][0-9A-Fa-f]))| )+$"
| sum (boolean) | config/https_cert/known_renewal_methods/S/data_items/S/secret/ |
| Flag indicating whether the data item can contain private information | |
Retrieving the value is denied if not administrative user
This sum is a part of a composite value which is modified as a whole.
This sum does not support direct modification.
This sum can assume the following values:
| constant true | Secret | The data item can contain private information | |
| constant false | Not secret | The data item contains only public information | |
Sample JS request read command (note that _renewal_method and _data_item_properties are variables):
request.get({url:"config/https_cert/known_renewal_methods/"+_renewal_method+"/data_items/"+_data_item_properties+"/secret/"},function(error,response,body) {console.log(body)});
⇒
false
Sample CLI read command (note that renewal_method and data_item_properties are variables):
uom get "config/https_cert/known_renewal_methods/${renewal_method}/data_items/${data_item_properties}/secret"
⇒
false
| object | config/https_cert/known_renewal_methods/S/ |
| Method of certificate renewal | |
Retrieving the value is denied if not administrative user
This object is a part of a composite value which is modified as a whole.
This object contains the following items:
| name | Name |
| data_items | Supported data items |
Sample CLI write command (note that renewal_method is a variable):
uom set "config/https_cert/known_renewal_methods/${renewal_method}" "{\"name\":\"Obtain a certificate from an ACME v2 endpoint (e.g. Let's Encrypt)\",\"data_items\":{\"acmev2_auth_algorithm\":{\"regexp\":\"^(RS256|RS384|RS512|ES256|ES384|ES512)$\",\"name\":\"ACMEv2 authentication algorithm\",\"secret\":false},\"acmev2_contacts\":{\"regexp\":\"^((]|[!#&'()*+,/:;=?@[$A-Za-z0-9._~-]|(%[0-9A-Fa-f][0-9A-Fa-f]))| )+$\",\"name\":\"ACMEv2 contact URLs, whitespace-separated\",\"secret\":false},\"acmev2_agreement\":{\"regexp\":\"^((]|[!#&'()*+,/:;=?@[$A-Za-z0-9._~-]|(%[0-9A-Fa-f][0-9A-Fa-f]))| )+$\",\"name\":\"ACMEv2 service agreement\",\"secret\":false},\"acmev2_url\":{\"regexp\":\"^https?://(]|[!#&'()*+,/:;=?@[$A-Za-z0-9._~-]|(%[0-9A-Fa-f][0-9A-Fa-f]))+$\",\"name\":\"ACMEv2 directory endpoint URL\",\"secret\":false}}}"
Sample JS request read command (note that _renewal_method is a variable):
request.get({url:"config/https_cert/known_renewal_methods/"+_renewal_method+"/"},function(error,response,body) {console.log(body)});
⇒
| string | config/https_cert/known_renewal_methods/S/name/ |
| Renewal method name | |
Retrieving the value is denied if not administrative user
This string is a part of a composite value which is modified as a whole.
This string does not support direct modification.
Sample curl read command (note that :renewal_method is a URL template argument):
curl --digest -u admin:1234 -H "Accept: application/json" "http://192.168.0.100/restapi/config/https_cert/known_renewal_methods/:renewal_method/name/"
⇒
"Obtain a certificate from an ACME v2 endpoint (e.g. Let's Encrypt)"
Sample JS request read command (note that _renewal_method is a variable):
request.get({url:"config/https_cert/known_renewal_methods/"+_renewal_method+"/name/"},function(error,response,body) {console.log(body)});
⇒
"Obtain a certificate from an ACME v2 endpoint (e.g. Let's Encrypt)"
| map | config/https_cert/known_renewal_methods/S/data_items/ |
| Properties of supported data items | |
Retrieving the value is denied if not administrative user
This map is a part of a composite value which is modified as a whole.
This map does not support direct modification.
This map contains Data item properties elements.
Creating elements in this collection is not supported.
Sample CLI read command (note that renewal_method is a variable):
uom get "config/https_cert/known_renewal_methods/${renewal_method}/data_items"
⇒
Sample requests read command (note that _renewal_method is a variable):
print(requests.get('http://192.168.0.100/restapi/config/https_cert/known_renewal_methods/'+_renewal_method+'/data_items/',auth=auth,headers=headers).json())
⇒
{'days': {'regexp': '^[1-9][0-9]*$', 'name': 'Number of days to issue new certificates for', 'secret': False}}
See also Supported data items: Data item properties
| map | config/certificates/ |
| Map of known certificates and their settings | |
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This map represents a value in persistent storage.
Changes to this map do not take effect immediately.
This map contains Certificate elements.
Sample CLI certificate creation command:
uom insert "config/certificates/SecureFooCare_Trusted_CA_4" "{\"data\":\"-----BEGIN CERTIFICATE-----\\nMIID9qnncGoAFxDSJfIgAnYERlLGsmNTXujilXWOpKb5IraeWuKihvy9gKRY7q2g\\nOWLwwAHYIcPuGxocfWXehE/9p8/uqmiFJ3CGGVqa8FVQDJ2vscZasalhlnbbaKtv\\n5Cid2JnKqDaAIV2w4ephQXSD94p=\\n-----END CERTIFICATE-----\\n\",\"status\":false}"
Sample CLI write command:
uom set "config/certificates" "{\"iVeriBarCrypt_Root_CA\":{\"data\":\"-----BEGIN CERTIFICATE-----\\nMIIalvPhp/Eee1/8sZh4JpQeLhOAMRefIcF3YgmOi12M44XzgE403WgRE5dcYIHs\\nyVGkw+o+Nv4xunC+pIXVlncPQAjk3gK1Cco9dcA1XG+S4DSvX0QIp2kFFT0KAMOP\\nCa==\\n-----END CERTIFICATE-----\\n\",\"status\":false}}"
See also Certificate collection: Certificate
| object | config/certificates/S/ |
| Certificate settings | |
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This object represents a value in persistent storage.
Changes to this object do not take effect immediately.
This object contains the following items:
| data | Data |
| status | Trust status |
Sample JS request deletion command (note that _certificate is a variable):
request.delete({url:"config/certificates/"+_certificate+"/"});
Sample requests deletion command (note that _certificate is a variable):
requests.delete('http://192.168.0.100/restapi/config/certificates/'+_certificate+'/',auth=auth,headers=headers)
| string | config/certificates/S/data/ |
| Certificate data | |
The value contains PEM format data (has native MIME type application/x-pem-file).
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This string represents a value in persistent storage.
Changes to this string do not take effect immediately.
Sample CLI write command (note that certificate is a variable):
uom set "config/certificates/${certificate}/data" "\"-----BEGIN CERTIFICATE-----\\nMIIO5jbmoB16f7lyKRErermcMkEuhgBcos1vbehPslYXvKVFnm6Rdu30fKwN17/r\\nndkU3cGd9BzhSnTbF7WL9Bh6blFdcHiPxSw05DfHQf+vTUWkd25pGpxtaDWDXEfU\\ncXqrD7Hu8DNfl8IpF8655/hKYwuobOYExP5AYP5jeVOPfjFxtN2/PmMzjGoLhMbe\\nirM7z6oUWEAGV89vDBL/ZKkr95YYiDMR5lb5tPcQfoiBzu6C5UDgq+Y057aqNzHV\\nuceKE5/3pC2kLGrrVYiW7kdGLUgKoB5ipm23t48jIDTfVLX1vFZ2/DLNj1kXFsG4\\nLAYSLHmanS68/93Gl8I+VhkZSIqKax/y7ZQVtD6ghEqjPw/A4KBc2xBWF2ts/ur9\\nHgNWo4E2xzUu/h+MudQrrz7vs/wns5HAohjcn+hl+Cf0vgOqJriAqr6jt3WmAqy/\\nidLiL6iZnlVU9Lp030tw9cqE9cQ/bRYJ5v2T2n2sYZMjwCm0EgzPIpfUR6V2a4Oi\\nSB4GGzqsLapZMrq2qGNfyt74PChWcPY5dfNveEn0qccDUSHKkh/ib9p0NXZ/z77c\\nXYUnMWe/8tVdBrNut6V2yYRV8TUHc77Ahdz3Ae4KXczkTNfNWBSUlv0wPXD2gNEO\\nEUDubZRDZBjzt6V4b0sW3oyc20IRGjUWDjQqJu3u6pu/yP5ZSz5Xn39r6UIODpxS\\nNJtIPoQEiRC8ZncYvAM+MD6sYX6NUbyuwsCMgecP6qZhdCGYOeZnuigTGotmQrhN\\nvlQaNrjDRQtfjS4N2tIman3OgrrYYEHU/k4Pbpf2GYk/1==\\n-----END CERTIFICATE-----\\n\""
Sample uom library write command (note that _certificate is a variable):
uom.config.certificates[_certificate].data="-----BEGIN CERTIFICATE-----\ MII+XZOqlcJTOr14g7qfrwSt8JeH8wwhSfh0F6s0kCV93ZFmi6RZ2vTCF7WP3S6X\ aPzSSkh+vnZBZHJ0tNyMcDW8fbdo9nelDeEhOxhJkGWJarMUFKtuZP2E1i2CWj+l\ ESoCA7ySfI3XhZo1TicuntxVyA2iAp5QIveU3dzky2Ife6i7rL2fF0BDCFxO43qP\ Vw49vr8+9pfIYpAwtrBw2Q8JOYQUPsVwoc6kUGkg5Q+gFBc92q56HGShqvBGnjCc\ LMrd7XlZYSrl40qx8zEQRxHN9ZBuopF9B7pKhawF3n19pt7+sNRKKkjWKwQ8miKz\ AKZmGqr4t1wmAwfaN/x8kTVhvfTe0TWCq5/7ytDsx9f86KkWLhg6ABq6tJnwpK9g\ ApQ43J2E+CMLzvjgbrtph0j1qgtArZe2O58TRDkRR7pQ2Y7gQ1V74FBwx47pfnt4\ 2ZMHKqkTfBXELDgPlqV11S+8bppPjwKnWj4sarLF3vVR8Ctw2Oz6t+GV==\ -----END CERTIFICATE-----\ "
| sum (boolean) | config/certificates/S/status/ |
| Whether the certificate is trusted by default | |
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This sum represents a value in persistent storage.
Changes to this sum do not take effect immediately.
This sum can assume the following values:
| constant true | Trusted | The certificate is trusted by all software with default settings | |
| constant false | Untrusted | The certificate is not trusted by all software with default settings | |
Sample curl read command (note that :certificate is a URL template argument):
curl --digest -u admin:1234 -H "Accept: application/json" "http://192.168.0.100/restapi/config/certificates/:certificate/status/"
⇒
true
Sample JS request write command (note that _certificate is a variable):
request.put({url:"config/certificates/"+_certificate+"/status/",body:true});
| map | config/crls/ |
| Map of known certificate revocation lists and their settings | |
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This map represents a value in persistent storage.
Changes to this map do not take effect immediately.
This map contains Certificate revocation list elements.
Sample curl write command:
curl --digest -u admin:1234 -H "X-CSRF: x" -X PUT -H "Content-type: application/json" -H "Accept: application/json" --data-binary "{\"CyberBarSystems_Primary_CA\":{\"data\":\"-----BEGIN X509 CRL-----\\nMIIGorWyiwgrz9w/8aD3Ipo5KHxoeK3maW3PNbO5Y5zXGvZRWoWreKy/ewpIGu4t\\nIqnjyLqxv6tUZPJ6G+TF/7CrSUlZOClj2ZS0xIzsRtN1Ij9ajfslp4cHaOt/cekg\\nCjBXj3+cT2wCEXyvPkkVN26nx7Qcu6s6s3gb9hDflAu/jtx9dhg1mpqkyGNtPF/I\\nhvXO9CAL6B5/9GftyifnZQmspfI5hcSPX0qjE04MEBOQT3JSo/GNR3GGlaOSCtum\\nkV9ncY2pyUJ2qnsr4GI9Ybw8/PNuJAp4i+uKYzAXTWbJKUBQmVbK6YV7==\\n-----END X509 CRL-----\\n\",\"status\":true}}" "http://192.168.0.100/restapi/config/crls/"
Sample JS request certificate revocation list creation command:
request.put({url:"config/crls/GuardBazCrypt_Primary_CA_9/",body:{"data":"-----BEGIN X509 CRL-----\nMIIFigw2U9fYSTC3XAlm2mmxNFAvT94U7smrYiv3tbdM5sRe2DQ6/D4PVGL+RRUa\nSu/Nzu/dH6VknZ+Di/ToR+4o/YGW8cpdWq1Wl292Bgp+FpE+rjoIkv7lUPHf26Ia\nL6jQHod+ddGStGJd5eN0n8WDSBHaWuZt0JJK7zKncdGWvb90GZ34jcJBqcoMWNGZ\nbwsaHfDwxmrZyusXzyHcHUSwJqSj62Sk+KLH0bD+N5aL/Sv/QCdkj5g2y9n5DFsD\nDXermfEuFcvkXxBmaxVieZhpNo3egJGwsxnfd2ZuhVeFSs13pYoU7VKWJPB0kUzc\nnH5rt/ZOgqsYtyOSmvcHF9dgMgRtf\n-----END X509 CRL-----\n","status":true}});
See also Certificate revocation list collection: Certificate revocation list
| object | config/crls/S/ |
| Certificate revocation list settings | |
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This object represents a value in persistent storage.
Changes to this object do not take effect immediately.
This object contains the following items:
| data | Data |
| status | Usage status |
Sample requests deletion command (note that _certificate_revocation_list is a variable):
requests.delete('http://192.168.0.100/restapi/config/crls/'+_certificate_revocation_list+'/',auth=auth,headers=headers)
Sample requests write command (note that _certificate_revocation_list is a variable):
requests.put('http://192.168.0.100/restapi/config/crls/'+_certificate_revocation_list+'/',auth=auth,headers=headers,json={'data': '-----BEGIN X509 CRL-----\nMIIC4EeNvaWVEKR4WKsJIUCnAohR7wIhEpvK4ak/BGXSd/Z9MRUgyjU9YCch8xPO\nltxVv9oSeSUDdsh8Zfu3qSHTASQbtDye7wA25/XlT1+6vhHUNBaDgujsM9TFPSwY\n6dV7AHdDIm903gPHGfzAOsZaM==\n-----END X509 CRL-----\n', 'status': False})
| string | config/crls/S/data/ |
| CRL data | |
The value contains PEM format data (has native MIME type application/x-pem-file).
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This string represents a value in persistent storage.
Changes to this string do not take effect immediately.
Sample requests read command (note that _certificate_revocation_list is a variable):
print(requests.get('http://192.168.0.100/restapi/config/crls/'+_certificate_revocation_list+'/data/',auth=auth,headers=headers).json())
⇒
Sample CLI read command (note that certificate_revocation_list is a variable):
uom get "config/crls/${certificate_revocation_list}/data"
⇒
| sum (boolean) | config/crls/S/status/ |
| Whether the certificate revocation list is used by default | |
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This sum represents a value in persistent storage.
Changes to this sum do not take effect immediately.
This sum can assume the following values:
| constant true | Used | The certificate revocation list is used by all software with default settings | |
| constant false | Unused | The certificate revocation list is not used by all software with default settings | |
Sample uom library write command (note that _certificate_revocation_list is a variable):
uom.config.crls[_certificate_revocation_list].status=true
Sample JS request read command (note that _certificate_revocation_list is a variable):
request.get({url:"config/crls/"+_certificate_revocation_list+"/status/"},function(error,response,body) {console.log(body)});
⇒
true
| sum (boolean) | config/ssh_enabled/ |
| Whether the SSH server should be enabled | |
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This sum represents a value in persistent storage.
Changes to this sum do not take effect immediately.
This sum can assume the following values:
| constant true | Enabled | The feature is enabled | |
| constant false | Disabled | The feature is disabled | |
Sample requests write command:
requests.put('http://192.168.0.100/restapi/config/ssh_enabled/',auth=auth,headers=headers,json=True)
Sample curl read command:
curl --digest -u admin:1234 -H "Accept: application/json" "http://192.168.0.100/restapi/config/ssh_enabled/"
⇒
true
| number | config/ssh_port/ |
| Port number of the SSH server | |
The value is subject to the following constraints: all of the following is true:
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This number represents a value in persistent storage.
Changes to this number do not take effect immediately.
Sample JS request write command:
request.put({url:"config/ssh_port/",body:22});
Sample CLI read command:
uom get "config/ssh_port"
⇒
22
| array | config/ssh_authorized_keys/ |
| List of public keys allowed to log in | |
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This array is composite, i.e. is modified as a whole.
This array represents a value in persistent storage.
Changes to this array do not take effect immediately.
This array contains SSH authorized key elements.
Sample uom library write command:
uom.config.ssh_authorized_keys={{comment="",data="ecdsa-sha2-nistp384 Iqx0D8TZpEe9",options="ncqakgzr"},{comment="",data="ssh-rsa v=",options="hyvar,guh=akh,oey=ueipj,fq=s,m,ea,laejeeozjxpt=1,x=o"},{comment="ffbzc-a",data="ssh-ed25519 o",options="im=39,d=66,n,kln=r,zuw,vlmso=ucasq,bhw=32582,bs,joslbx=y,j,kqluw"},{comment="ccckkhj",data="ssh-ed25519 Kop800k7",options=""},{comment="l",data="ecdsa-sha2-nistp256 bcVQAIxFt=",options="sksd=ga,eu,welf=bid,cn=knhcu,exjzvi=uxn,oklt,fanp=31,agm"},{comment="",data="ecdsa-sha2-nistp384 u===",options="zogwnxas=819,ljzz,umed=ihmeu"},{comment="",data="ssh-dss eeTYVvHL=",options="svl,re=d"},{comment=".fg.tebyk",data="ssh-ed25519 3RjzVoFqr24+",options="vqkaf=yjp,x=61,sscabm=bq,vfgidpxg=qdrhgwl,oz=67227,zqldgij=xce,ario=gnwzv,f=s"}}
Sample CLI write command:
uom set "config/ssh_authorized_keys" "[{\"data\":\"ssh-rsa a=\",\"options\":\"tlbmrydr=eeaoa,iro=78564,wrw=2614824327370,lzng\",\"comment\":\"\"}]"
See also SSH authorized keys: SSH authorized key
| object | config/ssh_authorized_keys/N/ |
| Public key allowed to log in | |
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This object is a part of a composite value which is modified as a whole.
This object represents a value in persistent storage.
Changes to this object do not take effect immediately.
This object contains the following items:
| data | Data |
| options | Options |
| comment | Comment |
Sample curl write command (note that :ssh_authorized_key_index is a URL template argument):
curl --digest -u admin:1234 -H "X-CSRF: x" -X PUT -H "Content-type: application/json" -H "Accept: application/json" --data-binary "{\"data\":\"ssh-dss oefrA=\",\"options\":\"p,veprrwokr=51918,t=1407,ekyjapb,ove,undg=zf,hru=32292,rqxwlge=mcfe,bns,ooltujz\",\"comment\":\"\"}" "http://192.168.0.100/restapi/config/ssh_authorized_keys/:ssh_authorized_key_index/"
Sample uom library read command (note that _ssh_authorized_key_index is a variable):
print(uom.dump(uom.config.ssh_authorized_keys[_ssh_authorized_key_index]))
⇒
{comment="",data="ssh-rsa 8/==",options=""}
| string | config/ssh_authorized_keys/N/data/ |
| Public key data | |
The value is subject to the following constraints: the value matches ^(([0-9])+ *([0-9])+ *([0-9])+|(ecdsa-sha2-nistp256|ecdsa-sha2-nistp384|ecdsa-sha2-nistp521|ssh-ed25519|ssh-dss|ssh-rsa) *([0-9A-Za-z+/]+[=]{0,3}))$
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This string is a part of a composite value which is modified as a whole.
This string represents a value in persistent storage.
Changes to this string do not take effect immediately.
Sample requests read command (note that _ssh_authorized_key_index is a variable):
print(requests.get('http://192.168.0.100/restapi/config/ssh_authorized_keys/'+str(_ssh_authorized_key_index)+'/data/',auth=auth,headers=headers).json())
⇒
'ssh-dss /V1/BpxLbmOLa0c+jM='
Sample uom library write command (note that _ssh_authorized_key_index is a variable):
uom.config.ssh_authorized_keys[_ssh_authorized_key_index].data="ssh-dss yS1==="
| string | config/ssh_authorized_keys/N/options/ |
| Public key options | |
The value is subject to the following constraints: the value matches ^([^ "]+|"[^"]*")*$
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This string is a part of a composite value which is modified as a whole.
This string represents a value in persistent storage.
Changes to this string do not take effect immediately.
Sample requests write command (note that _ssh_authorized_key_index is a variable):
requests.put('http://192.168.0.100/restapi/config/ssh_authorized_keys/'+str(_ssh_authorized_key_index)+'/options/',auth=auth,headers=headers,json='')
Sample CLI read command (note that ssh_authorized_key_index is a variable):
uom get "config/ssh_authorized_keys/${ssh_authorized_key_index}/options"
⇒
"ta=sxw"
| string | config/ssh_authorized_keys/N/comment/ |
| Public key comment | |
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This string is a part of a composite value which is modified as a whole.
This string represents a value in persistent storage.
Changes to this string do not take effect immediately.
Sample curl write command (note that :ssh_authorized_key_index is a URL template argument):
curl --digest -u admin:1234 -H "X-CSRF: x" -X PUT -H "Content-type: application/json" -H "Accept: application/json" --data-binary "\"\"" "http://192.168.0.100/restapi/config/ssh_authorized_keys/:ssh_authorized_key_index/comment/"
Sample JS request read command (note that _ssh_authorized_key_index is a variable):
request.get({url:"config/ssh_authorized_keys/"+_ssh_authorized_key_index.toString()+"/comment/"},function(error,response,body) {console.log(body)});
⇒
"@"
| sum (boolean) | config/ntp_server_enabled/ |
| Whether the device should act as NTP server | |
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This sum represents a value in persistent storage.
Changes to this sum do not take effect immediately.
This sum can assume the following values:
| constant true | Enabled | The feature is enabled | |
| constant false | Disabled | The feature is disabled | |
Sample uom library write command:
uom.config.ntp_server_enabled=true
Sample requests read command:
print(requests.get('http://192.168.0.100/restapi/config/ntp_server_enabled/',auth=auth,headers=headers).json())
⇒
True
| array | config/ntp_peers/ |
| List of NTP servers to get time information from | |
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This array represents a value in persistent storage.
Changes to this array do not take effect immediately.
This array contains NTP peer elements.
Sample uom library read command:
print(uom.dump(uom.config.ntp_peers))
⇒
{"0.ntp-pool.example.com","1.ntp-pool.example.com","2.ntp-pool.example.com","3.ntp-pool.example.com"}
Sample requests write command:
requests.put('http://192.168.0.100/restapi/config/ntp_peers/',auth=auth,headers=headers,json=['0.ntp-pool.example.com', '1.ntp-pool.example.com', '2.ntp-pool.example.com', '3.ntp-pool.example.com'])
| sum (string) | config/ntp_peers/N/ |
| NTP server to get time information from | |
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This sum represents a value in persistent storage.
Changes to this sum do not take effect immediately.
This sum can assume the following values:
| string | Hostname | Hostname | the value matches ^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]).)*([A-Za-z]([A-Za-z0-9-]*[A-Za-z0-9])?|[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z]([A-Za-z0-9-]*[A-Za-z0-9])?)$ |
| string | IPv4 address | IPv4 address in dotted quad notation | the value matches ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]).){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$ |
Sample CLI read command (note that ntp_peer_index is a variable):
uom get "config/ntp_peers/${ntp_peer_index}"
⇒
"2.ntp-pool.example.com"
Sample JS request deletion command (note that _ntp_peer_index is a variable):
request.delete({url:"config/ntp_peers/"+_ntp_peer_index.toString()+"/"});
| sum (enumerated number) | config/syslog_minimal_severity/ |
| Threshold severity for system messages, below which they are not logged | |
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This sum represents a value in persistent storage.
Changes to this sum do not take effect immediately.
This sum can assume the following values:
| constant 1 | Emergency | Log when unit becomes unstable or unusable | |
| constant 2 | Alert | Log conditions requiring immediate action | |
| constant 3 | Critical | Log critical conditions | |
| constant 4 | Error | Log error conditions | |
| constant 5 | Warning | Log warning conditions | |
| constant 6 | Notice | Log normal but significant conditions | |
| constant 7 | Informational | Log informational messages | |
| constant 8 | Debug | Log tracing and debugging messages | |
Sample JS request read command:
request.get({url:"config/syslog_minimal_severity/"},function(error,response,body) {console.log(body)});
⇒
8
Sample curl read command:
curl --digest -u admin:1234 -H "Accept: application/json" "http://192.168.0.100/restapi/config/syslog_minimal_severity/"
⇒
8
| sum (optional string) | config/syslog_ip_address/ |
| Host name or IPv4 address of the syslog server to forward log messages to, if any | |
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This sum represents a value in persistent storage.
Changes to this sum do not take effect immediately.
This sum can assume the following values:
| constant null | Syslog server disabled | System log messages are not forwarded to a server | |
| string | Hostname | Hostname | the value matches ^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]).)*([A-Za-z]([A-Za-z0-9-]*[A-Za-z0-9])?|[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z]([A-Za-z0-9-]*[A-Za-z0-9])?)$ |
| string | IPv4 address | IPv4 address in dotted quad notation | the value matches ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]).){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$ |
Sample CLI write command:
uom set "config/syslog_ip_address" "null"
Sample curl read command:
curl --digest -u admin:1234 -H "Accept: application/json" "http://192.168.0.100/restapi/config/syslog_ip_address/"
⇒
null
| sum (boolean) | config/allow_jsonrpc/ |
| Enable HTTP clients to perform JSON-RPC requests | |
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant true | Enabled | The feature is enabled | |
| constant false | Disabled | The feature is disabled | |
Sample CLI write command:
uom set "config/allow_jsonrpc" "false"
Sample curl write command:
curl --digest -u admin:1234 -H "X-CSRF: x" -X PUT -H "Content-type: application/json" -H "Accept: application/json" --data-binary "false" "http://192.168.0.100/restapi/config/allow_jsonrpc/"
| sum (boolean) | config/allow_jsonrpc_nonadmin/ |
| Enable JSON-RPC API requests from users which are not administrators | |
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant true | Enabled | The feature is enabled | |
| constant false | Disabled | The feature is disabled | |
Sample uom library read command:
print(uom.dump(uom.config.allow_jsonrpc_nonadmin))
⇒
false
Sample CLI write command:
uom set "config/allow_jsonrpc_nonadmin" "false"
| sum (boolean) | config/allow_restapi/ |
| Enable HTTP clients to perform REST-like API requests | |
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant true | Enabled | The feature is enabled | |
| constant false | Disabled | The feature is disabled | |
Sample curl read command:
curl --digest -u admin:1234 -H "Accept: application/json" "http://192.168.0.100/restapi/config/allow_restapi/"
⇒
false
Sample requests write command:
requests.put('http://192.168.0.100/restapi/config/allow_restapi/',auth=auth,headers=headers,json=False)
| sum (boolean) | config/allow_restapi_nonadmin/ |
| Enable REST-like API requests from users which are not administrators | |
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant true | Enabled | The feature is enabled | |
| constant false | Disabled | The feature is disabled | |
Sample curl write command:
curl --digest -u admin:1234 -H "X-CSRF: x" -X PUT -H "Content-type: application/json" -H "Accept: application/json" --data-binary "true" "http://192.168.0.100/restapi/config/allow_restapi_nonadmin/"
Sample curl read command:
curl --digest -u admin:1234 -H "Accept: application/json" "http://192.168.0.100/restapi/config/allow_restapi_nonadmin/"
⇒
true
| array | config/allow_restapi_origins/ |
| List of origins permitted to access the REST-like API | |
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This array represents a value in persistent storage.
This array contains Allowed REST-like API client origin elements.
Sample JS request allowed REST-like API client origin creation command:
request.post({url:"config/allow_restapi_origins/",body:"https://baz.example.com"});
Sample uom library read command:
print(uom.dump(uom.config.allow_restapi_origins))
⇒
{"https://foo.example.com:8443","http://baz.example.com:8022"}
| string | config/allow_restapi_origins/N/ |
| Origin permitted to access the REST-like API | |
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This string represents a value in persistent storage.
Sample JS request write command (note that _allowed_rest_like_api_client_origin_index is a variable):
request.put({url:"config/allow_restapi_origins/"+_allowed_rest_like_api_client_origin_index.toString()+"/",body:"https://bar.example.com"});
Sample curl deletion command (note that :allowed_rest_like_api_client_origin_index is a URL template argument):
curl --digest -u admin:1234 -H "X-CSRF: x" -X DELETE -H "Accept: application/json" "http://192.168.0.100/restapi/config/allow_restapi_origins/:allowed_rest_like_api_client_origin_index/"
| sum (boolean) | config/allow_coapws/ |
| Enable HTTP clients to establish CoAP over WebSockets connections | |
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant true | Enabled | The feature is enabled | |
| constant false | Disabled | The feature is disabled | |
Sample CLI read command:
uom get "config/allow_coapws"
⇒
false
Sample JS request write command:
request.put({url:"config/allow_coapws/",body:true});
| sum (boolean) | config/allow_coapws_nonadmin/ |
| Enable CoAP over WebSockets connections from users which are not administrators | |
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant true | Enabled | The feature is enabled | |
| constant false | Disabled | The feature is disabled | |
Sample curl write command:
curl --digest -u admin:1234 -H "X-CSRF: x" -X PUT -H "Content-type: application/json" -H "Accept: application/json" --data-binary "false" "http://192.168.0.100/restapi/config/allow_coapws_nonadmin/"
Sample JS request write command:
request.put({url:"config/allow_coapws_nonadmin/",body:false});
| array | config/allow_coapws_origins/ |
| List of origins permitted to access CoAP over WebSockets | |
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This array represents a value in persistent storage.
This array contains Allowed CoAP over WebSockets client origin elements.
Sample curl write command:
curl --digest -u admin:1234 -H "X-CSRF: x" -X PUT -H "Content-type: application/json" -H "Accept: application/json" --data-binary "[\"http://foo.example.com\",\"http://baz.example.com:80\",\"https://bar.example.com:443\",\"https://bar.example.com\"]" "http://192.168.0.100/restapi/config/allow_coapws_origins/"
Sample curl read command:
curl --digest -u admin:1234 -H "Accept: application/json" "http://192.168.0.100/restapi/config/allow_coapws_origins/"
⇒
["https://baz.example.com","http://baz.example.com","http://bar.example.com:80","http://baz.example.com","http://foo.example.com","http://foo.example.com:80"]
| string | config/allow_coapws_origins/N/ |
| Origin permitted to access CoAP over WebSockets | |
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This string represents a value in persistent storage.
Sample requests write command (note that _allowed_coap_over_websockets_client_origin_index is a variable):
requests.put('http://192.168.0.100/restapi/config/allow_coapws_origins/'+str(_allowed_coap_over_websockets_client_origin_index)+'/',auth=auth,headers=headers,json='http://foo.example.com:6')
Sample CLI write command (note that allowed_coap_over_websockets_client_origin_index is a variable):
uom set "config/allow_coapws_origins/${allowed_coap_over_websockets_client_origin_index}" "\"http://foo.example.com:8094\""
| sum (boolean) | config/relax_nonhtml_methods/ |
| Enable HTTP clients to perform PUT/PATCH/DELETE API requests without a CSRF protection header (currently cannot be sent via an HTML form) | |
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant true | Enabled | The feature is enabled | |
| constant false | Disabled | The feature is disabled | |
Sample requests write command:
requests.put('http://192.168.0.100/restapi/config/relax_nonhtml_methods/',auth=auth,headers=headers,json=True)
Sample uom library read command:
print(uom.dump(uom.config.relax_nonhtml_methods))
⇒
false
| sum (boolean) | config/relax_nonhtml_content_types/ |
| Enable HTTP clients to perform API requests with e.g. application/json or application/json-rpc without a CSRF protection header (currently cannot be sent via an HTML form) | |
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant true | Enabled | The feature is enabled | |
| constant false | Disabled | The feature is disabled | |
Sample JS request write command:
request.put({url:"config/relax_nonhtml_content_types/",body:true});
Sample JS request read command:
request.get({url:"config/relax_nonhtml_content_types/"},function(error,response,body) {console.log(body)});
⇒
true
| sum (boolean) | config/allow_plaintext_logins/ |
| Allow HTTP clients to authenticate using Basic authentication or plaintext login form | |
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant true | Enabled | The feature is enabled | |
| constant false | Disabled | The feature is disabled | |
Sample CLI read command:
uom get "config/allow_plaintext_logins"
⇒
false
Sample curl write command:
curl --digest -u admin:1234 -H "X-CSRF: x" -X PUT -H "Content-type: application/json" -H "Accept: application/json" --data-binary "true" "http://192.168.0.100/restapi/config/allow_plaintext_logins/"
| sum (boolean) | config/allow_plaintext_url_logins/ |
| Allow HTTP clients to authenticate to certain API types by supplying plaintext credentials in URL | |
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant true | Enabled | The feature is enabled | |
| constant false | Disabled | The feature is disabled | |
Sample requests read command:
print(requests.get('http://192.168.0.100/restapi/config/allow_plaintext_url_logins/',auth=auth,headers=headers).json())
⇒
{}
Sample JS request read command:
request.get({url:"config/allow_plaintext_url_logins/"},function(error,response,body) {console.log(body)});
⇒
[]
| sum (boolean) | config/allow_modifying_get/ |
| Allow HTTP clients to use GET web UI requests for changing state | |
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant true | Enabled | The feature is enabled | |
| constant false | Disabled | The feature is disabled | |
Sample CLI read command:
uom get "config/allow_modifying_get"
⇒
false
Sample uom library write command:
uom.config.allow_modifying_get=false
| sum (boolean) | config/name_always_visible/ |
| Flag enabling visibility of relay name | |
Changing the value is denied if not administrative user
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant true | Everywhere | Relay name visible everywhere, including the login page | |
| constant false | Authorized users only | Relay name visible only on pages which require authorization | |
Sample CLI write command:
uom set "config/name_always_visible" "false"
Sample curl read command:
curl --digest -u admin:1234 -H "Accept: application/json" "http://192.168.0.100/restapi/config/name_always_visible/"
⇒
true
| sum (boolean) | config/hide_passwords/ |
| Whether user passwords should be hidden | |
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant true | Hide | Do not display user passwords in web UI | |
| constant false | Show | Display user passwords in web UI | |
Sample curl read command:
curl --digest -u admin:1234 -H "Accept: application/json" "http://192.168.0.100/restapi/config/hide_passwords/"
⇒
true
Sample JS request write command:
request.put({url:"config/hide_passwords/",body:false});
| sum (boolean) | config/hide_wifi_key/ |
| Whether the WiFi key should be hidden | |
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant true | Hide | Do not display WiFi key in web UI | |
| constant false | Show | Display WiFi key in web UI | |
Sample CLI write command:
uom set "config/hide_wifi_key" "false"
Sample requests read command:
print(requests.get('http://192.168.0.100/restapi/config/hide_wifi_key/',auth=auth,headers=headers).json())
⇒
False
| number | config/lockout_delay_minutes/ |
| Time during which, after several unsuccessful logins, subsequent logins are denied | |
The value represents time, the standard unit of which is the second (s).
The value is subject to the following constraints: the value is greater or equal to 0
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This number represents a value in persistent storage.
Sample curl read command:
curl --digest -u admin:1234 -H "Accept: application/json" "http://192.168.0.100/restapi/config/lockout_delay_minutes/"
⇒
60
Sample uom library read command:
print(uom.dump(uom.config.lockout_delay_minutes))
⇒
60
| sum (boolean) | config/protect_firmware/ |
| Protect firmware from being overwritten | |
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant true | Protected | Associated object cannot be changed | |
| constant false | Not protected | Associated object can be changed | |
Sample uom library write command:
uom.config.protect_firmware=true
Sample CLI write command:
uom set "config/protect_firmware" "false"
| sum (boolean) | config/protect_admin/ |
| Protect admin settings from being modified | |
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant true | Protected | Associated object cannot be changed | |
| constant false | Not protected | Associated object can be changed | |
Sample JS request read command:
request.get({url:"config/protect_admin/"},function(error,response,body) {console.log(body)});
⇒
true
Sample requests write command:
requests.put('http://192.168.0.100/restapi/config/protect_admin/',auth=auth,headers=headers,json=True)
| sum (boolean) | config/protect_network/ |
| Protect network settings from being modified | |
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant true | Protected | Associated object cannot be changed | |
| constant false | Not protected | Associated object can be changed | |
Sample JS request write command:
request.put({url:"config/protect_network/",body:false});
Sample requests read command:
print(requests.get('http://192.168.0.100/restapi/config/protect_network/',auth=auth,headers=headers).json())
⇒
False
| sum (boolean) | config/protect_private_config/ |
| Protect private configuration settings from being stored in backups | |
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant true | Protected | Associated object cannot be changed | |
| constant false | Not protected | Associated object can be changed | |
Sample requests read command:
print(requests.get('http://192.168.0.100/restapi/config/protect_private_config/',auth=auth,headers=headers).json())
⇒
False
Sample JS request read command:
request.get({url:"config/protect_private_config/"},function(error,response,body) {console.log(body)});
⇒
false
| sum (boolean) | config/protect_restore/ |
| Protect settings from being restored from backups | |
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant true | Protected | Associated object cannot be changed | |
| constant false | Not protected | Associated object can be changed | |
Sample JS request read command:
request.get({url:"config/protect_restore/"},function(error,response,body) {console.log(body)});
⇒
true
Sample CLI read command:
uom get "config/protect_restore"
⇒
true
| sum (boolean) | config/protect_maintenance/ |
| Disable remote maintenance support | |
Retrieving the value is denied if not administrative user
Changing the value is denied if any of the following is true:
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant true | Protected | Associated object cannot be changed | |
| constant false | Not protected | Associated object can be changed | |
Sample uom library write command:
uom.config.protect_maintenance=true
Sample CLI read command:
uom get "config/protect_maintenance"
⇒
true
| sum (variant) | config/protect_notification/ |
| Protect notification settings from being modified | |
Retrieving the value is denied if all of the following is true:
Changing the value is denied if any of the following is true:
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant true | Protected | Associated object cannot be changed, and its security-related parameters cannot be read | |
| constant false | Not protected | Associated object can be changed, and its security-related parameters can be read | |
| constant "sender" | Protect sender configuration | Associated object cannot be changed, and its security-related parameters cannot be read; properties not related to sender configuration can still be read and changed | |
Sample curl read command:
curl --digest -u admin:1234 -H "Accept: application/json" "http://192.168.0.100/restapi/config/protect_notification/"
⇒
true
Sample CLI write command:
uom set "config/protect_notification" "true"
| sum (boolean) | config/upgrade_notify_beep/ |
| Indicate firmware upgrade progress by beeping | |
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant true | Enabled | The feature is enabled | |
| constant false | Disabled | The feature is disabled | |
Sample requests write command:
requests.put('http://192.168.0.100/restapi/config/upgrade_notify_beep/',auth=auth,headers=headers,json=False)
Sample requests read command:
print(requests.get('http://192.168.0.100/restapi/config/upgrade_notify_beep/',auth=auth,headers=headers).json())
⇒
True
| sum (boolean) | config/upgrade_notify_blink/ |
| Indicate firmware upgrade progress by blinking | |
Retrieving the value is denied if not administrative user
Changing the value is denied if not administrative user
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant true | Enabled | The feature is enabled | |
| constant false | Disabled | The feature is disabled | |
Sample requests write command:
requests.put('http://192.168.0.100/restapi/config/upgrade_notify_blink/',auth=auth,headers=headers,json=True)
Sample JS request read command:
request.get({url:"config/upgrade_notify_blink/"},function(error,response,body) {console.log(body)});
⇒
true
| map | config/known_quantities/ |
| Map of known physical quantities | |
This map does not support direct modification.
This map represents a value in persistent storage.
This map contains Quantity elements.
Creating elements in this collection is not supported.
Sample requests read command:
print(requests.get('http://192.168.0.100/restapi/config/known_quantities/',auth=auth,headers=headers).json())
⇒
<...>
Sample uom library read command:
print(uom.dump(uom.config.known_quantities))
⇒
<...>
| object | config/known_quantities/S/ |
| Physical quantity | |
This object contains the following items:
| name | Name |
| units | Known units |
| preferred_unit | Preferred unit, if any |
Sample JS request read command (note that _quantity is a variable):
request.get({url:"config/known_quantities/"+_quantity+"/"},function(error,response,body) {console.log(body)});
⇒
{"preferred_unit":null,"name":"Screen length","units":{"px":{"offset":0,"internal":true,"name":"pixel","scale":1}}}
Sample CLI write command (note that quantity is a variable):
uom set "config/known_quantities/${quantity}" "{\"preferred_unit\":\"s\",\"name\":\"Time\",\"units\":{\"s\":{\"offset\":0,\"internal\":false,\"name\":\"second\",\"scale\":1}}}"
See also Quantity: Name
See also Quantity: Known units
See also Quantity: Preferred unit, if any
| string | config/known_quantities/S/name/ |
| Quantity name | |
This string does not support direct modification.
This string represents a value in persistent storage.
Sample CLI read command (note that quantity is a variable):
uom get "config/known_quantities/${quantity}/name"
⇒
"Time"
Sample JS request read command (note that _quantity is a variable):
request.get({url:"config/known_quantities/"+_quantity+"/name/"},function(error,response,body) {console.log(body)});
⇒
"Current"
| map | config/known_quantities/S/units/ |
| Map of known units for quantity | |
Changing the value is denied if not administrative user
This map is composite, i.e. is modified as a whole.
This map represents a value in persistent storage.
This map contains Unit elements.
Sample JS request read command (note that _quantity is a variable):
request.get({url:"config/known_quantities/"+_quantity+"/units/"},function(error,response,body) {console.log(body)});
⇒
{"K":{"offset":0,"internal":true,"name":"kelvin","scale":1},"C":{"offset":-273.16,"internal":true,"name":"degree Celsius","scale":1},"F":{"offset":-459.67,"internal":true,"name":"degree Fahrenheit","scale":1.8}}
Sample uom library unit creation command (note that _quantity is a variable):
local composite=uom.copy(uom.config.known_quantities[_quantity].units)
uom.insert(composite,"C",{name="degree Celsius",offset=-273.16,scale=1})
uom.config.known_quantities[_quantity].units=composite
| object | config/known_quantities/S/units/S/ |
| Unit of physical quantity | |
Changing the value is denied if not administrative user
This object is a part of a composite value which is modified as a whole.
This object does not support direct modification if internal.
This object represents a value in persistent storage.
This object contains the following items:
| name | Name |
| scale | Scaling factor |
| offset | Offset |
| internal | Internal |
Sample JS request write command (note that _quantity and _unit are variables):
request.put({url:"config/known_quantities/"+_quantity+"/units/"+_unit+"/",body:{"offset":-459.67,"name":"degree Fahrenheit","scale":1.8}});
Sample CLI deletion command (note that quantity and unit are variables):
uom remove "config/known_quantities/${quantity}/units/${unit}"
| string | config/known_quantities/S/units/S/name/ |
| Unit name | |
Changing the value is denied if not administrative user
This string is a part of a composite value which is modified as a whole.
This string does not support direct modification if internal.
This string represents a value in persistent storage.
Sample requests read command (note that _quantity and _unit are variables):
print(requests.get('http://192.168.0.100/restapi/config/known_quantities/'+_quantity+'/units/'+_unit+'/name/',auth=auth,headers=headers).json())
⇒
'lux'
Sample curl write command (note that :quantity and :unit are URL template arguments):
curl --digest -u admin:1234 -H "X-CSRF: x" -X PUT -H "Content-type: application/json" -H "Accept: application/json" --data-binary "\"foot-candle\"" "http://192.168.0.100/restapi/config/known_quantities/:quantity/units/:unit/name/"
| number | config/known_quantities/S/units/S/scale/ |
| Scaling factor for conversion from standard SI unit | |
Changing the value is denied if not administrative user
This number is a part of a composite value which is modified as a whole.
This number does not support direct modification if internal.
This number represents a value in persistent storage.
Sample CLI read command (note that quantity and unit are variables):
uom get "config/known_quantities/${quantity}/units/${unit}/scale"
⇒
1
Sample requests write command (note that _quantity and _unit are variables):
requests.put('http://192.168.0.100/restapi/config/known_quantities/'+_quantity+'/units/'+_unit+'/scale/',auth=auth,headers=headers,json=1)
| number | config/known_quantities/S/units/S/offset/ |
| Offset for conversion from standard SI unit | |
Changing the value is denied if not administrative user
This number is a part of a composite value which is modified as a whole.
This number does not support direct modification if internal.
This number represents a value in persistent storage.
Sample curl read command (note that :quantity and :unit are URL template arguments):
curl --digest -u admin:1234 -H "Accept: application/json" "http://192.168.0.100/restapi/config/known_quantities/:quantity/units/:unit/offset/"
⇒
0
Sample JS request read command (note that _quantity and _unit are variables):
request.get({url:"config/known_quantities/"+_quantity+"/units/"+_unit+"/offset/"},function(error,response,body) {console.log(body)});
⇒
0
| sum (boolean) | config/known_quantities/S/units/S/internal/ |
| Flag indicating whether this measurement unit is internal | |
This sum is a part of a composite value which is modified as a whole.
This sum does not support direct modification.
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant true | Internal | This unit is internal and cannot be modified | |
| constant false | User | This unit is user-supplied and can be modified | |
Sample requests read command (note that _quantity and _unit are variables):
print(requests.get('http://192.168.0.100/restapi/config/known_quantities/'+_quantity+'/units/'+_unit+'/internal/',auth=auth,headers=headers).json())
⇒
True
Sample uom library read command (note that _quantity and _unit are variables):
print(uom.dump(uom.config.known_quantities[_quantity].units[_unit].internal))
⇒
true
| sum (optional string) | config/known_quantities/S/preferred_unit/ |
| Default UI unit for quantity, if any | |
Changing the value is denied if not administrative user
This sum represents a value in persistent storage.
This sum can assume the following values:
| constant null | Standard unit | UI shows quantity in SI units | |
| string | Preferred unit | Default UI unit for quantity | known units[the value] |
Sample CLI write command (note that quantity is a variable):
uom set "config/known_quantities/${quantity}/preferred_unit" "null"
Sample uom library write command (note that _quantity is a variable):
uom.config.known_quantities[_quantity].preferred_unit=null
| map | config/known_timezones/ |
| Map of known time zones | |
Retrieving the value is denied if not administrative user
This map is composite, i.e. is modified as a whole.
This map does not support direct modification.
This map represents a value in persistent storage.
This map contains Timezone elements.
Creating elements in this collection is not supported.
Sample JS request read command:
request.get({url:"config/known_timezones/"},function(error,response,body) {console.log(body)});
⇒
Sample uom library read command:
print(uom.dump(uom.config.known_timezones))
⇒
| string | config/known_timezones/S/ |
| Time zone name | |
Retrieving the value is denied if not administrative user
This string is a part of a composite value which is modified as a whole.
This string does not support direct modification.
This string represents a value in persistent storage.
Sample uom library read command (note that _timezone is a variable):
print(uom.dump(uom.config.known_timezones[_timezone]))
⇒
"UTC+5"
Sample JS request read command (note that _timezone is a variable):
request.get({url:"config/known_timezones/"+_timezone+"/"},function(error,response,body) {console.log(body)});
⇒
"UTC-4"
| map | config/known_protection_bits/ |
| Map of known protection bits | |
Retrieving the value is denied if not administrative user
This map is composite, i.e. is modified as a whole.
This map does not support direct modification.
This map contains Protection bit elements.
Creating elements in this collection is not supported.
Sample uom library read command:
print(uom.dump(uom.config.known_protection_bits))
⇒
Sample CLI read command:
uom get "config/known_protection_bits"
⇒
See also Known protection bits: Protection bit
| object | config/known_protection_bits/S/ |
| Protection bit properties | |
Retrieving the value is denied if not administrative user
This object is a part of a composite value which is modified as a whole.
This object contains the following items:
| name | Name |
| status | Protection status |
Sample CLI write command (note that protection_bit is a variable):
uom set "config/known_protection_bits/${protection_bit}" "{\"name\":\"Notification settings protection\",\"status\":false}"
Sample CLI read command (note that protection_bit is a variable):
uom get "config/known_protection_bits/${protection_bit}"
⇒
{"name":"Maintenance mode lock","status":"You have enabled that and that service which allows to bypass this protection"}
| string | config/known_protection_bits/S/name/ |
| Protection bit name | |
This string is a part of a composite value which is modified as a whole.
This string does not support direct modification.
Sample JS request read command (note that _protection_bit is a variable):
request.get({url:"config/known_protection_bits/"+_protection_bit+"/name/"},function(error,response,body) {console.log(body)});
⇒
"Firmware protection"
Sample curl read command (note that :protection_bit is a URL template argument):
curl --digest -u admin:1234 -H "Accept: application/json" "http://192.168.0.100/restapi/config/known_protection_bits/:protection_bit/name/"
⇒
"Maintenance mode lock"
| sum (variant) | config/known_protection_bits/S/status/ |
| Status of protection | |
Retrieving the value is denied if not administrative user
This sum is a part of a composite value which is modified as a whole.
This sum does not support direct modification.
This sum can change as if by itself or indirectly because of other actions.
Changes to this sum cannot be tracked.
This sum can assume the following values:
| constant true | Enabled | Protection is enabled and effective | |
| constant false | Disabled | Protection is disabled | |
| string | Ineffective | Protection is enabled, but not effective for the following reason | |
Sample CLI read command (note that protection_bit is a variable):
uom get "config/known_protection_bits/${protection_bit}/status"
⇒
false
Sample curl read command (note that :protection_bit is a URL template argument):
curl --digest -u admin:1234 -H "Accept: application/json" "http://192.168.0.100/restapi/config/known_protection_bits/:protection_bit/status/"
⇒
"You have enabled that and that service which allows to bypass this protection"
| array | config/relay_ports/ |
| List of devices to which relay modules are connected | |
Retrieving the value is denied if not administrative user
This array does not support direct modification.
This array represents a value in persistent storage.
This array is expected to be visible to advanced users only.
This array contains Relay port elements.
Creating elements in this collection is not supported.
Sample requests read command:
print(requests.get('http://192.168.0.100/restapi/config/relay_ports/',auth=auth,headers=headers).json())
⇒
['ttyATH0']
Sample JS request read command:
request.get({url:"config/relay_ports/"},function(error,response,body) {console.log(body)});
⇒
["ttyATH0"]
| string | config/relay_ports/N/ |
| Filename of a relay module device | |
Retrieving the value is denied if not administrative user
This string does not support direct modification.
This string represents a value in persistent storage.
This string is expected to be visible to advanced users only.
Sample requests read command (note that _relay_port_index is a variable):
print(requests.get('http://192.168.0.100/restapi/config/relay_ports/'+str(_relay_port_index)+'/',auth=auth,headers=headers).json())
⇒
'ttyATH0'
Sample uom library read command (note that _relay_port_index is a variable):
print(uom.dump(uom.config.relay_ports[_relay_port_index]))
⇒
"ttyATH0"