Method: operations.get
Pobiera najnowszy stan długo trwającej operacji. Klienci mogą używać tej metody do sondowania wyniku operacji w odstępach czasowych zgodnie z zaleceniami usługi API.
Żądanie HTTP
GET https://androiddeviceprovisioning.googleapis.com/v1/{name=operations/**}
Adres URL używa składni transkodowania gRPC.
Parametry ścieżki
Parametry |
name |
string
Nazwa zasobu operacji.
|
Treść żądania
Treść żądania musi być pusta.
Treść odpowiedzi
W przypadku powodzenia treść odpowiedzi obejmuje wystąpienie elementu Operation
.
Zakresy autoryzacji
Wymaga następującego zakresu OAuth:
https://www.googleapis.com/auth/androidworkprovisioning
Więcej informacji znajdziesz w artykule Omówienie protokołu OAuth 2.0.
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-08-07 UTC.
[null,null,["Ostatnia aktualizacja: 2024-08-07 UTC."],[[["This page documents how to get the latest state of a long-running operation using the API."],["The HTTP request is a GET method to a specified URL, following gRPC Transcoding syntax, and requiring the resource's name."],["The request body for this operation must be empty, so no information is required to send."],["A successful response contains an `Operation` instance detailing the current state of the operation."],["The required OAuth scope for this operation is `https://www.googleapis.com/auth/androidworkprovisioning`."]]],["This describes retrieving the latest status of a long-running operation. A `GET` request is sent to a specified URL using gRPC Transcoding syntax. The `name` of the operation is provided as a path parameter in the URL. The request body is empty. A successful response returns an `Operation` instance. Authorization requires the `https://www.googleapis.com/auth/androidworkprovisioning` OAuth scope. Clients are advised to poll for results using this API method at intervals.\n"]]