dcloud queue messages receive

Receive up to 10 messages, hiding them for the visibility timeout

IAM queue:ReceiveMessageChanges state

waitSeconds (0–20) long-polls until a message arrives. Each message carries a receiptHandle: delete it with messages delete once processed, or it becomes visible again when the timeout ends. Changes state: received messages are hidden from other consumers.

Synopsis

dcloud queue messages receive name [flags]

Arguments

  • <name>Required

    string

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

Flags

  • --max-messagesOptional

    number

    Most messages to return (default 1)

    Constraints: integer, 1-10

  • --visibility-timeout-secondsOptional

    number

    Seconds the received messages stay hidden from other consumers (default: the queue’s visibility timeout)

    Constraints: integer, 0-43200

  • --wait-secondsOptional

    number

    Seconds to wait for a message when none is available; 0 answers at once (default: the queue’s receive wait)

    Constraints: integer, 0-20

Example

dcloud queue messages receive name

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