Pengumuman: Semua project nonkomersial yang terdaftar untuk menggunakan Earth Engine sebelum
15 April 2025 harus
memverifikasi kelayakan nonkomersial untuk mempertahankan akses Earth Engine.
Method: projects.operations.wait
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Menunggu hingga operasi jangka panjang yang ditentukan selesai atau mencapai waktu tunggu maksimum yang ditentukan, yang menampilkan status terbaru. Jika operasi sudah selesai, status terbaru segera ditampilkan. Jika waktu tunggu yang ditentukan lebih besar daripada waktu tunggu HTTP/RPC default, waktu tunggu HTTP/RPC akan digunakan. Jika server tidak mendukung metode ini, google.rpc.Code.UNIMPLEMENTED
akan ditampilkan. Perhatikan bahwa metode ini atas dasar upaya terbaik. Fungsi ini dapat menampilkan status terbaru sebelum waktu tunggu yang ditentukan (termasuk seketika), yang berarti bahkan respons langsung tidak menjamin bahwa operasi selesai.
Permintaan HTTP
POST https://earthengine.googleapis.com/v1alpha/{name=projects/*/operations/**}:wait
URL menggunakan sintaksis gRPC Transcoding.
Parameter jalur
Parameter |
name |
string
Nama resource operasi untuk ditunggu.
|
Isi permintaan
Isi permintaan memuat data dengan struktur berikut:
Representasi JSON |
{
"timeout": string
} |
Kolom |
timeout |
string (Duration format)
Durasi maksimum untuk menunggu sebelum waktu habis. Jika dibiarkan kosong, waktu tunggu akan maksimal sesuai waktu yang diizinkan oleh protokol HTTP/RPC yang mendasarinya. Jika batas waktu RPC juga ditentukan, yang lebih singkat akan digunakan. Durasi dalam detik dengan maksimal sembilan digit pecahan, yang diakhiri dengan 's '. Contoh: "3.5s" .
|
Isi respons
Jika berhasil, isi respons memuat instance Operation
.
Cakupan otorisasi
Memerlukan salah satu cakupan OAuth berikut:
https://www.googleapis.com/auth/earthengine
https://www.googleapis.com/auth/cloud-platform
Untuk mengetahui informasi selengkapnya, lihat OAuth 2.0 Overview.
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-25 UTC.
[null,null,["Terakhir diperbarui pada 2025-07-25 UTC."],[[["\u003cp\u003eWaits for a specified operation to complete or until a timeout is reached, returning the operation's latest state.\u003c/p\u003e\n"],["\u003cp\u003eUses the HTTP/RPC timeout or the specified timeout, whichever is shorter.\u003c/p\u003e\n"],["\u003cp\u003eMay return the latest state before the timeout, so an immediate response doesn't guarantee completion.\u003c/p\u003e\n"],["\u003cp\u003eRequires specific OAuth scopes for authorization, like \u003ccode\u003ehttps://www.googleapis.com/auth/earthengine\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIf the server doesn't support this method, it returns \u003ccode\u003egoogle.rpc.Code.UNIMPLEMENTED\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Method: projects.operations.wait\n\nWaits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.\n\n### HTTP request\n\n`POST https://earthengine.googleapis.com/v1alpha/{name=projects/*/operations/**}:wait`\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 to wait on. |\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|-------------------------------|\n| ``` { \"timeout\": string } ``` |\n\n| Fields ||\n|-----------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `timeout` | `string (`[Duration](https://protobuf.dev/reference/protobuf/google.protobuf/#duration)` format)` The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used. A duration in seconds with up to nine fractional digits, ending with '`s`'. Example: `\"3.5s\"`. |\n\n### Response body\n\nIf successful, the response body contains an instance of [Operation](/earth-engine/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/earthengine`\n- `\n https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [OAuth 2.0 Overview](/identity/protocols/OAuth2)."]]