Get task

You can retrieve information about a task using the task_id.

Path and HTTP methods

  1. GET /_plugins/_ml/tasks/<task_id>

Example request

  1. GET /_plugins/_ml/tasks/MsBi1YsB0jLkkocYjD5f

copy

Example response

The response includes information about the task.

  1. {
  2. "model_id" : "l7lamX8BO5w8y8Ra2oty",
  3. "task_type" : "TRAINING",
  4. "function_name" : "KMEANS",
  5. "state" : "COMPLETED",
  6. "input_type" : "SEARCH_QUERY",
  7. "worker_node" : "54xOe0w8Qjyze00UuLDfdA",
  8. "create_time" : 1647545342556,
  9. "last_update_time" : 1647545342587,
  10. "is_async" : true
  11. }