VS321 – Available Services
This topic provides IDs of services that can be invoked on VS321.
Usage
- Workflow
-
- Copy the snippet of the desired service.
- If input parameters are required, fill in the values and remove the comments.
- Use it as the body parameters of Invoke Device Services Asynchronously .
- Example
-
POST /device/openapi/v1/devices/1737019327786467329/services/call HTTP/1.1 Host: demo.milesight.com Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6Inxxxxxxxxxxxxxx Content-Type: application/json { "serviceId": "reboot", "inputs": {} }
Supported services
Service ID
- Trigger a detection
-
{ "serviceId": "trigger_a_detection", "inputs": {} }
- Reset
-
{ "serviceId": "reset", "inputs": {} }
- Reboot
-
{ "serviceId": "rebot", "inputs": {} }
- Retrieve Historical Data for a Specific Time
-
{ "serviceId": "retrival_historical_data_by_time", "inputs": { "time": "date" // Time Point Type: date Unit: s } }
- Retrieve Historical Data for a Specific Time Range
-
{ "serviceId": "retrival_historical_data_by_time_range", "inputs": { "start_time": "date", // Start Time Type: date Unit: s "end_time": "date" // End Time Type: date Unit: s } }
- Stop Retrieving Historical Data
-
{ "serviceId": "stop_historical_data_retrival", "inputs": {} }