flexibleengine.IdentityUserV3
Explore with Pulumi AI
Manages a User resource within FlexibleEngine IAM service.
You must have admin privileges in your FlexibleEngine cloud to use this resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const user1 = new flexibleengine.IdentityUserV3("user1", {
description: "A user",
password: "password123!",
});
import pulumi
import pulumi_flexibleengine as flexibleengine
user1 = flexibleengine.IdentityUserV3("user1",
description="A user",
password="password123!")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := flexibleengine.NewIdentityUserV3(ctx, "user1", &flexibleengine.IdentityUserV3Args{
Description: pulumi.String("A user"),
Password: pulumi.String("password123!"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;
return await Deployment.RunAsync(() =>
{
var user1 = new Flexibleengine.IdentityUserV3("user1", new()
{
Description = "A user",
Password = "password123!",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.IdentityUserV3;
import com.pulumi.flexibleengine.IdentityUserV3Args;
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 user1 = new IdentityUserV3("user1", IdentityUserV3Args.builder()
.description("A user")
.password("password123!")
.build());
}
}
resources:
user1:
type: flexibleengine:IdentityUserV3
properties:
description: A user
password: password123!
Create IdentityUserV3 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IdentityUserV3(name: string, args?: IdentityUserV3Args, opts?: CustomResourceOptions);
@overload
def IdentityUserV3(resource_name: str,
args: Optional[IdentityUserV3Args] = None,
opts: Optional[ResourceOptions] = None)
@overload
def IdentityUserV3(resource_name: str,
opts: Optional[ResourceOptions] = None,
country_code: Optional[str] = None,
description: Optional[str] = None,
email: Optional[str] = None,
enabled: Optional[bool] = None,
identity_user_v3_id: Optional[str] = None,
name: Optional[str] = None,
password: Optional[str] = None,
phone: Optional[str] = None)
func NewIdentityUserV3(ctx *Context, name string, args *IdentityUserV3Args, opts ...ResourceOption) (*IdentityUserV3, error)
public IdentityUserV3(string name, IdentityUserV3Args? args = null, CustomResourceOptions? opts = null)
public IdentityUserV3(String name, IdentityUserV3Args args)
public IdentityUserV3(String name, IdentityUserV3Args args, CustomResourceOptions options)
type: flexibleengine:IdentityUserV3
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 IdentityUserV3Args
- 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 IdentityUserV3Args
- 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 IdentityUserV3Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IdentityUserV3Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IdentityUserV3Args
- 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 identityUserV3Resource = new Flexibleengine.IdentityUserV3("identityUserV3Resource", new()
{
CountryCode = "string",
Description = "string",
Email = "string",
Enabled = false,
IdentityUserV3Id = "string",
Name = "string",
Password = "string",
Phone = "string",
});
example, err := flexibleengine.NewIdentityUserV3(ctx, "identityUserV3Resource", &flexibleengine.IdentityUserV3Args{
CountryCode: pulumi.String("string"),
Description: pulumi.String("string"),
Email: pulumi.String("string"),
Enabled: pulumi.Bool(false),
IdentityUserV3Id: pulumi.String("string"),
Name: pulumi.String("string"),
Password: pulumi.String("string"),
Phone: pulumi.String("string"),
})
var identityUserV3Resource = new IdentityUserV3("identityUserV3Resource", IdentityUserV3Args.builder()
.countryCode("string")
.description("string")
.email("string")
.enabled(false)
.identityUserV3Id("string")
.name("string")
.password("string")
.phone("string")
.build());
identity_user_v3_resource = flexibleengine.IdentityUserV3("identityUserV3Resource",
country_code="string",
description="string",
email="string",
enabled=False,
identity_user_v3_id="string",
name="string",
password="string",
phone="string")
const identityUserV3Resource = new flexibleengine.IdentityUserV3("identityUserV3Resource", {
countryCode: "string",
description: "string",
email: "string",
enabled: false,
identityUserV3Id: "string",
name: "string",
password: "string",
phone: "string",
});
type: flexibleengine:IdentityUserV3
properties:
countryCode: string
description: string
email: string
enabled: false
identityUserV3Id: string
name: string
password: string
phone: string
IdentityUserV3 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 IdentityUserV3 resource accepts the following input properties:
- Country
Code string - Specifies the country code. The country code of the Chinese mainland is 0086.
This parameter must be used together with
phone
. - Description string
- Specifies the description of the user.
- Email string
- Specifies the email address with a maximum of 255 characters.
- Enabled bool
- Specifies whether the user is enabled or disabled.
Valid values are
true
andfalse
. - Identity
User stringV3Id - The resource ID in UUID format.
- Name string
- Specifies the name of the user. The user name consists of 5 to 32 characters. It can contain only uppercase letters, lowercase letters, digits, spaces, and special characters (-_) and cannot start with a digit.
- Password string
- Specifies the password for the user with 6 to 32 characters. It must contain at least two of the following character types: uppercase letters, lowercase letters, digits, and special characters.
- Phone string
- Specifies the mobile number with a maximum of 32 digits.
This parameter must be used together with
country_code
.
- Country
Code string - Specifies the country code. The country code of the Chinese mainland is 0086.
This parameter must be used together with
phone
. - Description string
- Specifies the description of the user.
- Email string
- Specifies the email address with a maximum of 255 characters.
- Enabled bool
- Specifies whether the user is enabled or disabled.
Valid values are
true
andfalse
. - Identity
User stringV3Id - The resource ID in UUID format.
- Name string
- Specifies the name of the user. The user name consists of 5 to 32 characters. It can contain only uppercase letters, lowercase letters, digits, spaces, and special characters (-_) and cannot start with a digit.
- Password string
- Specifies the password for the user with 6 to 32 characters. It must contain at least two of the following character types: uppercase letters, lowercase letters, digits, and special characters.
- Phone string
- Specifies the mobile number with a maximum of 32 digits.
This parameter must be used together with
country_code
.
- country
Code String - Specifies the country code. The country code of the Chinese mainland is 0086.
This parameter must be used together with
phone
. - description String
- Specifies the description of the user.
- email String
- Specifies the email address with a maximum of 255 characters.
- enabled Boolean
- Specifies whether the user is enabled or disabled.
Valid values are
true
andfalse
. - identity
User StringV3Id - The resource ID in UUID format.
- name String
- Specifies the name of the user. The user name consists of 5 to 32 characters. It can contain only uppercase letters, lowercase letters, digits, spaces, and special characters (-_) and cannot start with a digit.
- password String
- Specifies the password for the user with 6 to 32 characters. It must contain at least two of the following character types: uppercase letters, lowercase letters, digits, and special characters.
- phone String
- Specifies the mobile number with a maximum of 32 digits.
This parameter must be used together with
country_code
.
- country
Code string - Specifies the country code. The country code of the Chinese mainland is 0086.
This parameter must be used together with
phone
. - description string
- Specifies the description of the user.
- email string
- Specifies the email address with a maximum of 255 characters.
- enabled boolean
- Specifies whether the user is enabled or disabled.
Valid values are
true
andfalse
. - identity
User stringV3Id - The resource ID in UUID format.
- name string
- Specifies the name of the user. The user name consists of 5 to 32 characters. It can contain only uppercase letters, lowercase letters, digits, spaces, and special characters (-_) and cannot start with a digit.
- password string
- Specifies the password for the user with 6 to 32 characters. It must contain at least two of the following character types: uppercase letters, lowercase letters, digits, and special characters.
- phone string
- Specifies the mobile number with a maximum of 32 digits.
This parameter must be used together with
country_code
.
- country_
code str - Specifies the country code. The country code of the Chinese mainland is 0086.
This parameter must be used together with
phone
. - description str
- Specifies the description of the user.
- email str
- Specifies the email address with a maximum of 255 characters.
- enabled bool
- Specifies whether the user is enabled or disabled.
Valid values are
true
andfalse
. - identity_
user_ strv3_ id - The resource ID in UUID format.
- name str
- Specifies the name of the user. The user name consists of 5 to 32 characters. It can contain only uppercase letters, lowercase letters, digits, spaces, and special characters (-_) and cannot start with a digit.
- password str
- Specifies the password for the user with 6 to 32 characters. It must contain at least two of the following character types: uppercase letters, lowercase letters, digits, and special characters.
- phone str
- Specifies the mobile number with a maximum of 32 digits.
This parameter must be used together with
country_code
.
- country
Code String - Specifies the country code. The country code of the Chinese mainland is 0086.
This parameter must be used together with
phone
. - description String
- Specifies the description of the user.
- email String
- Specifies the email address with a maximum of 255 characters.
- enabled Boolean
- Specifies whether the user is enabled or disabled.
Valid values are
true
andfalse
. - identity
User StringV3Id - The resource ID in UUID format.
- name String
- Specifies the name of the user. The user name consists of 5 to 32 characters. It can contain only uppercase letters, lowercase letters, digits, spaces, and special characters (-_) and cannot start with a digit.
- password String
- Specifies the password for the user with 6 to 32 characters. It must contain at least two of the following character types: uppercase letters, lowercase letters, digits, and special characters.
- phone String
- Specifies the mobile number with a maximum of 32 digits.
This parameter must be used together with
country_code
.
Outputs
All input properties are implicitly available as output properties. Additionally, the IdentityUserV3 resource produces the following output properties:
- Create
Time string - The time when the IAM user was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Login string - The tiem when the IAM user last login.
- Password
Strength string - Indicates the password strength.
- Create
Time string - The time when the IAM user was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Login string - The tiem when the IAM user last login.
- Password
Strength string - Indicates the password strength.
- create
Time String - The time when the IAM user was created.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Login String - The tiem when the IAM user last login.
- password
Strength String - Indicates the password strength.
- create
Time string - The time when the IAM user was created.
- id string
- The provider-assigned unique ID for this managed resource.
- last
Login string - The tiem when the IAM user last login.
- password
Strength string - Indicates the password strength.
- create_
time str - The time when the IAM user was created.
- id str
- The provider-assigned unique ID for this managed resource.
- last_
login str - The tiem when the IAM user last login.
- password_
strength str - Indicates the password strength.
- create
Time String - The time when the IAM user was created.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Login String - The tiem when the IAM user last login.
- password
Strength String - Indicates the password strength.
Look up Existing IdentityUserV3 Resource
Get an existing IdentityUserV3 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?: IdentityUserV3State, opts?: CustomResourceOptions): IdentityUserV3
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
country_code: Optional[str] = None,
create_time: Optional[str] = None,
description: Optional[str] = None,
email: Optional[str] = None,
enabled: Optional[bool] = None,
identity_user_v3_id: Optional[str] = None,
last_login: Optional[str] = None,
name: Optional[str] = None,
password: Optional[str] = None,
password_strength: Optional[str] = None,
phone: Optional[str] = None) -> IdentityUserV3
func GetIdentityUserV3(ctx *Context, name string, id IDInput, state *IdentityUserV3State, opts ...ResourceOption) (*IdentityUserV3, error)
public static IdentityUserV3 Get(string name, Input<string> id, IdentityUserV3State? state, CustomResourceOptions? opts = null)
public static IdentityUserV3 get(String name, Output<String> id, IdentityUserV3State state, CustomResourceOptions options)
resources: _: type: flexibleengine:IdentityUserV3 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.
- Country
Code string - Specifies the country code. The country code of the Chinese mainland is 0086.
This parameter must be used together with
phone
. - Create
Time string - The time when the IAM user was created.
- Description string
- Specifies the description of the user.
- Email string
- Specifies the email address with a maximum of 255 characters.
- Enabled bool
- Specifies whether the user is enabled or disabled.
Valid values are
true
andfalse
. - Identity
User stringV3Id - The resource ID in UUID format.
- Last
Login string - The tiem when the IAM user last login.
- Name string
- Specifies the name of the user. The user name consists of 5 to 32 characters. It can contain only uppercase letters, lowercase letters, digits, spaces, and special characters (-_) and cannot start with a digit.
- Password string
- Specifies the password for the user with 6 to 32 characters. It must contain at least two of the following character types: uppercase letters, lowercase letters, digits, and special characters.
- Password
Strength string - Indicates the password strength.
- Phone string
- Specifies the mobile number with a maximum of 32 digits.
This parameter must be used together with
country_code
.
- Country
Code string - Specifies the country code. The country code of the Chinese mainland is 0086.
This parameter must be used together with
phone
. - Create
Time string - The time when the IAM user was created.
- Description string
- Specifies the description of the user.
- Email string
- Specifies the email address with a maximum of 255 characters.
- Enabled bool
- Specifies whether the user is enabled or disabled.
Valid values are
true
andfalse
. - Identity
User stringV3Id - The resource ID in UUID format.
- Last
Login string - The tiem when the IAM user last login.
- Name string
- Specifies the name of the user. The user name consists of 5 to 32 characters. It can contain only uppercase letters, lowercase letters, digits, spaces, and special characters (-_) and cannot start with a digit.
- Password string
- Specifies the password for the user with 6 to 32 characters. It must contain at least two of the following character types: uppercase letters, lowercase letters, digits, and special characters.
- Password
Strength string - Indicates the password strength.
- Phone string
- Specifies the mobile number with a maximum of 32 digits.
This parameter must be used together with
country_code
.
- country
Code String - Specifies the country code. The country code of the Chinese mainland is 0086.
This parameter must be used together with
phone
. - create
Time String - The time when the IAM user was created.
- description String
- Specifies the description of the user.
- email String
- Specifies the email address with a maximum of 255 characters.
- enabled Boolean
- Specifies whether the user is enabled or disabled.
Valid values are
true
andfalse
. - identity
User StringV3Id - The resource ID in UUID format.
- last
Login String - The tiem when the IAM user last login.
- name String
- Specifies the name of the user. The user name consists of 5 to 32 characters. It can contain only uppercase letters, lowercase letters, digits, spaces, and special characters (-_) and cannot start with a digit.
- password String
- Specifies the password for the user with 6 to 32 characters. It must contain at least two of the following character types: uppercase letters, lowercase letters, digits, and special characters.
- password
Strength String - Indicates the password strength.
- phone String
- Specifies the mobile number with a maximum of 32 digits.
This parameter must be used together with
country_code
.
- country
Code string - Specifies the country code. The country code of the Chinese mainland is 0086.
This parameter must be used together with
phone
. - create
Time string - The time when the IAM user was created.
- description string
- Specifies the description of the user.
- email string
- Specifies the email address with a maximum of 255 characters.
- enabled boolean
- Specifies whether the user is enabled or disabled.
Valid values are
true
andfalse
. - identity
User stringV3Id - The resource ID in UUID format.
- last
Login string - The tiem when the IAM user last login.
- name string
- Specifies the name of the user. The user name consists of 5 to 32 characters. It can contain only uppercase letters, lowercase letters, digits, spaces, and special characters (-_) and cannot start with a digit.
- password string
- Specifies the password for the user with 6 to 32 characters. It must contain at least two of the following character types: uppercase letters, lowercase letters, digits, and special characters.
- password
Strength string - Indicates the password strength.
- phone string
- Specifies the mobile number with a maximum of 32 digits.
This parameter must be used together with
country_code
.
- country_
code str - Specifies the country code. The country code of the Chinese mainland is 0086.
This parameter must be used together with
phone
. - create_
time str - The time when the IAM user was created.
- description str
- Specifies the description of the user.
- email str
- Specifies the email address with a maximum of 255 characters.
- enabled bool
- Specifies whether the user is enabled or disabled.
Valid values are
true
andfalse
. - identity_
user_ strv3_ id - The resource ID in UUID format.
- last_
login str - The tiem when the IAM user last login.
- name str
- Specifies the name of the user. The user name consists of 5 to 32 characters. It can contain only uppercase letters, lowercase letters, digits, spaces, and special characters (-_) and cannot start with a digit.
- password str
- Specifies the password for the user with 6 to 32 characters. It must contain at least two of the following character types: uppercase letters, lowercase letters, digits, and special characters.
- password_
strength str - Indicates the password strength.
- phone str
- Specifies the mobile number with a maximum of 32 digits.
This parameter must be used together with
country_code
.
- country
Code String - Specifies the country code. The country code of the Chinese mainland is 0086.
This parameter must be used together with
phone
. - create
Time String - The time when the IAM user was created.
- description String
- Specifies the description of the user.
- email String
- Specifies the email address with a maximum of 255 characters.
- enabled Boolean
- Specifies whether the user is enabled or disabled.
Valid values are
true
andfalse
. - identity
User StringV3Id - The resource ID in UUID format.
- last
Login String - The tiem when the IAM user last login.
- name String
- Specifies the name of the user. The user name consists of 5 to 32 characters. It can contain only uppercase letters, lowercase letters, digits, spaces, and special characters (-_) and cannot start with a digit.
- password String
- Specifies the password for the user with 6 to 32 characters. It must contain at least two of the following character types: uppercase letters, lowercase letters, digits, and special characters.
- password
Strength String - Indicates the password strength.
- phone String
- Specifies the mobile number with a maximum of 32 digits.
This parameter must be used together with
country_code
.
Import
Users can be imported using the id
, e.g.
$ pulumi import flexibleengine:index/identityUserV3:IdentityUserV3 user_1 89c60255-9bd6-460c-822a-e2b959ede9d2
But due to the security reason, password
can not be imported, you can ignore it as below.
hcl
resource “flexibleengine_identity_user_v3” “user_1” {
…
lifecycle {
ignore_changes = [
"password",
]
}
}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
- License
- Notes
- This Pulumi package is based on the
flexibleengine
Terraform Provider.