Skip to main content

authorization_rules

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

Overview

Nameauthorization_rules
TypeResource
Idazure.notification_hubs.authorization_rules

Fields

NameDatatypeDescription
authorizationRuleNametextfield from the properties object
claim_typetextfield from the properties object
claim_valuetextfield from the properties object
created_timetextfield from the properties object
key_nametextfield from the properties object
locationtextDeprecated - only for compatibility.
modified_timetextfield from the properties object
namespaceNametextfield from the properties object
notificationHubNametextfield from the properties object
primary_keytextfield from the properties object
resourceGroupNametextfield from the properties object
revisiontextfield from the properties object
rightstextfield from the properties object
secondary_keytextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextDeprecated - only for compatibility.

Methods

NameAccessible byRequired ParamsDescription
getSELECTauthorizationRuleName, namespaceName, notificationHubName, resourceGroupName, subscriptionId
listSELECTnamespaceName, notificationHubName, resourceGroupName, subscriptionId
create_or_updateINSERTauthorizationRuleName, namespaceName, notificationHubName, resourceGroupName, subscriptionId
deleteDELETEauthorizationRuleName, namespaceName, notificationHubName, resourceGroupName, subscriptionId

SELECT examples

SELECT
authorizationRuleName,
claim_type,
claim_value,
created_time,
key_name,
location,
modified_time,
namespaceName,
notificationHubName,
primary_key,
resourceGroupName,
revision,
rights,
secondary_key,
subscriptionId,
tags
FROM azure.notification_hubs.vw_authorization_rules
WHERE namespaceName = '{{ namespaceName }}'
AND notificationHubName = '{{ notificationHubName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.notification_hubs.authorization_rules (
authorizationRuleName,
namespaceName,
notificationHubName,
resourceGroupName,
subscriptionId,
properties,
location,
tags
)
SELECT
'{{ authorizationRuleName }}',
'{{ namespaceName }}',
'{{ notificationHubName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ location }}',
'{{ tags }}'
;

DELETE example

Deletes the specified authorization_rules resource.

/*+ delete */
DELETE FROM azure.notification_hubs.authorization_rules
WHERE authorizationRuleName = '{{ authorizationRuleName }}'
AND namespaceName = '{{ namespaceName }}'
AND notificationHubName = '{{ notificationHubName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';