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>
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 dictionary
The following arguments are supported:
- Account
Name This property is required. Changes to this property will trigger replacement.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- account
Name This property is required. Changes to this property will trigger replacement.
- 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.
- 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
[]Storage
Account Key Response - Gets the list of storage account keys and their properties for the specified storage account.
- keys
List<Storage
Account Key Response> - Gets the list of storage account keys and their properties for the specified storage account.
- keys
Storage
Account Key Response[] - Gets the list of storage account keys and their properties for the specified storage account.
- keys
Sequence[Storage
Account 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
- Creation
Time This property is required. string - Creation time of the key, in round trip date format.
- Key
Name 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. string - Creation time of the key, in round trip date format.
- Key
Name 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. String - Creation time of the key, in round trip date format.
- key
Name 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. string - Creation time of the key, in round trip date format.
- key
Name 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.
- creation
Time This property is required. String - Creation time of the key, in round trip date format.
- key
Name 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