@pulumi/azure-native
Version:
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [;
exports.listBatchAccountKeysOutput = exports.listBatchAccountKeys = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* 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.
*/
function listBatchAccountKeys(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("azure-native:batch:listBatchAccountKeys", {
"accountName": args.accountName,
"resourceGroupName": args.resourceGroupName,
}, opts);
}
exports.listBatchAccountKeys = listBatchAccountKeys;
/**
* 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.
*/
function listBatchAccountKeysOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("azure-native:batch:listBatchAccountKeys", {
"accountName": args.accountName,
"resourceGroupName": args.resourceGroupName,
}, opts);
}
exports.listBatchAccountKeysOutput = listBatchAccountKeysOutput;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib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