Use Pulumi's new import command to generate code from existing cloud resources. Learn More

ListStorageAccountKeys

Using ListStorageAccountKeys

function listStorageAccountKeys(args: ListStorageAccountKeysArgs, opts?: InvokeOptions): Promise<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
func ListStorageAccountKeys(ctx *Context, args *ListStorageAccountKeysArgs, opts ...InvokeOption) (*ListStorageAccountKeysResult, error)
public static class ListStorageAccountKeys {
    public static Task<ListStorageAccountKeysResult> InvokeAsync(ListStorageAccountKeysArgs args, InvokeOptions? opts = null)
}

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.
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.

ListStorageAccountKeys Result

The following output properties are available:

Keys List<Pulumi.AzureNextGen.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 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.

Supporting Types

StorageAccountKeyResponse

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.
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.
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.
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.

Package Details

Repository
https://github.com/pulumi/pulumi-azure-nextgen
License
Apache-2.0