- [HTTP request](https://docs.cloud.google.com/backup-disaster-recovery/docs/reference/rest/v1beta/projects.locations.backupPlans/list#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/backup-disaster-recovery/docs/reference/rest/v1beta/projects.locations.backupPlans/list#body.PATH_PARAMETERS)
- [Query parameters](https://docs.cloud.google.com/backup-disaster-recovery/docs/reference/rest/v1beta/projects.locations.backupPlans/list#body.QUERY_PARAMETERS)
- [Request body](https://docs.cloud.google.com/backup-disaster-recovery/docs/reference/rest/v1beta/projects.locations.backupPlans/list#body.request_body)
- [Response body](https://docs.cloud.google.com/backup-disaster-recovery/docs/reference/rest/v1beta/projects.locations.backupPlans/list#body.response_body)
  - [JSON representation](https://docs.cloud.google.com/backup-disaster-recovery/docs/reference/rest/v1beta/projects.locations.backupPlans/list#body.ListBackupPlansResponse.SCHEMA_REPRESENTATION)
- [Authorization scopes](https://docs.cloud.google.com/backup-disaster-recovery/docs/reference/rest/v1beta/projects.locations.backupPlans/list#body.aspect)
- [Try it!](https://docs.cloud.google.com/backup-disaster-recovery/docs/reference/rest/v1beta/projects.locations.backupPlans/list#try-it)

Lists BackupPlans in a given project and location.

### HTTP request

Choose an endpoint:
global africa-south1 asia-east1 asia-east2 asia-northeast1 asia-northeast2 asia-northeast3 asia-south1 asia-south2 asia-southeast1 asia-southeast2 australia-southeast1 australia-southeast2 europe-central2 europe-north1 europe-north2 europe-southwest1 europe-west1 europe-west2 europe-west3 europe-west4 europe-west6 europe-west8 europe-west9 europe-west10 europe-west12 me-central1 me-central2 me-west1 northamerica-northeast1 northamerica-northeast2 northamerica-south1 southamerica-east1 southamerica-west1 us-central1 us-central2 us-east1 us-east4 us-east5 us-east7 us-south1 us-west1 us-west2 us-west3 us-west4 us-west8 us eu   
`GET https://backupdr.googleapis.com/v1beta/{parent=projects/*/locations/*}/backupPlans`

<br />

The URLs use [gRPC Transcoding](https://google.aip.dev/127) syntax.

### Path parameters

| Parameters ||
|---|---|
| `parent` | `string` Required. The project and location for which to retrieve `BackupPlans` information. Format: `projects/{project}/locations/{location}`. In Google Cloud Backup and DR, locations map to Google Cloud regions, for e.g. **us-central1** . To retrieve backup plans for all locations, use "-" for the `{location}` value. |

### Query parameters

| Parameters ||
|---|---|
| `pageSize` | `integer` Optional. The maximum number of `BackupPlans` to return in a single response. If not specified, a default value will be chosen by the service. Note that the response may include a partial list and a caller should only rely on the response's `https://docs.cloud.google.com/backup-disaster-recovery/docs/reference/rest/v1beta/projects.locations.backupPlans/list#body.ListBackupPlansResponse.FIELDS.next_page_token` to determine if there are more instances left to be queried. |
| `pageToken` | `string` Optional. The value of `https://docs.cloud.google.com/backup-disaster-recovery/docs/reference/rest/v1beta/projects.locations.backupPlans/list#body.ListBackupPlansResponse.FIELDS.next_page_token` received from a previous `backupPlans.list` call. Provide this to retrieve the subsequent page in a multi-page list of results. When paginating, all other parameters provided to `backupPlans.list` must match the call that provided the page token. |
| `filter` | `string` Optional. Field match expression used to filter the results. |
| `orderBy` | `string` Optional. Field by which to sort the results. |

### Request body

The request body must be empty.

### Response body

The response message for getting a list of `BackupPlan`.

If successful, the response body contains data with the following structure:

| JSON representation |
|---|
| ``` { "backupPlans": [ { object (`https://docs.cloud.google.com/backup-disaster-recovery/docs/reference/rest/v1beta/projects.locations.backupPlans#BackupPlan`) } ], "nextPageToken": string, "unreachable": [ string ] } ``` |

| Fields ||
|---|---|
| `backupPlans[]` | ``object (`https://docs.cloud.google.com/backup-disaster-recovery/docs/reference/rest/v1beta/projects.locations.backupPlans#BackupPlan`)`` The list of `BackupPlans` in the project for the specified location. If the `{location}` value in the request is "-", the response contains a list of resources from all locations. In case any location is unreachable, the response will only return backup plans in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations. BackupPlan |
| `nextPageToken` | `string` A token which may be sent as `https://docs.cloud.google.com/backup-disaster-recovery/docs/reference/rest/v1beta/projects.locations.backupPlans/list#body.QUERY_PARAMETERS.page_token` in a subsequent `backupPlans.list` call to retrieve the next page of results. If this field is omitted or empty, then there are no more results to return. |
| `unreachable[]` | `string` Locations that could not be reached. |

### Authorization scopes

Requires one of the following OAuth scopes:

- `https://www.googleapis.com/auth/cloud-platform`
- `
  https://www.googleapis.com/auth/cloud-backupdr`

For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp).