Method: customers.dpcs.list
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
แสดงรายการ DPC (เครื่องมือควบคุมนโยบายด้านอุปกรณ์) ที่รองรับการตั้งค่าอุปกรณ์พร้อมใช้แบบรวมกลุ่ม
คำขอ HTTP
GET https://androiddeviceprovisioning.googleapis.com/v1/{parent=customers/*}/dpcs
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
parent |
string
ต้องระบุ ลูกค้าที่สามารถใช้ DPC ในการกำหนดค่า ชื่อทรัพยากร API ในรูปแบบ customers/[CUSTOMER_ID]
|
เนื้อหาของคำขอ
เนื้อหาของคำขอต้องว่างเปล่า
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีข้อมูลซึ่งมีโครงสร้างดังต่อไปนี้
ข้อความตอบกลับเกี่ยวกับ DPC ของข้อมูลของลูกค้า
การแสดง JSON |
{
"dpcs": [
{
object (Dpc )
}
]
} |
ช่อง |
dpcs[] |
object (Dpc )
รายชื่อ DPC ที่พร้อมให้บริการแก่ลูกค้าที่รองรับการตั้งค่าอุปกรณ์พร้อมใช้แบบรวมกลุ่ม
|
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/androidworkzerotouchemm
สำหรับข้อมูลเพิ่มเติม โปรดดูที่ภาพรวมของ OAuth 2.0
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-25 UTC
[null,null,["อัปเดตล่าสุด 2025-07-25 UTC"],[[["\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)."]]