Method: partners.devices.unclaim
Powoduje usunięcie rezerwacji urządzenia z konta klienta i usunięcie go z rejestracji typu zero-touch.
Żądanie HTTP
POST https://androiddeviceprovisioning.googleapis.com/v1/partners/{partnerId}/devices:unclaim
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:
Zapis JSON |
{
"sectionType": enum (DeviceProvisioningSectionType ),
// Union field device_to_unclaim can be only one of the following:
"deviceId": string,
"deviceIdentifier": {
object (DeviceIdentifier )
}
// End of list of possible types for union field device_to_unclaim .
} |
Pola |
sectionType |
enum (DeviceProvisioningSectionType )
Wymagane. Typ sekcji rekordu obsługi administracyjnej urządzenia.
|
Pole sumy device_to_unclaim . Wymagane. Urządzenie, które chcesz usunąć. device_to_unclaim może mieć tylko jedną z tych wartości: |
deviceId |
string (int64 format)
Wymagane. Identyfikator urządzenia zwrócony przez aplikację devices.claim .
|
deviceIdentifier |
object (DeviceIdentifier )
Wymagane. Identyfikator urządzenia użyty do zgłoszenia własności tego urządzenia.
|
Treść odpowiedzi
Jeśli operacja się uda, treść odpowiedzi będzie pusta.
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-29 UTC.
[null,null,["Ostatnia aktualizacja: 2024-08-29 UTC."],[[["This API endpoint allows partners to unclaim a device from a customer, removing it from zero-touch enrollment using a POST request."],["The request requires a `partnerId` path parameter, which is the unique identifier for the reseller partner, and it must be specified in the URL."],["The request body must specify either the `deviceId` or a `deviceIdentifier` along with a `sectionType` to identify the device being unclaimed."],["Successful requests will result in an empty response body, indicating the device has been unclaimed."],["The API call needs the `https://www.googleapis.com/auth/androidworkprovisioning` OAuth scope for authorization."]]],["This document details the process to unclaim a device from a customer, removing it from zero-touch enrollment. It uses a `POST` HTTP request to the endpoint: `https://androiddeviceprovisioning.googleapis.com/v1/partners/{partnerId}/devices:unclaim`, requires the `partnerId` path parameter and the `https://www.googleapis.com/auth/androidworkprovisioning` OAuth scope. The request body requires a `sectionType`, along with either a `deviceId` or a `deviceIdentifier` to specify the device to unclaim. A successful request returns an empty response body.\n"]]