Android Device Provisioning Partner API
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
API นี้ช่วยให้ตัวแทนจำหน่ายอุปกรณ์จัดการการตั้งค่าอุปกรณ์พร้อมใช้แบบรวมกลุ่มแบบเป็นโปรแกรมได้
บริการ: androiddeviceserving.googleapis.com
หากต้องการเรียกใช้บริการนี้ เราขอแนะนำให้คุณใช้ไลบรารีของไคลเอ็นต์ที่ Google จัดเตรียมไว้ให้ หากแอปพลิเคชันของคุณต้องใช้ไลบรารีของคุณเองเพื่อเรียกใช้บริการนี้ ให้ใช้ข้อมูลต่อไปนี้เมื่อคุณส่งคำขอ API
เอกสารการค้นพบ
เอกสารการค้นพบเป็นข้อกำหนดที่เครื่องอ่านได้สำหรับการอธิบายและใช้ REST API โดยใช้เพื่อสร้างไลบรารีของไคลเอ็นต์, ปลั๊กอิน IDE และเครื่องมืออื่นๆ ที่โต้ตอบกับ Google APIs บริการเดียวอาจมีเอกสารการค้นพบได้หลายรายการ บริการนี้มีเอกสารการค้นพบต่อไปนี้
ปลายทางบริการ
ปลายทางบริการคือ URL ฐานที่ระบุที่อยู่เครือข่ายของบริการ API บริการหนึ่งอาจมีปลายทางบริการหลายปลายทาง บริการนี้มีปลายทางบริการต่อไปนี้และ URI ทั้งหมดด้านล่างเกี่ยวข้องกับปลายทางของบริการนี้
https://androiddeviceprovisioning.googleapis.com
เมธอด |
get |
GET /v1/{name=operations/**}
รับสถานะล่าสุดของการดำเนินการที่ใช้เวลานาน |
เมธอด |
create |
POST /v1/{parent=partners/*}/customers
สร้างลูกค้าสำหรับการตั้งค่าอุปกรณ์พร้อมใช้แบบรวมกลุ่ม |
list |
GET /v1/partners/{partnerId}/customers
แสดงรายการลูกค้าที่ลงทะเบียนกับตัวแทนจำหน่ายที่ระบุโดยอาร์กิวเมนต์ partnerId |
เมธอด |
claim |
POST /v1/partners/{partnerId}/devices:claim
อ้างสิทธิ์อุปกรณ์ให้กับลูกค้าและเพิ่มลงในการตั้งค่าอุปกรณ์พร้อมใช้แบบรวมกลุ่ม |
claimAsync |
POST /v1/partners/{partnerId}/devices:claimAsync
อ้างสิทธิ์อุปกรณ์ชุดหนึ่งให้ลูกค้าไม่พร้อมกัน |
findByIdentifier |
POST /v1/partners/{partnerId}/devices:findByIdentifier
ค้นหาอุปกรณ์ตามตัวระบุฮาร์ดแวร์ เช่น IMEI |
findByOwner |
POST /v1/partners/{partnerId}/devices:findByOwner
ค้นหาอุปกรณ์ที่ลูกค้าอ้างสิทธิ์แล้ว |
get |
GET /v1/{name=partners/*/devices/*}
ได้รับอุปกรณ์ |
metadata |
POST /v1/partners/{metadataOwnerId}/devices/{deviceId}/metadata
อัปเดตข้อมูลเมตาของตัวแทนจำหน่ายที่เชื่อมโยงกับอุปกรณ์ |
unclaim |
POST /v1/partners/{partnerId}/devices:unclaim
ถอนการอ้างสิทธิ์อุปกรณ์จากลูกค้าและนำออกจากการตั้งค่าอุปกรณ์พร้อมใช้แบบรวมกลุ่ม |
unclaimAsync |
POST /v1/partners/{partnerId}/devices:unclaimAsync
ถอนการอ้างสิทธิ์อุปกรณ์จำนวนหนึ่งให้ลูกค้าแบบไม่พร้อมกัน |
updateMetadataAsync |
POST /v1/partners/{partnerId}/devices:updateMetadataAsync
อัปเดตข้อมูลเมตาของตัวแทนจำหน่ายที่แนบไปกับกลุ่มอุปกรณ์ |
เมธอด |
list |
GET /v1/{parent=partners/*}/vendors
แสดงผู้ให้บริการของพาร์ทเนอร์ |
เมธอด |
list |
GET /v1/{parent=partners/*/vendors/*}/customers
แสดงลูกค้าของผู้ให้บริการ |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-25 UTC
[null,null,["อัปเดตล่าสุด 2025-07-25 UTC"],[[["\u003cp\u003eThis API empowers device resellers to manage zero-touch enrollment programmatically.\u003c/p\u003e\n"],["\u003cp\u003eThe API's resources include operations, partners' customers, partners' devices, partners' vendors, and partners' vendors' customers, enabling management of various aspects of the enrollment process.\u003c/p\u003e\n"],["\u003cp\u003eThe API service endpoint is \u003ccode\u003ehttps://androiddeviceprovisioning.googleapis.com\u003c/code\u003e, and all resource URIs are relative to this address.\u003c/p\u003e\n"],["\u003cp\u003eThe API supports multiple methods like creating, listing, claiming, unclaiming, and finding devices or customers, all tailored for managing zero-touch enrollment.\u003c/p\u003e\n"],["\u003cp\u003eThis API offers a machine-readable specification for describing REST APIs, for building client libraries and other tools using the provided discovery document.\u003c/p\u003e\n"]]],["This API allows resellers to manage zero-touch enrollment for devices. Key actions include creating and listing customers, claiming and unclaimed devices, and finding devices by identifiers or owner. Resellers can also update device metadata. The API provides asynchronous options for batch device operations. It also allows listing a partner's vendors and a vendor's customers. Operations are available to get the latest state of long-running tasks. The service has a discovery document and a service endpoint.\n"],null,["# Android Device Provisioning Partner API\n\nThis API lets device resellers programmatically manage zero-touch enrollment.\n\n- [REST Resource: v1.operations](#v1.operations)\n- [REST Resource: v1.partners.customers](#v1.partners.customers)\n- [REST Resource: v1.partners.devices](#v1.partners.devices)\n- [REST Resource: v1.partners.vendors](#v1.partners.vendors)\n- [REST Resource: v1.partners.vendors.customers](#v1.partners.vendors.customers)\n\nService: androiddeviceprovisioning.googleapis.com\n-------------------------------------------------\n\nTo call this service, we recommend that you use the Google-provided [client libraries](https://cloud.google.com/apis/docs/client-libraries-explained). If your application needs to use your own libraries to call this service, use the following information when you make the API requests.\n\n### Discovery document\n\nA [Discovery Document](https://developers.google.com/discovery/v1/reference/apis) is a machine-readable specification for describing and consuming REST APIs. It is used to build client libraries, IDE plugins, and other tools that interact with Google APIs. One service may provide multiple discovery documents. This service provides the following discovery document:\n\n- \u003chttps://androiddeviceprovisioning.googleapis.com/$discovery/rest?version=v1\u003e\n\n### Service endpoint\n\nA [service endpoint](https://cloud.google.com/apis/design/glossary#api_service_endpoint) is a base URL that specifies the network address of an API service. One service might have multiple service endpoints. This service has the following service endpoint and all URIs below are relative to this service endpoint:\n\n- `https://androiddeviceprovisioning.googleapis.com`\n\nREST Resource: [v1.operations](/zero-touch/reference/reseller/rest/v1/operations)\n---------------------------------------------------------------------------------\n\n| Methods ||\n|--------------------------------------------------------------|-----------------------------------------------------------------------------------|\n| [get](/zero-touch/reference/reseller/rest/v1/operations/get) | `GET /v1/{name=operations/**}` Gets the latest state of a long-running operation. |\n\nREST Resource: [v1.partners.customers](/zero-touch/reference/reseller/rest/v1/partners.customers)\n-------------------------------------------------------------------------------------------------\n\n| Methods ||\n|----------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------|\n| [create](/zero-touch/reference/reseller/rest/v1/partners.customers/create) | `POST /v1/{parent=partners/*}/customers` Creates a customer for zero-touch enrollment. |\n| [list](/zero-touch/reference/reseller/rest/v1/partners.customers/list) | `GET /v1/partners/{partnerId}/customers` Lists the customers that are enrolled to the reseller identified by the `partnerId` argument. |\n\nREST Resource: [v1.partners.devices](/zero-touch/reference/reseller/rest/v1/partners.devices)\n---------------------------------------------------------------------------------------------\n\n| Methods ||\n|----------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------|\n| [claim](/zero-touch/reference/reseller/rest/v1/partners.devices/claim) | `POST /v1/partners/{partnerId}/devices:claim` Claims a device for a customer and adds it to zero-touch enrollment. |\n| [claimAsync](/zero-touch/reference/reseller/rest/v1/partners.devices/claimAsync) | `POST /v1/partners/{partnerId}/devices:claimAsync` Claims a batch of devices for a customer asynchronously. |\n| [findByIdentifier](/zero-touch/reference/reseller/rest/v1/partners.devices/findByIdentifier) | `POST /v1/partners/{partnerId}/devices:findByIdentifier` Finds devices by hardware identifiers, such as IMEI. |\n| [findByOwner](/zero-touch/reference/reseller/rest/v1/partners.devices/findByOwner) | `POST /v1/partners/{partnerId}/devices:findByOwner` Finds devices claimed for customers. |\n| [get](/zero-touch/reference/reseller/rest/v1/partners.devices/get) | `GET /v1/{name=partners/*/devices/*}` Gets a device. |\n| [metadata](/zero-touch/reference/reseller/rest/v1/partners.devices/metadata) | `POST /v1/partners/{metadataOwnerId}/devices/{deviceId}/metadata` Updates reseller metadata associated with the device. |\n| [unclaim](/zero-touch/reference/reseller/rest/v1/partners.devices/unclaim) | `POST /v1/partners/{partnerId}/devices:unclaim` Unclaims a device from a customer and removes it from zero-touch enrollment. |\n| [unclaimAsync](/zero-touch/reference/reseller/rest/v1/partners.devices/unclaimAsync) | `POST /v1/partners/{partnerId}/devices:unclaimAsync` Unclaims a batch of devices for a customer asynchronously. |\n| [updateMetadataAsync](/zero-touch/reference/reseller/rest/v1/partners.devices/updateMetadataAsync) | `POST /v1/partners/{partnerId}/devices:updateMetadataAsync` Updates the reseller metadata attached to a batch of devices. |\n\nREST Resource: [v1.partners.vendors](/zero-touch/reference/reseller/rest/v1/partners.vendors)\n---------------------------------------------------------------------------------------------\n\n| Methods ||\n|----------------------------------------------------------------------|-------------------------------------------------------------------------|\n| [list](/zero-touch/reference/reseller/rest/v1/partners.vendors/list) | `GET /v1/{parent=partners/*}/vendors` Lists the vendors of the partner. |\n\nREST Resource: [v1.partners.vendors.customers](/zero-touch/reference/reseller/rest/v1/partners.vendors.customers)\n-----------------------------------------------------------------------------------------------------------------\n\n| Methods ||\n|--------------------------------------------------------------------------------|--------------------------------------------------------------------------------------|\n| [list](/zero-touch/reference/reseller/rest/v1/partners.vendors.customers/list) | `GET /v1/{parent=partners/*/vendors/*}/customers` Lists the customers of the vendor. |"]]