@pulumi/azure-native
Version:
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [ • 2.14 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* List the two keys used to publish to a topic.
*
* Uses Azure REST API version 2025-02-15.
*
* Other available API versions: 2022-06-15, 2023-06-01-preview, 2023-12-15-preview, 2024-06-01-preview, 2024-12-15-preview, 2025-04-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native eventgrid [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function listTopicSharedAccessKeys(args: ListTopicSharedAccessKeysArgs, opts?: pulumi.InvokeOptions): Promise<ListTopicSharedAccessKeysResult>;
export interface ListTopicSharedAccessKeysArgs {
/**
* The name of the resource group within the user's subscription.
*/
resourceGroupName: string;
/**
* Name of the topic.
*/
topicName: string;
}
/**
* Shared access keys of the Topic
*/
export interface ListTopicSharedAccessKeysResult {
/**
* Shared access key1 for the topic.
*/
readonly key1?: string;
/**
* Shared access key2 for the topic.
*/
readonly key2?: string;
}
/**
* List the two keys used to publish to a topic.
*
* Uses Azure REST API version 2025-02-15.
*
* Other available API versions: 2022-06-15, 2023-06-01-preview, 2023-12-15-preview, 2024-06-01-preview, 2024-12-15-preview, 2025-04-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native eventgrid [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function listTopicSharedAccessKeysOutput(args: ListTopicSharedAccessKeysOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<ListTopicSharedAccessKeysResult>;
export interface ListTopicSharedAccessKeysOutputArgs {
/**
* The name of the resource group within the user's subscription.
*/
resourceGroupName: pulumi.Input<string>;
/**
* Name of the topic.
*/
topicName: pulumi.Input<string>;
}