Reading the Value of a Variable
- Updated2025-04-01
- 1 minute(s) read
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
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