# Method: projects.locations.volumes.restore

- [HTTP request](https://docs.cloud.google.com/netapp/volumes/docs/reference/rest/v1alpha1/projects.locations.volumes/restore#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/netapp/volumes/docs/reference/rest/v1alpha1/projects.locations.volumes/restore#body.PATH_PARAMETERS)
- [Request body](https://docs.cloud.google.com/netapp/volumes/docs/reference/rest/v1alpha1/projects.locations.volumes/restore#body.request_body)
  - [JSON representation](https://docs.cloud.google.com/netapp/volumes/docs/reference/rest/v1alpha1/projects.locations.volumes/restore#body.request_body.SCHEMA_REPRESENTATION)
- [Response body](https://docs.cloud.google.com/netapp/volumes/docs/reference/rest/v1alpha1/projects.locations.volumes/restore#body.response_body)
- [Authorization scopes](https://docs.cloud.google.com/netapp/volumes/docs/reference/rest/v1alpha1/projects.locations.volumes/restore#body.aspect)
- [IAM Permissions](https://docs.cloud.google.com/netapp/volumes/docs/reference/rest/v1alpha1/projects.locations.volumes/restore#body.aspect_1)
- [Try it!](https://docs.cloud.google.com/netapp/volumes/docs/reference/rest/v1alpha1/projects.locations.volumes/restore#try-it)

Restore files from a backup to a volume.

### HTTP request

`POST https://netapp.googleapis.com/v1alpha1/{name=projects/*/locations/*/volumes/*}:restore`

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

### Path parameters

| Parameters ||
|---|---|
| `name` | `string` Required. The volume resource name, in the format `projects/{projectId}/locations/{location}/volumes/{volumeId}` |

### Request body

The request body contains data with the following structure:

| JSON representation |
|---|
| ``` { "backup": string, "fileList": [ string ], "restoreDestinationPath": string } ``` |

| Fields ||
|---|---|
| `backup` | `string` Required. The backup resource name, in the format `projects/{projectId}/locations/{location}/backupVaults/{backupVaultId}/backups/{backupId}` |
| `fileList[]` | `string` Required. List of files to be restored, specified by their absolute path in the source volume. |
| `restoreDestinationPath` | `string` Optional. Absolute directory path in the destination volume. This is required if the `fileList` is provided. |

### Response body

If successful, the response body contains an instance of `https://docs.cloud.google.com/netapp/volumes/docs/reference/rest/Shared.Types/ListOperationsResponse#Operation`.

### Authorization scopes

Requires the following OAuth scope:

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

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

### IAM Permissions

Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `name` resource:

- `netapp.volumes.restore`

For more information, see the [IAM documentation](https://cloud.google.com/iam/docs).