Method: enterprises.devices.get
รับอุปกรณ์ อุปกรณ์ที่ลบไปแล้วจะแสดงข้อผิดพลาด 404
คำขอ HTTP
GET https://androidmanagement.googleapis.com/v1/{name=enterprises/*/devices/*}
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
name |
string
ชื่อของอุปกรณ์ในรูปแบบ enterprises/{enterpriseId}/devices/{deviceId}
|
เนื้อหาของคำขอ
เนื้อหาของคำขอต้องว่างเปล่า
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ Device
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/androidmanagement
ดูข้อมูลเพิ่มเติมได้ที่ OAuth 2.0 Overview
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-01-13 UTC
[null,null,["อัปเดตล่าสุด 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"]]