1. Packages
  2. Azure Native v1
  3. API Docs
  4. storage
  5. listStorageAccountKeys
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.storage.listStorageAccountKeys

Explore with Pulumi AI

azure-native-v1 logo
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

    Lists the access keys or Kerberos keys (if active directory enabled) for the specified storage account. API Version: 2021-02-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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: azure-native:storage:listStorageAccountKeys
      arguments:
        # arguments dictionary

    The 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.
    ResourceGroupName 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 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 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 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 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 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 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 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 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 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 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 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-v1 pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native-v1 logo
    These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
    Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi