Google Cloud IoT Core is being retired on August 16, 2023. Contact your Google Cloud account team for more information.

Method: projects.locations.registries.unbindDeviceFromGateway

Stay organized with collections Save and categorize content based on your preferences.

Deletes the association between the device and the gateway.

HTTP request

POST https://cloudiot.googleapis.com/v1/{parent=projects/*/locations/*/registries/*}:unbindDeviceFromGateway

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

The name of the registry. For example, projects/example-project/locations/us-central1/registries/my-registry.

Authorization requires the following Google IAM permission on the specified resource parent:

  • cloudiot.devices.unbindGateway

Request body

The request body contains data with the following structure:

JSON representation
{
  "gatewayId": string,
  "deviceId": string
}
Fields
gatewayId

string

The value of gatewayId can be either the device numeric ID or the user-defined device identifier.

deviceId

string

The device to disassociate from the specified gateway. The value of deviceId can be either the device numeric ID or the user-defined device identifier.

Response body

If successful, the response body will be empty.

Authorization Scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/cloudiot
  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.