---
title: "Gets all the backup policies configured."
method: GET
path: "/BackupRestore/BackupPolicies"
tags: ["BackupRestore"]
---

# Gets all the backup policies configured.

`GET /BackupRestore/BackupPolicies`

Get a list of all the backup policies configured.

## Query parameters

- `api-version` '6.4', required
- `ContinuationToken` string
- `MaxResults` integer
- `timeout` integer

## Response `200`

A successful operation will return 200 status code and paged list of backup policies.

- PagedBackupPolicyDescriptionList — The list of backup policies configured in the cluster. The list is paged when all of the results cannot fit in a single message. The next set of results can be obtained by executing the same query with the continuation token provided in this list.
  - `ContinuationToken` string — The continuation token parameter is used to obtain next set of results. The continuation token is included in the response of the API when the results from the system do not fit in a single response. When this value is passed to the next API call, the API returns next set of results. If there are no further results, then the continuation token is not included in the response.
  - `Items` BackupPolicyDescription[] — The list of backup policies information.
    - `Name` string, required — The unique name identifying this backup policy.
    - `AutoRestoreOnDataLoss` boolean, required — Specifies whether to trigger restore automatically using the latest available backup in case the partition experiences a data loss event.
    - `MaxIncrementalBackups` integer, required — Defines the maximum number of incremental backups to be taken between two full backups. This is just the upper limit. A full backup may be taken before specified number of incremental backups are completed in one of the following conditions - The replica has never taken a full backup since it has become primary, - Some of the log records since the last backup has been truncated, or - Replica passed the MaxAccumulatedBackupLogSizeInMB limit.
    - `Schedule` BackupScheduleDescription, required — Describes the backup schedule parameters.
      - `ScheduleKind` 'Invalid' | 'TimeBased' | 'FrequencyBased', required — The kind of backup schedule, time based or frequency based.
    - `Storage` BackupStorageDescription, required — Describes the parameters for the backup storage.
      - `StorageKind` 'Invalid' | 'FileShare' | 'AzureBlobStore', required — The kind of backup storage, where backups are saved.
      - `FriendlyName` string — Friendly name for this backup storage.
    - `RetentionPolicy` RetentionPolicyDescription — Describes the retention policy configured.
      - `RetentionPolicyType` 'Basic' | 'Invalid', required — The type of retention policy. Currently only "Basic" retention policy is supported.

## Other responses

- `default` — The detailed error response.

---

[API](https://skmtc.net/azure/apis/service-fabric-client-apis.md) · [All operations](https://skmtc.net/azure/apis/service-fabric-client-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/service-fabric-client-apis/versions/6df9f2f4d542/schema)
