---
title: "GetPolicies for policies"
method: GET
path: "/nas/v1/orgs/{OrgID}/reports/policies"
tags: ["NAS"]
---

# GetPolicies for policies

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

## Request

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

Returns a list of all NAS policies.

## Path parameters

- `OrgID` integer, required

## Query parameters

- `pageToken` string

## Response `200`

Result schema for 200 Response of GET GetPolicies

- NASGetPoliciesResponse: GetPoliciesResponse is response schema for GetPolicies
  - `nextPageToken` string: The token to access the next page of results. This parameter will be empty for the last page of results.
  - `policies` NASGetPolicies[]
    - `automaticRetry` boolean: Whether automatic retry is enabled.
    - `dataLock` boolean: The status indicating if Data Lock is enabled in the backup policy
    - `description` string: Type of the policy.
    - `fullScanSchedule` NASFullScanSchedule: FullScanSchedule struct holds the response for GetPolicies api
      - `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.
      - `preferredDay` 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.
    - `maxRetryDuration` string: Specifies the wait interval before the job is retried.
    - `maxRetryDurationInSeconds` integer: Specifies the wait interval in seconds before the job is retried.
    - `age` string: If ScanMode is SmartScan, the number of days upto which files updated are to be backed up.
    - `organizationName` string: Name of the organization.
    - `policyID` integer: The ID of your backup policy.
    - `policyName` string: Name of the policy.
    - `retention` NASRetentionPolicy: RetentionPolicy struct holds the response for GetPolicies api
      - `allSnapshots` 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` string: Scan mode of the policy.
    - `schedules` NASSchedules[]: Schedule info for the backup.
      - `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.
    - `aclFlag` boolean: Whether ACL scan flag in enabled.

## 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)
