Skip to content

Ivcap queue enqueue

ivcap queue enqueue

Enqueue a message to a queue

Synopsis

Enqueue a message from a file to the specified queue. The message must be in JSON format.

Examples: 1. Enqueue a message from a file: ivcap queue enqueue urn:ivcap:queue:714e549b-ebab-5dd8-8ebd-2e4b0af76167 urn:ivcap:schema:queue:message.1 message.json

  1. Enqueue a message from stdin: echo '{"key": "value"}' | ivcap queue enqueue urn:ivcap:queue:714e549b-ebab-5dd8-8ebd-2e4b0af76167 urn:ivcap:schema:queue:message.1 -
ivcap queue enqueue [flags] queue_id schema file

Options

  -h, --help   help for enqueue

Options inherited from parent commands

      --access-token string   Access token to use for authentication with API server [IVCAP_ACCESS_TOKEN]
      --context string        Context (deployment) to use
      --debug                 Set logging level to DEBUG
      --no-history            Do not store history
  -o, --output string         Set format for displaying output [json, yaml]
      --silent                Do not show any progress information
      --timeout int           Max. number of seconds to wait for completion (default 30)

SEE ALSO