@pulumi/azure-native
Version:
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [ • 3.18 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Gets the primary and secondary connection strings for the Namespace.
*
* Uses Azure REST API version 2024-01-01.
*
* Other available API versions: 2018-01-01-preview, 2021-01-01-preview, 2021-06-01-preview, 2021-11-01, 2022-01-01-preview, 2022-10-01-preview, 2023-01-01-preview, 2024-05-01-preview, 2025-05-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native eventhub [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 {
/**
* The authorization rule name.
*/
authorizationRuleName: string;
/**
* The Namespace name
*/
namespaceName: string;
/**
* Name of the resource group within the azure subscription.
*/
resourceGroupName: string;
}
/**
* Namespace/EventHub Connection String
*/
export interface ListNamespaceKeysResult {
/**
* Primary connection string of the alias if GEO DR is enabled
*/
readonly aliasPrimaryConnectionString: string;
/**
* Secondary connection string of the alias if GEO DR is enabled
*/
readonly aliasSecondaryConnectionString: string;
/**
* A string that describes the AuthorizationRule.
*/
readonly keyName: string;
/**
* Primary connection string of the created namespace AuthorizationRule.
*/
readonly primaryConnectionString: string;
/**
* A base64-encoded 256-bit primary key for signing and validating the SAS token.
*/
readonly primaryKey: string;
/**
* Secondary connection string of the created namespace AuthorizationRule.
*/
readonly secondaryConnectionString: string;
/**
* A base64-encoded 256-bit primary key for signing and validating the SAS token.
*/
readonly secondaryKey: string;
}
/**
* Gets the primary and secondary connection strings for the Namespace.
*
* Uses Azure REST API version 2024-01-01.
*
* Other available API versions: 2018-01-01-preview, 2021-01-01-preview, 2021-06-01-preview, 2021-11-01, 2022-01-01-preview, 2022-10-01-preview, 2023-01-01-preview, 2024-05-01-preview, 2025-05-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native eventhub [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 {
/**
* The authorization rule name.
*/
authorizationRuleName: pulumi.Input<string>;
/**
* The Namespace name
*/
namespaceName: pulumi.Input<string>;
/**
* Name of the resource group within the azure subscription.
*/
resourceGroupName: pulumi.Input<string>;
}