Get information about a specific task that Managed Search created to perform a long-running operation, such as creating or deleting a cluster.
Request
Send an HTTP request with these elements.
Element | Description |
---|---|
Method |
|
Endpoint |
|
Request header fields |
Request header fields specify metadata for the request. For example, the |
Message body |
None |
Response
A response from a request to get the status of a long-running task contains these elements.
Element | Description |
---|---|
Status line |
The status line contains the status code and the reason phrase. |
Response header fields |
Response header fields specify metadata about the response. |
Message body |
JSON object that contains status information about the task and about any subtasks. |
Example
Get status information about task 120.
Request:
curl "https://pg01.us-west1.cloud.lucidworks.com/managed/api/customers/lucidworks/tasks/120" -H "accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer accessTokenManagedSearch"
Response:
{ "id": 120, "clusterId": "prod-1", "description": "create cluster prod-1", "progress": 100, "status": "completed" }