Skip to main content

topics_authorization_rules

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

Overview

Nametopics_authorization_rules
TypeResource
Idazure.service_bus.topics_authorization_rules

Fields

The following fields are returned by SELECT queries:

Topic authorization rule returned successfully.

NameDatatypeDescription
propertiesAuthorizationRule properties.
systemDataobjectThe system meta data relating to this resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, namespaceName, topicName, authorizationRuleName, subscriptionIdReturns the specified authorization rule.
listselectresourceGroupName, namespaceName, topicName, subscriptionIdGets authorization rules for a topic.
create_or_updateinsertresourceGroupName, namespaceName, topicName, authorizationRuleName, subscriptionIdCreates an authorization rule for the specified topic.
deletedeleteresourceGroupName, namespaceName, topicName, authorizationRuleName, subscriptionIdDeletes a topic authorization rule.

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
authorizationRuleNamestringThe authorization rule name.
namespaceNamestringThe namespace name
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.
topicNamestringThe topic name.

SELECT examples

Returns the specified authorization rule.

SELECT
properties,
systemData
FROM azure.service_bus.topics_authorization_rules
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND namespaceName = '{{ namespaceName }}' -- required
AND topicName = '{{ topicName }}' -- required
AND authorizationRuleName = '{{ authorizationRuleName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;

INSERT examples

Creates an authorization rule for the specified topic.

INSERT INTO azure.service_bus.topics_authorization_rules (
data__properties,
resourceGroupName,
namespaceName,
topicName,
authorizationRuleName,
subscriptionId
)
SELECT
'{{ properties }}',
'{{ resourceGroupName }}',
'{{ namespaceName }}',
'{{ topicName }}',
'{{ authorizationRuleName }}',
'{{ subscriptionId }}'
RETURNING
properties,
systemData
;

DELETE examples

Deletes a topic authorization rule.

DELETE FROM azure.service_bus.topics_authorization_rules
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND namespaceName = '{{ namespaceName }}' --required
AND topicName = '{{ topicName }}' --required
AND authorizationRuleName = '{{ authorizationRuleName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
;