1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. IdentityLoginPolicyV3
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

opentelekomcloud.IdentityLoginPolicyV3

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const policy1 = new opentelekomcloud.IdentityLoginPolicyV3("policy1", {
        accountValidityPeriod: 0,
        customInfoForLogin: "",
        lockoutDuration: 15,
        loginFailedTimes: 3,
        periodWithLoginFailures: 60,
        sessionTimeout: 1395,
        showRecentLoginInfo: false,
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    policy1 = opentelekomcloud.IdentityLoginPolicyV3("policy1",
        account_validity_period=0,
        custom_info_for_login="",
        lockout_duration=15,
        login_failed_times=3,
        period_with_login_failures=60,
        session_timeout=1395,
        show_recent_login_info=False)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := opentelekomcloud.NewIdentityLoginPolicyV3(ctx, "policy1", &opentelekomcloud.IdentityLoginPolicyV3Args{
    			AccountValidityPeriod:   pulumi.Float64(0),
    			CustomInfoForLogin:      pulumi.String(""),
    			LockoutDuration:         pulumi.Float64(15),
    			LoginFailedTimes:        pulumi.Float64(3),
    			PeriodWithLoginFailures: pulumi.Float64(60),
    			SessionTimeout:          pulumi.Float64(1395),
    			ShowRecentLoginInfo:     pulumi.Bool(false),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var policy1 = new Opentelekomcloud.IdentityLoginPolicyV3("policy1", new()
        {
            AccountValidityPeriod = 0,
            CustomInfoForLogin = "",
            LockoutDuration = 15,
            LoginFailedTimes = 3,
            PeriodWithLoginFailures = 60,
            SessionTimeout = 1395,
            ShowRecentLoginInfo = false,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.IdentityLoginPolicyV3;
    import com.pulumi.opentelekomcloud.IdentityLoginPolicyV3Args;
    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 policy1 = new IdentityLoginPolicyV3("policy1", IdentityLoginPolicyV3Args.builder()
                .accountValidityPeriod(0)
                .customInfoForLogin("")
                .lockoutDuration(15)
                .loginFailedTimes(3)
                .periodWithLoginFailures(60)
                .sessionTimeout(1395)
                .showRecentLoginInfo(false)
                .build());
    
        }
    }
    
    resources:
      policy1:
        type: opentelekomcloud:IdentityLoginPolicyV3
        properties:
          accountValidityPeriod: 0
          customInfoForLogin: ""
          lockoutDuration: 15
          loginFailedTimes: 3
          periodWithLoginFailures: 60
          sessionTimeout: 1395
          showRecentLoginInfo: false
    

    Create IdentityLoginPolicyV3 Resource

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

    Constructor syntax

    new IdentityLoginPolicyV3(name: string, args?: IdentityLoginPolicyV3Args, opts?: CustomResourceOptions);
    @overload
    def IdentityLoginPolicyV3(resource_name: str,
                              args: Optional[IdentityLoginPolicyV3Args] = None,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def IdentityLoginPolicyV3(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              account_validity_period: Optional[float] = None,
                              custom_info_for_login: Optional[str] = None,
                              identity_login_policy_v3_id: Optional[str] = None,
                              lockout_duration: Optional[float] = None,
                              login_failed_times: Optional[float] = None,
                              period_with_login_failures: Optional[float] = None,
                              session_timeout: Optional[float] = None,
                              show_recent_login_info: Optional[bool] = None)
    func NewIdentityLoginPolicyV3(ctx *Context, name string, args *IdentityLoginPolicyV3Args, opts ...ResourceOption) (*IdentityLoginPolicyV3, error)
    public IdentityLoginPolicyV3(string name, IdentityLoginPolicyV3Args? args = null, CustomResourceOptions? opts = null)
    public IdentityLoginPolicyV3(String name, IdentityLoginPolicyV3Args args)
    public IdentityLoginPolicyV3(String name, IdentityLoginPolicyV3Args args, CustomResourceOptions options)
    
    type: opentelekomcloud:IdentityLoginPolicyV3
    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 IdentityLoginPolicyV3Args
    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 IdentityLoginPolicyV3Args
    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 IdentityLoginPolicyV3Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IdentityLoginPolicyV3Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args IdentityLoginPolicyV3Args
    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 identityLoginPolicyV3Resource = new Opentelekomcloud.IdentityLoginPolicyV3("identityLoginPolicyV3Resource", new()
    {
        AccountValidityPeriod = 0,
        CustomInfoForLogin = "string",
        IdentityLoginPolicyV3Id = "string",
        LockoutDuration = 0,
        LoginFailedTimes = 0,
        PeriodWithLoginFailures = 0,
        SessionTimeout = 0,
        ShowRecentLoginInfo = false,
    });
    
    example, err := opentelekomcloud.NewIdentityLoginPolicyV3(ctx, "identityLoginPolicyV3Resource", &opentelekomcloud.IdentityLoginPolicyV3Args{
    	AccountValidityPeriod:   pulumi.Float64(0),
    	CustomInfoForLogin:      pulumi.String("string"),
    	IdentityLoginPolicyV3Id: pulumi.String("string"),
    	LockoutDuration:         pulumi.Float64(0),
    	LoginFailedTimes:        pulumi.Float64(0),
    	PeriodWithLoginFailures: pulumi.Float64(0),
    	SessionTimeout:          pulumi.Float64(0),
    	ShowRecentLoginInfo:     pulumi.Bool(false),
    })
    
    var identityLoginPolicyV3Resource = new IdentityLoginPolicyV3("identityLoginPolicyV3Resource", IdentityLoginPolicyV3Args.builder()
        .accountValidityPeriod(0)
        .customInfoForLogin("string")
        .identityLoginPolicyV3Id("string")
        .lockoutDuration(0)
        .loginFailedTimes(0)
        .periodWithLoginFailures(0)
        .sessionTimeout(0)
        .showRecentLoginInfo(false)
        .build());
    
    identity_login_policy_v3_resource = opentelekomcloud.IdentityLoginPolicyV3("identityLoginPolicyV3Resource",
        account_validity_period=0,
        custom_info_for_login="string",
        identity_login_policy_v3_id="string",
        lockout_duration=0,
        login_failed_times=0,
        period_with_login_failures=0,
        session_timeout=0,
        show_recent_login_info=False)
    
    const identityLoginPolicyV3Resource = new opentelekomcloud.IdentityLoginPolicyV3("identityLoginPolicyV3Resource", {
        accountValidityPeriod: 0,
        customInfoForLogin: "string",
        identityLoginPolicyV3Id: "string",
        lockoutDuration: 0,
        loginFailedTimes: 0,
        periodWithLoginFailures: 0,
        sessionTimeout: 0,
        showRecentLoginInfo: false,
    });
    
    type: opentelekomcloud:IdentityLoginPolicyV3
    properties:
        accountValidityPeriod: 0
        customInfoForLogin: string
        identityLoginPolicyV3Id: string
        lockoutDuration: 0
        loginFailedTimes: 0
        periodWithLoginFailures: 0
        sessionTimeout: 0
        showRecentLoginInfo: false
    

    IdentityLoginPolicyV3 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 IdentityLoginPolicyV3 resource accepts the following input properties:

    AccountValidityPeriod double
    Validity period (days) to disable users if they have not logged in within the period. Value range: 0-240. If this parameter is set to 0, no users will be disabled. Default: 0.
    CustomInfoForLogin string
    Custom information that will be displayed upon successful login.
    IdentityLoginPolicyV3Id string
    The ID of account login policy, which is the same as the domain ID.
    LockoutDuration double
    Duration (minutes) to lock users out. Value range: 15-30.
    LoginFailedTimes double
    Number of unsuccessful login attempts to lock users out. Value range: 3-10.
    PeriodWithLoginFailures double
    Period (minutes) to count the number of unsuccessful login attempts. Value range: 15-60.
    SessionTimeout double
    Session timeout (minutes) that will apply if you or users created using your account do not perform any operations within a specific period. Value range: 15-1440.
    ShowRecentLoginInfo bool
    Indicates whether to display last login information upon successful login. The value can be true or false. Default: true.
    AccountValidityPeriod float64
    Validity period (days) to disable users if they have not logged in within the period. Value range: 0-240. If this parameter is set to 0, no users will be disabled. Default: 0.
    CustomInfoForLogin string
    Custom information that will be displayed upon successful login.
    IdentityLoginPolicyV3Id string
    The ID of account login policy, which is the same as the domain ID.
    LockoutDuration float64
    Duration (minutes) to lock users out. Value range: 15-30.
    LoginFailedTimes float64
    Number of unsuccessful login attempts to lock users out. Value range: 3-10.
    PeriodWithLoginFailures float64
    Period (minutes) to count the number of unsuccessful login attempts. Value range: 15-60.
    SessionTimeout float64
    Session timeout (minutes) that will apply if you or users created using your account do not perform any operations within a specific period. Value range: 15-1440.
    ShowRecentLoginInfo bool
    Indicates whether to display last login information upon successful login. The value can be true or false. Default: true.
    accountValidityPeriod Double
    Validity period (days) to disable users if they have not logged in within the period. Value range: 0-240. If this parameter is set to 0, no users will be disabled. Default: 0.
    customInfoForLogin String
    Custom information that will be displayed upon successful login.
    identityLoginPolicyV3Id String
    The ID of account login policy, which is the same as the domain ID.
    lockoutDuration Double
    Duration (minutes) to lock users out. Value range: 15-30.
    loginFailedTimes Double
    Number of unsuccessful login attempts to lock users out. Value range: 3-10.
    periodWithLoginFailures Double
    Period (minutes) to count the number of unsuccessful login attempts. Value range: 15-60.
    sessionTimeout Double
    Session timeout (minutes) that will apply if you or users created using your account do not perform any operations within a specific period. Value range: 15-1440.
    showRecentLoginInfo Boolean
    Indicates whether to display last login information upon successful login. The value can be true or false. Default: true.
    accountValidityPeriod number
    Validity period (days) to disable users if they have not logged in within the period. Value range: 0-240. If this parameter is set to 0, no users will be disabled. Default: 0.
    customInfoForLogin string
    Custom information that will be displayed upon successful login.
    identityLoginPolicyV3Id string
    The ID of account login policy, which is the same as the domain ID.
    lockoutDuration number
    Duration (minutes) to lock users out. Value range: 15-30.
    loginFailedTimes number
    Number of unsuccessful login attempts to lock users out. Value range: 3-10.
    periodWithLoginFailures number
    Period (minutes) to count the number of unsuccessful login attempts. Value range: 15-60.
    sessionTimeout number
    Session timeout (minutes) that will apply if you or users created using your account do not perform any operations within a specific period. Value range: 15-1440.
    showRecentLoginInfo boolean
    Indicates whether to display last login information upon successful login. The value can be true or false. Default: true.
    account_validity_period float
    Validity period (days) to disable users if they have not logged in within the period. Value range: 0-240. If this parameter is set to 0, no users will be disabled. Default: 0.
    custom_info_for_login str
    Custom information that will be displayed upon successful login.
    identity_login_policy_v3_id str
    The ID of account login policy, which is the same as the domain ID.
    lockout_duration float
    Duration (minutes) to lock users out. Value range: 15-30.
    login_failed_times float
    Number of unsuccessful login attempts to lock users out. Value range: 3-10.
    period_with_login_failures float
    Period (minutes) to count the number of unsuccessful login attempts. Value range: 15-60.
    session_timeout float
    Session timeout (minutes) that will apply if you or users created using your account do not perform any operations within a specific period. Value range: 15-1440.
    show_recent_login_info bool
    Indicates whether to display last login information upon successful login. The value can be true or false. Default: true.
    accountValidityPeriod Number
    Validity period (days) to disable users if they have not logged in within the period. Value range: 0-240. If this parameter is set to 0, no users will be disabled. Default: 0.
    customInfoForLogin String
    Custom information that will be displayed upon successful login.
    identityLoginPolicyV3Id String
    The ID of account login policy, which is the same as the domain ID.
    lockoutDuration Number
    Duration (minutes) to lock users out. Value range: 15-30.
    loginFailedTimes Number
    Number of unsuccessful login attempts to lock users out. Value range: 3-10.
    periodWithLoginFailures Number
    Period (minutes) to count the number of unsuccessful login attempts. Value range: 15-60.
    sessionTimeout Number
    Session timeout (minutes) that will apply if you or users created using your account do not perform any operations within a specific period. Value range: 15-1440.
    showRecentLoginInfo Boolean
    Indicates whether to display last login information upon successful login. The value can be true or false. Default: true.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing IdentityLoginPolicyV3 Resource

    Get an existing IdentityLoginPolicyV3 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?: IdentityLoginPolicyV3State, opts?: CustomResourceOptions): IdentityLoginPolicyV3
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_validity_period: Optional[float] = None,
            custom_info_for_login: Optional[str] = None,
            identity_login_policy_v3_id: Optional[str] = None,
            lockout_duration: Optional[float] = None,
            login_failed_times: Optional[float] = None,
            period_with_login_failures: Optional[float] = None,
            session_timeout: Optional[float] = None,
            show_recent_login_info: Optional[bool] = None) -> IdentityLoginPolicyV3
    func GetIdentityLoginPolicyV3(ctx *Context, name string, id IDInput, state *IdentityLoginPolicyV3State, opts ...ResourceOption) (*IdentityLoginPolicyV3, error)
    public static IdentityLoginPolicyV3 Get(string name, Input<string> id, IdentityLoginPolicyV3State? state, CustomResourceOptions? opts = null)
    public static IdentityLoginPolicyV3 get(String name, Output<String> id, IdentityLoginPolicyV3State state, CustomResourceOptions options)
    resources:  _:    type: opentelekomcloud:IdentityLoginPolicyV3    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:
    AccountValidityPeriod double
    Validity period (days) to disable users if they have not logged in within the period. Value range: 0-240. If this parameter is set to 0, no users will be disabled. Default: 0.
    CustomInfoForLogin string
    Custom information that will be displayed upon successful login.
    IdentityLoginPolicyV3Id string
    The ID of account login policy, which is the same as the domain ID.
    LockoutDuration double
    Duration (minutes) to lock users out. Value range: 15-30.
    LoginFailedTimes double
    Number of unsuccessful login attempts to lock users out. Value range: 3-10.
    PeriodWithLoginFailures double
    Period (minutes) to count the number of unsuccessful login attempts. Value range: 15-60.
    SessionTimeout double
    Session timeout (minutes) that will apply if you or users created using your account do not perform any operations within a specific period. Value range: 15-1440.
    ShowRecentLoginInfo bool
    Indicates whether to display last login information upon successful login. The value can be true or false. Default: true.
    AccountValidityPeriod float64
    Validity period (days) to disable users if they have not logged in within the period. Value range: 0-240. If this parameter is set to 0, no users will be disabled. Default: 0.
    CustomInfoForLogin string
    Custom information that will be displayed upon successful login.
    IdentityLoginPolicyV3Id string
    The ID of account login policy, which is the same as the domain ID.
    LockoutDuration float64
    Duration (minutes) to lock users out. Value range: 15-30.
    LoginFailedTimes float64
    Number of unsuccessful login attempts to lock users out. Value range: 3-10.
    PeriodWithLoginFailures float64
    Period (minutes) to count the number of unsuccessful login attempts. Value range: 15-60.
    SessionTimeout float64
    Session timeout (minutes) that will apply if you or users created using your account do not perform any operations within a specific period. Value range: 15-1440.
    ShowRecentLoginInfo bool
    Indicates whether to display last login information upon successful login. The value can be true or false. Default: true.
    accountValidityPeriod Double
    Validity period (days) to disable users if they have not logged in within the period. Value range: 0-240. If this parameter is set to 0, no users will be disabled. Default: 0.
    customInfoForLogin String
    Custom information that will be displayed upon successful login.
    identityLoginPolicyV3Id String
    The ID of account login policy, which is the same as the domain ID.
    lockoutDuration Double
    Duration (minutes) to lock users out. Value range: 15-30.
    loginFailedTimes Double
    Number of unsuccessful login attempts to lock users out. Value range: 3-10.
    periodWithLoginFailures Double
    Period (minutes) to count the number of unsuccessful login attempts. Value range: 15-60.
    sessionTimeout Double
    Session timeout (minutes) that will apply if you or users created using your account do not perform any operations within a specific period. Value range: 15-1440.
    showRecentLoginInfo Boolean
    Indicates whether to display last login information upon successful login. The value can be true or false. Default: true.
    accountValidityPeriod number
    Validity period (days) to disable users if they have not logged in within the period. Value range: 0-240. If this parameter is set to 0, no users will be disabled. Default: 0.
    customInfoForLogin string
    Custom information that will be displayed upon successful login.
    identityLoginPolicyV3Id string
    The ID of account login policy, which is the same as the domain ID.
    lockoutDuration number
    Duration (minutes) to lock users out. Value range: 15-30.
    loginFailedTimes number
    Number of unsuccessful login attempts to lock users out. Value range: 3-10.
    periodWithLoginFailures number
    Period (minutes) to count the number of unsuccessful login attempts. Value range: 15-60.
    sessionTimeout number
    Session timeout (minutes) that will apply if you or users created using your account do not perform any operations within a specific period. Value range: 15-1440.
    showRecentLoginInfo boolean
    Indicates whether to display last login information upon successful login. The value can be true or false. Default: true.
    account_validity_period float
    Validity period (days) to disable users if they have not logged in within the period. Value range: 0-240. If this parameter is set to 0, no users will be disabled. Default: 0.
    custom_info_for_login str
    Custom information that will be displayed upon successful login.
    identity_login_policy_v3_id str
    The ID of account login policy, which is the same as the domain ID.
    lockout_duration float
    Duration (minutes) to lock users out. Value range: 15-30.
    login_failed_times float
    Number of unsuccessful login attempts to lock users out. Value range: 3-10.
    period_with_login_failures float
    Period (minutes) to count the number of unsuccessful login attempts. Value range: 15-60.
    session_timeout float
    Session timeout (minutes) that will apply if you or users created using your account do not perform any operations within a specific period. Value range: 15-1440.
    show_recent_login_info bool
    Indicates whether to display last login information upon successful login. The value can be true or false. Default: true.
    accountValidityPeriod Number
    Validity period (days) to disable users if they have not logged in within the period. Value range: 0-240. If this parameter is set to 0, no users will be disabled. Default: 0.
    customInfoForLogin String
    Custom information that will be displayed upon successful login.
    identityLoginPolicyV3Id String
    The ID of account login policy, which is the same as the domain ID.
    lockoutDuration Number
    Duration (minutes) to lock users out. Value range: 15-30.
    loginFailedTimes Number
    Number of unsuccessful login attempts to lock users out. Value range: 3-10.
    periodWithLoginFailures Number
    Period (minutes) to count the number of unsuccessful login attempts. Value range: 15-60.
    sessionTimeout Number
    Session timeout (minutes) that will apply if you or users created using your account do not perform any operations within a specific period. Value range: 15-1440.
    showRecentLoginInfo Boolean
    Indicates whether to display last login information upon successful login. The value can be true or false. Default: true.

    Import

    Identity login authentication policy can be imported using the account ID or domain ID, e.g.

    bash

    $ pulumi import opentelekomcloud:index/identityLoginPolicyV3:IdentityLoginPolicyV3 example <ID>
    

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

    Package Details

    Repository
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    opentelekomcloud logo
    opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud