Müşteri için bir cihaz için hak talebinde bulunur ve cihazı el değmeden kayıt işlemine ekler. Cihaz zaten başka bir müşteri tarafından talep edilmişse arama bir hata döndürür.
HTTP isteği
POST https://androiddeviceprovisioning.googleapis.com/v1/partners/{partnerId}/devices:claim
İstek gövdesi aşağıdaki yapıya sahip verileri içerir:
JSON gösterimi
{"deviceIdentifier": {object (DeviceIdentifier)},"sectionType": enum (DeviceProvisioningSectionType),"deviceMetadata": {object (DeviceMetadata)},"preProvisioningToken": string,// Union field customer can be only one of the following:"customerId": string,"googleWorkspaceCustomerId": string// End of list of possible types for union field customer.}
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2024-08-29 UTC."],[[["This endpoint claims a device for a customer, adding it to zero-touch enrollment, and returns an error if the device is already claimed by another customer."],["The HTTP request to claim a device is a POST request to `https://androiddeviceprovisioning.googleapis.com/v1/partners/{partnerId}/devices:claim`, requiring the reseller partner's ID in the path parameters."],["The request body must include the `deviceIdentifier`, `sectionType`, and the customer's ID (`customerId` or `googleWorkspaceCustomerId`), along with optional fields such as `deviceMetadata` and `preProvisioningToken` for Chrome OS devices."],["A successful response contains the `deviceId` of the claimed device and its resource name in the format `partners/[PARTNER_ID]/devices/[DEVICE_ID]`."],["This action requires the OAuth scope `https://www.googleapis.com/auth/androidworkprovisioning` for authorization."]]],["This describes claiming a device for a customer via a `POST` request to `https://androiddeviceprovisioning.googleapis.com/v1/partners/{partnerId}/devices:claim`. The request requires a `partnerId` and a body specifying the `deviceIdentifier`, `sectionType`, and the customer using either `customerId` or `googleWorkspaceCustomerId`. Optional fields include `deviceMetadata` and `preProvisioningToken`. A successful response includes the claimed `deviceId` and `deviceName`. The operation requires the `https://www.googleapis.com/auth/androidworkprovisioning` OAuth scope.\n"]]