1. Operations
2. vapi
3. vcenter
4. activation

## vapi vcenter activation: cancel

Sends a request to cancel the task associated with the provided `activation_id`.

### Request:

#### HTTP request

POST https://{server}/rest/com/vmware/vapi/vcenter/activation/id:{activation_id}?~action=cancel

#### Path Parameters

Name | Type | Description
--- | --- | ---
Required
activation_id | string | the `activation_id` associated with a vCenter Server task to be canceled.

### Response:

#### HTTP Status Code: 200

None

#### Errors:

HTTP Status Code | Type | Description
--- | --- | ---
404 | not_found | if a vCenter Server task with the given `activation_id` was not found.
400 | not_allowed_in_current_state | if the vCenter Server task associated with the given `activation_id` is not cancelable.
403 | unauthorized | if the user is not authorized to cancel the task.
401 | unauthenticated | if the user is not authenticated.
503 | service_unavailable | if the task cancelation cannot be performed due to vCenter server is unreachable or it is not properly configured.