Android Device Provisioning Partner API
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Esta API permite que los revendedores de dispositivos administren de forma programática la inscripción automática.
Servicio: androiddeviceappliance.googleapis.com
Para llamar a este servicio, te recomendamos que uses las bibliotecas cliente que proporciona Google. Si tu aplicación necesita usar tus propias bibliotecas para llamar a este servicio, usa la información siguiente cuando realices las solicitudes a la API.
Documento de descubrimiento
Un Documento de descubrimiento es una especificación procesable para describir y consumir las API de REST. Se usa para compilar bibliotecas cliente, complementos IDE y otras herramientas que interactúan con las API de Google. Un servicio puede proporcionar varios documentos de descubrimiento. Este servicio proporciona el documento de descubrimiento siguiente:
Extremo de servicio
Un extremo de servicio es una URL base que especifica la dirección de la red de un servicio de API. Un servicio puede tener varios extremos de servicio. Este servicio tiene el siguiente extremo, y todos los URI que se muestran a continuación son relativos a él:
https://androiddeviceprovisioning.googleapis.com
Métodos |
get |
GET /v1/{name=operations/**} Obtiene el último estado de una operación de larga duración. |
Métodos |
create |
POST /v1/{parent=partners/*}/customers
Crea un cliente para la inscripción automática. |
list |
GET /v1/partners/{partnerId}/customers
Enumera los clientes que están inscritos en el revendedor identificado con el argumento partnerId . |
Métodos |
claim |
POST /v1/partners/{partnerId}/devices:claim
Reclama un dispositivo para un cliente y lo agrega a la inscripción automática. |
claimAsync |
POST /v1/partners/{partnerId}/devices:claimAsync
Reclama un lote de dispositivos para un cliente de forma asíncrona. |
findByIdentifier |
POST /v1/partners/{partnerId}/devices:findByIdentifier
Busca dispositivos según identificadores de hardware, como IMEI. |
findByOwner |
POST /v1/partners/{partnerId}/devices:findByOwner
Encuentra dispositivos reclamados para clientes. |
get |
GET /v1/{name=partners/*/devices/*}
Obtiene un dispositivo. |
metadata |
POST /v1/partners/{metadataOwnerId}/devices/{deviceId}/metadata
Actualiza los metadatos del revendedor asociados con el dispositivo. |
unclaim |
POST /v1/partners/{partnerId}/devices:unclaim
Anula el reclamo de un dispositivo a un cliente y lo quita de la inscripción automática. |
unclaimAsync |
POST /v1/partners/{partnerId}/devices:unclaimAsync
Revoca un lote de dispositivos para un cliente de forma asíncrona. |
updateMetadataAsync |
POST /v1/partners/{partnerId}/devices:updateMetadataAsync
Actualiza los metadatos del revendedor adjuntos a un lote de dispositivos. |
Métodos |
list |
GET /v1/{parent=partners/*}/vendors
Enumera los proveedores del socio. |
Métodos |
list |
GET /v1/{parent=partners/*/vendors/*}/customers
Enumere los clientes del proveedor. |
Salvo que se indique lo contrario, el contenido de esta página está sujeto a la licencia Atribución 4.0 de Creative Commons, y los ejemplos de código están sujetos a la licencia Apache 2.0. Para obtener más información, consulta las políticas del sitio de Google Developers. Java es una marca registrada de Oracle o sus afiliados.
Última actualización: 2025-07-25 (UTC)
[null,null,["Última actualización: 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. |"]]