Skip to main content

PUT /tasks

Use this method to cancel one or more jobs (tasks).

Note
Deleting one or more task using this API is no longer supported. Use DELETE /tasks/{job_list} instead.

Authentication

Authentication with username and password is required.

Request URL

PUT https://{management_server_IP}/tasks

Query parameters

None

Request body

Table 1. Cancel one or more jobs
AttributesRequired / OptionalTypeDescription
actionRequiredStringAction to take. This can be the following value.
  • cancel. Cancels the specified jobs.

listRequiredArray of stringsOne or more job IDs
The following example cancels a single job.
{
"action": "cancel",
"list": ["83"]
}

Response codes

CodeDescriptionComments
200OKThe request completed successfully.
400Bad RequestA query parameter or request attribute is missing or not valid, or the operation is not supported. A descriptive error message is returned in the response body.
401UnauthorizedThe user cannot be authenticated. Authentication has not been provided or has failed. A descriptive error message is returned in the response body.
403ForbiddenThe orchestrator server was prevented from fulfilling the request. A descriptive error message is returned in the response body. Ensure that you have privileges to perform the request.

For XClarity Administrator advanced functions, ensure that you have active licenses for each managed server that supports the advanced functions.

412Precondition failedSpecified data is invalid because of missing values. A descriptive error message is returned in the response body.
500Internal Server ErrorAn internal error occurred. A descriptive error message is returned in the response body.

Response body

None