---
title: "List all jobs"
method: GET
path: "/ahv/v1/orgs/{OrgID}/reports/jobs"
tags: ["AHV"]
---

# List all jobs

`GET /ahv/v1/orgs/{OrgID}/reports/jobs`

## Request

- Base URL: `//apis.druva.com/phoenix` (relative, and the document’s source URL is not known)
- URL: `//apis.druva.com/phoenix/ahv/v1/orgs/{OrgID}/reports/jobs`
- Auth: API key in header `Authorization`

Returns all jobs

## Path parameters

- `OrgID` integer, required

## Query parameters

- `jobType` string
- `status` string
- `vmName` string
- `pageToken` string
- `fromTime` string, date-time
- `toTime` string, date-time
- `sortOrder` string

## Response `200`

Success

- AHVGetAllJobsInfoResponse: List all jobs response.
  - `jobs` AHVJobResponse[]: List of all jobs.
    - `endTime` string: The time when the job completes.
    - `errorCode` string: The error code for the failed jobs. The possible values are: \"0\": If the job is successful <error_number>: If the job has failed
    - `errorMessage` string: The error message for the failed jobs. This field is empty if the job is successful.
    - `jobID` integer: A unique identification number associated with the job.
    - `jobType` string: The type of job.
    - `organizationName` string: The name of the organization.
    - `startTime` string: The time when the job starts.
    - `status` string: Status of the job.
    - `vmName` string: The name of VM.
  - `nextPageToken` string: The token to access the next page of results. This parameter will be empty for the last page of results.

## Other responses

- `400`: Bad Request
- `401`: The request did not include an authentication token or the authentication token was expired.
- `403`: Forbidden
- `404`: The requested resource was not found.
- `500`: The request was not processed due to an internal error in Cloud.

---

[API](https://skmtc.dev/druva/apis/enterprise-workloads.md) - [All operations](https://skmtc.dev/druva/apis/enterprise-workloads/llms.txt) - [OpenAPI document](https://skmtc.dev/druva/apis/enterprise-workloads/revisions/18fc75e8229e?raw)
