---
title: "List all policies"
method: GET
path: "/fileserver/v1/orgs/{OrgID}/reports/policies"
tags: ["File Server"]
---

# List all policies

`GET /fileserver/v1/orgs/{OrgID}/reports/policies`

Returns all policies for Windows/Linux servers

## Path parameters

- `OrgID` integer, required

## Query parameters

- `pageToken` string

## Response `200`

Success

- FSGetPoliciesResponse — GetPoliciesResponse is response schema for GetPolicies
  - `policies` FSGetPolicies[]
    - `aclFlag` boolean — Whether ACL flag scan is enabled. This parameter will be skipped if the value is NULL.
    - `age` string — If ScanMode is SmartScan, the number of days upto which files updated are to be backed up. This parameter will be skipped if the value is NULL.
    - `automaticRetry` boolean — Whether automatic retry is enabled.
    - `dataLock` boolean — The status indicating if Data Lock is enabled in the backup policy
    - `description` string — Description of the policy.
    - `fullScanSchedule` FSFullScanSchedule
      - `bandwidth` string — Specifies the bandwidth that each resource can consume while backing up data to the Cloud.
      - `bandwidthInKBps` number, double — Specifies the bandwidth in Kilobytes per second that each resource can consume while backing up data to the Cloud.
      - `duration` string — Specifies the duration after which you want backup operations to stop.
      - `durationInSeconds` integer — Specifies the duration in seconds after which you want backup operations to stop.
      - `repeatOn` string[] — JSONStringList is data type to be used in model definition for data that is string:interface map in memory but stored as JSON string in DB
      - `scanSchedule` string — The schedule of the scan.
      - `startAt` string — The start hour of the backup operation.
    - `ignoreFirstBackupDuration` boolean — Whether backup duration is to be ignored for first backup.
    - `maxRetryCount` integer — Maximum retry count for job operation. This parameter will be skipped if the value is NULL.
    - `maxRetryDuration` string — Specifies the wait interval before the job is retried.
    - `maxRetryDurationInSeconds` integer — Specifies the wait interval in seconds before the job is retried.
    - `organizationName` string — The name of the organization.
    - `policyID` integer — The ID of your backup policy.
    - `policyName` string — Name of the policy.
    - `policyType` 'Files' — Type of the policy.
    - `prePostScript` FSPrePostScriptDetails
      - `prePostScriptLocationLinux` string — Location of pre-/post-scripts on Linux servers
      - `prePostScriptLocationWindows` string — Location for pre/post scripts on Windows servers
      - `scriptTimeout` string — Specifies the time limit for the execution of pre scripts and post scripts.
      - `scriptTimeoutInSeconds` integer — Specifies the time limit in seconds for the execution of pre scripts and post scripts.
      - `skipBackupForPreScriptFails` boolean — Specifies whether the backup operation is skipped on pre-script execution failure.
      - `skipBackupForPreScriptMissing` boolean — Specifies whether the backup operation is skipped in case of pre-script missing.
    - `retention` FSRetentionPolicy
      - `daily` string — The number of days for which daily backup restore points are to be retained.
      - `monthly` string — The number of months for which monthly backup restore points are to be retained.
      - `weekly` string — The number of weeks for which weekly backup restore points are to be retained.
      - `yearly` string — The number of years for which yearly backup restore points are to be retained.
      - `ltrEnabled` boolean — The status of the backup set whether enabled for long term retention. For example, True denotes that the backup set is enabled for LTR.
      - `warmTierDuration` integer — Lists the duration in days for which the snapshot will reside in the warm tier of the AWS storage.
    - `scanMode` 'Smart' | 'Full' — Scan mode of the policy.
    - `schedules` FSSchedules[] — Schedule info for the backup. This parameter will be skipped if the value is NULL.
      - `bandwidth` string — Specifies the bandwidth that each resource can consume while backing up data to the Cloud.
      - `bandwidthInKBps` number, double — Specifies the bandwidth in Kilobytes per second that each resource can consume while backing up data to the Cloud.
      - `duration` string — Specifies the duration after which you want backup operations to stop.
      - `durationInSeconds` integer — Specifies the duration in seconds after which you want backup operations to stop.
      - `repeatOn` string[] — JSONStringList is data type to be used in model definition for data that is string:interface map in memory but stored as JSON string in DB
      - `startAt` string — The start hour of the backup operation.
  - `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/authentication.md) · [All operations](https://skmtc.dev/druva/apis/authentication/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/druva/authentication/revisions/2af2bf148b25/schema)
