Skip to main content

namespaces_authorization_rules

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

Overview

Namenamespaces_authorization_rules
TypeResource
Idazure.notification_hubs.namespaces_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
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, resourceGroupName, subscriptionId
listSELECTnamespaceName, resourceGroupName, subscriptionId
create_or_updateINSERTauthorizationRuleName, namespaceName, resourceGroupName, subscriptionId
deleteDELETEauthorizationRuleName, namespaceName, resourceGroupName, subscriptionId

SELECT examples

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

INSERT example

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

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

DELETE example

Deletes the specified namespaces_authorization_rules resource.

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