Method: operations.getOperation
Stay organized with collections
Save and categorize content based on your preferences.
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://optimization.googleapis.com/v1/{name=projects/*/operations/*}
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
name |
string
The name of the operation resource.
|
Request body
The request body must be empty.
Response body
If successful, the response body contains an instance of Operation
.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-11-15 UTC.
[null,null,["Last updated 2024-11-15 UTC."],[[["\u003cp\u003eRetrieve the current status of a long-running operation using this method.\u003c/p\u003e\n"],["\u003cp\u003eClients can periodically check the operation's result using this API, at intervals suggested by the service.\u003c/p\u003e\n"],["\u003cp\u003eThe request body should remain empty for this operation.\u003c/p\u003e\n"],["\u003cp\u003eA successful response will include an Operation object detailing the operation's status.\u003c/p\u003e\n"]]],["The core content describes how to retrieve the latest state of a long-running operation using a GET request. The specific endpoint is `https://optimization.googleapis.com/v1/{name=projects/*/operations/*}`, employing gRPC Transcoding syntax. The `name` path parameter, a string, designates the operation resource. The request requires an empty body, and a successful response contains an instance of an `Operation`, detailed in the associated documentation. Users can actively test these parameters with the \"Try it!\" option.\n"],null,["# Method: operations.getOperation\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- [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://optimization.googleapis.com/v1/{name=projects/*/operations/*}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|--------|----------------------------------------------|\n| `name` | `string` The name of the operation resource. |\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](/optimization/service/reference/rest/v1/operations#Operation)."]]