1. Packages
  2. Volcengine
  3. API Docs
  4. iam
  5. LoginProfile
Viewing docs for Volcengine v0.0.46
published on Friday, Feb 27, 2026 by Volcengine
volcengine logo
Viewing docs for Volcengine v0.0.46
published on Friday, Feb 27, 2026 by Volcengine

    Provides a resource to manage iam login profile

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@volcengine/pulumi";
    
    const foo = new volcengine.iam.LoginProfile("foo", {
        loginAllowed: true,
        password: "",
        passwordResetRequired: true,
        safeAuthExemptDuration: 1,
        safeAuthExemptRequired: 1,
        safeAuthExemptUnit: 1,
        safeAuthFlag: true,
        safeAuthType: "phone",
        userName: "jonny",
    });
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo = volcengine.iam.LoginProfile("foo",
        login_allowed=True,
        password="",
        password_reset_required=True,
        safe_auth_exempt_duration=1,
        safe_auth_exempt_required=1,
        safe_auth_exempt_unit=1,
        safe_auth_flag=True,
        safe_auth_type="phone",
        user_name="jonny")
    
    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.NewLoginProfile(ctx, "foo", &iam.LoginProfileArgs{
    			LoginAllowed:           pulumi.Bool(true),
    			Password:               pulumi.String(""),
    			PasswordResetRequired:  pulumi.Bool(true),
    			SafeAuthExemptDuration: pulumi.Int(1),
    			SafeAuthExemptRequired: pulumi.Int(1),
    			SafeAuthExemptUnit:     pulumi.Int(1),
    			SafeAuthFlag:           pulumi.Bool(true),
    			SafeAuthType:           pulumi.String("phone"),
    			UserName:               pulumi.String("jonny"),
    		})
    		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 foo = new Volcengine.Iam.LoginProfile("foo", new()
        {
            LoginAllowed = true,
            Password = "",
            PasswordResetRequired = true,
            SafeAuthExemptDuration = 1,
            SafeAuthExemptRequired = 1,
            SafeAuthExemptUnit = 1,
            SafeAuthFlag = true,
            SafeAuthType = "phone",
            UserName = "jonny",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.volcengine.iam.LoginProfile;
    import com.pulumi.volcengine.iam.LoginProfileArgs;
    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) {
            var foo = new LoginProfile("foo", LoginProfileArgs.builder()        
                .loginAllowed(true)
                .password("")
                .passwordResetRequired(true)
                .safeAuthExemptDuration(1)
                .safeAuthExemptRequired(1)
                .safeAuthExemptUnit(1)
                .safeAuthFlag(true)
                .safeAuthType("phone")
                .userName("jonny")
                .build());
    
        }
    }
    
    resources:
      foo:
        type: volcengine:iam:LoginProfile
        properties:
          loginAllowed: true
          password:
          passwordResetRequired: true
          safeAuthExemptDuration: 1
          safeAuthExemptRequired: 1
          safeAuthExemptUnit: 1
          safeAuthFlag: true
          safeAuthType: phone
          userName: jonny
    

    Create LoginProfile Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new LoginProfile(name: string, args: LoginProfileArgs, opts?: CustomResourceOptions);
    @overload
    def LoginProfile(resource_name: str,
                     args: LoginProfileArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def LoginProfile(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     password: Optional[str] = None,
                     user_name: Optional[str] = None,
                     login_allowed: Optional[bool] = None,
                     password_reset_required: Optional[bool] = None,
                     safe_auth_exempt_duration: Optional[int] = None,
                     safe_auth_exempt_required: Optional[int] = None,
                     safe_auth_exempt_unit: Optional[int] = None,
                     safe_auth_flag: Optional[bool] = None,
                     safe_auth_type: Optional[str] = None)
    func NewLoginProfile(ctx *Context, name string, args LoginProfileArgs, opts ...ResourceOption) (*LoginProfile, error)
    public LoginProfile(string name, LoginProfileArgs args, CustomResourceOptions? opts = null)
    public LoginProfile(String name, LoginProfileArgs args)
    public LoginProfile(String name, LoginProfileArgs args, CustomResourceOptions options)
    
    type: volcengine:iam:LoginProfile
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args LoginProfileArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args LoginProfileArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args LoginProfileArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LoginProfileArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LoginProfileArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var loginProfileResource = new Volcengine.Iam.LoginProfile("loginProfileResource", new()
    {
        Password = "string",
        UserName = "string",
        LoginAllowed = false,
        PasswordResetRequired = false,
        SafeAuthExemptDuration = 0,
        SafeAuthExemptRequired = 0,
        SafeAuthExemptUnit = 0,
        SafeAuthFlag = false,
        SafeAuthType = "string",
    });
    
    example, err := iam.NewLoginProfile(ctx, "loginProfileResource", &iam.LoginProfileArgs{
    	Password:               pulumi.String("string"),
    	UserName:               pulumi.String("string"),
    	LoginAllowed:           pulumi.Bool(false),
    	PasswordResetRequired:  pulumi.Bool(false),
    	SafeAuthExemptDuration: pulumi.Int(0),
    	SafeAuthExemptRequired: pulumi.Int(0),
    	SafeAuthExemptUnit:     pulumi.Int(0),
    	SafeAuthFlag:           pulumi.Bool(false),
    	SafeAuthType:           pulumi.String("string"),
    })
    
    var loginProfileResource = new LoginProfile("loginProfileResource", LoginProfileArgs.builder()
        .password("string")
        .userName("string")
        .loginAllowed(false)
        .passwordResetRequired(false)
        .safeAuthExemptDuration(0)
        .safeAuthExemptRequired(0)
        .safeAuthExemptUnit(0)
        .safeAuthFlag(false)
        .safeAuthType("string")
        .build());
    
    login_profile_resource = volcengine.iam.LoginProfile("loginProfileResource",
        password="string",
        user_name="string",
        login_allowed=False,
        password_reset_required=False,
        safe_auth_exempt_duration=0,
        safe_auth_exempt_required=0,
        safe_auth_exempt_unit=0,
        safe_auth_flag=False,
        safe_auth_type="string")
    
    const loginProfileResource = new volcengine.iam.LoginProfile("loginProfileResource", {
        password: "string",
        userName: "string",
        loginAllowed: false,
        passwordResetRequired: false,
        safeAuthExemptDuration: 0,
        safeAuthExemptRequired: 0,
        safeAuthExemptUnit: 0,
        safeAuthFlag: false,
        safeAuthType: "string",
    });
    
    type: volcengine:iam:LoginProfile
    properties:
        loginAllowed: false
        password: string
        passwordResetRequired: false
        safeAuthExemptDuration: 0
        safeAuthExemptRequired: 0
        safeAuthExemptUnit: 0
        safeAuthFlag: false
        safeAuthType: string
        userName: string
    

    LoginProfile Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The LoginProfile resource accepts the following input properties:

    Password string
    The password.
    UserName string
    The user name.
    LoginAllowed bool
    The flag of login allowed.
    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.
    Password string
    The password.
    UserName string
    The user name.
    LoginAllowed bool
    The flag of login allowed.
    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.
    password String
    The password.
    userName String
    The user name.
    loginAllowed Boolean
    The flag of login allowed.
    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.
    password string
    The password.
    userName string
    The user name.
    loginAllowed boolean
    The flag of login allowed.
    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.
    password str
    The password.
    user_name str
    The user name.
    login_allowed bool
    The flag of login allowed.
    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.
    password String
    The password.
    userName String
    The user name.
    loginAllowed Boolean
    The flag of login allowed.
    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.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the LoginProfile resource produces the following output properties:

    CreateDate string
    The create date.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastLoginDate string
    The last login date.
    LastLoginIp string
    The last login ip.
    LastResetPasswordTime int
    The last reset password time.
    LoginLocked bool
    The flag of login locked.
    PasswordExpireAt int
    The password expire at.
    UpdateDate string
    The update date.
    UserId int
    The user id.
    CreateDate string
    The create date.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastLoginDate string
    The last login date.
    LastLoginIp string
    The last login ip.
    LastResetPasswordTime int
    The last reset password time.
    LoginLocked bool
    The flag of login locked.
    PasswordExpireAt int
    The password expire at.
    UpdateDate string
    The update date.
    UserId int
    The user id.
    createDate String
    The create date.
    id String
    The provider-assigned unique ID for this managed resource.
    lastLoginDate String
    The last login date.
    lastLoginIp String
    The last login ip.
    lastResetPasswordTime Integer
    The last reset password time.
    loginLocked Boolean
    The flag of login locked.
    passwordExpireAt Integer
    The password expire at.
    updateDate String
    The update date.
    userId Integer
    The user id.
    createDate string
    The create date.
    id string
    The provider-assigned unique ID for this managed resource.
    lastLoginDate string
    The last login date.
    lastLoginIp string
    The last login ip.
    lastResetPasswordTime number
    The last reset password time.
    loginLocked boolean
    The flag of login locked.
    passwordExpireAt number
    The password expire at.
    updateDate string
    The update date.
    userId number
    The user id.
    create_date str
    The create date.
    id str
    The provider-assigned unique ID for this managed resource.
    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_locked bool
    The flag of login locked.
    password_expire_at int
    The password expire at.
    update_date str
    The update date.
    user_id int
    The user id.
    createDate String
    The create date.
    id String
    The provider-assigned unique ID for this managed resource.
    lastLoginDate String
    The last login date.
    lastLoginIp String
    The last login ip.
    lastResetPasswordTime Number
    The last reset password time.
    loginLocked Boolean
    The flag of login locked.
    passwordExpireAt Number
    The password expire at.
    updateDate String
    The update date.
    userId Number
    The user id.

    Look up Existing LoginProfile Resource

    Get an existing LoginProfile resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: LoginProfileState, opts?: CustomResourceOptions): LoginProfile
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            create_date: Optional[str] = None,
            last_login_date: Optional[str] = None,
            last_login_ip: Optional[str] = None,
            last_reset_password_time: Optional[int] = None,
            login_allowed: Optional[bool] = None,
            login_locked: Optional[bool] = None,
            password: Optional[str] = None,
            password_expire_at: Optional[int] = None,
            password_reset_required: Optional[bool] = None,
            safe_auth_exempt_duration: Optional[int] = None,
            safe_auth_exempt_required: Optional[int] = None,
            safe_auth_exempt_unit: Optional[int] = None,
            safe_auth_flag: Optional[bool] = None,
            safe_auth_type: Optional[str] = None,
            update_date: Optional[str] = None,
            user_id: Optional[int] = None,
            user_name: Optional[str] = None) -> LoginProfile
    func GetLoginProfile(ctx *Context, name string, id IDInput, state *LoginProfileState, opts ...ResourceOption) (*LoginProfile, error)
    public static LoginProfile Get(string name, Input<string> id, LoginProfileState? state, CustomResourceOptions? opts = null)
    public static LoginProfile get(String name, Output<String> id, LoginProfileState state, CustomResourceOptions options)
    resources:  _:    type: volcengine:iam:LoginProfile    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    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.
    Password string
    The password.
    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.
    Password string
    The password.
    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.
    password String
    The password.
    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.
    password string
    The password.
    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 str
    The password.
    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.
    password String
    The password.
    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.

    Import

    Login profile can be imported using the UserName, e.g.

    $ pulumi import volcengine:iam/loginProfile:LoginProfile default user_name
    

    To learn more about importing existing cloud resources, see Importing resources.

    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.46
    published on Friday, Feb 27, 2026 by Volcengine
      Try Pulumi Cloud free. Your team will thank you.