The GetQueueAttributes action returns one or all
attributes of a queue.
![]() | Important |
|---|---|
Before the 2007-05-01 release introduced the |
![]() | Programming Note |
|---|---|
Some API operations take lists of parameters. These lists are specified using the &Attribute.1=this &Attribute.2=that In SOAP, a parameter list looks like this: <Attribute>this<Attribute> <Attribute>that<Attribute> |
The following table lists the special request parameters the
GetQueueAttributes action uses in addition to the common request parameters
all actions use (for more information, see Request Parameters Common to All Actions).
| Name | Description | Required |
|---|---|---|
|
|
The attribute you want to get.
Type: String Valid values: Default: None |
Yes |
The following table lists the response elements the GetQueueAttributes
action returns in addition to the common response elements all actions return (for more
information, see Structure of a Successful Response).
| Name | Description |
|---|---|
|
|
An element containing each attribute's information. Ancestor: Children:
|
The following table lists the special errors the GetQueueAttributes action
returns in addition to the common errors all actions return (for more information, see Errors Common to all Actions).
| Error | Description | HTTP Status Code |
|---|---|---|
|
|
Unknown attribute |
400 |
The following example Query request gets all the attribute values for the specified queue.
http://queue.amazonaws.com/123456789012/testQueue/ ?Action=GetQueueAttributes &AttributeName=All &Version=2009-02-01 &SignatureMethod=HmacSHA256 &Expires=2009-04-18T22%3A52%3A43PST &AWSAccessKeyId=0GS7553JW74RRM612K02EXAMPLE &SignatureVersion=2 &Signature=Dqlp3Sd6ljTUA9Uf6SGtEExwUQEXAMPLE
<GetQueueAttributesResponse>
<GetQueueAttributesResult>
<Attribute>
<Name>VisibilityTimeout</Name>
<Value>32</Value>
</Attribute>
<Attribute>
<Name>ApproximateNumberOfMessages</Name>
<Value>0</Value>
</Attribute>
<Attribute>
<Name>ApproximateNumberOfMessagesNotVisible</Name>
<Value>1</Value>
</Attribute>
<Attribute>
<Name>CreatedTimestamp</Name>
<Value>1238098969</Value>
</Attribute>
<Attribute>
<Name>LastModifiedTimestamp</Name>
<Value>1238099106</Value>
</Attribute>
</GetQueueAttributesResult>
<ResponseMetadata>
<RequestId>
cbd6e5cb-b4f1-46fb-8356-3b4705290606
</RequestId>
</ResponseMetadata>
</GetQueueAttributesResponse>