Associates the device with the gateway.
HTTP request
POST https://cloudiot.googleapis.com/v1/{parent=projects/*/locations/*/registries/*}:bindDeviceToGateway
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
The name of the registry. For example, Authorization requires the following Google IAM permission on the specified resource
|
Request body
The request body contains data with the following structure:
JSON representation | |
---|---|
{ "gatewayId": string, "deviceId": string } |
Fields | |
---|---|
gatewayId |
The value of |
deviceId |
The device to associate with the specified gateway. The value of |
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.