messageBuses.publish events to a subscriber's channel.
HTTP request
POST https://eventarcpublishing.googleapis.com/v1/{channel=projects/*/locations/*/channels/*}:publishEvents
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
channel |
The full name of the channel to publish to. For example: |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ "events": [ { "@type": string, field1: ..., ... } ], "textEvents": [ string ] } |
Fields | |
---|---|
events[] |
The CloudEvents v1.0 events to publish. No other types are allowed. If this field is set, then the An object containing fields of an arbitrary type. An additional field |
text |
The text representation of events to publish. CloudEvent v1.0 in JSON format is the only allowed type. Refer to https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/json-format.md for specification. If this field is set, then the |
Response body
If successful, the response body is empty.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.