List Jobs
GET https://{{axpAPIDomain}}/api/admin/user/v1/accounts/:accountId/jobs?pageNumber=2&pageSize=5
This API requires the Account Administrator role.
Lists all of the jobs for an account based on the criteria provided.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
pageNumber | number | The page number of the records to retrieve. Default value is 1. | |
pageSize | number | The max number of records to retrieve per page. Default value is 10. |
Any value like 5, 10, 15, 20, 25, 30 is allowed.
Values that exceed the maximum will result in a 400 Bad Request being returned.
|
| filter
| string | | Specifies details of a row filter.
The possible fields that can be filtered on are:
- name
- operation
- startTime
- endTime
The allowed format:
- Begins with the column name to be filtered, followed by a colon, then:
- Either an exact string to match, or
- A string expression including the * wildcard character
- :{PREFIX}* will be used to find out word start with.
- :*{POSTFIX} will be used to find out word end with
- : will be used to match exact word
- Begin with column name to be filtered, followed by a = operator. (this will be used to match exact string)
|
|
orderBy
| string | | Field name on which sorting needs to be performed. The default sorting order is startTime descending.
The possible fields that can be ordered on are:
- name
- operation
- startTime
- endTime
Field Names are case-sensitive (should be written as it is in description).
To specify descending order, a suffix " desc" should be added. For example, "name" for ascending or "name desc" for descending". |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
appkey | string | ||
Accept | string |
RESPONSES
status: OK
{"pagination":{"pageNumber":2,"pageSize":10,"total":45},"jobs":[{"jobId":"c8c2909d-75e9-484a-94c0-b7e8d30771ee","status":"COMPLETED","name":"deleteJobForOrganization","operation":"DELETE","startTime":"2020-04-21T17:32:28z","endTime":"2020-04-21T17:40:28z"}],"links":{"prev":"/api/admin/user/api/admin/user/v1/accounts/ASDJGE/jobs?pageNumber=1\u0026pageSize=10","next":"/api/admin/user/api/admin/user/v1/accounts/ASDJGE/jobs?pageNumber=3\u0026pageSize=10"}}