Method: enterprises.devices.get
Mendapatkan perangkat. Perangkat yang dihapus akan merespons dengan error 404.
Permintaan HTTP
GET https://androidmanagement.googleapis.com/v1/{name=enterprises/*/devices/*}
URL menggunakan sintaksis gRPC Transcoding.
Parameter jalur
Parameter |
name |
string
Nama perangkat dalam bentuk enterprises/{enterpriseId}/devices/{deviceId} .
|
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/androidmanagement
Untuk mengetahui informasi selengkapnya, lihat OAuth 2.0 Overview.
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 2025-01-13 UTC.
[null,null,["Terakhir diperbarui pada 2025-01-13 UTC."],[[["Retrieves detailed information about a specific Android device managed within an enterprise."],["Uses a GET request with the device's name as a path parameter to fetch the data."],["Returns a 404 error if the requested device has been deleted."],["Requires authorization with the `https://www.googleapis.com/auth/androidmanagement` scope."],["Provides the device details in the response body if the request is successful."]]],["This document details retrieving a specific device using a GET request. The request URL uses gRPC Transcoding syntax and requires the device's name, structured as `enterprises/{enterpriseId}/devices/{deviceId}`, as a path parameter. The request body must be empty. A successful response returns a Device instance, while deleted devices yield a 404 error. The operation requires the `https://www.googleapis.com/auth/androidmanagement` OAuth scope for authorization. There is a \"Try it!\" option for the user.\n"]]