1. Packages
  2. Azure Native v1
  3. API Docs
  4. storage
  5. getLocalUser
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.getLocalUser

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

    Get the local user of the storage account by username. API Version: 2021-08-01.

    Using getLocalUser

    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 getLocalUser(args: GetLocalUserArgs, opts?: InvokeOptions): Promise<GetLocalUserResult>
    function getLocalUserOutput(args: GetLocalUserOutputArgs, opts?: InvokeOptions): Output<GetLocalUserResult>
    def get_local_user(account_name: Optional[str] = None,
                       resource_group_name: Optional[str] = None,
                       username: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetLocalUserResult
    def get_local_user_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[GetLocalUserResult]
    func LookupLocalUser(ctx *Context, args *LookupLocalUserArgs, opts ...InvokeOption) (*LookupLocalUserResult, error)
    func LookupLocalUserOutput(ctx *Context, args *LookupLocalUserOutputArgs, opts ...InvokeOption) LookupLocalUserResultOutput

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

    public static class GetLocalUser 
    {
        public static Task<GetLocalUserResult> InvokeAsync(GetLocalUserArgs args, InvokeOptions? opts = null)
        public static Output<GetLocalUserResult> Invoke(GetLocalUserInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetLocalUserResult> getLocalUser(GetLocalUserArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: azure-native:storage:getLocalUser
      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.

    getLocalUser Result

    The following output properties are available:

    Id string
    Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    Name string
    The name of the resource
    Sid string
    A unique Security Identifier that is generated by the server.
    SystemData Pulumi.AzureNative.Storage.Outputs.SystemDataResponse
    Metadata pertaining to creation and last modification of the resource.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    HasSharedKey bool
    Indicates whether shared key exists. Set it to false to remove existing shared key.
    HasSshKey bool
    Indicates whether ssh key exists. Set it to false to remove existing SSH key.
    HasSshPassword bool
    Indicates whether ssh password exists. Set it to false to remove existing SSH password.
    HomeDirectory string
    Optional, local user home directory.
    PermissionScopes List<Pulumi.AzureNative.Storage.Outputs.PermissionScopeResponse>
    The permission scopes of the local user.
    SshAuthorizedKeys List<Pulumi.AzureNative.Storage.Outputs.SshPublicKeyResponse>
    Optional, local user ssh authorized keys for SFTP.
    Id string
    Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    Name string
    The name of the resource
    Sid string
    A unique Security Identifier that is generated by the server.
    SystemData SystemDataResponse
    Metadata pertaining to creation and last modification of the resource.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    HasSharedKey bool
    Indicates whether shared key exists. Set it to false to remove existing shared key.
    HasSshKey bool
    Indicates whether ssh key exists. Set it to false to remove existing SSH key.
    HasSshPassword bool
    Indicates whether ssh password exists. Set it to false to remove existing SSH password.
    HomeDirectory string
    Optional, local user home directory.
    PermissionScopes []PermissionScopeResponse
    The permission scopes of the local user.
    SshAuthorizedKeys []SshPublicKeyResponse
    Optional, local user ssh authorized keys for SFTP.
    id String
    Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    name String
    The name of the resource
    sid String
    A unique Security Identifier that is generated by the server.
    systemData SystemDataResponse
    Metadata pertaining to creation and last modification of the resource.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    hasSharedKey Boolean
    Indicates whether shared key exists. Set it to false to remove existing shared key.
    hasSshKey Boolean
    Indicates whether ssh key exists. Set it to false to remove existing SSH key.
    hasSshPassword Boolean
    Indicates whether ssh password exists. Set it to false to remove existing SSH password.
    homeDirectory String
    Optional, local user home directory.
    permissionScopes List<PermissionScopeResponse>
    The permission scopes of the local user.
    sshAuthorizedKeys List<SshPublicKeyResponse>
    Optional, local user ssh authorized keys for SFTP.
    id string
    Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    name string
    The name of the resource
    sid string
    A unique Security Identifier that is generated by the server.
    systemData SystemDataResponse
    Metadata pertaining to creation and last modification of the resource.
    type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    hasSharedKey boolean
    Indicates whether shared key exists. Set it to false to remove existing shared key.
    hasSshKey boolean
    Indicates whether ssh key exists. Set it to false to remove existing SSH key.
    hasSshPassword boolean
    Indicates whether ssh password exists. Set it to false to remove existing SSH password.
    homeDirectory string
    Optional, local user home directory.
    permissionScopes PermissionScopeResponse[]
    The permission scopes of the local user.
    sshAuthorizedKeys SshPublicKeyResponse[]
    Optional, local user ssh authorized keys for SFTP.
    id str
    Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    name str
    The name of the resource
    sid str
    A unique Security Identifier that is generated by the server.
    system_data SystemDataResponse
    Metadata pertaining to creation and last modification of the resource.
    type str
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    has_shared_key bool
    Indicates whether shared key exists. Set it to false to remove existing shared key.
    has_ssh_key bool
    Indicates whether ssh key exists. Set it to false to remove existing SSH key.
    has_ssh_password bool
    Indicates whether ssh password exists. Set it to false to remove existing SSH password.
    home_directory str
    Optional, local user home directory.
    permission_scopes Sequence[PermissionScopeResponse]
    The permission scopes of the local user.
    ssh_authorized_keys Sequence[SshPublicKeyResponse]
    Optional, local user ssh authorized keys for SFTP.
    id String
    Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    name String
    The name of the resource
    sid String
    A unique Security Identifier that is generated by the server.
    systemData Property Map
    Metadata pertaining to creation and last modification of the resource.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    hasSharedKey Boolean
    Indicates whether shared key exists. Set it to false to remove existing shared key.
    hasSshKey Boolean
    Indicates whether ssh key exists. Set it to false to remove existing SSH key.
    hasSshPassword Boolean
    Indicates whether ssh password exists. Set it to false to remove existing SSH password.
    homeDirectory String
    Optional, local user home directory.
    permissionScopes List<Property Map>
    The permission scopes of the local user.
    sshAuthorizedKeys List<Property Map>
    Optional, local user ssh authorized keys for SFTP.

    Supporting Types

    PermissionScopeResponse

    Permissions string
    The permissions for the local user. Possible values include: Read (r), Write (w), Delete (d), List (l), and Create (c).
    ResourceName string
    The name of resource, normally the container name or the file share name, used by the local user.
    Service string
    The service used by the local user, e.g. blob, file.
    Permissions string
    The permissions for the local user. Possible values include: Read (r), Write (w), Delete (d), List (l), and Create (c).
    ResourceName string
    The name of resource, normally the container name or the file share name, used by the local user.
    Service string
    The service used by the local user, e.g. blob, file.
    permissions String
    The permissions for the local user. Possible values include: Read (r), Write (w), Delete (d), List (l), and Create (c).
    resourceName String
    The name of resource, normally the container name or the file share name, used by the local user.
    service String
    The service used by the local user, e.g. blob, file.
    permissions string
    The permissions for the local user. Possible values include: Read (r), Write (w), Delete (d), List (l), and Create (c).
    resourceName string
    The name of resource, normally the container name or the file share name, used by the local user.
    service string
    The service used by the local user, e.g. blob, file.
    permissions str
    The permissions for the local user. Possible values include: Read (r), Write (w), Delete (d), List (l), and Create (c).
    resource_name str
    The name of resource, normally the container name or the file share name, used by the local user.
    service str
    The service used by the local user, e.g. blob, file.
    permissions String
    The permissions for the local user. Possible values include: Read (r), Write (w), Delete (d), List (l), and Create (c).
    resourceName String
    The name of resource, normally the container name or the file share name, used by the local user.
    service String
    The service used by the local user, e.g. blob, file.

    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

    SystemDataResponse

    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.
    createdAt string
    The timestamp of resource creation (UTC).
    createdBy string
    The identity that created the resource.
    createdByType string
    The type of identity that created the resource.
    lastModifiedAt string
    The timestamp of resource last modification (UTC)
    lastModifiedBy string
    The identity that last modified the resource.
    lastModifiedByType string
    The type of identity that last modified the resource.
    created_at str
    The timestamp of resource creation (UTC).
    created_by str
    The identity that created the resource.
    created_by_type str
    The type of identity that created the resource.
    last_modified_at str
    The timestamp of resource last modification (UTC)
    last_modified_by str
    The identity that last modified the resource.
    last_modified_by_type str
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.

    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