Skip to main content

service

Creates, updates, deletes, gets or lists a service resource.

Overview

Nameservice
TypeResource
Idazure.storage_queue.service

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
signedDelegatedUserTidstringThe delegated user tenant ID in Entra ID. Return if DelegatedUserTid is specified.
signedExpirystringThe date-time the key expires. Required.
signedOidstringThe Entra ID object ID in GUID format. Required.
signedServicestringThe service that created the key. Required.
signedStartstringThe date-time the key is active. Required.
signedTidstringThe Entra ID tenant ID in GUID format. Required.
signedVersionstringThe service version used when creating the key. Required.
valuestringThe key as a base64 string. Required.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_user_delegation_keyselectaccounttimeoutRetrieves a user delegation key for the Queue service. This is only a valid operation when using bearer token authentication.
get_propertiesselectaccounttimeoutRetrieves properties of a storage account's Queue service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules.
set_propertiesexecaccounttimeoutSets properties for a storage account's Queue service endpoint, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules.
get_statisticsexecaccounttimeoutRetrieves 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.
get_queuesexecaccountprefix, marker, maxresults, timeout, includeReturns a list of queues.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
accountstringStorage account name. (default: )
includearraySpecify to include additional, optional information. Default value is None.
markerstringIdentifies the portion of the list of queues to be returned with the next listing operation. The operation returns the marker value if the listing operation did not return all queues remaining. The marker value can be used as the value for the marker parameter in a subsequent call to request the next page of list items. The marker value is opaque to the client. Default value is None.
maxresultsintegerSpecifies the maximum number of queues to return. If the request does not specify maxresults, or specifies a value greater than 5000, the server will return up to 5000 items. Default value is None.
prefixstringFilters the results to return only queues whose name begins with the specified prefix. Default value is None.
timeoutintegerThe timeout parameter is expressed in seconds. For more information, see Setting Timeouts for Queue Service Operations.. Default value is None.

SELECT examples

Retrieves a user delegation key for the Queue service. This is only a valid operation when using bearer token authentication.

SELECT
signedDelegatedUserTid,
signedExpiry,
signedOid,
signedService,
signedStart,
signedTid,
signedVersion,
value
FROM azure.storage_queue.service
WHERE account = '{{ account }}' -- required
AND timeout = '{{ timeout }}'
;

Lifecycle Methods

Sets properties for a storage account's Queue service endpoint, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules.

EXEC azure.storage_queue.service.set_properties 
@account='{{ account }}' --required,
@timeout='{{ timeout }}'
@@json=
'{
"logging": "{{ logging }}",
"hourMetrics": "{{ hourMetrics }}",
"minuteMetrics": "{{ minuteMetrics }}",
"cors": "{{ cors }}"
}'
;