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.73.0 published on Wednesday, Nov 20, 2024 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.73.0 published on Wednesday, Nov 20, 2024 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: 2015-05-01-preview, 2015-06-15, 2018-11-01, 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: azure-native:storage:listStorageAccountKeys
arguments:
# arguments dictionary
The following arguments are supported:
- Account
Name 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.
- Resource
Group 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 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.
- Resource
Group 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 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.
- resource
Group 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 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.
- resource
Group 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.
- account
Name 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.
- resource
Group 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
[]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 string - Creation time of the key, in round trip date format.
- Key
Name 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 string - Creation time of the key, in round trip date format.
- Key
Name 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 String - Creation time of the key, in round trip date format.
- key
Name 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 string - Creation time of the key, in round trip date format.
- key
Name 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.
- creation
Time String - Creation time of the key, in round trip date format.
- key
Name 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.73.0 published on Wednesday, Nov 20, 2024 by Pulumi