Get All Tasks
DescriptionThis API retrieves all the tasks and also provides ability to filter tasks based on filter criteria.
Request
URLURL
Query Parameters
Query Parameters
filters the response based on the property “dag_id”
filters the response based on the nested property “entities.notif_uuid”
filters the response based on the nested property “entities.policy_name”
Requested number of resources to be provided in response
filters the response based on the notification ids. This field can have comma(,) separted values
Requested index for start of resources to be provided in response
filters the response based on status type
Possible values are: IN_PROGRESS , COMPLETED , FAILED
Get data for last {time_range}. The format for time range is “last-{the int number}-{min/hour/days/week/month}”
time_range example
"last-5-min"
type of tasks user wants to retreive
Possible values are: NOTIFICATION , REMEDIATION
Authentication
Response
Response BodyResponse Body
200 OK
array
of
Task
of type application/json
No content
{
"action": "ACKNOWLEDGE",
"details": "Performing ack operation",
"notification_ids": [
"id1",
"id2"
],
"status": "IN_PROGRESS",
"type": "NOTIFICATION",
"user_name": "admin"
}
The name of the action e.g. ADD_USER, ACKNOWLEDGE or REMEDIATION.
The start time of task in epoch millis.
The current status of task.
Possible values are: IN_PROGRESS , COMPLETED , FAILED
The end time of task in epoch millis.
This filed contains the details specific to the Task type (NOTIFICATION/REMEDIATION)
Unique identifier for task.
List of notification ids on which the action is performed.
Which type of task user wants to create.
Possible values are: NOTIFICATION , REMEDIATION , COLLECTOR
The name of the user
This field is specific to remediation task. dag_id represent dag_id created for airflow pipeline.
The details of performing action.
Errors
User authentication failed
Internal server error