1. Packages
  2. Azure Native
  3. API Docs
  4. storage
  5. listLocalUserKeys
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.37.0 published on Monday, Apr 15, 2024 by Pulumi

azure-native.storage.listLocalUserKeys

Explore with Pulumi AI

azure-native logo
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.37.0 published on Monday, Apr 15, 2024 by Pulumi

    List SSH authorized keys and shared key of the local user. Azure REST API version: 2022-09-01.

    Other available API versions: 2023-01-01, 2023-04-01.

    Using listLocalUserKeys

    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 listLocalUserKeys(args: ListLocalUserKeysArgs, opts?: InvokeOptions): Promise<ListLocalUserKeysResult>
    function listLocalUserKeysOutput(args: ListLocalUserKeysOutputArgs, opts?: InvokeOptions): Output<ListLocalUserKeysResult>
    def list_local_user_keys(account_name: Optional[str] = None,
                             resource_group_name: Optional[str] = None,
                             username: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> ListLocalUserKeysResult
    def list_local_user_keys_output(account_name: Optional[pulumi.Input[str]] = None,
                             resource_group_name: Optional[pulumi.Input[str]] = None,
                             username: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[ListLocalUserKeysResult]
    func ListLocalUserKeys(ctx *Context, args *ListLocalUserKeysArgs, opts ...InvokeOption) (*ListLocalUserKeysResult, error)
    func ListLocalUserKeysOutput(ctx *Context, args *ListLocalUserKeysOutputArgs, opts ...InvokeOption) ListLocalUserKeysResultOutput

    > Note: This function is named ListLocalUserKeys in the Go SDK.

    public static class ListLocalUserKeys 
    {
        public static Task<ListLocalUserKeysResult> InvokeAsync(ListLocalUserKeysArgs args, InvokeOptions? opts = null)
        public static Output<ListLocalUserKeysResult> Invoke(ListLocalUserKeysInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<ListLocalUserKeysResult> listLocalUserKeys(ListLocalUserKeysArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: azure-native:storage:listLocalUserKeys
      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.
    Username string
    The name of local user. The username must contain lowercase letters and numbers only. It must be unique only within the storage account.
    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.
    Username string
    The name of local user. The username must contain lowercase letters and numbers only. It must be unique only within the storage account.
    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.
    username String
    The name of local user. The username must contain lowercase letters and numbers only. It must be unique only within the storage account.
    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.
    username string
    The name of local user. The username must contain lowercase letters and numbers only. It must be unique only within the storage account.
    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.
    username str
    The name of local user. The username must contain lowercase letters and numbers only. It must be unique only within the storage account.
    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.
    username String
    The name of local user. The username must contain lowercase letters and numbers only. It must be unique only within the storage account.

    listLocalUserKeys Result

    The following output properties are available:

    SharedKey string
    Auto generated by the server for SMB authentication.
    SshAuthorizedKeys List<Pulumi.AzureNative.Storage.Outputs.SshPublicKeyResponse>
    Optional, local user ssh authorized keys for SFTP.
    SharedKey string
    Auto generated by the server for SMB authentication.
    SshAuthorizedKeys []SshPublicKeyResponse
    Optional, local user ssh authorized keys for SFTP.
    sharedKey String
    Auto generated by the server for SMB authentication.
    sshAuthorizedKeys List<SshPublicKeyResponse>
    Optional, local user ssh authorized keys for SFTP.
    sharedKey string
    Auto generated by the server for SMB authentication.
    sshAuthorizedKeys SshPublicKeyResponse[]
    Optional, local user ssh authorized keys for SFTP.
    shared_key str
    Auto generated by the server for SMB authentication.
    ssh_authorized_keys Sequence[SshPublicKeyResponse]
    Optional, local user ssh authorized keys for SFTP.
    sharedKey String
    Auto generated by the server for SMB authentication.
    sshAuthorizedKeys List<Property Map>
    Optional, local user ssh authorized keys for SFTP.

    Supporting Types

    SshPublicKeyResponse

    Description string
    Optional. It is used to store the function/usage of the key
    Key string
    Ssh public key base64 encoded. The format should be: ' ', e.g. ssh-rsa AAAABBBB
    Description string
    Optional. It is used to store the function/usage of the key
    Key string
    Ssh public key base64 encoded. The format should be: ' ', e.g. ssh-rsa AAAABBBB
    description String
    Optional. It is used to store the function/usage of the key
    key String
    Ssh public key base64 encoded. The format should be: ' ', e.g. ssh-rsa AAAABBBB
    description string
    Optional. It is used to store the function/usage of the key
    key string
    Ssh public key base64 encoded. The format should be: ' ', e.g. ssh-rsa AAAABBBB
    description str
    Optional. It is used to store the function/usage of the key
    key str
    Ssh public key base64 encoded. The format should be: ' ', e.g. ssh-rsa AAAABBBB
    description String
    Optional. It is used to store the function/usage of the key
    key String
    Ssh public key base64 encoded. The format should be: ' ', e.g. ssh-rsa AAAABBBB

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    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.37.0 published on Monday, Apr 15, 2024 by Pulumi