Method: customers.devices.get
Mendapatkan detail perangkat.
Permintaan HTTP
GET https://androiddeviceprovisioning.googleapis.com/v1/{name=customers/*/devices/*}
URL menggunakan sintaksis gRPC Transcoding.
Parameter jalur
Parameter |
name |
string
Wajib. Perangkat yang didapatkan. Nama resource API dalam format customers/[CUSTOMER_ID]/devices/[DEVICE_ID] .
|
Isi permintaan
Isi permintaan harus kosong.
Isi respons
Jika berhasil, isi respons memuat instance Device
.
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-08-07 UTC.
[null,null,["Terakhir diperbarui pada 2024-08-07 UTC."],[[["This endpoint retrieves detailed information about a specific device using its resource name."],["The request is made via a `GET` HTTP request to a URL following gRPC Transcoding syntax, with the device's identifier in the path."],["The request body must be empty, while a successful response will contain device details as an instance of the `Device` resource."],["The `name` path parameter is required and must follow the format `customers/[CUSTOMER_ID]/devices/[DEVICE_ID]`."],["Accessing this endpoint requires OAuth 2.0 authorization with the scope `https://www.googleapis.com/auth/androidworkzerotouchemm`."]]],["A `GET` request to `https://androiddeviceprovisioning.googleapis.com/v1/{name=customers/*/devices/*}` retrieves device details. The `name` path parameter, a string in the format `customers/[CUSTOMER_ID]/devices/[DEVICE_ID]`, is mandatory. The request body must be empty. Upon success, the response body returns a `Device` instance. Authorization requires the `https://www.googleapis.com/auth/androidworkzerotouchemm` OAuth scope. The url uses gRPC Transcoding.\n"]]