@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";
/**
* Lists the account keys for the specified Cognitive Services account.
*
* Uses Azure REST API version 2024-10-01.
*
* Other available API versions: 2023-05-01, 2023-10-01-preview, 2024-04-01-preview, 2024-06-01-preview, 2025-04-01-preview, 2025-06-01. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native cognitiveservices [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function listAccountKeys(args: ListAccountKeysArgs, opts?: pulumi.InvokeOptions): Promise<ListAccountKeysResult>;
export interface ListAccountKeysArgs {
/**
* The name of Cognitive Services account.
*/
accountName: string;
/**
* The name of the resource group. The name is case insensitive.
*/
resourceGroupName: string;
}
/**
* The access keys for the cognitive services account.
*/
export interface ListAccountKeysResult {
/**
* Gets the value of key 1.
*/
readonly key1?: string;
/**
* Gets the value of key 2.
*/
readonly key2?: string;
}
/**
* Lists the account keys for the specified Cognitive Services account.
*
* Uses Azure REST API version 2024-10-01.
*
* Other available API versions: 2023-05-01, 2023-10-01-preview, 2024-04-01-preview, 2024-06-01-preview, 2025-04-01-preview, 2025-06-01. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native cognitiveservices [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function listAccountKeysOutput(args: ListAccountKeysOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<ListAccountKeysResult>;
export interface ListAccountKeysOutputArgs {
/**
* The name of Cognitive Services account.
*/
accountName: pulumi.Input<string>;
/**
* The name of the resource group. The name is case insensitive.
*/
resourceGroupName: pulumi.Input<string>;
}