Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
HTTP request
GET https://cloudfunctions.googleapis.com/v2/{name}
Path parameters
Parameters
name
string
The name of the operation resource. It takes the form projects/{project}/locations/{location}/operations/{operation}.
Request body
The request body must be empty.
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-16 UTC."],[[["\u003cp\u003eThis webpage outlines how to retrieve the latest state of a long-running operation using the \u003ccode\u003eGET\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ename\u003c/code\u003e path parameter, formatted as \u003ccode\u003eprojects/{project}/locations/{location}/operations/{operation}\u003c/code\u003e, is required to specify the operation resource.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request body must be empty when requesting this information.\u003c/p\u003e\n"],["\u003cp\u003eA successful request returns an instance of the \u003ccode\u003eOperation\u003c/code\u003e within the response body.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization requires one of two OAuth scopes: \u003ccode\u003ehttps://www.googleapis.com/auth/cloudfunctions\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.operations.get\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nGets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.\n\n### HTTP request\n\n`GET https://cloudfunctions.googleapis.com/v2/{name}`\n\n### Path parameters\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains an instance of [Operation](/functions/docs/reference/rest/Shared.Types/ListOperationsResponse#Operation).\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/cloudfunctions`\n- `\n https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp)."]]