Menu
Amazon Simple Queue Service
API Reference (API Version 2012-11-05)

ListQueues

Returns a list of your queues. The maximum number of queues that can be returned is 1,000. If you specify a value for the optional QueueNamePrefix parameter, only queues with a name that begins with the specified value are returned.

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

QueueNamePrefix

A string to use for filtering the list results. Only those queues whose name begins with the specified string are returned.

Queue names are case-sensitive.

Type: String

Required: No

Response Elements

The following element is returned by the service.

QueueUrl.N

A list of queue URLs, up to 1,000 entries.

Type: array of Strings

Errors

For information about the errors that are common to all actions, see Common Errors.

Example

The following example query request returns the queues whose names begin with the letter t How you structure the AUTHPARAMS depends on how you are signing your API request. For information on AUTHPARAMS in Signature Version 4, see Examples of Signed Signature Version 4 Requests in the Amazon Web Services General Reference.

Sample Request

http://sqs.us-east-2.amazonaws.com/
?Action=ListQueues
&QueueNamePrefix=t
&Version=2012-11-05
&Expires=2014-04-18T22%3A52%3A43PST
&AUTHPARAMS

Sample Response

<ListQueuesResponse>
    <ListQueuesResult>
        <QueueUrl>
            http://sqs.us-east-2.amazonaws.com/123456789012/testQueue
        </QueueUrl>
    </ListQueuesResult>
    <ResponseMetadata>
        <RequestId>
            725275ae-0b9b-4762-b238-436d7c65a1ac
        </RequestId>
    </ResponseMetadata>
</ListQueuesResponse>