Required. The resource name of the instance, in the format projects/{projectId}/locations/{locationId}/instances/{instanceId}.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-17 UTC."],[[["\u003cp\u003eThis webpage details how to revert a file system instance to a specific snapshot using a \u003ccode\u003ePOST\u003c/code\u003e HTTP request to the provided URL.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ename\u003c/code\u003e path parameter is required, specifying the instance's resource name in the format \u003ccode\u003eprojects/{projectId}/locations/{locationId}/instances/{instanceId}\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must include the \u003ccode\u003etargetSnapshotId\u003c/code\u003e, representing the ID of the target snapshot, in the format of a resource ID.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires the OAuth scope \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e for authorization.\u003c/p\u003e\n"],["\u003cp\u003eA successful operation will return an \u003ccode\u003eOperation\u003c/code\u003e instance in the response body.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.instances.revert\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nRevert an existing instance's file system to a specified snapshot.\n\n### HTTP request\n\n`POST https://file.googleapis.com/v1/{name=projects/*/locations/*/instances/*}:revert`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Request body\n\nThe request body contains data with the following structure:\n\n### Response body\n\nIf successful, the response body contains an instance of [Operation](/filestore/docs/reference/rest/Shared.Types/ListOperationsResponse#Operation).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp)."]]