1. Packages
  2. Packages
  3. Azure Native
  4. API Docs
  5. notificationhubs
  6. listNotificationHubKeys
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Viewing docs for Azure Native v1.103.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
azure-native logo
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Viewing docs for Azure Native v1.103.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi

    Gets the Primary and Secondary ConnectionStrings to the NotificationHub API Version: 2017-04-01.

    Using listNotificationHubKeys

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function listNotificationHubKeys(args: ListNotificationHubKeysArgs, opts?: InvokeOptions): Promise<ListNotificationHubKeysResult>
    function listNotificationHubKeysOutput(args: ListNotificationHubKeysOutputArgs, opts?: InvokeOptions): Output<ListNotificationHubKeysResult>
    def list_notification_hub_keys(authorization_rule_name: Optional[str] = None,
                                   namespace_name: Optional[str] = None,
                                   notification_hub_name: Optional[str] = None,
                                   resource_group_name: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> ListNotificationHubKeysResult
    def list_notification_hub_keys_output(authorization_rule_name: Optional[pulumi.Input[str]] = None,
                                   namespace_name: Optional[pulumi.Input[str]] = None,
                                   notification_hub_name: Optional[pulumi.Input[str]] = None,
                                   resource_group_name: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[ListNotificationHubKeysResult]
    func ListNotificationHubKeys(ctx *Context, args *ListNotificationHubKeysArgs, opts ...InvokeOption) (*ListNotificationHubKeysResult, error)
    func ListNotificationHubKeysOutput(ctx *Context, args *ListNotificationHubKeysOutputArgs, opts ...InvokeOption) ListNotificationHubKeysResultOutput

    > Note: This function is named ListNotificationHubKeys in the Go SDK.

    public static class ListNotificationHubKeys 
    {
        public static Task<ListNotificationHubKeysResult> InvokeAsync(ListNotificationHubKeysArgs args, InvokeOptions? opts = null)
        public static Output<ListNotificationHubKeysResult> Invoke(ListNotificationHubKeysInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<ListNotificationHubKeysResult> listNotificationHubKeys(ListNotificationHubKeysArgs args, InvokeOptions options)
    public static Output<ListNotificationHubKeysResult> listNotificationHubKeys(ListNotificationHubKeysArgs args, InvokeOptions options)
    
    fn::invoke:
      function: azure-native:notificationhubs:listNotificationHubKeys
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AuthorizationRuleName string
    The connection string of the NotificationHub for the specified authorizationRule.
    NamespaceName string
    The namespace name.
    NotificationHubName string
    The notification hub name.
    ResourceGroupName string
    The name of the resource group.
    AuthorizationRuleName string
    The connection string of the NotificationHub for the specified authorizationRule.
    NamespaceName string
    The namespace name.
    NotificationHubName string
    The notification hub name.
    ResourceGroupName string
    The name of the resource group.
    authorizationRuleName String
    The connection string of the NotificationHub for the specified authorizationRule.
    namespaceName String
    The namespace name.
    notificationHubName String
    The notification hub name.
    resourceGroupName String
    The name of the resource group.
    authorizationRuleName string
    The connection string of the NotificationHub for the specified authorizationRule.
    namespaceName string
    The namespace name.
    notificationHubName string
    The notification hub name.
    resourceGroupName string
    The name of the resource group.
    authorization_rule_name str
    The connection string of the NotificationHub for the specified authorizationRule.
    namespace_name str
    The namespace name.
    notification_hub_name str
    The notification hub name.
    resource_group_name str
    The name of the resource group.
    authorizationRuleName String
    The connection string of the NotificationHub for the specified authorizationRule.
    namespaceName String
    The namespace name.
    notificationHubName String
    The notification hub name.
    resourceGroupName String
    The name of the resource group.

    listNotificationHubKeys Result

    The following output properties are available:

    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
    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
    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
    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
    key_name str
    KeyName of the created AuthorizationRule
    primary_connection_string str
    PrimaryConnectionString of the AuthorizationRule.
    primary_key str
    PrimaryKey of the created AuthorizationRule.
    secondary_connection_string str
    SecondaryConnectionString of the created AuthorizationRule
    secondary_key str
    SecondaryKey of the created AuthorizationRule
    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

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
    Viewing docs for Azure Native v1.103.0 (Older version)
    published on Monday, Mar 9, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.