Skip to main content

queues_authorization_rules

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

Overview

Namequeues_authorization_rules
TypeResource
Idazure.service_bus.queues_authorization_rules

Fields

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
namestringThe name of the resource
locationstringThe geo-location where the resource lives
properties``AuthorizationRule properties.
systemDataobjectMetadata pertaining to creation and last modification of the resource.
typestringThe type of the resource. E.g. "Microsoft.EventHub/Namespaces" or "Microsoft.EventHub/Namespaces/EventHubs"

Methods

NameAccessible byRequired ParamsDescription
getSELECTauthorizationRuleName, namespaceName, queueName, resourceGroupName, subscriptionIdGets an authorization rule for a queue by rule name.
listSELECTnamespaceName, queueName, resourceGroupName, subscriptionIdGets all authorization rules for a queue.
create_or_updateINSERTauthorizationRuleName, namespaceName, queueName, resourceGroupName, subscriptionIdCreates an authorization rule for a queue.
deleteDELETEauthorizationRuleName, namespaceName, queueName, resourceGroupName, subscriptionIdDeletes a queue authorization rule.

SELECT examples

Gets all authorization rules for a queue.

SELECT
id,
name,
location,
properties,
systemData,
type
FROM azure.service_bus.queues_authorization_rules
WHERE namespaceName = '{{ namespaceName }}'
AND queueName = '{{ queueName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new queues_authorization_rules resource.

/*+ create */
INSERT INTO azure.service_bus.queues_authorization_rules (
authorizationRuleName,
namespaceName,
queueName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ authorizationRuleName }}',
'{{ namespaceName }}',
'{{ queueName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified queues_authorization_rules resource.

/*+ delete */
DELETE FROM azure.service_bus.queues_authorization_rules
WHERE authorizationRuleName = '{{ authorizationRuleName }}'
AND namespaceName = '{{ namespaceName }}'
AND queueName = '{{ queueName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';