Membuat resource Penunggu. Operasi ini menampilkan resource Operasi yang berjalan lama yang dapat di-polling untuk diselesaikan. Namun, waiter dengan nama yang diberikan akan ada (dan dapat diambil) sebelum operasi selesai. Jika operasi gagal, resource Waiter yang gagal akan tetap ada dan harus dihapus sebelum upaya pembuatan berikutnya.
Permintaan HTTP
POST https://runtimeconfig.googleapis.com/v1beta1/{parent=projects/*/configs/*}/waiters
Jalur ke konfigurasi yang akan memiliki pelayan. Konfigurasi harus ada sebelumnya; jalurnya harus dalam format:
projects/[PROJECT_ID]/configs/[CONFIG_NAME].
Otorisasi memerlukan izin Google IAM berikut di resource parent yang ditentukan:
runtimeconfig.waiters.create
Parameter kueri
Parameter
requestId
string
requestId unik yang bersifat opsional, tetapi direkomendasikan. Jika server menerima dua permintaan create() dengan requestId yang sama, permintaan kedua akan diabaikan dan resource pertama yang dibuat dan disimpan di backend akan ditampilkan. Kolom requestId kosong akan diabaikan.
Klien bertanggung jawab untuk memastikan keunikan string requestId.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-03-04 UTC."],[[["\u003cp\u003eThis webpage details how to create a Waiter resource using a POST request to a specified URL.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires a \u003ccode\u003eparent\u003c/code\u003e path parameter indicating the configuration that will own the waiter, and an optional but recommended \u003ccode\u003erequestId\u003c/code\u003e query parameter for request uniqueness.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must contain an instance of a \u003ccode\u003eWaiter\u003c/code\u003e resource, while a successful response will include a newly created instance of an \u003ccode\u003eOperation\u003c/code\u003e resource.\u003c/p\u003e\n"],["\u003cp\u003eCreating a Waiter requires the \u003ccode\u003eruntimeconfig.waiters.create\u003c/code\u003e Google IAM permission and one of the specified OAuth scopes.\u003c/p\u003e\n"]]],[],null,["# Method: projects.configs.waiters.create\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization Scopes](#body.aspect)\n- [Try it!](#try-it)\n\nCreates a Waiter resource. This operation returns a long-running Operation resource which can be polled for completion. However, a waiter with the given name will exist (and can be retrieved) prior to the operation completing. If the operation fails, the failed Waiter resource will still exist and must be deleted prior to subsequent creation attempts.\n\n### HTTP request\n\n`POST https://runtimeconfig.googleapis.com/v1beta1/{parent=projects/*/configs/*}/waiters`\n\nThe URL uses [gRPC Transcoding](https://github.com/googleapis/googleapis/blob/master/google/api/http.proto) syntax.\n\n### Path parameters\n\n### Query parameters\n\n### Request body\n\nThe request body contains an instance of [Waiter](/deployment-manager/runtime-configurator/reference/rest/v1beta1/projects.configs.waiters#Waiter).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [Operation](/deployment-manager/runtime-configurator/reference/rest/Shared.Types/Operation).\n\n### Authorization Scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n- `https://www.googleapis.com/auth/cloudruntimeconfig`\n\nFor more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/).\n\nTry it!\n-------"]]