# Method: projects.locations.volumes.revert

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

Revert an existing volume to a specified snapshot. Warning! This operation will permanently revert all changes made after the snapshot was created.

### HTTP request

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

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

### Path parameters

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

### Request body

The request body contains data with the following structure:

| JSON representation |
|---|
| ``` { "snapshotId": string } ``` |

| Fields ||
|---|---|
| `snapshotId` | `string` Required. The snapshot resource ID, in the format 'my-snapshot', where the specified ID is the {snapshotId} of the fully qualified name like projects/{projectId}/locations/{locationId}/volumes/{volumeId}/snapshots/{snapshotId} |

### 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.revert`

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