Skip to main content

queues

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

Overview

Namequeues
TypeResource
Idazure.communication_job_router.queues

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringId of a queue. Required.
namestringFriendly name of this queue.
distributionPolicyIdstringId of a distribution policy that will determine how a job is distributed to workers.
etagstringThe entity tag for this resource. Required.
exceptionPolicyIdstringId of an exception policy that determines various job escalation rules.
labelsobjectA set of key/value pairs that are identifying attributes used by the rules engines to make decisions. Values must be primitive values - number, string, boolean.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_queueselectqueue_id, endpointRetrieves an existing queue by Id. Retrieves an existing queue by Id.
list_queuesselectendpointmaxpagesizeRetrieves existing queues. Retrieves existing queues.
delete_queuedeletequeue_id, endpointDeletes a queue by Id. Deletes a queue by Id.

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
endpointstringThe service endpoint host (no scheme), e.g. myaccount.table.cosmos.azure.com:443 - value of the client endpoint parameter. (default: )
queue_idstringId of a queue. Required.
maxpagesizeinteger

SELECT examples

Retrieves an existing queue by Id. Retrieves an existing queue by Id.

SELECT
id,
name,
distributionPolicyId,
etag,
exceptionPolicyId,
labels
FROM azure.communication_job_router.queues
WHERE queue_id = '{{ queue_id }}' -- required
AND endpoint = '{{ endpoint }}' -- required
;

DELETE examples

Deletes a queue by Id. Deletes a queue by Id.

DELETE FROM azure.communication_job_router.queues
WHERE queue_id = '{{ queue_id }}' --required
AND endpoint = '{{ endpoint }}' --required
;