keys
Creates, updates, deletes, gets or lists a keys
resource.
Overview
Name | keys |
Type | Resource |
Id | azure.event_hubs.keys |
Fields
Name | Datatype | Description |
---|---|---|
aliasPrimaryConnectionString | string | Primary connection string of the alias if GEO DR is enabled |
aliasSecondaryConnectionString | string | Secondary connection string of the alias if GEO DR is enabled |
keyName | string | A string that describes the AuthorizationRule. |
primaryConnectionString | string | Primary connection string of the created namespace AuthorizationRule. |
primaryKey | string | A base64-encoded 256-bit primary key for signing and validating the SAS token. |
secondaryConnectionString | string | Secondary connection string of the created namespace AuthorizationRule. |
secondaryKey | string | A base64-encoded 256-bit primary key for signing and validating the SAS token. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
list | SELECT | authorizationRuleName, eventHubName, namespaceName, resourceGroupName, subscriptionId | Gets the ACS and SAS connection strings for the Event Hub. |
SELECT
examples
Gets the ACS and SAS connection strings for the Event Hub.
SELECT
aliasPrimaryConnectionString,
aliasSecondaryConnectionString,
keyName,
primaryConnectionString,
primaryKey,
secondaryConnectionString,
secondaryKey
FROM azure.event_hubs.keys
WHERE authorizationRuleName = '{{ authorizationRuleName }}'
AND eventHubName = '{{ eventHubName }}'
AND namespaceName = '{{ namespaceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';