device-virtual API documentation version v1
http://device-virtual:49990/api/v1
Ping Resource
Example--http://localhost:49990/api/v1/ping
Command Device (by ID) with Command Name
Issue the GET command referenced by the command to the device/sensor (referenced by database-generated ID) to which it is associated thorugh the Device Service. ServiceException (HTTP 503) for unanticipated or unknown issues encountered. Throws NotFoundException (HTTP 404) if no device exists for the ID provided. Throws LockedException (HTTP 423) if the device or service is locked (admin state) or disabled (operating state).
Issues the PUT command referenced by the command to the device/sensor (referenced by database-generated ID) to which it is associated through the Device Service. ServiceException (HTTP 503) for unanticipated or unknown issues encountered. Throws NotFoundException (HTTP 404) if no device exists by the ID provided. Throws LockedException (HTTP 423) if the device or service is locked (admin state).
Issues the PUT command referenced by the command to the device/sensor (referenced by database generated ID) to which it is associated through the device service. ServiceException (HTTP 503) for unanticipated or unknown issues encountered. Throws NotFoundException (HTTP 404) if no device exists for the ID provided. Throws LockedException (HTTP 423) if the device or service is locked (admin state).
Command all operational Devices for the service with command name.
Issues the get command referenced by the command to all operational device(s)/sensor(s) that are associated to the device service and have this command. ServiceException (HTTP 503) for unanticipated or unknown issues encountered. Throws LockedException (HTTP 423) if the device service is locked (admin state).
Issues the PUT command referenced by the command to all operational device(s)/sensor(s) that are associated to the device service and have this command. ServiceException (HTTP 503) for unanticipated or unknown issues encountered. Throws LockedException (HTTP 423) if the device service is locked (admin state).
Issues the put command referenced by the command to all operational device(s)/sensor(s) that are associated to the Device Service and have this command. ServiceException (HTTP 503) for unanticipated or unknown issues encountered. Throws LockedException (HTTP 423) if the device service is locked (admin state).
Update Callback
Add the object referred to by the database ID. Returns ServiceException (HTTP 503) for unknown or unanticipated issues. Returns NotFoundException (HTTP 404) if the object cannot be found by the ID provided in metadata.
Update the object referred to by the database ID. Returns ServiceException (HTTP 503) for unknown or unanticipated issues. Returns NotFoundException (HTTP 404) if the object cannot be found by the id provided.
Delete the object referred to by the database ID. Returns ServiceException (HTTP 503) for unknown or unanticipated issues. Returns NotFoundException (HTTP 404) if the object cannot be found by the ID provided.
Run device discovery request for all registered Provision Watchers
Run the discovery request for a Device Service. Does not do anything unlesss the driver functionality is instrumented. Returns ServiceException (HTTP 503) for unknown or unanticipated issues.
Set the Device Service data transformation state
Example--http://localhost:49990/api/v1/debug/transformData/false (sets the device service to not transform data to or from the devices)
Tells the Device Service to pass data modified or unmodified to and from the devices. Returns ServiceException (HTTP 503) for unknown or unanticipated issues.