1. Packages
  2. Azure Native v2
  3. API Docs
  4. storage
  5. listStorageAccountKeys
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

azure-native-v2.storage.listStorageAccountKeys

Explore with Pulumi AI

These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

Lists the access keys or Kerberos keys (if active directory enabled) for the specified storage account. Azure REST API version: 2022-09-01.

Other available API versions: 2023-01-01, 2023-04-01, 2023-05-01.

Using listStorageAccountKeys

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function listStorageAccountKeys(args: ListStorageAccountKeysArgs, opts?: InvokeOptions): Promise<ListStorageAccountKeysResult>
function listStorageAccountKeysOutput(args: ListStorageAccountKeysOutputArgs, opts?: InvokeOptions): Output<ListStorageAccountKeysResult>
Copy
def list_storage_account_keys(account_name: Optional[str] = None,
                              expand: Optional[str] = None,
                              resource_group_name: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> ListStorageAccountKeysResult
def list_storage_account_keys_output(account_name: Optional[pulumi.Input[str]] = None,
                              expand: Optional[pulumi.Input[str]] = None,
                              resource_group_name: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[ListStorageAccountKeysResult]
Copy
func ListStorageAccountKeys(ctx *Context, args *ListStorageAccountKeysArgs, opts ...InvokeOption) (*ListStorageAccountKeysResult, error)
func ListStorageAccountKeysOutput(ctx *Context, args *ListStorageAccountKeysOutputArgs, opts ...InvokeOption) ListStorageAccountKeysResultOutput
Copy

> Note: This function is named ListStorageAccountKeys in the Go SDK.

public static class ListStorageAccountKeys 
{
    public static Task<ListStorageAccountKeysResult> InvokeAsync(ListStorageAccountKeysArgs args, InvokeOptions? opts = null)
    public static Output<ListStorageAccountKeysResult> Invoke(ListStorageAccountKeysInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<ListStorageAccountKeysResult> listStorageAccountKeys(ListStorageAccountKeysArgs args, InvokeOptions options)
public static Output<ListStorageAccountKeysResult> listStorageAccountKeys(ListStorageAccountKeysArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure-native:storage:listStorageAccountKeys
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

AccountName
This property is required.
Changes to this property will trigger replacement.
string
The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group within the user's subscription. The name is case insensitive.
Expand string
Specifies type of the key to be listed. Possible value is kerb.
AccountName
This property is required.
Changes to this property will trigger replacement.
string
The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group within the user's subscription. The name is case insensitive.
Expand string
Specifies type of the key to be listed. Possible value is kerb.
accountName
This property is required.
Changes to this property will trigger replacement.
String
The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group within the user's subscription. The name is case insensitive.
expand String
Specifies type of the key to be listed. Possible value is kerb.
accountName
This property is required.
Changes to this property will trigger replacement.
string
The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group within the user's subscription. The name is case insensitive.
expand string
Specifies type of the key to be listed. Possible value is kerb.
account_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group within the user's subscription. The name is case insensitive.
expand str
Specifies type of the key to be listed. Possible value is kerb.
accountName
This property is required.
Changes to this property will trigger replacement.
String
The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group within the user's subscription. The name is case insensitive.
expand String
Specifies type of the key to be listed. Possible value is kerb.

listStorageAccountKeys Result

The following output properties are available:

Keys List<Pulumi.AzureNative.Storage.Outputs.StorageAccountKeyResponse>
Gets the list of storage account keys and their properties for the specified storage account.
Keys []StorageAccountKeyResponse
Gets the list of storage account keys and their properties for the specified storage account.
keys List<StorageAccountKeyResponse>
Gets the list of storage account keys and their properties for the specified storage account.
keys StorageAccountKeyResponse[]
Gets the list of storage account keys and their properties for the specified storage account.
keys Sequence[StorageAccountKeyResponse]
Gets the list of storage account keys and their properties for the specified storage account.
keys List<Property Map>
Gets the list of storage account keys and their properties for the specified storage account.

Supporting Types

StorageAccountKeyResponse

CreationTime This property is required. string
Creation time of the key, in round trip date format.
KeyName This property is required. string
Name of the key.
Permissions This property is required. string
Permissions for the key -- read-only or full permissions.
Value This property is required. string
Base 64-encoded value of the key.
CreationTime This property is required. string
Creation time of the key, in round trip date format.
KeyName This property is required. string
Name of the key.
Permissions This property is required. string
Permissions for the key -- read-only or full permissions.
Value This property is required. string
Base 64-encoded value of the key.
creationTime This property is required. String
Creation time of the key, in round trip date format.
keyName This property is required. String
Name of the key.
permissions This property is required. String
Permissions for the key -- read-only or full permissions.
value This property is required. String
Base 64-encoded value of the key.
creationTime This property is required. string
Creation time of the key, in round trip date format.
keyName This property is required. string
Name of the key.
permissions This property is required. string
Permissions for the key -- read-only or full permissions.
value This property is required. string
Base 64-encoded value of the key.
creation_time This property is required. str
Creation time of the key, in round trip date format.
key_name This property is required. str
Name of the key.
permissions This property is required. str
Permissions for the key -- read-only or full permissions.
value This property is required. str
Base 64-encoded value of the key.
creationTime This property is required. String
Creation time of the key, in round trip date format.
keyName This property is required. String
Name of the key.
permissions This property is required. String
Permissions for the key -- read-only or full permissions.
value This property is required. String
Base 64-encoded value of the key.

Package Details

Repository
azure-native-v2 pulumi/pulumi-azure-native
License
Apache-2.0
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi