UNPKG

@pulumi/azure-native

Version:

[![Slack](http://www.pulumi.com/images/docs/badges/slack.svg)](https://slack.pulumi.com) [![NPM version](https://badge.fury.io/js/%40pulumi%2Fazure-native.svg)](https://npmjs.com/package/@pulumi/azure-native) [![Python version](https://badge.fury.io/py/pu

80 lines (79 loc) 2.91 kB
import * as pulumi from "@pulumi/pulumi"; /** * Gets the Primary and Secondary ConnectionStrings to the NotificationHub * * Uses Azure REST API version 2023-10-01-preview. * * Other available API versions: 2023-01-01-preview, 2023-09-01. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native notificationhubs [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details. */ export declare function listNotificationHubKeys(args: ListNotificationHubKeysArgs, opts?: pulumi.InvokeOptions): Promise<ListNotificationHubKeysResult>; export interface ListNotificationHubKeysArgs { /** * Authorization Rule Name */ authorizationRuleName: string; /** * Namespace name */ namespaceName: string; /** * Notification Hub name */ notificationHubName: string; /** * The name of the resource group. The name is case insensitive. */ resourceGroupName: string; } /** * Response for the POST request that returns Namespace or NotificationHub access keys (connection strings). */ export interface ListNotificationHubKeysResult { /** * Gets or sets keyName of the created AuthorizationRule */ readonly keyName: string; /** * Gets or sets primaryConnectionString of the AuthorizationRule. */ readonly primaryConnectionString: string; /** * Gets or sets primaryKey of the created AuthorizationRule. */ readonly primaryKey: string; /** * Gets or sets secondaryConnectionString of the created * AuthorizationRule */ readonly secondaryConnectionString: string; /** * Gets or sets secondaryKey of the created AuthorizationRule */ readonly secondaryKey: string; } /** * Gets the Primary and Secondary ConnectionStrings to the NotificationHub * * Uses Azure REST API version 2023-10-01-preview. * * Other available API versions: 2023-01-01-preview, 2023-09-01. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native notificationhubs [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details. */ export declare function listNotificationHubKeysOutput(args: ListNotificationHubKeysOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<ListNotificationHubKeysResult>; export interface ListNotificationHubKeysOutputArgs { /** * Authorization Rule Name */ authorizationRuleName: pulumi.Input<string>; /** * Namespace name */ namespaceName: pulumi.Input<string>; /** * Notification Hub name */ notificationHubName: pulumi.Input<string>; /** * The name of the resource group. The name is case insensitive. */ resourceGroupName: pulumi.Input<string>; }