REST API - cancel

vcenter deployment import history: cancel

Cancels the task for importing vCenter historical data. This operation was added in vSphere API 6.7.

Request:

HTTP request

POST https://{server}/rest/vcenter/deployment/history?action=cancel
No request parameters

Response:

HTTP Status Code: 200

None

Errors:

HTTP Status Code Type Description
401 unauthenticated if the caller is not authenticated.
403 unauthorized if the caller is not authorized to perform the operation.
400 not_allowed_in_current_state if vCenter historical data import task cannot be canceled at this state. This can happen in the following cases:
  • If historical data import has not been started yet because a not running task cannot be canceled
  • If historical data import has already been completed because a completed task cannot be canceled
400 already_in_desired_state if vCenter historical data import task is already canceled.
500 error Generic error.