Method: enterprises.devices.get
Bir cihaz alır. Silinen cihazlar 404 hatası ile yanıt verir.
HTTP isteği
GET https://androidmanagement.googleapis.com/v1/{name=enterprises/*/devices/*}
URL, gRPC Kod Dönüştürme söz dizimini kullanır.
Yol parametreleri
Parametreler |
name |
string
Cihazın adı (enterprises/{enterpriseId}/devices/{deviceId} biçiminde).
|
İstek içeriği
İstek metni boş olmalıdır.
Yanıt metni
Başarılıysa yanıt metni, Device
öğesinin bir örneğini içerir.
Yetkilendirme kapsamları
Aşağıdaki OAuth kapsamını gerektirir:
https://www.googleapis.com/auth/androidmanagement
Daha fazla bilgi için OAuth 2.0 Overview sayfasına bakın.
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-01-13 UTC.
[null,null,["Son güncelleme tarihi: 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"]]