Search for tasks
get
/iam/governance/selfservice/api/v1/scheduler/tasks
Retrieves a paginated list of task details that matches the search criteria.
Request
Query Parameters
-
limit: integer
The numbers of items to return
-
offset: string
The number of items to skip before starting to collect the result set
-
q: string
Search query(Support wildcard character *)
Response
Supported Media Types
- application/json
200 Response
OK
400 Response
Invalid input
Examples
The following example shows how to retrieve a paginated list of task details that matches the search criteria by submitting the GET request using cURL. The information shown here is against a pseudo system and serves as a prototype.
cURL Example
curl -i -X GET -u username:password / --header 'Accept: application/json' / --header 'Content-Type: application/json' / 'http://pseudo.com/iam/governance/selfservice/api/v1/scheduler/tasks/?q=App*'
Example of Response Body
The following example shows the JSON response for a retrieval request for the details of the task that matches the search criteria:
{
"links": [
{
"rel": "self",
"href": "http://pseudo.com/iam/governance/selfservice/api/v1/scheduler/tasks/?offset=1&limit=10&q=App%2A"
},
{
"rel": "first",
"href": "http://pseudo.com/iam/governance/selfservice/api/v1/scheduler/tasks/?offset=1&limit=10&q=App%2A"
}
],
"count": 2,
"hasMore": false,
"totalResult": 3,
"tasks": [
{
"name": "Application Instance Post Delete Processing Task"
},
{
"name": "Application Template Generation Task"
}
],
"offset": 1,
"limit": 10
}