dcloud queue messages sendSend one message
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>Requiredstring
Also accepted as
--name. Constraints: max 80 chars, /^[A-Za-z0-9_-]+(\.fifo)?$/
Flags
--bodyRequiredstring
The message content, as text
Constraints: min 1 chars
--delay-secondsOptionalnumber
Seconds the message stays invisible before it can be received; standard queues only (default: the queue’s delay)
Constraints: integer, 0-900
--attributesOptionalmap of string
Name–value string pairs delivered with the message (default none)
Constraints: key=value
--message-group-idOptionalstring
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-idOptionalstring
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 exampleGenerated from the API description, the same one the API checks requests against and the CLI is built from.