Method: enterprises.devices.get
Recupera un dispositivo. I dispositivi eliminati risponderanno con un errore 404.
Richiesta HTTP
GET https://androidmanagement.googleapis.com/v1/{name=enterprises/*/devices/*}
L'URL utilizza la sintassi di transcodifica gRPC.
Parametri del percorso
Parametri |
name |
string
Il nome del dispositivo nel formato enterprises/{enterpriseId}/devices/{deviceId} .
|
Corpo della richiesta
Il corpo della richiesta deve essere vuoto.
Corpo della risposta
In caso di esito positivo, il corpo della risposta contiene un'istanza di Device
.
Ambiti di autorizzazione
Richiede il seguente ambito OAuth:
https://www.googleapis.com/auth/androidmanagement
Per ulteriori informazioni, consulta la sezione OAuth 2.0 Overview.
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-01-13 UTC.
[null,null,["Ultimo aggiornamento 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"]]