@pulumi/azure-native
Version:
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [ • 2.91 kB
TypeScript
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>;
}