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

# List all jobs

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

Returns a list of all jobs for NAS hosts.

## Path parameters

- `OrgID` integer, required

## Query parameters

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

## Response `200`

Success

- NASGetAllJobsReportResponse — GetAllJobsReportResponse is the response schema for GetAllJobsReport
  - `jobs` NASGetAllJobsReport[]
    - `backupContent` NASRuleStruct — RuleStruct is response schema for GetContentRules
      - `backupContent` NASBackupContentStruct — BackupContentStruct is response schema for GetContentRules
        - `excludeExtension` string[] — The list of file types that are excluded from the backup. You can select pre-defined file types that you want to exclude from the backup.
        - `excludeFolders` string[] — The list of folders that are excluded from the backup. See <a href=https://help.druva.com/en/articles/8651422-about-data-protection-for-file-servers>Folders excluded from File server backup</a>.
        - `excludePattern` string[] — The list of file extensions that are excluded in the backup.
        - `excludeType` string[] — The list of file types that are excluded from the backup. You can select pre-defined file types that you want to exclude from the backup.
        - `includeExtension` string[] — The list of file extensions that are included in the backup.
        - `includeFolders` string[] — List of folders/directories included in the backup operation.
        - `includePattern` string[] — The list of file patterns that are included in the backup.
        - `includeType` string[] — The list of file types that are included in the backup. You can select pre-defined file types that you want to include in the backup. See <a href=https://help.druva.com/en/articles/8651422-about-data-protection-for-file-servers>File types supported for backup</a>.
        - `isCaseInsensitive` boolean — The status of the case insensitivity flag.
      - `organizationName` string — The name of NAS organization.
      - `ruleName` string — Name of the content rule.
      - `ruleType` string — The data that is backed up on a server.
    - `endTime` string — The time when the job operation completes. The time is specified in the UTC timezone. The format is YYYY-MM-DDTHH:MM:SSZ.
    - `errorCode` string — Specifies 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 — Specifies the error message for the failed jobs. This field is empty if the job is successful.
    - `hostName` string — The name of NAS host/device.
    - `jobID` integer — A unique identification number associated with the job.
    - `jobType` 'Backup' | 'Restore' | 'Log Request' — The type of the job.
    - `organizationName` string — The name of the organization.
    - `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.
    - `proxyName` string — The name of NAS proxy.
    - `shareName` string — The name of NAS share.
    - `startTime` string — The time when the job operation starts. The time is specified in the UTC timezone. The format is YYYY-MM-DDTHH:MM:SSZ.
    - `status` 'Queued' | 'Running' | 'Successful' | 'Successful with errors' | 'Failed' — Status of the job.
  - `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.net/druva/apis/authentication.md) · [All operations](https://skmtc.net/druva/apis/authentication/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/druva/authentication/versions/2af2bf148b25/schema)
