1. Packages
  2. OVH
  3. API Docs
  4. Me
  5. IdentityUser
OVHCloud v1.0.0 published on Wednesday, Oct 30, 2024 by OVHcloud

ovh.Me.IdentityUser

Explore with Pulumi AI

ovh logo
OVHCloud v1.0.0 published on Wednesday, Oct 30, 2024 by OVHcloud

    Creates an identity user.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ovh from "@ovhcloud/pulumi-ovh";
    
    const myUser = new ovh.me.IdentityUser("myUser", {
        description: "Some custom description",
        email: "my_login@example.com",
        group: "DEFAULT",
        login: "my_login",
        password: "super-s3cr3t!password",
    });
    
    import pulumi
    import pulumi_ovh as ovh
    
    my_user = ovh.me.IdentityUser("myUser",
        description="Some custom description",
        email="my_login@example.com",
        group="DEFAULT",
        login="my_login",
        password="super-s3cr3t!password")
    
    package main
    
    import (
    	"github.com/ovh/pulumi-ovh/sdk/go/ovh/Me"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Me.NewIdentityUser(ctx, "myUser", &Me.IdentityUserArgs{
    			Description: pulumi.String("Some custom description"),
    			Email:       pulumi.String("my_login@example.com"),
    			Group:       pulumi.String("DEFAULT"),
    			Login:       pulumi.String("my_login"),
    			Password:    pulumi.String("super-s3cr3t!password"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ovh = Pulumi.Ovh;
    
    return await Deployment.RunAsync(() => 
    {
        var myUser = new Ovh.Me.IdentityUser("myUser", new()
        {
            Description = "Some custom description",
            Email = "my_login@example.com",
            Group = "DEFAULT",
            Login = "my_login",
            Password = "super-s3cr3t!password",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ovh.Me.IdentityUser;
    import com.pulumi.ovh.Me.IdentityUserArgs;
    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 myUser = new IdentityUser("myUser", IdentityUserArgs.builder()
                .description("Some custom description")
                .email("my_login@example.com")
                .group("DEFAULT")
                .login("my_login")
                .password("super-s3cr3t!password")
                .build());
    
        }
    }
    
    resources:
      myUser:
        type: ovh:Me:IdentityUser
        properties:
          description: Some custom description
          email: my_login@example.com
          group: DEFAULT
          login: my_login
          password: super-s3cr3t!password
    

    Create IdentityUser Resource

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

    Constructor syntax

    new IdentityUser(name: string, args: IdentityUserArgs, opts?: CustomResourceOptions);
    @overload
    def IdentityUser(resource_name: str,
                     args: IdentityUserArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def IdentityUser(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     email: Optional[str] = None,
                     login: Optional[str] = None,
                     password: Optional[str] = None,
                     description: Optional[str] = None,
                     group: Optional[str] = None)
    func NewIdentityUser(ctx *Context, name string, args IdentityUserArgs, opts ...ResourceOption) (*IdentityUser, error)
    public IdentityUser(string name, IdentityUserArgs args, CustomResourceOptions? opts = null)
    public IdentityUser(String name, IdentityUserArgs args)
    public IdentityUser(String name, IdentityUserArgs args, CustomResourceOptions options)
    
    type: ovh:Me:IdentityUser
    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 IdentityUserArgs
    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 IdentityUserArgs
    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 IdentityUserArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IdentityUserArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args IdentityUserArgs
    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 identityUserResource = new Ovh.Me.IdentityUser("identityUserResource", new()
    {
        Email = "string",
        Login = "string",
        Password = "string",
        Description = "string",
        Group = "string",
    });
    
    example, err := Me.NewIdentityUser(ctx, "identityUserResource", &Me.IdentityUserArgs{
    	Email:       pulumi.String("string"),
    	Login:       pulumi.String("string"),
    	Password:    pulumi.String("string"),
    	Description: pulumi.String("string"),
    	Group:       pulumi.String("string"),
    })
    
    var identityUserResource = new IdentityUser("identityUserResource", IdentityUserArgs.builder()
        .email("string")
        .login("string")
        .password("string")
        .description("string")
        .group("string")
        .build());
    
    identity_user_resource = ovh.me.IdentityUser("identityUserResource",
        email="string",
        login="string",
        password="string",
        description="string",
        group="string")
    
    const identityUserResource = new ovh.me.IdentityUser("identityUserResource", {
        email: "string",
        login: "string",
        password: "string",
        description: "string",
        group: "string",
    });
    
    type: ovh:Me:IdentityUser
    properties:
        description: string
        email: string
        group: string
        login: string
        password: string
    

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

    Email string
    User's email.
    Login string
    User's login suffix.
    Password string
    User's password.
    Description string
    User description.
    Group string
    User's group.
    Email string
    User's email.
    Login string
    User's login suffix.
    Password string
    User's password.
    Description string
    User description.
    Group string
    User's group.
    email String
    User's email.
    login String
    User's login suffix.
    password String
    User's password.
    description String
    User description.
    group String
    User's group.
    email string
    User's email.
    login string
    User's login suffix.
    password string
    User's password.
    description string
    User description.
    group string
    User's group.
    email str
    User's email.
    login str
    User's login suffix.
    password str
    User's password.
    description str
    User description.
    group str
    User's group.
    email String
    User's email.
    login String
    User's login suffix.
    password String
    User's password.
    description String
    User description.
    group String
    User's group.

    Outputs

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

    Creation string
    Creation date of this user.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastUpdate string
    Last update of this user.
    PasswordLastUpdate string
    When the user changed his password for the last time.
    Status string
    Current user's status.
    UserURN string
    URN of the user, used when writing IAM policies
    Creation string
    Creation date of this user.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastUpdate string
    Last update of this user.
    PasswordLastUpdate string
    When the user changed his password for the last time.
    Status string
    Current user's status.
    UserURN string
    URN of the user, used when writing IAM policies
    UserURN String
    URN of the user, used when writing IAM policies
    creation String
    Creation date of this user.
    id String
    The provider-assigned unique ID for this managed resource.
    lastUpdate String
    Last update of this user.
    passwordLastUpdate String
    When the user changed his password for the last time.
    status String
    Current user's status.
    UserURN string
    URN of the user, used when writing IAM policies
    creation string
    Creation date of this user.
    id string
    The provider-assigned unique ID for this managed resource.
    lastUpdate string
    Last update of this user.
    passwordLastUpdate string
    When the user changed his password for the last time.
    status string
    Current user's status.
    creation str
    Creation date of this user.
    id str
    The provider-assigned unique ID for this managed resource.
    last_update str
    Last update of this user.
    password_last_update str
    When the user changed his password for the last time.
    status str
    Current user's status.
    user_urn str
    URN of the user, used when writing IAM policies
    UserURN String
    URN of the user, used when writing IAM policies
    creation String
    Creation date of this user.
    id String
    The provider-assigned unique ID for this managed resource.
    lastUpdate String
    Last update of this user.
    passwordLastUpdate String
    When the user changed his password for the last time.
    status String
    Current user's status.

    Look up Existing IdentityUser Resource

    Get an existing IdentityUser 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?: IdentityUserState, opts?: CustomResourceOptions): IdentityUser
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            user_urn: Optional[str] = None,
            creation: Optional[str] = None,
            description: Optional[str] = None,
            email: Optional[str] = None,
            group: Optional[str] = None,
            last_update: Optional[str] = None,
            login: Optional[str] = None,
            password: Optional[str] = None,
            password_last_update: Optional[str] = None,
            status: Optional[str] = None) -> IdentityUser
    func GetIdentityUser(ctx *Context, name string, id IDInput, state *IdentityUserState, opts ...ResourceOption) (*IdentityUser, error)
    public static IdentityUser Get(string name, Input<string> id, IdentityUserState? state, CustomResourceOptions? opts = null)
    public static IdentityUser get(String name, Output<String> id, IdentityUserState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    Creation string
    Creation date of this user.
    Description string
    User description.
    Email string
    User's email.
    Group string
    User's group.
    LastUpdate string
    Last update of this user.
    Login string
    User's login suffix.
    Password string
    User's password.
    PasswordLastUpdate string
    When the user changed his password for the last time.
    Status string
    Current user's status.
    UserURN string
    URN of the user, used when writing IAM policies
    Creation string
    Creation date of this user.
    Description string
    User description.
    Email string
    User's email.
    Group string
    User's group.
    LastUpdate string
    Last update of this user.
    Login string
    User's login suffix.
    Password string
    User's password.
    PasswordLastUpdate string
    When the user changed his password for the last time.
    Status string
    Current user's status.
    UserURN string
    URN of the user, used when writing IAM policies
    UserURN String
    URN of the user, used when writing IAM policies
    creation String
    Creation date of this user.
    description String
    User description.
    email String
    User's email.
    group String
    User's group.
    lastUpdate String
    Last update of this user.
    login String
    User's login suffix.
    password String
    User's password.
    passwordLastUpdate String
    When the user changed his password for the last time.
    status String
    Current user's status.
    UserURN string
    URN of the user, used when writing IAM policies
    creation string
    Creation date of this user.
    description string
    User description.
    email string
    User's email.
    group string
    User's group.
    lastUpdate string
    Last update of this user.
    login string
    User's login suffix.
    password string
    User's password.
    passwordLastUpdate string
    When the user changed his password for the last time.
    status string
    Current user's status.
    creation str
    Creation date of this user.
    description str
    User description.
    email str
    User's email.
    group str
    User's group.
    last_update str
    Last update of this user.
    login str
    User's login suffix.
    password str
    User's password.
    password_last_update str
    When the user changed his password for the last time.
    status str
    Current user's status.
    user_urn str
    URN of the user, used when writing IAM policies
    UserURN String
    URN of the user, used when writing IAM policies
    creation String
    Creation date of this user.
    description String
    User description.
    email String
    User's email.
    group String
    User's group.
    lastUpdate String
    Last update of this user.
    login String
    User's login suffix.
    password String
    User's password.
    passwordLastUpdate String
    When the user changed his password for the last time.
    status String
    Current user's status.

    Package Details

    Repository
    ovh ovh/pulumi-ovh
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the ovh Terraform Provider.
    ovh logo
    OVHCloud v1.0.0 published on Wednesday, Oct 30, 2024 by OVHcloud