- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
- 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 syntax.
Path parameters
Parameters | |
---|---|
name |
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 |
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 Operation
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
IAM Permissions
Requires the following IAM permission on the name
resource:
netapp.volumes.revert
For more information, see the IAM documentation.