Method: customers.devices.list
Mencantumkan perangkat pelanggan.
Permintaan HTTP
GET https://androiddeviceprovisioning.googleapis.com/v1/{parent=customers/*}/devices
URL menggunakan sintaksis gRPC Transcoding.
Parameter jalur
Parameter |
parent |
string
Wajib. Pelanggan yang mengelola perangkat. Nama resource API dalam format customers/[CUSTOMER_ID] .
|
Parameter kueri
Parameter |
pageSize |
string (int64 format)
Wajib. Jumlah maksimum perangkat yang akan ditampilkan di halaman hasil. Harus antara 1 dan 100 inklusif.
|
pageToken |
string
Token yang menentukan halaman hasil yang akan ditampilkan.
|
Isi permintaan
Isi permintaan harus kosong.
Isi respons
Jika berhasil, isi respons memuat data dengan struktur berikut:
Pesan respons perangkat pencahayaan pelanggan.
Representasi JSON |
{
"devices": [
{
object (Device )
}
],
"nextPageToken": string
} |
Kolom |
devices[] |
object (Device )
Perangkat pelanggan.
|
nextPageToken |
string
Token yang digunakan untuk mengakses halaman hasil berikutnya. Dihilangkan jika tidak ada hasil lebih lanjut yang tersedia.
|
Cakupan Otorisasi
Memerlukan cakupan OAuth berikut:
https://www.googleapis.com/auth/androidworkzerotouchemm
Untuk informasi selengkapnya, lihat Ringkasan OAuth 2.0.
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2024-12-21 UTC.
[null,null,["Terakhir diperbarui pada 2024-12-21 UTC."],[[["This webpage details how to list a customer's devices using the Android Device Provisioning API."],["The HTTP request uses a `GET` method to retrieve devices via a URL formatted with gRPC Transcoding, specifying the customer ID in the path."],["It requires the inclusion of `pageSize` and `pageToken` query parameters to manage result pagination, with `pageSize` determining the maximum number of devices per page."],["The request body must be empty and the response body contains a list of devices and a `nextPageToken` to obtain additional pages of results if available."],["Access to this API endpoint requires authorization using the `https://www.googleapis.com/auth/androidworkzerotouchemm` OAuth scope."]]],["This API endpoint retrieves a list of a customer's devices using a `GET` request. The URL specifies the customer via the `parent` path parameter (`customers/[CUSTOMER_ID]`). Results are paginated using `pageSize` (1-100) and `pageToken` query parameters. The request body is empty. The successful response contains a list of `devices` and, if more exist, a `nextPageToken` for subsequent pages. Authentication requires the `androidworkzerotouchemm` OAuth scope.\n"]]