1. Packages
  2. Volcengine
  3. API Docs
  4. iam
  5. getLoginProfiles
Viewing docs for Volcengine v0.0.47
published on Friday, Mar 13, 2026 by Volcengine
volcengine logo
Viewing docs for Volcengine v0.0.47
published on Friday, Mar 13, 2026 by Volcengine

    Use this data source to query detailed information of iam login profiles

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    
    const default = volcengine.iam.getLoginProfiles({
        userName: "xx",
    });
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    default = volcengine.iam.get_login_profiles(user_name="xx")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/iam"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := iam.GetLoginProfiles(ctx, &iam.GetLoginProfilesArgs{
    			UserName: "xx",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = Volcengine.Iam.GetLoginProfiles.Invoke(new()
        {
            UserName = "xx",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.volcengine.iam.IamFunctions;
    import com.pulumi.volcengine.iam.inputs.GetLoginProfilesArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var default = IamFunctions.getLoginProfiles(GetLoginProfilesArgs.builder()
                .userName("xx")
                .build());
    
        }
    }
    
    variables:
      default:
        fn::invoke:
          Function: volcengine:iam:getLoginProfiles
          Arguments:
            userName: xx
    

    Using getLoginProfiles

    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 getLoginProfiles(args: GetLoginProfilesArgs, opts?: InvokeOptions): Promise<GetLoginProfilesResult>
    function getLoginProfilesOutput(args: GetLoginProfilesOutputArgs, opts?: InvokeOptions): Output<GetLoginProfilesResult>
    def get_login_profiles(user_name: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetLoginProfilesResult
    def get_login_profiles_output(user_name: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetLoginProfilesResult]
    func GetLoginProfiles(ctx *Context, args *GetLoginProfilesArgs, opts ...InvokeOption) (*GetLoginProfilesResult, error)
    func GetLoginProfilesOutput(ctx *Context, args *GetLoginProfilesOutputArgs, opts ...InvokeOption) GetLoginProfilesResultOutput

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

    public static class GetLoginProfiles 
    {
        public static Task<GetLoginProfilesResult> InvokeAsync(GetLoginProfilesArgs args, InvokeOptions? opts = null)
        public static Output<GetLoginProfilesResult> Invoke(GetLoginProfilesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetLoginProfilesResult> getLoginProfiles(GetLoginProfilesArgs args, InvokeOptions options)
    public static Output<GetLoginProfilesResult> getLoginProfiles(GetLoginProfilesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: volcengine:iam/getLoginProfiles:getLoginProfiles
      arguments:
        # arguments dictionary

    The following arguments are supported:

    UserName string
    The user name.
    UserName string
    The user name.
    userName String
    The user name.
    userName string
    The user name.
    user_name str
    The user name.
    userName String
    The user name.

    getLoginProfiles Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    LoginProfiles List<GetLoginProfilesLoginProfile>
    The collection of login profiles.
    UserName string
    The user name.
    Id string
    The provider-assigned unique ID for this managed resource.
    LoginProfiles []GetLoginProfilesLoginProfile
    The collection of login profiles.
    UserName string
    The user name.
    id String
    The provider-assigned unique ID for this managed resource.
    loginProfiles List<GetLoginProfilesLoginProfile>
    The collection of login profiles.
    userName String
    The user name.
    id string
    The provider-assigned unique ID for this managed resource.
    loginProfiles GetLoginProfilesLoginProfile[]
    The collection of login profiles.
    userName string
    The user name.
    id str
    The provider-assigned unique ID for this managed resource.
    login_profiles Sequence[GetLoginProfilesLoginProfile]
    The collection of login profiles.
    user_name str
    The user name.
    id String
    The provider-assigned unique ID for this managed resource.
    loginProfiles List<Property Map>
    The collection of login profiles.
    userName String
    The user name.

    Supporting Types

    GetLoginProfilesLoginProfile

    CreateDate string
    The create date.
    LastLoginDate string
    The last login date.
    LastLoginIp string
    The last login ip.
    LastResetPasswordTime int
    The last reset password time.
    LoginAllowed bool
    The flag of login allowed.
    LoginLocked bool
    The flag of login locked.
    PasswordExpireAt int
    The password expire at.
    PasswordResetRequired bool
    Is required reset password when next time login in.
    SafeAuthExemptDuration int
    The duration of safe auth exempt.
    SafeAuthExemptRequired int
    The flag of safe auth exempt required.
    SafeAuthExemptUnit int
    The unit of safe auth exempt.
    SafeAuthFlag bool
    The flag of safe auth.
    SafeAuthType string
    The type of safe auth.
    UpdateDate string
    The update date.
    UserId int
    The user id.
    UserName string
    The user name.
    CreateDate string
    The create date.
    LastLoginDate string
    The last login date.
    LastLoginIp string
    The last login ip.
    LastResetPasswordTime int
    The last reset password time.
    LoginAllowed bool
    The flag of login allowed.
    LoginLocked bool
    The flag of login locked.
    PasswordExpireAt int
    The password expire at.
    PasswordResetRequired bool
    Is required reset password when next time login in.
    SafeAuthExemptDuration int
    The duration of safe auth exempt.
    SafeAuthExemptRequired int
    The flag of safe auth exempt required.
    SafeAuthExemptUnit int
    The unit of safe auth exempt.
    SafeAuthFlag bool
    The flag of safe auth.
    SafeAuthType string
    The type of safe auth.
    UpdateDate string
    The update date.
    UserId int
    The user id.
    UserName string
    The user name.
    createDate String
    The create date.
    lastLoginDate String
    The last login date.
    lastLoginIp String
    The last login ip.
    lastResetPasswordTime Integer
    The last reset password time.
    loginAllowed Boolean
    The flag of login allowed.
    loginLocked Boolean
    The flag of login locked.
    passwordExpireAt Integer
    The password expire at.
    passwordResetRequired Boolean
    Is required reset password when next time login in.
    safeAuthExemptDuration Integer
    The duration of safe auth exempt.
    safeAuthExemptRequired Integer
    The flag of safe auth exempt required.
    safeAuthExemptUnit Integer
    The unit of safe auth exempt.
    safeAuthFlag Boolean
    The flag of safe auth.
    safeAuthType String
    The type of safe auth.
    updateDate String
    The update date.
    userId Integer
    The user id.
    userName String
    The user name.
    createDate string
    The create date.
    lastLoginDate string
    The last login date.
    lastLoginIp string
    The last login ip.
    lastResetPasswordTime number
    The last reset password time.
    loginAllowed boolean
    The flag of login allowed.
    loginLocked boolean
    The flag of login locked.
    passwordExpireAt number
    The password expire at.
    passwordResetRequired boolean
    Is required reset password when next time login in.
    safeAuthExemptDuration number
    The duration of safe auth exempt.
    safeAuthExemptRequired number
    The flag of safe auth exempt required.
    safeAuthExemptUnit number
    The unit of safe auth exempt.
    safeAuthFlag boolean
    The flag of safe auth.
    safeAuthType string
    The type of safe auth.
    updateDate string
    The update date.
    userId number
    The user id.
    userName string
    The user name.
    create_date str
    The create date.
    last_login_date str
    The last login date.
    last_login_ip str
    The last login ip.
    last_reset_password_time int
    The last reset password time.
    login_allowed bool
    The flag of login allowed.
    login_locked bool
    The flag of login locked.
    password_expire_at int
    The password expire at.
    password_reset_required bool
    Is required reset password when next time login in.
    safe_auth_exempt_duration int
    The duration of safe auth exempt.
    safe_auth_exempt_required int
    The flag of safe auth exempt required.
    safe_auth_exempt_unit int
    The unit of safe auth exempt.
    safe_auth_flag bool
    The flag of safe auth.
    safe_auth_type str
    The type of safe auth.
    update_date str
    The update date.
    user_id int
    The user id.
    user_name str
    The user name.
    createDate String
    The create date.
    lastLoginDate String
    The last login date.
    lastLoginIp String
    The last login ip.
    lastResetPasswordTime Number
    The last reset password time.
    loginAllowed Boolean
    The flag of login allowed.
    loginLocked Boolean
    The flag of login locked.
    passwordExpireAt Number
    The password expire at.
    passwordResetRequired Boolean
    Is required reset password when next time login in.
    safeAuthExemptDuration Number
    The duration of safe auth exempt.
    safeAuthExemptRequired Number
    The flag of safe auth exempt required.
    safeAuthExemptUnit Number
    The unit of safe auth exempt.
    safeAuthFlag Boolean
    The flag of safe auth.
    safeAuthType String
    The type of safe auth.
    updateDate String
    The update date.
    userId Number
    The user id.
    userName String
    The user name.

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Viewing docs for Volcengine v0.0.47
    published on Friday, Mar 13, 2026 by Volcengine
      Try Pulumi Cloud free. Your team will thank you.