Kaspersky Security for Virtualization 5.2 Light Agent

Getting a list of tasks

Allows you to get a list of all existing tasks and information about each task in the list.

Method:

GET /api/2.0/virtualization/tasks?createdFrom={date and time}&state={status}&type={type}

where:

  • createdFrom={date and time} – date and time in YYYY-MM-DDThh:mm:ss format (optional parameter). If the parameter is specified, the list displays the tasks that were created not earlier than the specified date and time.
  • state={state} – task state (optional parameter). If the parameter is specified, the list displays only the tasks with the specified state.
  • type={type} – task type (optional parameter). If the parameter is specified, the list displays only the tasks of the specified type.

Return codes:

  • 200 (OK) – request completed successfully. The response returns a list of tasks.
  • 403 (Forbidden) – access to the resource is denied.