getKey

suspend fun getKey(argument: GetKeyPlainArgs): GetKeyResult

Gets the current version of the specified key from the specified key vault. Uses Azure REST API version 2024-11-01. Other available API versions: 2023-02-01, 2023-07-01, 2024-04-01-preview, 2024-12-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native keyvault [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Return

The key resource.

Parameters

argument

null


suspend fun getKey(keyName: String, resourceGroupName: String, vaultName: String): GetKeyResult

Return

The key resource.

Parameters

keyName

The name of the key to be retrieved.

resourceGroupName

The name of the resource group which contains the specified key vault.

vaultName

The name of the vault which contains the key to be retrieved.

See also


suspend fun getKey(argument: suspend GetKeyPlainArgsBuilder.() -> Unit): GetKeyResult

Return

The key resource.

Parameters

argument

Builder for com.pulumi.azurenative.keyvault.kotlin.inputs.GetKeyPlainArgs.

See also