Method: devices.get

Retrieves the specified device.

HTTP request

GET https://cloudidentity.googleapis.com/v1/{name=devices/*}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. Resource name of the Device in the format: devices/{device_id}, where device_id is the unique ID assigned to the Device.

Query parameters

Parameters
customer

string

Optional. Resource name of the Customer in the format: customers/{customer_id}, where customer_id is the customer to whom the device belongs. If you're using this API for your own organization, use customers/my_customer. If you're using this API to manage another organization, use customers/{customer_id}, where customer_id is the customer to whom the device belongs.

Request body

The request body must be empty.

Response body

If successful, the response body contains an instance of Device.

Authorization Scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/cloud-identity.devices.readonly
  • https://www.googleapis.com/auth/cloud-identity.devices
  • https://www.googleapis.com/auth/cloud-identity

For more information, see the Authentication Overview.