Method: projects.locations.instances.revert

Stay organized with collections Save and categorize content based on your preferences.

Revert an existing instance's file system to a specified snapshot.

HTTP request

POST https://file.googleapis.com/v1beta1/{name=projects/*/locations/*/instances/*}:revert

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. projects/{projectId}/locations/{locationId}/instances/{instanceId}. The resource name of the instance, in the format

Request body

The request body contains data with the following structure:

JSON representation
{
  "targetSnapshotId": string
}
Fields
targetSnapshotId

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}/instances/{instanceId}/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.