---
title: "List all backup policies"
method: GET
path: "/hyperv/v1/orgs/{OrgID}/reports/policies"
tags: ["Hyper-V"]
---

# List all backup policies

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

Returns a list of all backup policies for Hyper-V.

## Path parameters

- `OrgID` integer, required

## Query parameters

- `pageToken` string

## Response `200`

Success

- HVGetBackupPoliciesReportResponse
  - `nextPageToken` string: The token to access the next page of results. This parameter will be empty for the last page of results.
  - `policies` HVHyperVPolicies[]: List of Hyper-V policies
    - `appliedToVMs` string[]: Specifies the list of virtual machines to which the backup policy is applied.
    - `automaticRetry` boolean: Specifies whether the automatic retry option is enabled or disabled.
    - `description` string: Description of the policy.
    - `ignoreFirstBackupDuration` boolean: Specifies whether to ignore the specified backup duration for the first backup job.
    - `dataLock` boolean: The status indicating if Data Lock is enabled in the backup policy.
    - `maxRetryCount` integer: Specifies the maximum number of retries for a failed backup.
    - `maxRetryDuration` string: Specifies the maximum duration between each retry attempt for a failed backup.
    - `maxRetryDurationInSeconds` integer: Specifies the maximum duration in seconds between each retry attempt for a failed backup.
    - `policyID` integer: The ID of your backup policy.
    - `policyName` string: Specifies the name of the backup policy.
    - `policyType` string: Specifies the type of the backup policy.
    - `quiescingEnabled` boolean: Specifies whether to enable the VMware tools quiescing.
    - `retention` HVHyperVPolicyRetentionData: HyperVPolicyRetentionData is the response schema for HyperV Policy Retention Data
      - `allSnapshots` integer: Specifies the duration in days to retain all the daily snapshots.
      - `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` integer: Specifies the number of months for which you want to retain the latest monthly snapshot.
      - `warmTierDuration` integer: Lists the duration in days for which the snapshot will reside in the warm tier of the AWS storage.
      - `weekly` integer: Specifies the number of weeks for which you want to retain the latest weekly snapshot.
      - `yearly` integer: Specifies the number of years for which you want to retain the latest yearly snapshot.
    - `schedules` HVHyperVPolicySchedule[]: Specifies the list of backup schedules.
      - `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 for which the backup job should run.
      - `durationInSeconds` integer: Specifies the duration in seconds after which the backup should 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: Specifies the time when the backup starts.

## Other responses

- `400`: Bad Request
- `404`: The requested resource was not found.
- `500`: The request was not processed due to an internal error in the 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)
