dcloud queue messages send

Send one message

IAM queue:SendMessageChanges state

body is text (no control characters besides tab, LF, CR); attributes are up to 10 string pairs. delaySeconds (0–900) keeps it invisible that long (standard queues only). On a FIFO queue messageGroupId is required, and messageDeduplicationId too unless the queue has contentBasedDeduplication; a repeat within five minutes answers the original messageId with duplicate: true. Answers 201 with messageId, md5OfBody and, on FIFO, sequenceNumber.

Synopsis

dcloud queue messages send name --body body [flags]

Arguments

  • <name>Required

    string

    Also accepted as --name. Constraints: max 80 chars, /^[A-Za-z0-9_-]+(\.fifo)?$/

Flags

  • --bodyRequired

    string

    The message content, as text

    Constraints: min 1 chars

  • --delay-secondsOptional

    number

    Seconds the message stays invisible before it can be received; standard queues only (default: the queue’s delay)

    Constraints: integer, 0-900

  • --attributesOptional

    map of string

    Name–value string pairs delivered with the message (default none)

    Constraints: key=value

  • --message-group-idOptional

    string

    FIFO queues: required; messages of one group are delivered in order, one batch at a time. Ignored on a standard queue

    Constraints: /^[A-Za-z0-9!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~]{1,128}$/

  • --message-deduplication-idOptional

    string

    FIFO queues only: a send repeating this id within five minutes is accepted but not stored again. Required unless the queue has content-based deduplication

    Constraints: /^[A-Za-z0-9!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~]{1,128}$/

Example

dcloud queue messages send name --body example

Generated from the API description, the same one the API checks requests against and the CLI is built from.