|
DLI EPCR5 Object Model Reference
|
| object | upnp/ |
| Object representing the UPnP server configuration | |
Retrieving the value is denied if not administrative user
This object contains the following items:
Sample CLI read command:
uom get upnp
⇒
...
Sample JS request read command:
request.get({url:"upnp/"},function(error,response,body) {console.log(body)});
⇒
<...>
| sum (boolean) | upnp/enabled/ |
| UPnP enable status | |
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/upnp/enabled/"
Sample CLI read command:
uom get "upnp/enabled"
⇒
false
| array | upnp/outlets/ |
| Properties related to exposing outlets via UPnP | |
The value is subject to the following constraints: length of the value is equal to length of outlets
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 Outlet UPnP configuration elements.
Sample requests write command:
requests.put('http://192.168.0.100/restapi/upnp/outlets/',auth=auth,headers=headers,json=[{'exposed': False, 'alternate_name': None, 'id': '1944d90d0', 'profile': 'belkin_wemo_socket'}, {'exposed': True, 'alternate_name': None, 'id': '1944d90d1', 'profile': 'belkin_wemo_socket'}, {'exposed': True, 'alternate_name': None, 'id': '1944d90d2', 'profile': 'belkin_wemo_socket'}, {'exposed': True, 'alternate_name': None, 'id': '1944d90d3', 'profile': 'belkin_wemo_socket'}, {'exposed': False, 'alternate_name': None, 'id': '1944d90d4', 'profile': 'belkin_wemo_socket'}, {'exposed': True, 'alternate_name': None, 'id': '1944d90d5', 'profile': 'belkin_wemo_socket'}, {'exposed': False, 'alternate_name': None, 'id': '1944d90d6', 'profile': 'belkin_wemo_socket'}, {'exposed': True, 'alternate_name': None, 'id': '1944d90d7', 'profile': 'belkin_wemo_socket'}])
Sample JS request read command:
request.get({url:"upnp/outlets/"},function(error,response,body) {console.log(body)});
⇒
See also Outlet UPnP configuration settings: Outlet UPnP configuration
| object | upnp/outlets/N/ |
| Properties related to exposing the outlet via UPnP | |
The value is subject to the following constraints: outlets[index of the value]
This object contains the following items:
| id | Identifier |
| profile | Profile |
| exposed | Exposed |
| alternate_name | Alternate name, if any |
Sample uom library deletion command (note that _outlet_upnp_configuration_index is a variable):
uom.remove(uom.upnp.outlets,_outlet_upnp_configuration_index)
Sample requests write command (note that _outlet_upnp_configuration_index is a variable):
requests.put('http://192.168.0.100/restapi/upnp/outlets/'+str(_outlet_upnp_configuration_index)+'/',auth=auth,headers=headers,json={'exposed': True, 'alternate_name': None, 'id': '1944d90d5', 'profile': 'belkin_wemo_socket'})
| string | upnp/outlets/N/id/ |
| Outlet device identifier seed | |
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 _outlet_upnp_configuration_index is a variable):
request.put({url:"upnp/outlets/"+_outlet_upnp_configuration_index.toString()+"/id/",body:"1944d90d4"});
Sample CLI write command (note that outlet_upnp_configuration_index is a variable):
uom set "upnp/outlets/${outlet_upnp_configuration_index}/id" "\"1944d90d2\""
| string | upnp/outlets/N/profile/ |
| Outlet device profile | |
The value is subject to the following constraints: UPnP device profiles[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 CLI read command (note that outlet_upnp_configuration_index is a variable):
uom get "upnp/outlets/${outlet_upnp_configuration_index}/profile"
⇒
"belkin_wemo_socket"
Sample requests read command (note that _outlet_upnp_configuration_index is a variable):
print(requests.get('http://192.168.0.100/restapi/upnp/outlets/'+str(_outlet_upnp_configuration_index)+'/profile/',auth=auth,headers=headers).json())
⇒
'belkin_wemo_socket'
| sum (boolean) | upnp/outlets/N/exposed/ |
| Outlet is exposed via UPnP | |
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 write command (note that _outlet_upnp_configuration_index is a variable):
uom.upnp.outlets[_outlet_upnp_configuration_index].exposed=false
Sample requests write command (note that _outlet_upnp_configuration_index is a variable):
requests.put('http://192.168.0.100/restapi/upnp/outlets/'+str(_outlet_upnp_configuration_index)+'/exposed/',auth=auth,headers=headers,json=False)
| sum (optional string) | upnp/outlets/N/alternate_name/ |
| Alternate name for the same outlet to be used instead of the configured 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 | Configured outlet name | Use the outlet's configured name | |
| string | Alternate name | Alternate name for the same outlet to be used instead of the configured name | the value is not equal to "" |
Sample JS request write command (note that _outlet_upnp_configuration_index is a variable):
request.put({url:"upnp/outlets/"+_outlet_upnp_configuration_index.toString()+"/alternate_name/",body:null});
Sample requests read command (note that _outlet_upnp_configuration_index is a variable):
print(requests.get('http://192.168.0.100/restapi/upnp/outlets/'+str(_outlet_upnp_configuration_index)+'/alternate_name/',auth=auth,headers=headers).json())
⇒
None
| map | upnp/profiles/ |
| Map of UPnP device exposure 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.
This map contains UPnP device profile elements.
Sample JS request write command:
request.put({url:"upnp/profiles/",body:<...>});
Sample CLI UPnP device profile creation command:
uom insert "upnp/profiles/belkin_wemo_socket" ...
| object | upnp/profiles/S/ |
| UPnP device exposure settings | |
This object contains the following items:
Sample JS request read command (note that _upnp_device_profile is a variable):
request.get({url:"upnp/profiles/"+_upnp_device_profile+"/"},function(error,response,body) {console.log(body)});
⇒
<...>
Sample CLI deletion command (note that upnp_device_profile is a variable):
uom remove "upnp/profiles/${upnp_device_profile}"
See also UPnP device profile: Namespace identifier
See also UPnP device profile: Device namespace
See also UPnP device profile: Manufacturer
See also UPnP device profile: Model
See also UPnP device profile: Model number
See also UPnP device profile: UUID prefix
See also UPnP device profile: Device type
See also UPnP device profile: Device version
See also UPnP device profile: Service namespace
See also UPnP device profile: Service ID
See also UPnP device profile: Service type
See also UPnP device profile: Service version
See also UPnP device profile: Service control URL
See also UPnP device profile: Service event subscription URL
See also UPnP device profile: Service SCPD URL
See also UPnP device profile: Variable types
See also UPnP device profile: State variables
See also UPnP device profile: Action map
See also UPnP device profile: SOAP XML namespace prefix override, if any
See also UPnP device profile: Service XML namespace prefix override, if any
See also UPnP device profile: Event XML namespace prefix override, if any
| string | upnp/profiles/S/nid/ |
| URN namespace identifier | |
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 _upnp_device_profile is a variable):
uom.upnp.profiles[_upnp_device_profile].nid="Belkin"
Sample CLI read command (note that upnp_device_profile is a variable):
uom get "upnp/profiles/${upnp_device_profile}/nid"
⇒
"Belkin"
| string | upnp/profiles/S/device_xmlns/ |
| Device description XML namespace | |
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 _upnp_device_profile is a variable):
request.put({url:"upnp/profiles/"+_upnp_device_profile+"/device_xmlns/",body:"urn:Belkin:device-1-0"});
Sample CLI write command (note that upnp_device_profile is a variable):
uom set "upnp/profiles/${upnp_device_profile}/device_xmlns" "\"urn:Belkin:device-1-0\""
| string | upnp/profiles/S/manufacturer/ |
| Manufacturer name | |
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 _upnp_device_profile is a variable):
request.put({url:"upnp/profiles/"+_upnp_device_profile+"/manufacturer/",body:"Belkin International Inc."});
Sample CLI write command (note that upnp_device_profile is a variable):
uom set "upnp/profiles/${upnp_device_profile}/manufacturer" "\"Belkin International Inc.\""
| string | upnp/profiles/S/model/ |
| Model name | |
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 read command (note that _upnp_device_profile is a variable):
print(uom.dump(uom.upnp.profiles[_upnp_device_profile].model))
⇒
"DLI emulated Belkin socket"
Sample requests write command (note that _upnp_device_profile is a variable):
requests.put('http://192.168.0.100/restapi/upnp/profiles/'+_upnp_device_profile+'/model/',auth=auth,headers=headers,json='DLI emulated Belkin socket')
| string | upnp/profiles/S/model_number/ |
| Model number string | |
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 CLI read command (note that upnp_device_profile is a variable):
uom get "upnp/profiles/${upnp_device_profile}/model_number"
⇒
"1_0"
Sample JS request write command (note that _upnp_device_profile is a variable):
request.put({url:"upnp/profiles/"+_upnp_device_profile+"/model_number/",body:"1_0"});
| string | upnp/profiles/S/uuid_prefix/ |
| Outlet device identifier prefix | |
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 CLI read command (note that upnp_device_profile is a variable):
uom get "upnp/profiles/${upnp_device_profile}/uuid_prefix"
⇒
"Socket-1_0-"
Sample JS request write command (note that _upnp_device_profile is a variable):
request.put({url:"upnp/profiles/"+_upnp_device_profile+"/uuid_prefix/",body:"Socket-1_0-"});
| string | upnp/profiles/S/device_type/ |
| Device type identifier | |
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 :upnp_device_profile 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 "\"controllee\"" "http://192.168.0.100/restapi/upnp/profiles/:upnp_device_profile/device_type/"
Sample uom library read command (note that _upnp_device_profile is a variable):
print(uom.dump(uom.upnp.profiles[_upnp_device_profile].device_type))
⇒
"controllee"
| string | upnp/profiles/S/device_version/ |
| Device version string | |
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 read command (note that :upnp_device_profile is a URL template argument):
curl --digest -u admin:1234 -H "Accept: application/json" "http://192.168.0.100/restapi/upnp/profiles/:upnp_device_profile/device_version/"
⇒
"1"
Sample JS request write command (note that _upnp_device_profile is a variable):
request.put({url:"upnp/profiles/"+_upnp_device_profile+"/device_version/",body:"1"});
| string | upnp/profiles/S/service_xmlns/ |
| Service description XML namespace | |
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 CLI read command (note that upnp_device_profile is a variable):
uom get "upnp/profiles/${upnp_device_profile}/service_xmlns"
⇒
"urn:Belkin:service-1-0"
Sample CLI write command (note that upnp_device_profile is a variable):
uom set "upnp/profiles/${upnp_device_profile}/service_xmlns" "\"urn:Belkin:service-1-0\""
| string | upnp/profiles/S/service_id/ |
| Service identifier | |
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 _upnp_device_profile is a variable):
request.put({url:"upnp/profiles/"+_upnp_device_profile+"/service_id/",body:"basicevent1"});
Sample curl write command (note that :upnp_device_profile 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 "\"basicevent1\"" "http://192.168.0.100/restapi/upnp/profiles/:upnp_device_profile/service_id/"
| string | upnp/profiles/S/service_type/ |
| Service type identifier | |
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 _upnp_device_profile is a variable):
uom.upnp.profiles[_upnp_device_profile].service_type="basicevent"
Sample curl write command (note that :upnp_device_profile 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 "\"basicevent\"" "http://192.168.0.100/restapi/upnp/profiles/:upnp_device_profile/service_type/"
| string | upnp/profiles/S/service_version/ |
| Service version string | |
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 read command (note that :upnp_device_profile is a URL template argument):
curl --digest -u admin:1234 -H "Accept: application/json" "http://192.168.0.100/restapi/upnp/profiles/:upnp_device_profile/service_version/"
⇒
"1"
Sample uom library read command (note that _upnp_device_profile is a variable):
print(uom.dump(uom.upnp.profiles[_upnp_device_profile].service_version))
⇒
"1"
| string | upnp/profiles/S/service_control_url/ |
| URL to send service control requests to | |
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 _upnp_device_profile is a variable):
request.put({url:"upnp/profiles/"+_upnp_device_profile+"/service_control_url/",body:"/upnp/control/basicevent1"});
Sample JS request read command (note that _upnp_device_profile is a variable):
request.get({url:"upnp/profiles/"+_upnp_device_profile+"/service_control_url/"},function(error,response,body) {console.log(body)});
⇒
"/upnp/control/basicevent1"
| string | upnp/profiles/S/service_event_sub_url/ |
| URL to send service subscription management requests to | |
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 _upnp_device_profile is a variable):
requests.put('http://192.168.0.100/restapi/upnp/profiles/'+_upnp_device_profile+'/service_event_sub_url/',auth=auth,headers=headers,json='/upnp/event/basicevent1')
Sample JS request write command (note that _upnp_device_profile is a variable):
request.put({url:"upnp/profiles/"+_upnp_device_profile+"/service_event_sub_url/",body:"/upnp/event/basicevent1"});
| string | upnp/profiles/S/service_scpd_url/ |
| Service control protocol document URL | |
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 read command (note that _upnp_device_profile is a variable):
print(requests.get('http://192.168.0.100/restapi/upnp/profiles/'+_upnp_device_profile+'/service_scpd_url/',auth=auth,headers=headers).json())
⇒
'/eventservice.xml'
Sample JS request read command (note that _upnp_device_profile is a variable):
request.get({url:"upnp/profiles/"+_upnp_device_profile+"/service_scpd_url/"},function(error,response,body) {console.log(body)});
⇒
"/eventservice.xml"
| map | upnp/profiles/S/types/ |
| Map of supported variable types | |
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 Variable type elements.
Sample JS request write command (note that _upnp_device_profile is a variable):
request.put({url:"upnp/profiles/"+_upnp_device_profile+"/types/",body:{"Boolean":{"decode":"function(str) return str==\"1\" end","encode":"function(value) return value and \"1\" or \"0\" end"},"string":{"decode":"function(str) return str end","encode":"function(value) return value end"}}});
Sample CLI variable type creation command (note that upnp_device_profile is a variable):
uom insert "upnp/profiles/${upnp_device_profile}/types/string" "{\"decode\":\"function(str) return str end\",\"encode\":\"function(value) return value end\"}"
| object | upnp/profiles/S/types/S/ |
| Variable type properties | |
The value is subject to the following constraints: index of the value matches ^[a-zA-Z_][a-zA-Z_0-9]*$
This object is a part of a composite value which is modified as a whole.
This object contains the following items:
| decode | Decoding function |
| encode | Encoding function |
Sample CLI deletion command (note that upnp_device_profile and variable_type are variables):
uom remove "upnp/profiles/${upnp_device_profile}/types/${variable_type}"
Sample CLI read command (note that upnp_device_profile and variable_type are variables):
uom get "upnp/profiles/${upnp_device_profile}/types/${variable_type}"
⇒
{"decode":"function(str) return str end","encode":"function(value) return value end"}
| string | upnp/profiles/S/types/S/decode/ |
| Code of Lua function to decode and validate the value's string representation | |
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 requests write command (note that _upnp_device_profile and _variable_type are variables):
requests.put('http://192.168.0.100/restapi/upnp/profiles/'+_upnp_device_profile+'/types/'+_variable_type+'/decode/',auth=auth,headers=headers,json='function(str) return str=="1" end')
Sample CLI read command (note that upnp_device_profile and variable_type are variables):
uom get "upnp/profiles/${upnp_device_profile}/types/${variable_type}/decode"
⇒
"function(str) return str end"
| string | upnp/profiles/S/types/S/encode/ |
| Code of Lua function to check and encode the value to string representation | |
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 JS request write command (note that _upnp_device_profile and _variable_type are variables):
request.put({url:"upnp/profiles/"+_upnp_device_profile+"/types/"+_variable_type+"/encode/",body:"function(value) return value end"});
Sample CLI write command (note that upnp_device_profile and variable_type are variables):
uom set "upnp/profiles/${upnp_device_profile}/types/${variable_type}/encode" "\"function(value) return value and \\\"1\\\" or \\\"0\\\" end\""
| map | upnp/profiles/S/state_variables/ |
| Map of state variable bindings | |
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 State variable binding elements.
Sample CLI state variable binding creation command (note that upnp_device_profile is a variable):
uom insert "upnp/profiles/${upnp_device_profile}/state_variables/BinaryState" "{\"default_value\":\"0\",\"events_enabled\":true,\"name\":\"state\",\"type\":\"Boolean\"}"
Sample JS request write command (note that _upnp_device_profile is a variable):
request.put({url:"upnp/profiles/"+_upnp_device_profile+"/state_variables/",body:{"FriendlyName":{"default_value":"","events_enabled":true,"name":"name","type":"string"},"BinaryState":{"default_value":"0","events_enabled":true,"name":"state","type":"Boolean"}}});
| object | upnp/profiles/S/state_variables/S/ |
| Properties of a state variable binding | |
The value is subject to the following constraints: index of the value matches ^[a-zA-Z_][a-zA-Z_0-9]*$
This object is a part of a composite value which is modified as a whole.
This object contains the following items:
| name | Outlet property name |
| type | Variable type |
| default_value | Default variable name |
| events_enabled | Events |
Sample uom library write command (note that _upnp_device_profile and _state_variable_binding are variables):
uom.upnp.profiles[_upnp_device_profile].state_variables[_state_variable_binding]={default_value="",events_enabled=true,name="name",type="string"}
Sample uom library deletion command (note that _upnp_device_profile and _state_variable_binding are variables):
local composite=uom.copy(uom.upnp.profiles[_upnp_device_profile].state_variables) uom.remove(composite,_state_variable_binding) uom.upnp.profiles[_upnp_device_profile].state_variables=composite
| string | upnp/profiles/S/state_variables/S/name/ |
| The outlet property to which the variable is bound | |
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 write command (note that _upnp_device_profile and _state_variable_binding are variables):
uom.upnp.profiles[_upnp_device_profile].state_variables[_state_variable_binding].name="name"
Sample CLI read command (note that upnp_device_profile and state_variable_binding are variables):
uom get "upnp/profiles/${upnp_device_profile}/state_variables/${state_variable_binding}/name"
⇒
"name"
| string | upnp/profiles/S/state_variables/S/type/ |
| The type of the variable | |
The value is subject to the following constraints: variable types[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 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 upnp_device_profile and state_variable_binding are variables):
uom get "upnp/profiles/${upnp_device_profile}/state_variables/${state_variable_binding}/type"
⇒
"string"
Sample JS request write command (note that _upnp_device_profile and _state_variable_binding are variables):
request.put({url:"upnp/profiles/"+_upnp_device_profile+"/state_variables/"+_state_variable_binding+"/type/",body:"Boolean"});
| string | upnp/profiles/S/state_variables/S/default_value/ |
| The string-encoded default value of the state variable | |
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 JS request write command (note that _upnp_device_profile and _state_variable_binding are variables):
request.put({url:"upnp/profiles/"+_upnp_device_profile+"/state_variables/"+_state_variable_binding+"/default_value/",body:"0"});
Sample curl write command (note that :upnp_device_profile and :state_variable_binding 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 "\"\"" "http://192.168.0.100/restapi/upnp/profiles/:upnp_device_profile/state_variables/:state_variable_binding/default_value/"
| sum (boolean) | upnp/profiles/S/state_variables/S/events_enabled/ |
| Send events on property change | |
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.
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 (note that :upnp_device_profile and :state_variable_binding 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 "true" "http://192.168.0.100/restapi/upnp/profiles/:upnp_device_profile/state_variables/:state_variable_binding/events_enabled/"
Sample CLI write command (note that upnp_device_profile and state_variable_binding are variables):
uom set "upnp/profiles/${upnp_device_profile}/state_variables/${state_variable_binding}/events_enabled" "true"
| object | upnp/profiles/S/actions/S/arguments/N/ |
| Action input or output argument properties | |
This object is a part of a composite value which is modified as a whole.
This object contains the following items:
| name | Argument name |
| type | Argument type |
| is_output | Output/return value flag |
| state_id | Related state variable identifier, if any |
Sample JS request deletion command (note that _upnp_device_profile, _action and _argument_index are variables):
request.delete({url:"upnp/profiles/"+_upnp_device_profile+"/actions/"+_action+"/arguments/"+_argument_index.toString()+"/"});
Sample CLI deletion command (note that upnp_device_profile, action and argument_index are variables):
uom remove "upnp/profiles/${upnp_device_profile}/actions/${action}/arguments/${argument_index}"
| string | upnp/profiles/S/actions/S/arguments/N/name/ |
| The name of the argument as seen by clients | |
The value is subject to the following constraints: the value matches ^[a-zA-Z_][a-zA-Z_0-9]*$
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 CLI read command (note that upnp_device_profile, action and argument_index are variables):
uom get "upnp/profiles/${upnp_device_profile}/actions/${action}/arguments/${argument_index}/name"
⇒
"BinaryState"
Sample requests read command (note that _upnp_device_profile, _action and _argument_index are variables):
print(requests.get('http://192.168.0.100/restapi/upnp/profiles/'+_upnp_device_profile+'/actions/'+_action+'/arguments/'+str(_argument_index)+'/name/',auth=auth,headers=headers).json())
⇒
'FriendlyName'
| string | upnp/profiles/S/actions/S/arguments/N/type/ |
| The type of the argument | |
The value is subject to the following constraints: variable types[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 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 _upnp_device_profile, _action and _argument_index are variables):
request.put({url:"upnp/profiles/"+_upnp_device_profile+"/actions/"+_action+"/arguments/"+_argument_index.toString()+"/type/",body:"Boolean"});
Sample CLI read command (note that upnp_device_profile, action and argument_index are variables):
uom get "upnp/profiles/${upnp_device_profile}/actions/${action}/arguments/${argument_index}/type"
⇒
"Boolean"
| sum (boolean) | upnp/profiles/S/actions/S/arguments/N/is_output/ |
| Flag indicating that the argument is output/return instead of input | |
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.
This sum can assume the following values:
| constant true | Output/return | The argument is output, and also the return value if it's the first output argument | |
| constant false | Input | The argument is input | |
Sample requests read command (note that _upnp_device_profile, _action and _argument_index are variables):
print(requests.get('http://192.168.0.100/restapi/upnp/profiles/'+_upnp_device_profile+'/actions/'+_action+'/arguments/'+str(_argument_index)+'/is_output/',auth=auth,headers=headers).json())
⇒
True
Sample curl write command (note that :upnp_device_profile, :action and :argument_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 "true" "http://192.168.0.100/restapi/upnp/profiles/:upnp_device_profile/actions/:action/arguments/:argument_index/is_output/"
| sum (optional string) | upnp/profiles/S/actions/S/arguments/N/state_id/ |
| The identifier of the state variable to which the argument is related, 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 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 | No related state variable | The argument isn't related to a state variable | |
| string | Related state variable identifier | The identifier of the state variable to which the argument is related | state variables[the value] |
Sample CLI write command (note that upnp_device_profile, action and argument_index are variables):
uom set "upnp/profiles/${upnp_device_profile}/actions/${action}/arguments/${argument_index}/state_id" "\"BinaryState\""
Sample uom library read command (note that _upnp_device_profile, _action and _argument_index are variables):
print(uom.dump(uom.upnp.profiles[_upnp_device_profile].actions[_action].arguments[_argument_index].state_id))
⇒
"FriendlyName"
| map | upnp/profiles/S/actions/ |
| Map of actions that can be performed on the outlet | |
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 Action elements.
Sample curl write command (note that :upnp_device_profile 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 "{\"GetFriendlyName\":{\"code\":\"function(outlet) return outlet.name end\",\"arguments\":[{\"is_output\":true,\"state_id\":\"FriendlyName\",\"name\":\"FriendlyName\",\"type\":\"string\"}]},\"GetBinaryState\":{\"code\":\"function(outlet) return outlet.state end\",\"arguments\":[{\"is_output\":true,\"state_id\":\"BinaryState\",\"name\":\"BinaryState\",\"type\":\"Boolean\"}]},\"SetBinaryState\":{\"code\":\"function(outlet,value) outlet.state=value end\",\"arguments\":[{\"is_output\":false,\"state_id\":\"BinaryState\",\"name\":\"BinaryState\",\"type\":\"Boolean\"}]},\"SetFriendlyName\":{\"code\":\"function(outlet,value) outlet.name=val end\",\"arguments\":[{\"is_output\":false,\"state_id\":\"FriendlyName\",\"name\":\"FriendlyName\",\"type\":\"string\"}]}}" "http://192.168.0.100/restapi/upnp/profiles/:upnp_device_profile/actions/"
Sample JS request write command (note that _upnp_device_profile is a variable):
request.put({url:"upnp/profiles/"+_upnp_device_profile+"/actions/",body:{"GetFriendlyName":{"code":"function(outlet) return outlet.name end","arguments":[{"is_output":true,"state_id":"FriendlyName","name":"FriendlyName","type":"string"}]},"GetBinaryState":{"code":"function(outlet) return outlet.state end","arguments":[{"is_output":true,"state_id":"BinaryState","name":"BinaryState","type":"Boolean"}]},"SetBinaryState":{"code":"function(outlet,value) outlet.state=value end","arguments":[{"is_output":false,"state_id":"BinaryState","name":"BinaryState","type":"Boolean"}]},"SetFriendlyName":{"code":"function(outlet,value) outlet.name=val end","arguments":[{"is_output":false,"state_id":"FriendlyName","name":"FriendlyName","type":"string"}]}}});
| object | upnp/profiles/S/actions/S/ |
| Action properties | |
The value is subject to the following constraints: index of the value matches ^[a-zA-Z_][a-zA-Z_0-9]*$
This object is a part of a composite value which is modified as a whole.
This object contains the following items:
| arguments | Arguments |
| code | Code |
Sample requests read command (note that _upnp_device_profile and _action are variables):
print(requests.get('http://192.168.0.100/restapi/upnp/profiles/'+_upnp_device_profile+'/actions/'+_action+'/',auth=auth,headers=headers).json())
⇒
{'code': 'function(outlet,value) outlet.name=val end', 'arguments': [{'is_output': False, 'state_id': 'FriendlyName', 'name': 'FriendlyName', 'type': 'string'}]}
Sample curl write command (note that :upnp_device_profile and :action 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 "{\"code\":\"function(outlet) return outlet.name end\",\"arguments\":[{\"is_output\":true,\"state_id\":\"FriendlyName\",\"name\":\"FriendlyName\",\"type\":\"string\"}]}" "http://192.168.0.100/restapi/upnp/profiles/:upnp_device_profile/actions/:action/"
| array | upnp/profiles/S/actions/S/arguments/ |
| Action input and output arguments | |
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 Argument elements.
Sample uom library read command (note that _upnp_device_profile and _action are variables):
print(uom.dump(uom.upnp.profiles[_upnp_device_profile].actions[_action].arguments))
⇒
{{is_output=false,name="FriendlyName",state_id="FriendlyName",type="string"}}
Sample curl write command (note that :upnp_device_profile and :action 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 "[{\"is_output\":false,\"state_id\":\"BinaryState\",\"name\":\"BinaryState\",\"type\":\"Boolean\"}]" "http://192.168.0.100/restapi/upnp/profiles/:upnp_device_profile/actions/:action/arguments/"
See also Arguments: Argument
| string | upnp/profiles/S/actions/S/code/ |
| Code of Lua function to perform the action | |
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 JS request write command (note that _upnp_device_profile and _action are variables):
request.put({url:"upnp/profiles/"+_upnp_device_profile+"/actions/"+_action+"/code/",body:"function(outlet,value) outlet.name=val end"});
Sample requests write command (note that _upnp_device_profile and _action are variables):
requests.put('http://192.168.0.100/restapi/upnp/profiles/'+_upnp_device_profile+'/actions/'+_action+'/code/',auth=auth,headers=headers,json='function(outlet) return outlet.state end')
| sum (optional string) | upnp/profiles/S/soap_xmlns_prefix_override/ |
| SOAP XML namespace prefix to use on encoding instead of the default one (for compatibility), 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 | None | Use the default SOAP XML namespace prefix ('soap11') | |
| string | SOAP XML namespace prefix override | SOAP XML namespace prefix to use on encoding instead of the default one (for compatibility) | the value matches ^([A-Za-z_][A-Za-z0-9_-]?|[A-WYZa-wyz_][A-Za-z0-9_-]{2,}|[xX][A-LN-Za-ln-z0-9_-][A-Za-z0-9_-]{1,}|[xX][mM][A-KM-Za-km-z0-9_-][A-Za-z0-9_-]*)$ |
Sample CLI write command (note that upnp_device_profile is a variable):
uom set "upnp/profiles/${upnp_device_profile}/soap_xmlns_prefix_override" "\"dK6Due\""
Sample requests write command (note that _upnp_device_profile is a variable):
requests.put('http://192.168.0.100/restapi/upnp/profiles/'+_upnp_device_profile+'/soap_xmlns_prefix_override/',auth=auth,headers=headers,json=None)
| sum (optional string) | upnp/profiles/S/service_xmlns_prefix_override/ |
| Service XML namespace prefix to use on encoding instead of the default one (for compatibility), 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 | None | Use the default service XML namespace prefix ('svc') | |
| string | Service XML namespace prefix override | Service XML namespace prefix to use on encoding instead of the default one (for compatibility) | the value matches ^([A-Za-z_][A-Za-z0-9_-]?|[A-WYZa-wyz_][A-Za-z0-9_-]{2,}|[xX][A-LN-Za-ln-z0-9_-][A-Za-z0-9_-]{1,}|[xX][mM][A-KM-Za-km-z0-9_-][A-Za-z0-9_-]*)$ |
Sample CLI write command (note that upnp_device_profile is a variable):
uom set "upnp/profiles/${upnp_device_profile}/service_xmlns_prefix_override" "null"
Sample CLI read command (note that upnp_device_profile is a variable):
uom get "upnp/profiles/${upnp_device_profile}/service_xmlns_prefix_override"
⇒
null
| sum (optional string) | upnp/profiles/S/event_xmlns_prefix_override/ |
| Event XML namespace prefix to use on encoding instead of the default one (for compatibility), 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 | None | Use the default event XML namespace prefix ('event') | |
| string | Event XML namespace prefix override | Event XML namespace prefix to use on encoding instead of the default one (for compatibility) | the value matches ^([A-Za-z_][A-Za-z0-9_-]?|[A-WYZa-wyz_][A-Za-z0-9_-]{2,}|[xX][A-LN-Za-ln-z0-9_-][A-Za-z0-9_-]{1,}|[xX][mM][A-KM-Za-km-z0-9_-][A-Za-z0-9_-]*)$ |
Sample CLI read command (note that upnp_device_profile is a variable):
uom get "upnp/profiles/${upnp_device_profile}/event_xmlns_prefix_override"
⇒
"YEqmjxUY"
Sample JS request write command (note that _upnp_device_profile is a variable):
request.put({url:"upnp/profiles/"+_upnp_device_profile+"/event_xmlns_prefix_override/",body:null});
| sum (boolean) | upnp/expose_name/ |
| Controller name is exposed via UPnP | |
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.upnp.expose_name))
⇒
false
Sample requests read command:
print(requests.get('http://192.168.0.100/restapi/upnp/expose_name/',auth=auth,headers=headers).json())
⇒
True
| sum (boolean) | upnp/expose_model/ |
| Controller model is exposed via UPnP | |
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 "upnp/expose_model" "false"
Sample JS request read command:
request.get({url:"upnp/expose_model/"},function(error,response,body) {console.log(body)});
⇒
true
| sum (boolean) | upnp/expose_serial/ |
| Controller serial number is exposed via UPnP | |
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/upnp/expose_serial/"
Sample JS request write command:
request.put({url:"upnp/expose_serial/",body:true});
| sum (boolean) | upnp/expose_outlet_positions/ |
| Outlet positions (indices) are exposed via UPnP | |
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/upnp/expose_outlet_positions/',auth=auth,headers=headers,json=True)
Sample requests read command:
print(requests.get('http://192.168.0.100/restapi/upnp/expose_outlet_positions/',auth=auth,headers=headers).json())
⇒
False
| object | upnp/notifications/ |
| UPnP-related notifications | |
Retrieving the value is denied if not administrative user
This object does not support direct modification.
This object contains the following items:
| parameter_kinds | Parameter kinds |
| events | Events |
Sample uom library read command:
print(uom.dump(uom.upnp.notifications))
⇒
{events={["dli.upnp.sample_event"]={message_template={"sample event"},parameters={{fixed_value=null,has_fixed_value=false,id="sample_parameter"}}}},parameter_kinds={}}
Sample JS request read command:
request.get({url:"upnp/notifications/"},function(error,response,body) {console.log(body)});
⇒
{"events":{"dli.upnp.sample_event":{"parameters":[{"id":"sample_parameter","has_fixed_value":false,"fixed_value":null}],"message_template":["sample event"]}},"parameter_kinds":[]}
| object | upnp/notifications/parameter_kinds/ |
| Kinds of event parameters | |
This object does not correspond to an actual resource.
This object is empty.
| map | upnp/notifications/events/ |
| Event templates | |
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 Event elements.
Creating elements in this collection is not supported.
Sample uom library read command:
print(uom.dump(uom.upnp.notifications.events))
⇒
{["dli.upnp.sample_event"]={message_template={"sample event"},parameters={{fixed_value=null,has_fixed_value=false,id="sample_parameter"}}}}
Sample curl read command:
curl --digest -u admin:1234 -H "Accept: application/json" "http://192.168.0.100/restapi/upnp/notifications/events/"
⇒
{"dli.upnp.sample_event":{"parameters":[{"id":"sample_parameter","has_fixed_value":false,"fixed_value":null}],"message_template":["sample event"]}}
See also Events: Event
| object | upnp/notifications/events/S/parameters/N/ |
| Properties of a parameter associated with the event | |
This object is a part of a composite value which is modified as a whole.
This object contains the following items:
| id | Identifier |
| has_fixed_value | Fixed value flag |
| fixed_value | Fixed value |
Sample CLI write command (note that event and event_parameter_index are variables):
uom set "upnp/notifications/events/${event}/parameters/${event_parameter_index}" "{\"id\":\"sample_parameter\",\"has_fixed_value\":false,\"fixed_value\":null}"
Sample requests read command (note that _event and _event_parameter_index are variables):
print(requests.get('http://192.168.0.100/restapi/upnp/notifications/events/'+_event+'/parameters/'+str(_event_parameter_index)+'/',auth=auth,headers=headers).json())
⇒
{'id': 'sample_parameter', 'has_fixed_value': False, 'fixed_value': None}
| string | upnp/notifications/events/S/parameters/N/id/ |
| Parameter identifier | |
The value is subject to the following constraints: parameter kinds[the value]
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 event and event_parameter_index are variables):
uom get "upnp/notifications/events/${event}/parameters/${event_parameter_index}/id"
⇒
"sample_parameter"
Sample uom library read command (note that _event and _event_parameter_index are variables):
print(uom.dump(uom.upnp.notifications.events[_event].parameters[_event_parameter_index].id))
⇒
"sample_parameter"
| sum (boolean) | upnp/notifications/events/S/parameters/N/has_fixed_value/ |
| Flag indicating that the parameter's value for this event is fixed | |
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 | Fixed | The value is fixed | |
| constant false | Variable | The value is variable | |
Sample curl read command (note that :event and :event_parameter_index are URL template arguments):
curl --digest -u admin:1234 -H "Accept: application/json" "http://192.168.0.100/restapi/upnp/notifications/events/:event/parameters/:event_parameter_index/has_fixed_value/"
⇒
false
Sample JS request read command (note that _event and _event_parameter_index are variables):
request.get({url:"upnp/notifications/events/"+_event+"/parameters/"+_event_parameter_index.toString()+"/has_fixed_value/"},function(error,response,body) {console.log(body)});
⇒
false
| sum (variant) | upnp/notifications/events/S/parameters/N/fixed_value/ |
| Fixed parameter value for this particular event | |
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 null | Null | Null | |
| constant true | True | True | |
| constant false | False | False | |
| string | String | This string | |
| number | Number | This number | |
Sample requests read command (note that _event and _event_parameter_index are variables):
print(requests.get('http://192.168.0.100/restapi/upnp/notifications/events/'+_event+'/parameters/'+str(_event_parameter_index)+'/fixed_value/',auth=auth,headers=headers).json())
⇒
None
Sample curl read command (note that :event and :event_parameter_index are URL template arguments):
curl --digest -u admin:1234 -H "Accept: application/json" "http://192.168.0.100/restapi/upnp/notifications/events/:event/parameters/:event_parameter_index/fixed_value/"
⇒
null
| object | upnp/notifications/events/S/ |
| Event template | |
This object is a part of a composite value which is modified as a whole.
This object contains the following items:
| message_template | Message template |
| severity | Severity |
| parameters | Event parameters |
Sample CLI read command (note that event is a variable):
uom get "upnp/notifications/events/${event}"
⇒
{"parameters":[{"id":"sample_parameter","has_fixed_value":false,"fixed_value":null}],"message_template":["sample event"]}
Sample CLI write command (note that event is a variable):
uom set "upnp/notifications/events/${event}" "{\"parameters\":[{\"id\":\"sample_parameter\",\"has_fixed_value\":false,\"fixed_value\":null}],\"message_template\":[\"sample event\"]}"
| array | upnp/notifications/events/S/message_template/ |
| Template for human-readable message generation | |
Retrieving the value is denied if not administrative user
This array is a part of a composite value which is modified as a whole.
This array does not support direct modification.
This array contains Message template element elements.
Creating elements in this collection is not supported.
Sample CLI read command (note that event is a variable):
uom get "upnp/notifications/events/${event}/message_template"
⇒
["sample event"]
Sample JS request read command (note that _event is a variable):
request.get({url:"upnp/notifications/events/"+_event+"/message_template/"},function(error,response,body) {console.log(body)});
⇒
["sample event"]
| sum (variant) | upnp/notifications/events/S/message_template/N/ |
| Element of human-readable message template | |
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:
| string | String | Fixed string | |
| number | Parameter | Index of message parameter to insert | event parameters[the value] |
Sample uom library read command (note that _event and _message_template_element_index are variables):
print(uom.dump(uom.upnp.notifications.events[_event].message_template[_message_template_element_index]))
⇒
"sample event"
Sample JS request read command (note that _event and _message_template_element_index are variables):
request.get({url:"upnp/notifications/events/"+_event+"/message_template/"+_message_template_element_index.toString()+"/"},function(error,response,body) {console.log(body)});
⇒
"sample event"
| sum (enumerated number) | upnp/notifications/events/S/severity/ |
| Severity rating assigned to the event | |
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 1 | Emergency | Treat the event as an emergency | |
| constant 2 | Alert | Treat the event as an alert | |
| constant 3 | Critical | Treat the event as critical | |
| constant 4 | Error | Treat the event as an error | |
| constant 5 | Warning | Treat the event as a warning | |
| constant 6 | Notice | Treat the event as a notice | |
| constant 7 | Informational | Treat the event as informational | |
| constant 8 | Debug | Treat the event as debugging-related | |
Sample requests read command (note that _event is a variable):
print(requests.get('http://192.168.0.100/restapi/upnp/notifications/events/'+_event+'/severity/',auth=auth,headers=headers).json())
⇒
{}
Sample JS request read command (note that _event is a variable):
request.get({url:"upnp/notifications/events/"+_event+"/severity/"},function(error,response,body) {console.log(body)});
⇒
[]
| array | upnp/notifications/events/S/parameters/ |
| Additional data associated with the event | |
Retrieving the value is denied if not administrative user
This array is a part of a composite value which is modified as a whole.
This array does not support direct modification.
This array contains Event parameter elements.
Creating elements in this collection is not supported.
Sample requests read command (note that _event is a variable):
print(requests.get('http://192.168.0.100/restapi/upnp/notifications/events/'+_event+'/parameters/',auth=auth,headers=headers).json())
⇒
[{'id': 'sample_parameter', 'has_fixed_value': False, 'fixed_value': None}]
Sample JS request read command (note that _event is a variable):
request.get({url:"upnp/notifications/events/"+_event+"/parameters/"},function(error,response,body) {console.log(body)});
⇒
[{"id":"sample_parameter","has_fixed_value":false,"fixed_value":null}]
See also Event parameters: Event parameter