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

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, resourceGroupName, subscriptionId, topicNameReturns the specified authorization rule.
listSELECTnamespaceName, resourceGroupName, subscriptionId, topicNameGets authorization rules for a topic.
create_or_updateINSERTauthorizationRuleName, namespaceName, resourceGroupName, subscriptionId, topicNameCreates an authorization rule for the specified topic.
deleteDELETEauthorizationRuleName, namespaceName, resourceGroupName, subscriptionId, topicNameDeletes a topic authorization rule.

SELECT examples

Gets authorization rules for a topic.

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

INSERT example

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

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

DELETE example

Deletes the specified topics_authorization_rules resource.

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