Method: partners.devices.unclaimAsync
Asynchronicznie usuwa rezerwację grupy urządzeń dla klienta. Usuwa urządzenia z rejestracji typu zero-touch. Więcej informacji znajdziesz w artykule Długo trwające operacje wsadowe.
Żądanie HTTP
POST https://androiddeviceprovisioning.googleapis.com/v1/partners/{partnerId}/devices:unclaimAsync
Adres URL używa składni transkodowania gRPC.
Parametry ścieżki
Parametry |
partnerId |
string (int64 format)
Wymagane. Identyfikator partnera sprzedawcy.
|
Treść żądania
Treść żądania zawiera dane o następującej strukturze:
Pola |
unclaims[] |
object (PartnerUnclaim )
Wymagane. Lista urządzeń, których rezerwację chcesz anulować.
|
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.
PartnerUnclaim
Rozpoznaje 1 żądanie nieroszczenia.
Zapis JSON |
{
"sectionType": enum (DeviceProvisioningSectionType ),
// Union field device can be only one of the following:
"deviceIdentifier": {
object (DeviceIdentifier )
},
"deviceId": string
// End of list of possible types for union field device .
} |
Pola |
sectionType |
enum (DeviceProvisioningSectionType )
Wymagane. Typ sekcji rekordu obsługi administracyjnej urządzenia.
|
Pole sumy device . Urządzenie, które chcesz usunąć. device może mieć tylko jedną z tych wartości: |
deviceIdentifier |
object (DeviceIdentifier )
Wymagane. Identyfikator urządzenia.
|
deviceId |
string (int64 format)
Wymagane. Identyfikator urządzenia.
|
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-29 UTC.
[null,null,["Ostatnia aktualizacja: 2024-08-29 UTC."],[[["This endpoint facilitates the asynchronous unclaiming of a batch of devices for a customer, effectively removing them from zero-touch enrollment."],["The HTTP request to unclaim devices is a `POST` request to `https://androiddeviceprovisioning.googleapis.com/v1/partners/{partnerId}/devices:unclaimAsync`, utilizing gRPC Transcoding syntax."],["The request requires a `partnerId` path parameter, representing the reseller partner ID, and the request body contains a list of `unclaims`, each specifying a device to be unclaimed."],["The `PartnerUnclaim` object uses a union field `device` that accepts either a `deviceIdentifier` or a `deviceId` to specify which device should be unclaimed, along with the `sectionType` of the device."],["The endpoint requires the `https://www.googleapis.com/auth/androidworkprovisioning` OAuth scope and returns an instance of `Operation` upon successful completion."]]],["This describes how to unclaim devices from zero-touch enrollment asynchronously via a `POST` request to `https://androiddeviceprovisioning.googleapis.com/v1/partners/{partnerId}/devices:unclaimAsync`. The request requires a `partnerId` path parameter and a JSON body containing an array of `unclaims`. Each unclaim specifies a device by either `deviceIdentifier` or `deviceId`, and its `sectionType`. Successful requests return an `Operation`. Authorization needs the `https://www.googleapis.com/auth/androidworkprovisioning` OAuth scope.\n"]]