authorization_rules
Creates, updates, deletes, gets or lists a authorization_rules
resource.
Overview
Name | authorization_rules |
Type | Resource |
Id | azure.notification_hubs.authorization_rules |
Fields
- vw_authorization_rules
- authorization_rules
Name | Datatype | Description |
---|---|---|
authorizationRuleName | text | field from the properties object |
claim_type | text | field from the properties object |
claim_value | text | field from the properties object |
created_time | text | field from the properties object |
key_name | text | field from the properties object |
location | text | Deprecated - only for compatibility. |
modified_time | text | field from the properties object |
namespaceName | text | field from the properties object |
notificationHubName | text | field from the properties object |
primary_key | text | field from the properties object |
resourceGroupName | text | field from the properties object |
revision | text | field from the properties object |
rights | text | field from the properties object |
secondary_key | text | field from the properties object |
subscriptionId | text | field from the properties object |
tags | text | Deprecated - only for compatibility. |
Name | Datatype | Description |
---|---|---|
location | string | Deprecated - only for compatibility. |
properties | object | SharedAccessAuthorizationRule properties. |
tags | object | Deprecated - only for compatibility. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | authorizationRuleName, namespaceName, notificationHubName, resourceGroupName, subscriptionId | |
list | SELECT | namespaceName, notificationHubName, resourceGroupName, subscriptionId | |
create_or_update | INSERT | authorizationRuleName, namespaceName, notificationHubName, resourceGroupName, subscriptionId | |
delete | DELETE | authorizationRuleName, namespaceName, notificationHubName, resourceGroupName, subscriptionId |
SELECT
examples
- vw_authorization_rules
- authorization_rules
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 }}';
SELECT
location,
properties,
tags
FROM azure.notification_hubs.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.
- All Properties
- Manifest
/*+ 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 }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: rights
value:
- []
- name: primaryKey
value: string
- name: secondaryKey
value: string
- name: keyName
value: string
- name: modifiedTime
value: string
- name: createdTime
value: string
- name: claimType
value: string
- name: claimValue
value: string
- name: revision
value: integer
- name: location
value: string
- name: tags
value: object
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 }}';