diagrid call publish
Call publish API
Description
Publish a message to an existing pub/sub component using the Pub/Sub API
diagrid call publish <topic> [flags]
Examples
# Publish a message onto a specific topic using a pubsub component
diagrid call publish my-topic --component my-pubsub --app-id publisher —-data '{"orderId": 1}'
Options
-a, --app-id string [Required]: Publisher App ID
-c, --component string [Required]: Component name for target pub/sub broker
-p, --project string Name of existing project
-d, --data string The JSON serialized data string (optional)
-o, --output string Output format, supported [table, yaml, json] (default "table")
--verbose Include verbose output such as curl command and response body
-h, --help help for publish
Options inherited from parent commands
--api-key string Diagrid Cloud API key
SEE ALSO
- diagrid call - Call commands to invoke the Catalyst APIs directly