Method: customers.devices.list
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Permintaan HTTP
GET https://sasportal.googleapis.com/v1alpha1/{parent=customers/*}/devices
URL menggunakan sintaksis gRPC Transcoding.
Parameter jalur
Parameter |
parent |
string
Wajib diisi. Nama resource induk.
|
Parameter kueri
Parameter |
pageSize |
integer
Jumlah maksimum perangkat untuk ditampilkan dalam respons. Jika kosong atau nol, semua perangkat akan dicantumkan. Harus dalam rentang [0, 1000].
|
pageToken |
string
Token penomoran halaman yang ditampilkan dari panggilan sebelumnya ke devices.list yang menunjukkan asal listingan ini harus dilanjutkan.
|
filter |
string
Ekspresi filter. Filter harus memiliki salah satu format berikut: "sn=123454" atau "displayName=MyDevice". sn sesuai dengan nomor seri perangkat. Filter tidak peka huruf besar/kecil.
|
Isi permintaan
Isi permintaan harus kosong.
Isi respons
Jika berhasil, isi respons memuat instance ListDevicesResponse
.
Cakupan Otorisasi
Memerlukan cakupan OAuth berikut:
https://www.googleapis.com/auth/sasportal
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 2022-11-02 UTC.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2022-11-02 UTC."],[[["Lists devices under a node or customer with customizable filtering, paging, and response size."],["Uses a GET HTTP request with the parent resource specified as a path parameter."],["Requires authorization with the `https://www.googleapis.com/auth/sasportal` scope."],["The request body should be empty, and a successful response contains a ListDevicesResponse object."]]],["This outlines the process of listing devices under a specified parent (customer or node) via an API call. The key actions involve sending a `GET` request to a specific URL, using the `parent` path parameter to identify the customer or node. Optional query parameters include `pageSize`, `pageToken`, and `filter` for controlling the number of devices, pagination, and filtering by serial number or display name respectively. The request body must be empty, and the successful response is a `ListDevicesResponse`. An authorization scope is required.\n"]]