This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi
azure-native.storage.listStorageAccountKeys
Explore with Pulumi AI
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 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, 2024-01-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>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]func ListStorageAccountKeys(ctx *Context, args *ListStorageAccountKeysArgs, opts ...InvokeOption) (*ListStorageAccountKeysResult, error)
func ListStorageAccountKeysOutput(ctx *Context, args *ListStorageAccountKeysOutputArgs, opts ...InvokeOption) ListStorageAccountKeysResultOutput> 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)
}public static CompletableFuture<ListStorageAccountKeysResult> listStorageAccountKeys(ListStorageAccountKeysArgs args, InvokeOptions options)
public static Output<ListStorageAccountKeysResult> listStorageAccountKeys(ListStorageAccountKeysArgs args, InvokeOptions options)
fn::invoke:
  function: azure-native:storage:listStorageAccountKeys
  arguments:
    # arguments dictionaryThe following arguments are supported:
- AccountName 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.
- ResourceGroup stringName 
- 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 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.
- ResourceGroup stringName 
- 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 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.
- resourceGroup StringName 
- 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 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.
- resourceGroup stringName 
- 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 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_ strname 
- 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 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.
- resourceGroup StringName 
- 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.Azure Native. Storage. Outputs. Storage Account Key Response> 
- Gets the list of storage account keys and their properties for the specified storage account.
- Keys
[]StorageAccount Key Response 
- Gets the list of storage account keys and their properties for the specified storage account.
- keys
List<StorageAccount Key Response> 
- Gets the list of storage account keys and their properties for the specified storage account.
- keys
StorageAccount Key Response[] 
- Gets the list of storage account keys and their properties for the specified storage account.
- keys
Sequence[StorageAccount Key Response] 
- 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 string
- Creation time of the key, in round trip date format.
- KeyName string
- Name of the key.
- Permissions string
- Permissions for the key -- read-only or full permissions.
- Value string
- Base 64-encoded value of the key.
- CreationTime string
- Creation time of the key, in round trip date format.
- KeyName string
- Name of the key.
- Permissions string
- Permissions for the key -- read-only or full permissions.
- Value string
- Base 64-encoded value of the key.
- creationTime String
- Creation time of the key, in round trip date format.
- keyName String
- Name of the key.
- permissions String
- Permissions for the key -- read-only or full permissions.
- value String
- Base 64-encoded value of the key.
- creationTime string
- Creation time of the key, in round trip date format.
- keyName string
- Name of the key.
- permissions string
- Permissions for the key -- read-only or full permissions.
- value string
- Base 64-encoded value of the key.
- creation_time str
- Creation time of the key, in round trip date format.
- key_name str
- Name of the key.
- permissions str
- Permissions for the key -- read-only or full permissions.
- value str
- Base 64-encoded value of the key.
- creationTime String
- Creation time of the key, in round trip date format.
- keyName String
- Name of the key.
- permissions String
- Permissions for the key -- read-only or full permissions.
- value String
- Base 64-encoded value of the key.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi