Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Note

Documentation under development

Reference URL: https://cloud.google.com/iot/docs/reference/cloudiotdevice/rest/v1/projects.locations.registries.devices/publishEvent

Publishes a telemetry event for a device.


You can find URL, SystemKey and Token required in the call by clicking on API Keys (key icon) at the top-right of the Registry Details page.

HTTP request

POST https://cloudiotdevice.googleapis.com/v1/{name=projects/*/locations/*/registries/*/devices/*}:publishEvent

The URL uses gRPC Transcoding syntax.

Each request must include a JWT in the header.

...

'{URL}/api/v/4/webhook/execute/{SystemKey}/cloudiotdevice_devices' -H 'ClearBlade-UserToken: {Token}'

Query parameters

Parameters

name

string

 

The name of the device. For example, projects/p0/locations/us-central1/registries/registry0/devices/device0

or

projects/p0/locations/us-central1/registries/registry0/devices/{numId}.

The name of the device can also be set simply to the deviceId or the numId (i.e. without project, location and registry info. prepended).

method

string

 

Value must be  publishEvent


Request body

The request body contains data with the following structure:

...