List all Data extracts for an organization with ability to filter and sort results.
o required | integer Organization ID for the target organization. | ||||||
limit | integer [ 1 .. 500 ] Default: 25 A limit on the number of results to be returned, between 1 and 500, with a default of 25. Use with | ||||||
page | integer Default: 0 The page of results you wish to be returned with page numbers starting at 0. Default: 0. See About Automox API - Pagination | ||||||
sort | Array of strings The sort for the results. Options: | ||||||
type:equals | string Default: "patch-history" The type of Data Extracts to list. Options:
| ||||||
created_at:greater_than | string <date-time> Created at date is greater than the value submitted. If a time is not specified, greater_than will have a time of start of day. | ||||||
created_at:lesser_than | string <date-time> Created at date is less than the value submitted. If a time is not specified, less_than will have a time of end of day. | ||||||
created_at:greater_than_or_equals | string <date-time> Created at date is greater than or equals the value submitted. If a time is not specified, greater_than_or_equals will have a time of start of day. | ||||||
created_at:lesser_than_or_equals | string <date-time> Created at date is lesser than or equals the value submitted. If a time is not specified, less_than_or_equals will have a time of end of day. | ||||||
status:equals | string Find jobs with a specific status. Options: queued, running, complete, failed, canceled, expired | ||||||
status:in | Array of strings Find jobs with one or more of these statuses. |
Successful Operation
Invalid Request
Access token is missing or invalid
You do not have permission to perform this action.
Entity not found
Too many requests
Service Unavailable
Invalid Request
$apiKey = 'your_automox_api_key' $headers = @{ "Authorization" = "Bearer $apiKey" } $url = "https://console.automox.com/api/data-extracts?o=0000&limit=25&page=0&status:in=queued" $response = (Invoke-WebRequest -Method Get -Uri $url -Headers $headers).Content
[- {
- "id": 75,
- "organization_id": 1,
- "user_id": 1,
- "status": "queued",
- "is_completed": false,
- "created_at": "2021-03-30T16:03:04.608690+0000",
- "download_expires_at": null,
- "download_url": null,
- "parameters": {
- "start_time": "2021-02-03T00:00:00+0000",
- "end_time": "2021-03-18T16:19:00+0000"
}
}
]