public virtual Task<Operation> Delete(DeleteSnapshotRequest request, ServerCallContext context)
Deletes the specified Snapshot resource. Keep in mind that deleting a single snapshot might not necessarily delete all the data on that snapshot. If any data on the snapshot that is marked for deletion is needed for subsequent snapshots, the data will be moved to the next corresponding snapshot. For more information, see Deleting snapshots.
The response to send back to the client (wrapped by a task).
Insert(InsertSnapshotRequest, ServerCallContext)
public virtual Task<Operation> Insert(InsertSnapshotRequest request, ServerCallContext context)
Creates a snapshot in the specified project using the data included in the request. For regular snapshot creation, consider using this method instead of disks.createSnapshot, as this method supports more features, such as creating snapshots in a project different from the source disk project.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-08 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eSnapshots.SnapshotsBase\u003c/code\u003e class provides server-side implementations for managing snapshot resources in the Google Compute Engine v1 API, within the \u003ccode\u003eGoogle.Cloud.Compute.V1\u003c/code\u003e namespace.\u003c/p\u003e\n"],["\u003cp\u003eThere are multiple versions of the \u003ccode\u003eSnapshots.SnapshotsBase\u003c/code\u003e class available, ranging from version 1.0.0 to the latest version 3.6.0, each with its own set of documentation and functionalities.\u003c/p\u003e\n"],["\u003cp\u003eThis API class supports various methods for managing snapshots, including creating, deleting, retrieving, and listing them, as well as managing access control policies and labels.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes methods such as \u003ccode\u003eDelete\u003c/code\u003e, \u003ccode\u003eGet\u003c/code\u003e, \u003ccode\u003eInsert\u003c/code\u003e, \u003ccode\u003eList\u003c/code\u003e, \u003ccode\u003eSetIamPolicy\u003c/code\u003e, and \u003ccode\u003eTestIamPermissions\u003c/code\u003e, that allow users to interact with the snapshot data.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the API is 3.6.0, which is accessible through the link provided: \u003ccode\u003e/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Snapshots.SnapshotsBase\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Compute Engine v1 API - Class Snapshots.SnapshotsBase (3.13.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.13.0 (latest)](/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Snapshots.SnapshotsBase)\n- [3.12.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/3.12.0/Google.Cloud.Compute.V1.Snapshots.SnapshotsBase)\n- [3.11.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/3.11.0/Google.Cloud.Compute.V1.Snapshots.SnapshotsBase)\n- [3.10.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/3.10.0/Google.Cloud.Compute.V1.Snapshots.SnapshotsBase)\n- [3.9.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/3.9.0/Google.Cloud.Compute.V1.Snapshots.SnapshotsBase)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/3.8.0/Google.Cloud.Compute.V1.Snapshots.SnapshotsBase)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/3.7.0/Google.Cloud.Compute.V1.Snapshots.SnapshotsBase)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/3.6.0/Google.Cloud.Compute.V1.Snapshots.SnapshotsBase)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/3.5.0/Google.Cloud.Compute.V1.Snapshots.SnapshotsBase)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/3.4.0/Google.Cloud.Compute.V1.Snapshots.SnapshotsBase)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/3.3.0/Google.Cloud.Compute.V1.Snapshots.SnapshotsBase)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/3.2.0/Google.Cloud.Compute.V1.Snapshots.SnapshotsBase)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/3.1.0/Google.Cloud.Compute.V1.Snapshots.SnapshotsBase)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/3.0.0/Google.Cloud.Compute.V1.Snapshots.SnapshotsBase)\n- [2.17.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.17.0/Google.Cloud.Compute.V1.Snapshots.SnapshotsBase)\n- [2.16.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.16.0/Google.Cloud.Compute.V1.Snapshots.SnapshotsBase)\n- [2.15.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.15.0/Google.Cloud.Compute.V1.Snapshots.SnapshotsBase)\n- [2.14.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.14.0/Google.Cloud.Compute.V1.Snapshots.SnapshotsBase)\n- [2.13.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.13.0/Google.Cloud.Compute.V1.Snapshots.SnapshotsBase)\n- [2.12.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.12.0/Google.Cloud.Compute.V1.Snapshots.SnapshotsBase)\n- [2.11.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.11.0/Google.Cloud.Compute.V1.Snapshots.SnapshotsBase)\n- [2.10.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.10.0/Google.Cloud.Compute.V1.Snapshots.SnapshotsBase)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.9.0/Google.Cloud.Compute.V1.Snapshots.SnapshotsBase)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.8.0/Google.Cloud.Compute.V1.Snapshots.SnapshotsBase)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.7.0/Google.Cloud.Compute.V1.Snapshots.SnapshotsBase)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.6.0/Google.Cloud.Compute.V1.Snapshots.SnapshotsBase)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.5.0/Google.Cloud.Compute.V1.Snapshots.SnapshotsBase)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.4.0/Google.Cloud.Compute.V1.Snapshots.SnapshotsBase)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.3.0/Google.Cloud.Compute.V1.Snapshots.SnapshotsBase)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.2.0/Google.Cloud.Compute.V1.Snapshots.SnapshotsBase)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.1.0/Google.Cloud.Compute.V1.Snapshots.SnapshotsBase)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.0.0/Google.Cloud.Compute.V1.Snapshots.SnapshotsBase)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/1.4.0/Google.Cloud.Compute.V1.Snapshots.SnapshotsBase)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/1.3.0/Google.Cloud.Compute.V1.Snapshots.SnapshotsBase)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/1.2.0/Google.Cloud.Compute.V1.Snapshots.SnapshotsBase)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/1.1.0/Google.Cloud.Compute.V1.Snapshots.SnapshotsBase)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/1.0.0/Google.Cloud.Compute.V1.Snapshots.SnapshotsBase) \n\n [BindServiceMethod(typeof(Snapshots), \"BindService\")]\n public abstract class Snapshots.SnapshotsBase\n\nReference documentation and code samples for the Compute Engine v1 API class Snapshots.SnapshotsBase.\n\nBase class for server-side implementations of Snapshots \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Snapshots.SnapshotsBase \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Compute.V1](/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Compute.V1.dll\n\nMethods\n-------\n\n### Delete(DeleteSnapshotRequest, ServerCallContext)\n\n public virtual Task\u003cOperation\u003e Delete(DeleteSnapshotRequest request, ServerCallContext context)\n\nDeletes the specified Snapshot resource. Keep in mind that deleting a single snapshot might not necessarily delete all the data on that snapshot. If any data on the snapshot that is marked for deletion is needed for subsequent snapshots, the data will be moved to the next corresponding snapshot. For more information, see Deleting snapshots.\n\n### Get(GetSnapshotRequest, ServerCallContext)\n\n public virtual Task\u003cSnapshot\u003e Get(GetSnapshotRequest request, ServerCallContext context)\n\nReturns the specified Snapshot resource.\n\n### GetIamPolicy(GetIamPolicySnapshotRequest, ServerCallContext)\n\n public virtual Task\u003cPolicy\u003e GetIamPolicy(GetIamPolicySnapshotRequest request, ServerCallContext context)\n\nGets the access control policy for a resource. May be empty if no such policy or resource exists.\n\n### Insert(InsertSnapshotRequest, ServerCallContext)\n\n public virtual Task\u003cOperation\u003e Insert(InsertSnapshotRequest request, ServerCallContext context)\n\nCreates a snapshot in the specified project using the data included in the request. For regular snapshot creation, consider using this method instead of disks.createSnapshot, as this method supports more features, such as creating snapshots in a project different from the source disk project.\n\n### List(ListSnapshotsRequest, ServerCallContext)\n\n public virtual Task\u003cSnapshotList\u003e List(ListSnapshotsRequest request, ServerCallContext context)\n\nRetrieves the list of Snapshot resources contained within the specified project.\n\n### SetIamPolicy(SetIamPolicySnapshotRequest, ServerCallContext)\n\n public virtual Task\u003cPolicy\u003e SetIamPolicy(SetIamPolicySnapshotRequest request, ServerCallContext context)\n\nSets the access control policy on the specified resource. Replaces any existing policy.\n\n### SetLabels(SetLabelsSnapshotRequest, ServerCallContext)\n\n public virtual Task\u003cOperation\u003e SetLabels(SetLabelsSnapshotRequest request, ServerCallContext context)\n\nSets the labels on a snapshot. To learn more about labels, read the Labeling Resources documentation.\n\n### TestIamPermissions(TestIamPermissionsSnapshotRequest, ServerCallContext)\n\n public virtual Task\u003cTestPermissionsResponse\u003e TestIamPermissions(TestIamPermissionsSnapshotRequest request, ServerCallContext context)\n\nReturns permissions that a caller has on the specified resource."]]