Android Device Provisioning Partner API
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
借助该 API,移动设备客户和 EMM 能够以程序化方式管理零触摸注册。
服务:androiddeviceProvisioning.googleapis.com
如要调用此服务,我们建议您使用 Google 提供的客户端库。如果您的应用需要使用您自己的库来调用此服务,则在发出 API 请求时应使用以下信息。
发现文档
发现文档是用于说明和使用 REST API 的机器可读规范。它用于构建客户端库、IDE 插件以及与 Google API 交互的其他工具。一项服务可能会提供多个发现文档。此服务提供了以下发现文档:
服务端点
服务端点是指定 API 服务的网络地址的基本网址。一项服务可能有多个服务端点。此服务具有以下服务端点,下面的所有 URI 都与此服务端点相关:
https://androiddeviceprovisioning.googleapis.com
方法 |
list |
GET /v1/customers ( )
列出用户的客户账号。 |
方法 |
create |
POST /v1/{parent=customers/*}/configurations ( )
创建新配置。 |
delete |
DELETE /v1/{name=customers/*/configurations/*} ( )
删除未使用的配置。 |
get |
GET /v1/{name=customers/*/configurations/*} ( )
获取配置的详细信息。 |
list |
GET /v1/{parent=customers/*}/configurations ( )
列出客户的配置。 |
patch |
PATCH /v1/{configuration.name=customers/*/configurations/*} ( )
更新配置的字段值。 |
方法 |
applyConfiguration |
POST /v1/{parent=customers/*}/devices:applyConfiguration ( )
对设备应用配置,以便为设备注册零触摸注册。 |
get |
GET /v1/{name=customers/*/devices/*} ( )
获取设备的详细信息。 |
list |
GET /v1/{parent=customers/*}/devices ( )
列出客户的设备。 |
removeConfiguration |
POST /v1/{parent=customers/*}/devices:removeConfiguration ( )
从设备中移除配置。 |
unclaim |
POST /v1/{parent=customers/*}/devices:unclaim ( )
取消对客户设备的声明,并将其从零触摸注册中移除。 |
方法 |
list |
GET /v1/{parent=customers/*}/dpcs ( )
列出支持零触摸注册的 DPC(设备政策控制器)。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eThis API enables mobile device customers and EMMs to manage zero-touch enrollment programmatically.\u003c/p\u003e\n"],["\u003cp\u003eThe service utilizes REST resources including \u003ccode\u003ev1.customers\u003c/code\u003e, \u003ccode\u003ev1.customers.configurations\u003c/code\u003e, \u003ccode\u003ev1.customers.devices\u003c/code\u003e, and \u003ccode\u003ev1.customers.dpcs\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe API provides various methods to manage customer accounts, configurations, and devices, including creating, deleting, listing, and updating configurations.\u003c/p\u003e\n"],["\u003cp\u003eDevice management includes applying and removing configurations, getting device details, and unclaiming devices from zero-touch enrollment.\u003c/p\u003e\n"],["\u003cp\u003eThe service endpoint for this API is \u003ccode\u003ehttps://androiddeviceprovisioning.googleapis.com\u003c/code\u003e, and it offers a discovery document for building client libraries.\u003c/p\u003e\n"]]],["The API allows managing zero-touch enrollment for mobile devices. It provides resources for `customers`, `configurations`, `devices`, and `dpcs`. Key actions include: listing customer accounts and DPCs; creating, deleting, getting, listing, and updating configurations; and applying or removing configurations from devices, along with getting device details, listing them and removing them from the zero-touch enrollment process. These resources use `GET`, `POST`, `DELETE` and `PATCH` to manage data.\n"],null,["# Android Device Provisioning Partner API\n\nThe API lets mobile device customers and EMMs programmatically manage zero-touch enrollment.\n\n- [REST Resource: v1.customers](#v1.customers)\n- [REST Resource: v1.customers.configurations](#v1.customers.configurations)\n- [REST Resource: v1.customers.devices](#v1.customers.devices)\n- [REST Resource: v1.customers.dpcs](#v1.customers.dpcs)\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.customers](/zero-touch/reference/customer/rest/v1/customers)\n-------------------------------------------------------------------------------\n\n| Methods ||\n|---------------------------------------------------------------|---------------------------------------------------------|\n| [list](/zero-touch/reference/customer/rest/v1/customers/list) | `GET /v1/customers` Lists the user's customer accounts. |\n\nREST Resource: [v1.customers.configurations](/zero-touch/reference/customer/rest/v1/customers.configurations)\n-------------------------------------------------------------------------------------------------------------\n\n| Methods ||\n|----------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------|\n| [create](/zero-touch/reference/customer/rest/v1/customers.configurations/create) | `POST /v1/{parent=customers/*}/configurations` Creates a new configuration. |\n| [delete](/zero-touch/reference/customer/rest/v1/customers.configurations/delete) | `DELETE /v1/{name=customers/*/configurations/*}` Deletes an unused configuration. |\n| [get](/zero-touch/reference/customer/rest/v1/customers.configurations/get) | `GET /v1/{name=customers/*/configurations/*}` Gets the details of a configuration. |\n| [list](/zero-touch/reference/customer/rest/v1/customers.configurations/list) | `GET /v1/{parent=customers/*}/configurations` Lists a customer's configurations. |\n| [patch](/zero-touch/reference/customer/rest/v1/customers.configurations/patch) | `PATCH /v1/{configuration.name=customers/*/configurations/*}` Updates a configuration's field values. |\n\nREST Resource: [v1.customers.devices](/zero-touch/reference/customer/rest/v1/customers.devices)\n-----------------------------------------------------------------------------------------------\n\n| Methods ||\n|-----------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------|\n| [applyConfiguration](/zero-touch/reference/customer/rest/v1/customers.devices/applyConfiguration) | `POST /v1/{parent=customers/*}/devices:applyConfiguration` Applies a Configuration to the device to register the device for zero-touch enrollment. |\n| [get](/zero-touch/reference/customer/rest/v1/customers.devices/get) | `GET /v1/{name=customers/*/devices/*}` Gets the details of a device. |\n| [list](/zero-touch/reference/customer/rest/v1/customers.devices/list) | `GET /v1/{parent=customers/*}/devices` Lists a customer's devices. |\n| [removeConfiguration](/zero-touch/reference/customer/rest/v1/customers.devices/removeConfiguration) | `POST /v1/{parent=customers/*}/devices:removeConfiguration` Removes a configuration from device. |\n| [unclaim](/zero-touch/reference/customer/rest/v1/customers.devices/unclaim) | `POST /v1/{parent=customers/*}/devices:unclaim` Unclaims a device from a customer and removes it from zero-touch enrollment. |\n\nREST Resource: [v1.customers.dpcs](/zero-touch/reference/customer/rest/v1/customers.dpcs)\n-----------------------------------------------------------------------------------------\n\n| Methods ||\n|--------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------|\n| [list](/zero-touch/reference/customer/rest/v1/customers.dpcs/list) | `GET /v1/{parent=customers/*}/dpcs` Lists the DPCs (device policy controllers) that support zero-touch enrollment. |"]]