Required permission: VariableRead

To read the value of a shared variable, you must read the VariableValue. To read a VariableValue, use the following URI format:

GET http://[host]:[port]/nivariable/VariableValues('[dynamic api url]')

For example, use the following URI to read the value of ni.var.psp://localhost/hvac/t01 :

GET http://my_server:3580/nivariable/VariableValues('ni.var.psp://localhost/hvac/t01')?$format=json

Note In the JSON response, the timestamp is represented as milliseconds after 1970/1/1 0:0:0, UTC time.

To read the value property without the timestamp, use the following URI:

GET http://my_server:3580/nivariable/VariableValues('ni.var.psp://localhost/hvac/t01')/Value?$format=json