@pulumi/azure-native
Version:
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [ • 2.44 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Get the access keys of the resource.
*
* Uses Azure REST API version 2024-03-01.
*
* Other available API versions: 2023-02-01, 2023-03-01-preview, 2023-06-01-preview, 2023-08-01-preview, 2024-01-01-preview, 2024-04-01-preview, 2024-08-01-preview, 2024-10-01-preview, 2025-01-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native webpubsub [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function listWebPubSubKeys(args: ListWebPubSubKeysArgs, opts?: pulumi.InvokeOptions): Promise<ListWebPubSubKeysResult>;
export interface ListWebPubSubKeysArgs {
/**
* The name of the resource group. The name is case insensitive.
*/
resourceGroupName: string;
/**
* The name of the resource.
*/
resourceName: string;
}
/**
* A class represents the access keys of the resource.
*/
export interface ListWebPubSubKeysResult {
/**
* Connection string constructed via the primaryKey
*/
readonly primaryConnectionString?: string;
/**
* The primary access key.
*/
readonly primaryKey?: string;
/**
* Connection string constructed via the secondaryKey
*/
readonly secondaryConnectionString?: string;
/**
* The secondary access key.
*/
readonly secondaryKey?: string;
}
/**
* Get the access keys of the resource.
*
* Uses Azure REST API version 2024-03-01.
*
* Other available API versions: 2023-02-01, 2023-03-01-preview, 2023-06-01-preview, 2023-08-01-preview, 2024-01-01-preview, 2024-04-01-preview, 2024-08-01-preview, 2024-10-01-preview, 2025-01-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native webpubsub [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function listWebPubSubKeysOutput(args: ListWebPubSubKeysOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<ListWebPubSubKeysResult>;
export interface ListWebPubSubKeysOutputArgs {
/**
* The name of the resource group. The name is case insensitive.
*/
resourceGroupName: pulumi.Input<string>;
/**
* The name of the resource.
*/
resourceName: pulumi.Input<string>;
}