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

# List all jobs

`GET /pbs/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/pbs/v1/orgs/{OrgID}/reports/jobs`
- Auth: API key in header `Authorization`

Returns all jobs for Phoenix Backup Stores.

## Path parameters

- `OrgID` integer, required

## Query parameters

- `jobType` integer[]
- `serverName` string[]
- `status` integer[]
- `fromTime` integer
- `toTime` integer
- `sortOrder` string
- `pageToken` string

## Response `200`

Success

- PBSGetAllJobsReportResponse: GetAllJobsReportResponse is the response schema for GetAllJobsReport
  - `jobs` PBSGetAllJobsReport[]
    - `endTime` string: The time when the job completes. The time is specified in the UTC timezone. The format is YYYY-MM-DDTHH:MM:SSZ.
    - `errorCode` string: The error code for the failed jobs. The possible values are:\n \"0\": If the job is successful\n<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: The unique identification number associated with the job.
    - `jobType` string: The type of the job. JobType can be one of the following values: Backup, Restore and Log Request.
    - `organizationID` integer: The ID of the organization
    - `organizationName` string: The name of the organization in which the Phoenix Backup Store is deployed.
    - `scheduleTime` string: The date and time when the job starts or is scheduled to start. The time is specified in UTC in the format YYYY-MM-DDTHH:MM:SSZ.
    - `serverName` string: The name of the Oracle server host or the Phoenix Backup Store.
    - `startTime` string: The time when the job starts. The time is specified in the UTC timezone. The format is YYYY-MM-DDTHH:MM:SSZ.
    - `status` string: The status of the job. Status can be one of the following values: Queued, Running, Successful, Successful with errors and Failed.
  - `nextPageToken` string: The token to access the next page of results. Keep this field blank in the first request. The value of this parameter is NULL for the last set of results.

## Other responses

- `400`: Bad Request
- `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)
