A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://cloud.google.com/api-keys/docs/polling-operations below:

Polling long-running operations | API Keys API Documentation

Polling long-running operations

Stay organized with collections Save and categorize content based on your preferences.

This page describes how to determine the completion status of asynchronous methods. These methods return a long-running operation that provides information about the progress of the operation and its final status.

The following methods return a long-running operation:

When you make a request to one of these methods, on success, the method returns an operation identifier in the name field, which represents ongoing work on the server, for example:

{
  "name": "operations/akmf.6573437d-47c1-42c4-b817-0562f514f6ff"
}

To check the status of the operation, use the operations.get method with the value from the name field:

  gcurl https://apikeys.googleapis.com/v2/operations/akmf.6573437d-47c1-42c4-b817-0562f514f6ff

To poll an operation, we recommended that you repeatedly invoke the operations.get method with a 10-second backoff until the response includes "done": true:

{
  "name": "operations/akmf.6573437d-47c1-42c4-b817-0562f514f6ff",
  "done": true,
  "response": {
    "@type": "type.googleapis.com/google.api.apikeys.v2.Key",
    "name": "projects/103621867718/locations/global/keys/b7ff1f9f-8275-410a-94dd-3855ee9b5dd2",
    "keyString": "----REDACTED----",
    "createTime": "2019-02-04T23:56:28.531Z",
    "uid": "b7ff1f9f-8275-410a-94dd-3855ee9b5dd2",
    "updateTime": "2019-02-04T23:56:28.531Z",
    "restrictions": {
      "browserKeyRestrictions": {
      }
    },
    "etag": "k0bsYGkIvSxDVwNxyw49NQ=="
  }
}

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 2025-08-07 UTC.

[[["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-08-07 UTC."],[[["Asynchronous methods, such as `CreateKey`, `UpdateKey`, `DeleteKey`, and `UndeleteKey`, return a long-running operation."],["Upon successful request, these methods provide an operation identifier in the `name` field, indicating ongoing server-side work."],["The `operations.get` method, using the operation identifier from the `name` field, allows you to check the status of the operation."],["It's recommended to repeatedly use the `operations.get` method with a 10-second backoff until the response shows `\"done\": true`, indicating completion."]]],[]]


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4