Method: customers.dpcs.list
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
HTTP 请求
GET https://androiddeviceprovisioning.googleapis.com/v1/{parent=customers/*}/dpcs
网址采用 gRPC 转码语法。
路径参数
参数 |
parent |
string
必需。可以在配置中使用 DPC 的客户。API 资源名称,格式为 customers/[CUSTOMER_ID] 。
|
响应正文
如果成功,响应正文将包含结构如下的数据:
JSON 表示法 |
{
"dpcs": [
{
object (Dpc )
}
]
} |
字段 |
dpcs[] |
object (Dpc )
可供客户使用的、支持零触摸注册的 DPC 列表。
|
授权范围
需要以下 OAuth 范围:
https://www.googleapis.com/auth/androidworkzerotouchemm
如需了解详情,请参阅 OAuth 2.0 概览。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eThis webpage details how to list Device Policy Controllers (DPCs) that support zero-touch enrollment via an HTTP GET request.\u003c/p\u003e\n"],["\u003cp\u003eThe request URL structure requires a \u003ccode\u003eparent\u003c/code\u003e path parameter, representing the customer's ID in the format \u003ccode\u003ecustomers/[CUSTOMER_ID]\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe request body for listing DPCs must be empty, and the response will contain a list of DPCs in JSON format.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful responses return a JSON object, with the \u003ccode\u003edpcs[]\u003c/code\u003e field containing an array of DPC objects.\u003c/p\u003e\n"],["\u003cp\u003eAuthorisation to perform the request requires the \u003ccode\u003ehttps://www.googleapis.com/auth/androidworkzerotouchemm\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],["This document details retrieving a list of Device Policy Controllers (DPCs) supporting zero-touch enrollment. A `GET` request is sent to a specific URL using gRPC Transcoding, including the customer ID as a required `parent` path parameter. The request body must be empty. A successful response contains a JSON object with a `dpcs[]` field, listing available DPCs. The process requires `https://www.googleapis.com/auth/androidworkzerotouchemm` OAuth scope for authorization.\n"],null,["# Method: customers.dpcs.list\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.ListDpcsResponse.SCHEMA_REPRESENTATION)\n- [Authorization Scopes](#body.aspect)\n\nLists the DPCs (device policy controllers) that support zero-touch enrollment.\n\n### HTTP request\n\n`GET https://androiddeviceprovisioning.googleapis.com/v1/{parent=customers/*}/dpcs`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------|----------------------------------------------------------------------------------------------------------------------------------------|\n| `parent` | `string` Required. The customer that can use the DPCs in configurations. An API resource name in the format `customers/[CUSTOMER_ID]`. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains data with the following structure:\nResponse message of customer's listing DPCs.\n\n| JSON representation ||\n|------------------------------------------------------------------------------------------------|---|\n| ``` { \"dpcs\": [ { object (/zero-touch/reference/customer/rest/v1/customers.dpcs#Dpc) } ] } ``` |\n\n| Fields ||\n|----------|--------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `dpcs[]` | `object (`[Dpc](/zero-touch/reference/customer/rest/v1/customers.dpcs#Dpc)`)` The list of DPCs available to the customer that support zero-touch enrollment. |\n\n### Authorization Scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/androidworkzerotouchemm`\n\nFor more information, see the [OAuth 2.0 Overview](https://developers.google.com/identity/protocols/OAuth2)."]]