Perform power action on devices
POST/apis/v1/device-operations/powerActions
Use this method to perform a power action on one or more managed devices.
This method starts a job that runs asynchronously in the background to perform the operation. The response header returns the URI for the job in the Location field. Use GET /api/v1/jobs-management/jobs to retrieve the job status and additional job details.
A successful response code indicates that the job was successfully created and accepted by the orchestrator server. It does not indicate that the operation that is associated with the job was successful. If a job was not successfully started, refer to the response code and response body for details.
An operation is created for each target device.
Request
Responses
- 200
- 400
- 500
Success
Failure - Invalid data
Failure - Internal server error