Notification Hubs - List Keys

Gets the Primary and Secondary ConnectionStrings to the NotificationHub

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules/{authorizationRuleName}/listKeys?api-version=2016-03-01

URI Parameters

Name In Required Type Description
authorizationRuleName
path True
  • string

The connection string of the NotificationHub for the specified authorizationRule.

namespaceName
path True
  • string

The namespace name.

notificationHubName
path True
  • string

The notification hub name.

resourceGroupName
path True
  • string

The name of the resource group.

subscriptionId
path True
  • string

Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

api-version
query True
  • string

Client Api Version.

Responses

Name Type Description
200 OK

Gets the Namespace AuthorizationRule's Primary keys and Secondary keys along with the ConnectionStrings

Media Types: "application/json", "text/json"

Security

azure_auth

Azure Active Directory OAuth2 Flow

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation impersonate your user account

Definitions

ResourceListKeys

Namespace/NotificationHub Connection String

Name Type Description
keyName
  • string

KeyName of the created AuthorizationRule

primaryConnectionString
  • string

PrimaryConnectionString of the AuthorizationRule.

primaryKey
  • string

PrimaryKey of the created AuthorizationRule.

secondaryConnectionString
  • string

SecondaryConnectionString of the created AuthorizationRule

secondaryKey
  • string

SecondaryKey of the created AuthorizationRule