Method: projects.locations.instances.snapshots.create

Creates a snapshot.

HTTP request

POST https://file.googleapis.com/v1/{parent=projects/*/locations/*/instances/*}/snapshots

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The Filestore Instance to create the snapshots of, in the format projects/{projectId}/locations/{location}/instances/{instanceId}

Query parameters

Parameters
snapshotId

string

Required. The ID to use for the snapshot. The ID must be unique within the specified instance.

This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen.

Request body

The request body contains an instance of Snapshot.

Response body

If successful, the response body contains a newly created instance of Operation.

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.