Modifies the configuration for the device, which is eventually sent from the Cloud IoT Core servers. Returns the modified configuration version and its metadata.
HTTP request
POST https://cloudiot.googleapis.com/v1/{name=projects/*/locations/*/registries/*/devices/*}:modifyCloudToDeviceConfig
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
name |
The name of the device. 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 | |
---|---|
{ "versionToUpdate": string, "binaryData": string } |
Fields | |
---|---|
versionToUpdate |
The version number to update. If this value is zero, it will not check the version number of the server and will always update the current version; otherwise, this update will fail if the version number found on the server does not match this version number. This is used to support multiple simultaneous updates without losing data. |
binaryData |
The configuration data for the device. A base64-encoded string. |
Response body
If successful, the response body contains an instance of DeviceConfig
.
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.