@pulumi/azure-native
Version:
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [ • 2.68 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Gets the Primary and Secondary ConnectionStrings to the namespace.
*
* 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 listNamespaceKeys(args: ListNamespaceKeysArgs, opts?: pulumi.InvokeOptions): Promise<ListNamespaceKeysResult>;
export interface ListNamespaceKeysArgs {
/**
* Authorization Rule Name
*/
authorizationRuleName: string;
/**
* Namespace name
*/
namespaceName: 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 ListNamespaceKeysResult {
/**
* 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 namespace.
*
* 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 listNamespaceKeysOutput(args: ListNamespaceKeysOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<ListNamespaceKeysResult>;
export interface ListNamespaceKeysOutputArgs {
/**
* Authorization Rule Name
*/
authorizationRuleName: pulumi.Input<string>;
/**
* Namespace name
*/
namespaceName: pulumi.Input<string>;
/**
* The name of the resource group. The name is case insensitive.
*/
resourceGroupName: pulumi.Input<string>;
}