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

# List all policies

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

Returns all backup policies for VMware

## Path parameters

- `OrgID` integer, required

## Query parameters

- `pageToken` string

## Response `200`

Success

- VMwareGetPoliciesResponse: 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` VMwareGetPolicies[]: List of all backup policies for VMware.
    - `autoEnableCBT` boolean: Enable CBT - yes/no
    - `automaticRetry` boolean: Automatic retry enabled/disabled
    - `description` string: Description of the policy
    - `enableAppAwareProcessing` boolean: Specifies the option to enable SQL Server database backups on the virtual machine.
    - `enableVMToolsQuiescing` boolean: Enable vmtools quiescing -yes/no
    - `ignoreFirstBackupDuration` boolean: Ignore first backup duration - yes/no
    - `dataLock` boolean: The status indicating if Data Lock is enabled in the backup policy.
    - `maxRetryCount` integer: Maximum retry count
    - `maxRetryDuration` string: Specifies the wait interval before the job is retried.
    - `maxRetryDurationInSeconds` integer: Specifies the wait interval in seconds before the job is retried.
    - `msSqlConfigDetails` VMwareMSSqlConfigDetails: MSSqlConfigDetails struct holds the response for GetPolicies api
      - `backupTransactionLog` boolean: Specifies the option to enable transaction log backups for applications.
      - `tlBackupFrequencyInMinutes` integer: Specifies the interval in minutes to run the transaction log backups.
      - `tlBackupMaxBandwidthInMbps` integer: Specifies the maximum bandwidth for a transaction log backup.
    - `policyID` integer: The ID of your backup policy.
    - `policyName` string: Name of the policy
    - `policyType` string: Type of the policy
    - `retention` VMwareRetentionPolicy: RetentionPolicy struct holds the response for GetPolicies api
      - `allSnapshots` string: Daily copies of the backup to retain
      - `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.
      - `monthly` string: Monthly copies of the backup to retain
      - `warmTierDuration` integer: Lists the duration in days for which the snapshot will reside in the warm tier of the AWS storage.
      - `weekly` string: Weekly copies of the backup to retain
      - `yearly` string: Yearly copies of the backup to retain
    - `schedules` VMwareSchedules[]: Schedules 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: Schedule start time

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