Method: customers.devices.applyConfiguration

将配置应用于设备,以注册设备以进行零触摸注册。将配置应用于某个设备后,该设备便会在首次启动或下次恢复出厂设置时自动进行配置。

HTTP 请求

POST https://androiddeviceprovisioning.googleapis.com/v1/{parent=customers/*}/devices:applyConfiguration

网址采用 gRPC 转码语法。

路径参数

参数
parent

string

必需。管理设备的客户。采用 customers/[CUSTOMER_ID] 格式的 API 资源名称。

请求正文

请求正文中包含结构如下的数据:

JSON 表示法
{
  "device": {
    object (DeviceReference)
  },
  "configuration": string
}
字段
device

object (DeviceReference)

必需。应用配置的设备。

configuration

string

必需。以 customers/[CUSTOMER_ID]/configurations/[CONFIGURATION_ID] 格式应用于设备的配置。

响应正文

如果成功,则响应正文为空。

授权范围

需要以下 OAuth 作用域:

  • https://www.googleapis.com/auth/androidworkzerotouchemm

有关详情,请参阅 OAuth 2.0 概览