opentelekomcloud.IdentityLoginPolicyV3
Explore with Pulumi AI
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:
- Account
Validity doublePeriod - Validity period (days) to disable users if they have not logged in within the period.
Value range:
0-240
. If this parameter is set to0
, no users will be disabled. Default:0
. - Custom
Info stringFor Login - Custom information that will be displayed upon successful login.
- Identity
Login stringPolicy V3Id - The ID of account login policy, which is the same as the domain ID.
- Lockout
Duration double - Duration (minutes) to lock users out. Value range:
15-30
. - Login
Failed doubleTimes - Number of unsuccessful login attempts to lock users out. Value range:
3-10
. - Period
With doubleLogin Failures - Period (minutes) to count the number of unsuccessful login attempts.
Value range:
15-60
. - Session
Timeout 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
. - Show
Recent boolLogin Info - Indicates whether to display last login information upon successful login.
The value can be
true
orfalse
. Default:true
.
- Account
Validity float64Period - Validity period (days) to disable users if they have not logged in within the period.
Value range:
0-240
. If this parameter is set to0
, no users will be disabled. Default:0
. - Custom
Info stringFor Login - Custom information that will be displayed upon successful login.
- Identity
Login stringPolicy V3Id - The ID of account login policy, which is the same as the domain ID.
- Lockout
Duration float64 - Duration (minutes) to lock users out. Value range:
15-30
. - Login
Failed float64Times - Number of unsuccessful login attempts to lock users out. Value range:
3-10
. - Period
With float64Login Failures - Period (minutes) to count the number of unsuccessful login attempts.
Value range:
15-60
. - Session
Timeout 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
. - Show
Recent boolLogin Info - Indicates whether to display last login information upon successful login.
The value can be
true
orfalse
. Default:true
.
- account
Validity DoublePeriod - Validity period (days) to disable users if they have not logged in within the period.
Value range:
0-240
. If this parameter is set to0
, no users will be disabled. Default:0
. - custom
Info StringFor Login - Custom information that will be displayed upon successful login.
- identity
Login StringPolicy V3Id - The ID of account login policy, which is the same as the domain ID.
- lockout
Duration Double - Duration (minutes) to lock users out. Value range:
15-30
. - login
Failed DoubleTimes - Number of unsuccessful login attempts to lock users out. Value range:
3-10
. - period
With DoubleLogin Failures - Period (minutes) to count the number of unsuccessful login attempts.
Value range:
15-60
. - session
Timeout 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
. - show
Recent BooleanLogin Info - Indicates whether to display last login information upon successful login.
The value can be
true
orfalse
. Default:true
.
- account
Validity numberPeriod - Validity period (days) to disable users if they have not logged in within the period.
Value range:
0-240
. If this parameter is set to0
, no users will be disabled. Default:0
. - custom
Info stringFor Login - Custom information that will be displayed upon successful login.
- identity
Login stringPolicy V3Id - The ID of account login policy, which is the same as the domain ID.
- lockout
Duration number - Duration (minutes) to lock users out. Value range:
15-30
. - login
Failed numberTimes - Number of unsuccessful login attempts to lock users out. Value range:
3-10
. - period
With numberLogin Failures - Period (minutes) to count the number of unsuccessful login attempts.
Value range:
15-60
. - session
Timeout 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
. - show
Recent booleanLogin Info - Indicates whether to display last login information upon successful login.
The value can be
true
orfalse
. Default:true
.
- account_
validity_ floatperiod - Validity period (days) to disable users if they have not logged in within the period.
Value range:
0-240
. If this parameter is set to0
, no users will be disabled. Default:0
. - custom_
info_ strfor_ login - Custom information that will be displayed upon successful login.
- identity_
login_ strpolicy_ v3_ id - 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_ floattimes - Number of unsuccessful login attempts to lock users out. Value range:
3-10
. - period_
with_ floatlogin_ failures - 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_ boollogin_ info - Indicates whether to display last login information upon successful login.
The value can be
true
orfalse
. Default:true
.
- account
Validity NumberPeriod - Validity period (days) to disable users if they have not logged in within the period.
Value range:
0-240
. If this parameter is set to0
, no users will be disabled. Default:0
. - custom
Info StringFor Login - Custom information that will be displayed upon successful login.
- identity
Login StringPolicy V3Id - The ID of account login policy, which is the same as the domain ID.
- lockout
Duration Number - Duration (minutes) to lock users out. Value range:
15-30
. - login
Failed NumberTimes - Number of unsuccessful login attempts to lock users out. Value range:
3-10
. - period
With NumberLogin Failures - Period (minutes) to count the number of unsuccessful login attempts.
Value range:
15-60
. - session
Timeout 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
. - show
Recent BooleanLogin Info - Indicates whether to display last login information upon successful login.
The value can be
true
orfalse
. 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.
- Account
Validity doublePeriod - Validity period (days) to disable users if they have not logged in within the period.
Value range:
0-240
. If this parameter is set to0
, no users will be disabled. Default:0
. - Custom
Info stringFor Login - Custom information that will be displayed upon successful login.
- Identity
Login stringPolicy V3Id - The ID of account login policy, which is the same as the domain ID.
- Lockout
Duration double - Duration (minutes) to lock users out. Value range:
15-30
. - Login
Failed doubleTimes - Number of unsuccessful login attempts to lock users out. Value range:
3-10
. - Period
With doubleLogin Failures - Period (minutes) to count the number of unsuccessful login attempts.
Value range:
15-60
. - Session
Timeout 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
. - Show
Recent boolLogin Info - Indicates whether to display last login information upon successful login.
The value can be
true
orfalse
. Default:true
.
- Account
Validity float64Period - Validity period (days) to disable users if they have not logged in within the period.
Value range:
0-240
. If this parameter is set to0
, no users will be disabled. Default:0
. - Custom
Info stringFor Login - Custom information that will be displayed upon successful login.
- Identity
Login stringPolicy V3Id - The ID of account login policy, which is the same as the domain ID.
- Lockout
Duration float64 - Duration (minutes) to lock users out. Value range:
15-30
. - Login
Failed float64Times - Number of unsuccessful login attempts to lock users out. Value range:
3-10
. - Period
With float64Login Failures - Period (minutes) to count the number of unsuccessful login attempts.
Value range:
15-60
. - Session
Timeout 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
. - Show
Recent boolLogin Info - Indicates whether to display last login information upon successful login.
The value can be
true
orfalse
. Default:true
.
- account
Validity DoublePeriod - Validity period (days) to disable users if they have not logged in within the period.
Value range:
0-240
. If this parameter is set to0
, no users will be disabled. Default:0
. - custom
Info StringFor Login - Custom information that will be displayed upon successful login.
- identity
Login StringPolicy V3Id - The ID of account login policy, which is the same as the domain ID.
- lockout
Duration Double - Duration (minutes) to lock users out. Value range:
15-30
. - login
Failed DoubleTimes - Number of unsuccessful login attempts to lock users out. Value range:
3-10
. - period
With DoubleLogin Failures - Period (minutes) to count the number of unsuccessful login attempts.
Value range:
15-60
. - session
Timeout 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
. - show
Recent BooleanLogin Info - Indicates whether to display last login information upon successful login.
The value can be
true
orfalse
. Default:true
.
- account
Validity numberPeriod - Validity period (days) to disable users if they have not logged in within the period.
Value range:
0-240
. If this parameter is set to0
, no users will be disabled. Default:0
. - custom
Info stringFor Login - Custom information that will be displayed upon successful login.
- identity
Login stringPolicy V3Id - The ID of account login policy, which is the same as the domain ID.
- lockout
Duration number - Duration (minutes) to lock users out. Value range:
15-30
. - login
Failed numberTimes - Number of unsuccessful login attempts to lock users out. Value range:
3-10
. - period
With numberLogin Failures - Period (minutes) to count the number of unsuccessful login attempts.
Value range:
15-60
. - session
Timeout 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
. - show
Recent booleanLogin Info - Indicates whether to display last login information upon successful login.
The value can be
true
orfalse
. Default:true
.
- account_
validity_ floatperiod - Validity period (days) to disable users if they have not logged in within the period.
Value range:
0-240
. If this parameter is set to0
, no users will be disabled. Default:0
. - custom_
info_ strfor_ login - Custom information that will be displayed upon successful login.
- identity_
login_ strpolicy_ v3_ id - 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_ floattimes - Number of unsuccessful login attempts to lock users out. Value range:
3-10
. - period_
with_ floatlogin_ failures - 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_ boollogin_ info - Indicates whether to display last login information upon successful login.
The value can be
true
orfalse
. Default:true
.
- account
Validity NumberPeriod - Validity period (days) to disable users if they have not logged in within the period.
Value range:
0-240
. If this parameter is set to0
, no users will be disabled. Default:0
. - custom
Info StringFor Login - Custom information that will be displayed upon successful login.
- identity
Login StringPolicy V3Id - The ID of account login policy, which is the same as the domain ID.
- lockout
Duration Number - Duration (minutes) to lock users out. Value range:
15-30
. - login
Failed NumberTimes - Number of unsuccessful login attempts to lock users out. Value range:
3-10
. - period
With NumberLogin Failures - Period (minutes) to count the number of unsuccessful login attempts.
Value range:
15-60
. - session
Timeout 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
. - show
Recent BooleanLogin Info - Indicates whether to display last login information upon successful login.
The value can be
true
orfalse
. 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.