1. Packages
  2. Selectel Provider
  3. API Docs
  4. DbaasUserV1
selectel 6.4.0 published on Monday, Apr 14, 2025 by selectel

selectel.DbaasUserV1

Explore with Pulumi AI

selectel logo
selectel 6.4.0 published on Monday, Apr 14, 2025 by selectel

    Creates and manages a user in Managed Databases using public API v1. Not applicable to Redis. For more information about managing users in Managed Databases, see the official Selectel documentation for PostgreSQL, PostgreSQL for 1C, PostgreSQL TimescaleDB, MySQL semi-sync, MySQL sync, and Kafka.

    Example Usage

    PostgreSQL, PostgreSQL for 1C, and PostgreSQL TimescaleDB

    import * as pulumi from "@pulumi/pulumi";
    import * as selectel from "@pulumi/selectel";
    
    const user1 = new selectel.DbaasUserV1("user1", {
        projectId: selectel_vpc_project_v2.project_1.id,
        region: "ru-3",
        datastoreId: selectel_dbaas_postgresql_datastore_v1.datastore_1.id,
        password: "secret",
    });
    
    import pulumi
    import pulumi_selectel as selectel
    
    user1 = selectel.DbaasUserV1("user1",
        project_id=selectel_vpc_project_v2["project_1"]["id"],
        region="ru-3",
        datastore_id=selectel_dbaas_postgresql_datastore_v1["datastore_1"]["id"],
        password="secret")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/selectel/v6/selectel"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := selectel.NewDbaasUserV1(ctx, "user1", &selectel.DbaasUserV1Args{
    			ProjectId:   pulumi.Any(selectel_vpc_project_v2.Project_1.Id),
    			Region:      pulumi.String("ru-3"),
    			DatastoreId: pulumi.Any(selectel_dbaas_postgresql_datastore_v1.Datastore_1.Id),
    			Password:    pulumi.String("secret"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Selectel = Pulumi.Selectel;
    
    return await Deployment.RunAsync(() => 
    {
        var user1 = new Selectel.DbaasUserV1("user1", new()
        {
            ProjectId = selectel_vpc_project_v2.Project_1.Id,
            Region = "ru-3",
            DatastoreId = selectel_dbaas_postgresql_datastore_v1.Datastore_1.Id,
            Password = "secret",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.selectel.DbaasUserV1;
    import com.pulumi.selectel.DbaasUserV1Args;
    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 DbaasUserV1("user1", DbaasUserV1Args.builder()
                .projectId(selectel_vpc_project_v2.project_1().id())
                .region("ru-3")
                .datastoreId(selectel_dbaas_postgresql_datastore_v1.datastore_1().id())
                .password("secret")
                .build());
    
        }
    }
    
    resources:
      user1:
        type: selectel:DbaasUserV1
        properties:
          projectId: ${selectel_vpc_project_v2.project_1.id}
          region: ru-3
          datastoreId: ${selectel_dbaas_postgresql_datastore_v1.datastore_1.id}
          password: secret
    

    MySQL semi-sync and MySQL sync

    import * as pulumi from "@pulumi/pulumi";
    import * as selectel from "@pulumi/selectel";
    
    const user1 = new selectel.DbaasUserV1("user1", {
        projectId: selectel_vpc_project_v2.project_1.id,
        region: "ru-3",
        datastoreId: selectel_dbaas_mysql_datastore_v1.datastore_1.id,
        password: "secret",
    });
    
    import pulumi
    import pulumi_selectel as selectel
    
    user1 = selectel.DbaasUserV1("user1",
        project_id=selectel_vpc_project_v2["project_1"]["id"],
        region="ru-3",
        datastore_id=selectel_dbaas_mysql_datastore_v1["datastore_1"]["id"],
        password="secret")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/selectel/v6/selectel"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := selectel.NewDbaasUserV1(ctx, "user1", &selectel.DbaasUserV1Args{
    			ProjectId:   pulumi.Any(selectel_vpc_project_v2.Project_1.Id),
    			Region:      pulumi.String("ru-3"),
    			DatastoreId: pulumi.Any(selectel_dbaas_mysql_datastore_v1.Datastore_1.Id),
    			Password:    pulumi.String("secret"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Selectel = Pulumi.Selectel;
    
    return await Deployment.RunAsync(() => 
    {
        var user1 = new Selectel.DbaasUserV1("user1", new()
        {
            ProjectId = selectel_vpc_project_v2.Project_1.Id,
            Region = "ru-3",
            DatastoreId = selectel_dbaas_mysql_datastore_v1.Datastore_1.Id,
            Password = "secret",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.selectel.DbaasUserV1;
    import com.pulumi.selectel.DbaasUserV1Args;
    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 DbaasUserV1("user1", DbaasUserV1Args.builder()
                .projectId(selectel_vpc_project_v2.project_1().id())
                .region("ru-3")
                .datastoreId(selectel_dbaas_mysql_datastore_v1.datastore_1().id())
                .password("secret")
                .build());
    
        }
    }
    
    resources:
      user1:
        type: selectel:DbaasUserV1
        properties:
          projectId: ${selectel_vpc_project_v2.project_1.id}
          region: ru-3
          datastoreId: ${selectel_dbaas_mysql_datastore_v1.datastore_1.id}
          password: secret
    

    Kafka

    import * as pulumi from "@pulumi/pulumi";
    import * as selectel from "@pulumi/selectel";
    
    const user1 = new selectel.DbaasUserV1("user1", {
        projectId: selectel_vpc_project_v2.project_1.id,
        region: "ru-3",
        datastoreId: selectel_dbaas_kafka_datastore_v1.datastore_1.id,
        password: "secret",
    });
    
    import pulumi
    import pulumi_selectel as selectel
    
    user1 = selectel.DbaasUserV1("user1",
        project_id=selectel_vpc_project_v2["project_1"]["id"],
        region="ru-3",
        datastore_id=selectel_dbaas_kafka_datastore_v1["datastore_1"]["id"],
        password="secret")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/selectel/v6/selectel"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := selectel.NewDbaasUserV1(ctx, "user1", &selectel.DbaasUserV1Args{
    			ProjectId:   pulumi.Any(selectel_vpc_project_v2.Project_1.Id),
    			Region:      pulumi.String("ru-3"),
    			DatastoreId: pulumi.Any(selectel_dbaas_kafka_datastore_v1.Datastore_1.Id),
    			Password:    pulumi.String("secret"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Selectel = Pulumi.Selectel;
    
    return await Deployment.RunAsync(() => 
    {
        var user1 = new Selectel.DbaasUserV1("user1", new()
        {
            ProjectId = selectel_vpc_project_v2.Project_1.Id,
            Region = "ru-3",
            DatastoreId = selectel_dbaas_kafka_datastore_v1.Datastore_1.Id,
            Password = "secret",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.selectel.DbaasUserV1;
    import com.pulumi.selectel.DbaasUserV1Args;
    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 DbaasUserV1("user1", DbaasUserV1Args.builder()
                .projectId(selectel_vpc_project_v2.project_1().id())
                .region("ru-3")
                .datastoreId(selectel_dbaas_kafka_datastore_v1.datastore_1().id())
                .password("secret")
                .build());
    
        }
    }
    
    resources:
      user1:
        type: selectel:DbaasUserV1
        properties:
          projectId: ${selectel_vpc_project_v2.project_1.id}
          region: ru-3
          datastoreId: ${selectel_dbaas_kafka_datastore_v1.datastore_1.id}
          password: secret
    

    Create DbaasUserV1 Resource

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

    Constructor syntax

    new DbaasUserV1(name: string, args: DbaasUserV1Args, opts?: CustomResourceOptions);
    @overload
    def DbaasUserV1(resource_name: str,
                    args: DbaasUserV1Args,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def DbaasUserV1(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    datastore_id: Optional[str] = None,
                    password: Optional[str] = None,
                    project_id: Optional[str] = None,
                    region: Optional[str] = None,
                    dbaas_user_v1_id: Optional[str] = None,
                    name: Optional[str] = None,
                    timeouts: Optional[DbaasUserV1TimeoutsArgs] = None)
    func NewDbaasUserV1(ctx *Context, name string, args DbaasUserV1Args, opts ...ResourceOption) (*DbaasUserV1, error)
    public DbaasUserV1(string name, DbaasUserV1Args args, CustomResourceOptions? opts = null)
    public DbaasUserV1(String name, DbaasUserV1Args args)
    public DbaasUserV1(String name, DbaasUserV1Args args, CustomResourceOptions options)
    
    type: selectel:DbaasUserV1
    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 DbaasUserV1Args
    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 DbaasUserV1Args
    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 DbaasUserV1Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DbaasUserV1Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DbaasUserV1Args
    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 dbaasUserV1Resource = new Selectel.DbaasUserV1("dbaasUserV1Resource", new()
    {
        DatastoreId = "string",
        Password = "string",
        ProjectId = "string",
        Region = "string",
        DbaasUserV1Id = "string",
        Name = "string",
        Timeouts = new Selectel.Inputs.DbaasUserV1TimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
    });
    
    example, err := selectel.NewDbaasUserV1(ctx, "dbaasUserV1Resource", &selectel.DbaasUserV1Args{
    	DatastoreId:   pulumi.String("string"),
    	Password:      pulumi.String("string"),
    	ProjectId:     pulumi.String("string"),
    	Region:        pulumi.String("string"),
    	DbaasUserV1Id: pulumi.String("string"),
    	Name:          pulumi.String("string"),
    	Timeouts: &selectel.DbaasUserV1TimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    })
    
    var dbaasUserV1Resource = new DbaasUserV1("dbaasUserV1Resource", DbaasUserV1Args.builder()
        .datastoreId("string")
        .password("string")
        .projectId("string")
        .region("string")
        .dbaasUserV1Id("string")
        .name("string")
        .timeouts(DbaasUserV1TimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .build());
    
    dbaas_user_v1_resource = selectel.DbaasUserV1("dbaasUserV1Resource",
        datastore_id="string",
        password="string",
        project_id="string",
        region="string",
        dbaas_user_v1_id="string",
        name="string",
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        })
    
    const dbaasUserV1Resource = new selectel.DbaasUserV1("dbaasUserV1Resource", {
        datastoreId: "string",
        password: "string",
        projectId: "string",
        region: "string",
        dbaasUserV1Id: "string",
        name: "string",
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
    });
    
    type: selectel:DbaasUserV1
    properties:
        datastoreId: string
        dbaasUserV1Id: string
        name: string
        password: string
        projectId: string
        region: string
        timeouts:
            create: string
            delete: string
            update: string
    

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

    DatastoreId string
    Unique identifier of the associated datastore. Changing this creates a new user. Retrieved from the selectel.DbaasPostgresqlDatastoreV1 or selectel.DbaasMysqlDatastoreV1 resource depending on the datastore type you use.
    Password string
    User password.
    ProjectId string
    Unique identifier of the associated project. Changing this creates a new user. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    Region string
    Pool where the database is located, for example, ru-3. Changing this creates a new user. Learn more about available pools in the Availability matrix.
    DbaasUserV1Id string
    Name string
    User name. Changing this creates a new user.
    Timeouts DbaasUserV1Timeouts
    DatastoreId string
    Unique identifier of the associated datastore. Changing this creates a new user. Retrieved from the selectel.DbaasPostgresqlDatastoreV1 or selectel.DbaasMysqlDatastoreV1 resource depending on the datastore type you use.
    Password string
    User password.
    ProjectId string
    Unique identifier of the associated project. Changing this creates a new user. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    Region string
    Pool where the database is located, for example, ru-3. Changing this creates a new user. Learn more about available pools in the Availability matrix.
    DbaasUserV1Id string
    Name string
    User name. Changing this creates a new user.
    Timeouts DbaasUserV1TimeoutsArgs
    datastoreId String
    Unique identifier of the associated datastore. Changing this creates a new user. Retrieved from the selectel.DbaasPostgresqlDatastoreV1 or selectel.DbaasMysqlDatastoreV1 resource depending on the datastore type you use.
    password String
    User password.
    projectId String
    Unique identifier of the associated project. Changing this creates a new user. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    region String
    Pool where the database is located, for example, ru-3. Changing this creates a new user. Learn more about available pools in the Availability matrix.
    dbaasUserV1Id String
    name String
    User name. Changing this creates a new user.
    timeouts DbaasUserV1Timeouts
    datastoreId string
    Unique identifier of the associated datastore. Changing this creates a new user. Retrieved from the selectel.DbaasPostgresqlDatastoreV1 or selectel.DbaasMysqlDatastoreV1 resource depending on the datastore type you use.
    password string
    User password.
    projectId string
    Unique identifier of the associated project. Changing this creates a new user. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    region string
    Pool where the database is located, for example, ru-3. Changing this creates a new user. Learn more about available pools in the Availability matrix.
    dbaasUserV1Id string
    name string
    User name. Changing this creates a new user.
    timeouts DbaasUserV1Timeouts
    datastore_id str
    Unique identifier of the associated datastore. Changing this creates a new user. Retrieved from the selectel.DbaasPostgresqlDatastoreV1 or selectel.DbaasMysqlDatastoreV1 resource depending on the datastore type you use.
    password str
    User password.
    project_id str
    Unique identifier of the associated project. Changing this creates a new user. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    region str
    Pool where the database is located, for example, ru-3. Changing this creates a new user. Learn more about available pools in the Availability matrix.
    dbaas_user_v1_id str
    name str
    User name. Changing this creates a new user.
    timeouts DbaasUserV1TimeoutsArgs
    datastoreId String
    Unique identifier of the associated datastore. Changing this creates a new user. Retrieved from the selectel.DbaasPostgresqlDatastoreV1 or selectel.DbaasMysqlDatastoreV1 resource depending on the datastore type you use.
    password String
    User password.
    projectId String
    Unique identifier of the associated project. Changing this creates a new user. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    region String
    Pool where the database is located, for example, ru-3. Changing this creates a new user. Learn more about available pools in the Availability matrix.
    dbaasUserV1Id String
    name String
    User name. Changing this creates a new user.
    timeouts Property Map

    Outputs

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

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

    Look up Existing DbaasUserV1 Resource

    Get an existing DbaasUserV1 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?: DbaasUserV1State, opts?: CustomResourceOptions): DbaasUserV1
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            datastore_id: Optional[str] = None,
            dbaas_user_v1_id: Optional[str] = None,
            name: Optional[str] = None,
            password: Optional[str] = None,
            project_id: Optional[str] = None,
            region: Optional[str] = None,
            status: Optional[str] = None,
            timeouts: Optional[DbaasUserV1TimeoutsArgs] = None) -> DbaasUserV1
    func GetDbaasUserV1(ctx *Context, name string, id IDInput, state *DbaasUserV1State, opts ...ResourceOption) (*DbaasUserV1, error)
    public static DbaasUserV1 Get(string name, Input<string> id, DbaasUserV1State? state, CustomResourceOptions? opts = null)
    public static DbaasUserV1 get(String name, Output<String> id, DbaasUserV1State state, CustomResourceOptions options)
    resources:  _:    type: selectel:DbaasUserV1    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:
    DatastoreId string
    Unique identifier of the associated datastore. Changing this creates a new user. Retrieved from the selectel.DbaasPostgresqlDatastoreV1 or selectel.DbaasMysqlDatastoreV1 resource depending on the datastore type you use.
    DbaasUserV1Id string
    Name string
    User name. Changing this creates a new user.
    Password string
    User password.
    ProjectId string
    Unique identifier of the associated project. Changing this creates a new user. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    Region string
    Pool where the database is located, for example, ru-3. Changing this creates a new user. Learn more about available pools in the Availability matrix.
    Status string
    User status.
    Timeouts DbaasUserV1Timeouts
    DatastoreId string
    Unique identifier of the associated datastore. Changing this creates a new user. Retrieved from the selectel.DbaasPostgresqlDatastoreV1 or selectel.DbaasMysqlDatastoreV1 resource depending on the datastore type you use.
    DbaasUserV1Id string
    Name string
    User name. Changing this creates a new user.
    Password string
    User password.
    ProjectId string
    Unique identifier of the associated project. Changing this creates a new user. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    Region string
    Pool where the database is located, for example, ru-3. Changing this creates a new user. Learn more about available pools in the Availability matrix.
    Status string
    User status.
    Timeouts DbaasUserV1TimeoutsArgs
    datastoreId String
    Unique identifier of the associated datastore. Changing this creates a new user. Retrieved from the selectel.DbaasPostgresqlDatastoreV1 or selectel.DbaasMysqlDatastoreV1 resource depending on the datastore type you use.
    dbaasUserV1Id String
    name String
    User name. Changing this creates a new user.
    password String
    User password.
    projectId String
    Unique identifier of the associated project. Changing this creates a new user. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    region String
    Pool where the database is located, for example, ru-3. Changing this creates a new user. Learn more about available pools in the Availability matrix.
    status String
    User status.
    timeouts DbaasUserV1Timeouts
    datastoreId string
    Unique identifier of the associated datastore. Changing this creates a new user. Retrieved from the selectel.DbaasPostgresqlDatastoreV1 or selectel.DbaasMysqlDatastoreV1 resource depending on the datastore type you use.
    dbaasUserV1Id string
    name string
    User name. Changing this creates a new user.
    password string
    User password.
    projectId string
    Unique identifier of the associated project. Changing this creates a new user. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    region string
    Pool where the database is located, for example, ru-3. Changing this creates a new user. Learn more about available pools in the Availability matrix.
    status string
    User status.
    timeouts DbaasUserV1Timeouts
    datastore_id str
    Unique identifier of the associated datastore. Changing this creates a new user. Retrieved from the selectel.DbaasPostgresqlDatastoreV1 or selectel.DbaasMysqlDatastoreV1 resource depending on the datastore type you use.
    dbaas_user_v1_id str
    name str
    User name. Changing this creates a new user.
    password str
    User password.
    project_id str
    Unique identifier of the associated project. Changing this creates a new user. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    region str
    Pool where the database is located, for example, ru-3. Changing this creates a new user. Learn more about available pools in the Availability matrix.
    status str
    User status.
    timeouts DbaasUserV1TimeoutsArgs
    datastoreId String
    Unique identifier of the associated datastore. Changing this creates a new user. Retrieved from the selectel.DbaasPostgresqlDatastoreV1 or selectel.DbaasMysqlDatastoreV1 resource depending on the datastore type you use.
    dbaasUserV1Id String
    name String
    User name. Changing this creates a new user.
    password String
    User password.
    projectId String
    Unique identifier of the associated project. Changing this creates a new user. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    region String
    Pool where the database is located, for example, ru-3. Changing this creates a new user. Learn more about available pools in the Availability matrix.
    status String
    User status.
    timeouts Property Map

    Supporting Types

    DbaasUserV1Timeouts, DbaasUserV1TimeoutsArgs

    Create string
    Delete string
    Update string
    Create string
    Delete string
    Update string
    create String
    delete String
    update String
    create string
    delete string
    update string
    create str
    delete str
    update str
    create String
    delete String
    update String

    Import

    You can import a user:

    export OS_DOMAIN_NAME=<account_id>

    export OS_USERNAME=

    export OS_PASSWORD=

    export INFRA_PROJECT_ID=<selectel_project_id>

    export INFRA_REGION=<selectel_pool>

    $ pulumi import selectel:index/dbaasUserV1:DbaasUserV1 user_1 <user_id>
    

    where:

    • <account_id> — Selectel account ID. The account ID is in the top right corner of the Control panel. Learn more about Registration.

    • <username> — Name of the service user. To get the name, in the Control panel, go to Identity & Access ManagementUser management ⟶ the Service users tab ⟶ copy the name of the required user. Learn more about Service users.

    • <password> — Password of the service user.

    • <selectel_project_id> — Unique identifier of the associated project. To get the ID, in the Control panel, go to Cloud Platform ⟶ project name ⟶ copy the ID of the required project. Learn more about Projects.

    • <selectel_pool> — Pool where the cluster is located, for example, ru-3. To get information about the pool, in the Control panel, go to Cloud PlatformManaged Databases. The pool is in the Pool column.

    • <user_id> — Unique identifier of the user, for example, b311ce58-2658-46b5-b733-7a0f418703f2. To get the user ID in the Control panel, go to Cloud PlatformManaged Databases ⟶ the cluster page ⟶ the Users tab. The user ID is under the user name.

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

    Package Details

    Repository
    selectel selectel/terraform-provider-selectel
    License
    Notes
    This Pulumi package is based on the selectel Terraform Provider.
    selectel logo
    selectel 6.4.0 published on Monday, Apr 14, 2025 by selectel