@pulumi/azure-native
Version:
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [ • 2.65 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, getting the keys will fail.
*
* Uses Azure REST API version 2024-07-01.
*
* Other available API versions: 2023-05-01, 2023-11-01, 2024-02-01. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native batch [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function listBatchAccountKeys(args: ListBatchAccountKeysArgs, opts?: pulumi.InvokeOptions): Promise<ListBatchAccountKeysResult>;
export interface ListBatchAccountKeysArgs {
/**
* The name of the Batch account.
*/
accountName: string;
/**
* The name of the resource group that contains the Batch account.
*/
resourceGroupName: string;
}
/**
* A set of Azure Batch account keys.
*/
export interface ListBatchAccountKeysResult {
/**
* The Batch account name.
*/
readonly accountName: string;
/**
* The primary key associated with the account.
*/
readonly primary: string;
/**
* The secondary key associated with the account.
*/
readonly secondary: string;
}
/**
* This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, getting the keys will fail.
*
* Uses Azure REST API version 2024-07-01.
*
* Other available API versions: 2023-05-01, 2023-11-01, 2024-02-01. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native batch [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function listBatchAccountKeysOutput(args: ListBatchAccountKeysOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<ListBatchAccountKeysResult>;
export interface ListBatchAccountKeysOutputArgs {
/**
* The name of the Batch account.
*/
accountName: pulumi.Input<string>;
/**
* The name of the resource group that contains the Batch account.
*/
resourceGroupName: pulumi.Input<string>;
}