Skip to main content

keys

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

Overview

Namekeys
TypeResource
Idazure.notification_hubs.keys

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
keyNamestringGets or sets keyName of the created AuthorizationRule
primaryConnectionStringstringGets or sets primaryConnectionString of the AuthorizationRule.
primaryKeystringGets or sets primaryKey of the created AuthorizationRule.
secondaryConnectionStringstringGets or sets secondaryConnectionString of the created
AuthorizationRule
secondaryKeystringGets or sets secondaryKey of the created AuthorizationRule

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectsubscriptionId, resourceGroupName, namespaceName, notificationHubName, authorizationRuleName

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
authorizationRuleNamestringAuthorization Rule Name
namespaceNamestringNamespace name
notificationHubNamestringNotification Hub 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.

SELECT examples

Success

SELECT
keyName,
primaryConnectionString,
primaryKey,
secondaryConnectionString,
secondaryKey
FROM azure.notification_hubs.keys
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND namespaceName = '{{ namespaceName }}' -- required
AND notificationHubName = '{{ notificationHubName }}' -- required
AND authorizationRuleName = '{{ authorizationRuleName }}' -- required
;