Microsoft.QueueStorage (stable:2018-03-28)

2025/03/19 • 16 updated methods

Service_SetProperties (updated)
Description Sets properties for a storage account's Queue service endpoint, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules
Reference Link ¶

⚶ Changes

{
  "#id": "Service_SetProperties",
  "$parameters": [
    {
      "#name": "timeout",
      "Description": {
        "new": "The The timeout parameter is expressed in seconds. For more information, see Setting Timeouts for Queue Service Operations.",
        "old": "The The timeout parameter is expressed in seconds. For more information, see Setting Timeouts for Queue Service Operations."
      }
    }
  ]
}

⚼ Request

PUT:  /?restype=service&comp=properties
{
StorageServiceProperties:
{
Logging:
{
Version: string ,
Delete: boolean ,
Read: boolean ,
Write: boolean ,
RetentionPolicy:
{
Enabled: boolean ,
Days: integer ,
}
,
}
,
HourMetrics:
{
Version: string ,
Enabled: boolean ,
IncludeAPIs: boolean ,
RetentionPolicy:
{
Enabled: boolean ,
Days: integer ,
}
,
}
,
MinuteMetrics:
{
Version: string ,
Enabled: boolean ,
IncludeAPIs: boolean ,
RetentionPolicy:
{
Enabled: boolean ,
Days: integer ,
}
,
}
,
Cors:
[
{
AllowedOrigins: string ,
AllowedMethods: string ,
AllowedHeaders: string ,
ExposedHeaders: string ,
MaxAgeInSeconds: integer ,
}
,
]
,
}
,
timeout: integer ,
x-ms-version: string ,
x-ms-client-request-id: string ,
}

⚐ Response (202)

{
x-ms-request-id: string ,
x-ms-version: string ,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
Message: string ,
}
,
}
Service_GetProperties (updated)
Description gets the properties of a storage account's Queue service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules.
Reference Link ¶



⚐ Response (200)

{
$headers:
{
x-ms-request-id: string ,
x-ms-version: string ,
}
,
$schema:
{
Logging:
{
Version: string ,
Delete: boolean ,
Read: boolean ,
Write: boolean ,
RetentionPolicy:
{
Enabled: boolean ,
Days: integer ,
}
,
}
,
HourMetrics:
{
Version: string ,
Enabled: boolean ,
IncludeAPIs: boolean ,
RetentionPolicy:
{
Enabled: boolean ,
Days: integer ,
}
,
}
,
MinuteMetrics:
{
Version: string ,
Enabled: boolean ,
IncludeAPIs: boolean ,
RetentionPolicy:
{
Enabled: boolean ,
Days: integer ,
}
,
}
,
Cors:
[
{
AllowedOrigins: string ,
AllowedMethods: string ,
AllowedHeaders: string ,
ExposedHeaders: string ,
MaxAgeInSeconds: integer ,
}
,
]
,
}
,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
Message: string ,
}
,
}
Service_GetStatistics (updated)
Description Retrieves statistics related to replication for the Queue service. It is only available on the secondary location endpoint when read-access geo-redundant replication is enabled for the storage account.
Reference Link ¶



⚐ Response (200)

{
$headers:
{
x-ms-request-id: string ,
x-ms-version: string ,
date: string ,
}
,
$schema:
{
GeoReplication:
{
Status: enum ,
LastSyncTime: string ,
}
,
}
,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
Message: string ,
}
,
}
Service_ListQueuesSegment (updated)
Description The List Queues Segment operation returns a list of the queues under the specified account
Reference Link ¶


⚼ Request

GET:  /?comp=list
{
prefix: string ,
marker: string ,
maxresults: integer ,
include: array ,
timeout: integer ,
x-ms-version: string ,
x-ms-client-request-id: string ,
}

⚐ Response (200)

{
$headers:
{
x-ms-request-id: string ,
x-ms-version: string ,
date: string ,
}
,
$schema:
{
ServiceEndpoint: string ,
Prefix: string ,
Marker: string ,
MaxResults: integer ,
QueueItems:
[
{
Name: string ,
Metadata: object ,
}
,
]
,
NextMarker: string ,
}
,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
Message: string ,
}
,
}
Queue_Create (updated)
Description creates a new queue under the given account.
Reference Link ¶



⚐ Response (201)

{
x-ms-request-id: string ,
x-ms-version: string ,
date: string ,
}

⚐ Response (204)

{
x-ms-request-id: string ,
x-ms-version: string ,
date: string ,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
Message: string ,
}
,
}
Queue_Delete (updated)
Description operation permanently deletes the specified queue
Reference Link ¶



⚐ Response (204)

{
x-ms-request-id: string ,
x-ms-version: string ,
date: string ,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
Message: string ,
}
,
}
Queue_GetProperties (updated)
Description Retrieves user-defined metadata and queue properties on the specified queue. Metadata is associated with the queue as name-values pairs.
Reference Link ¶



⚐ Response (200)

{
x-ms-meta: string ,
x-ms-approximate-messages-count: integer ,
x-ms-request-id: string ,
x-ms-version: string ,
date: string ,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
Message: string ,
}
,
}
Queue_SetMetadata (updated)
Description sets user-defined metadata on the specified queue. Metadata is associated with the queue as name-value pairs.
Reference Link ¶



⚐ Response (204)

{
x-ms-request-id: string ,
x-ms-version: string ,
date: string ,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
Message: string ,
}
,
}
Queue_GetAccessPolicy (updated)
Description returns details about any stored access policies specified on the queue that may be used with Shared Access Signatures.
Reference Link ¶



⚐ Response (200)

{
$headers:
{
x-ms-request-id: string ,
x-ms-version: string ,
date: string ,
}
,
$schema:
{
Id: string ,
AccessPolicy:
{
Start: string ,
Expiry: string ,
Permission: string ,
}
,
}
,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
Message: string ,
}
,
}
Queue_SetAccessPolicy (updated)
Description sets stored access policies for the queue that may be used with Shared Access Signatures
Reference Link ¶


⚼ Request

PUT:  /{queueName}?comp=acl
{
queueAcl:
{
Id: string ,
AccessPolicy:
{
Start: string ,
Expiry: string ,
Permission: string ,
}
,
}
,
timeout: integer ,
x-ms-version: string ,
x-ms-client-request-id: string ,
}

⚐ Response (204)

{
x-ms-request-id: string ,
x-ms-version: string ,
date: string ,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
Message: string ,
}
,
}
Messages_Dequeue (updated)
Description The Dequeue operation retrieves one or more messages from the front of the queue.
Reference Link ¶


⚼ Request

GET:  /{queueName}/messages
{
numofmessages: integer ,
visibilitytimeout: integer ,
timeout: integer ,
x-ms-version: string ,
x-ms-client-request-id: string ,
}

⚐ Response (200)

{
$headers:
{
x-ms-request-id: string ,
x-ms-version: string ,
date: string ,
}
,
$schema:
{
MessageId: string ,
InsertionTime: string ,
ExpirationTime: string ,
PopReceipt: string ,
TimeNextVisible: string ,
DequeueCount: integer ,
MessageText: string ,
}
,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
Message: string ,
}
,
}
Messages_Clear (updated)
Description The Clear operation deletes all messages from the specified queue.
Reference Link ¶



⚐ Response (204)

{
x-ms-request-id: string ,
x-ms-version: string ,
date: string ,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
Message: string ,
}
,
}
Messages_Enqueue (updated)
Description The Enqueue operation adds a new message to the back of the message queue. A visibility timeout can also be specified to make the message invisible until the visibility timeout expires. A message must be in a format that can be included in an XML request with UTF-8 encoding. The encoded message can be up to 64 KB in size for versions 2011-08-18 and newer, or 8 KB in size for previous versions.
Reference Link ¶


⚼ Request

POST:  /{queueName}/messages
{
QueueMessage:
{
MessageText: string ,
}
,
visibilitytimeout: integer ,
messagettl: integer ,
timeout: integer ,
x-ms-version: string ,
x-ms-client-request-id: string ,
}

⚐ Response (201)

{
$headers:
{
x-ms-request-id: string ,
x-ms-version: string ,
date: string ,
}
,
$schema:
{
MessageId: string ,
InsertionTime: string ,
ExpirationTime: string ,
PopReceipt: string ,
TimeNextVisible: string ,
}
,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
Message: string ,
}
,
}
Messages_Peek (updated)
Description The Peek operation retrieves one or more messages from the front of the queue, but does not alter the visibility of the message.
Reference Link ¶


⚼ Request

GET:  /{queueName}/messages?peekonly=true
{
numofmessages: integer ,
timeout: integer ,
x-ms-version: string ,
x-ms-client-request-id: string ,
}

⚐ Response (200)

{
$headers:
{
x-ms-request-id: string ,
x-ms-version: string ,
date: string ,
}
,
$schema:
{
MessageId: string ,
InsertionTime: string ,
ExpirationTime: string ,
DequeueCount: integer ,
MessageText: string ,
}
,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
Message: string ,
}
,
}
MessageId_Update (updated)
Description The Update operation was introduced with version 2011-08-18 of the Queue service API. The Update Message operation updates the visibility timeout of a message. You can also use this operation to update the contents of a message. A message must be in a format that can be included in an XML request with UTF-8 encoding, and the encoded message can be up to 64KB in size.
Reference Link ¶


⚼ Request

PUT:  /{queueName}/messages/{messageid}
{
QueueMessage:
{
MessageText: string ,
}
,
popreceipt: string ,
visibilitytimeout: integer ,
timeout: integer ,
x-ms-version: string ,
x-ms-client-request-id: string ,
}

⚐ Response (204)

{
x-ms-request-id: string ,
x-ms-version: string ,
date: string ,
x-ms-popreceipt: string ,
x-ms-time-next-visible: string ,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
Message: string ,
}
,
}
MessageId_Delete (updated)
Description The Delete operation deletes the specified message.
Reference Link ¶


⚼ Request

DELETE:  /{queueName}/messages/{messageid}
{
popreceipt: string ,
timeout: integer ,
x-ms-version: string ,
x-ms-client-request-id: string ,
}

⚐ Response (204)

{
x-ms-request-id: string ,
x-ms-version: string ,
date: string ,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
Message: string ,
}
,
}