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

selectel.DbaasExtensionV1

Explore with Pulumi AI

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

    WARNING: This resource is deprecated and is going to be removed soon. You should use extension resource for specific datastore type.

    Manages a V1 extension resource within Selectel Managed Databases Service. Can be installed only for PostgreSQL datastores.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as selectel from "@pulumi/selectel";
    
    const project1 = new selectel.VpcProjectV2("project1", {});
    const subnet = new selectel.VpcSubnetV2("subnet", {
        projectId: project1.vpcProjectV2Id,
        region: "ru-3",
    });
    const dt = selectel.getDbaasDatastoreTypeV1Output({
        projectId: project1.vpcProjectV2Id,
        region: "ru-3",
        filters: [{
            engine: "postgresql",
            version: "12",
        }],
    });
    const datastore1 = new selectel.DbaasDatastoreV1("datastore1", {
        projectId: project1.vpcProjectV2Id,
        region: "ru-3",
        typeId: dt.apply(dt => dt.datastoreTypes?.[0]?.id),
        subnetId: subnet.subnetId,
        nodeCount: 3,
        flavors: [{
            vcpus: 4,
            ram: 4096,
            disk: 32,
        }],
        poolers: [{
            mode: "transaction",
            size: 50,
        }],
    });
    const user1 = new selectel.DbaasUserV1("user1", {
        projectId: project1.vpcProjectV2Id,
        region: "ru-3",
        datastoreId: datastore1.dbaasDatastoreV1Id,
        password: "secret",
    });
    const database1 = new selectel.DbaasDatabaseV1("database1", {
        projectId: project1.vpcProjectV2Id,
        region: "ru-3",
        datastoreId: datastore1.dbaasDatastoreV1Id,
        ownerId: user1.dbaasUserV1Id,
        lcCtype: "ru_RU.utf8",
        lcCollate: "ru_RU.utf8",
    });
    const ae = selectel.getDbaasAvailableExtensionV1Output({
        projectId: project1.vpcProjectV2Id,
        region: "ru-3",
        filters: [{
            name: "hstore",
        }],
    });
    const extension1 = new selectel.DbaasExtensionV1("extension1", {
        projectId: project1.vpcProjectV2Id,
        region: "ru-3",
        datastoreId: datastore1.dbaasDatastoreV1Id,
        databaseId: database1.dbaasDatabaseV1Id,
        availableExtensionId: ae.apply(ae => ae.availableExtensions?.[0]?.id),
    });
    
    import pulumi
    import pulumi_selectel as selectel
    
    project1 = selectel.VpcProjectV2("project1")
    subnet = selectel.VpcSubnetV2("subnet",
        project_id=project1.vpc_project_v2_id,
        region="ru-3")
    dt = selectel.get_dbaas_datastore_type_v1_output(project_id=project1.vpc_project_v2_id,
        region="ru-3",
        filters=[{
            "engine": "postgresql",
            "version": "12",
        }])
    datastore1 = selectel.DbaasDatastoreV1("datastore1",
        project_id=project1.vpc_project_v2_id,
        region="ru-3",
        type_id=dt.datastore_types[0].id,
        subnet_id=subnet.subnet_id,
        node_count=3,
        flavors=[{
            "vcpus": 4,
            "ram": 4096,
            "disk": 32,
        }],
        poolers=[{
            "mode": "transaction",
            "size": 50,
        }])
    user1 = selectel.DbaasUserV1("user1",
        project_id=project1.vpc_project_v2_id,
        region="ru-3",
        datastore_id=datastore1.dbaas_datastore_v1_id,
        password="secret")
    database1 = selectel.DbaasDatabaseV1("database1",
        project_id=project1.vpc_project_v2_id,
        region="ru-3",
        datastore_id=datastore1.dbaas_datastore_v1_id,
        owner_id=user1.dbaas_user_v1_id,
        lc_ctype="ru_RU.utf8",
        lc_collate="ru_RU.utf8")
    ae = selectel.get_dbaas_available_extension_v1_output(project_id=project1.vpc_project_v2_id,
        region="ru-3",
        filters=[{
            "name": "hstore",
        }])
    extension1 = selectel.DbaasExtensionV1("extension1",
        project_id=project1.vpc_project_v2_id,
        region="ru-3",
        datastore_id=datastore1.dbaas_datastore_v1_id,
        database_id=database1.dbaas_database_v1_id,
        available_extension_id=ae.available_extensions[0].id)
    
    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 {
    		project1, err := selectel.NewVpcProjectV2(ctx, "project1", nil)
    		if err != nil {
    			return err
    		}
    		subnet, err := selectel.NewVpcSubnetV2(ctx, "subnet", &selectel.VpcSubnetV2Args{
    			ProjectId: project1.VpcProjectV2Id,
    			Region:    pulumi.String("ru-3"),
    		})
    		if err != nil {
    			return err
    		}
    		dt := selectel.GetDbaasDatastoreTypeV1Output(ctx, selectel.GetDbaasDatastoreTypeV1OutputArgs{
    			ProjectId: project1.VpcProjectV2Id,
    			Region:    pulumi.String("ru-3"),
    			Filters: selectel.GetDbaasDatastoreTypeV1FilterArray{
    				&selectel.GetDbaasDatastoreTypeV1FilterArgs{
    					Engine:  pulumi.String("postgresql"),
    					Version: pulumi.String("12"),
    				},
    			},
    		}, nil)
    		datastore1, err := selectel.NewDbaasDatastoreV1(ctx, "datastore1", &selectel.DbaasDatastoreV1Args{
    			ProjectId: project1.VpcProjectV2Id,
    			Region:    pulumi.String("ru-3"),
    			TypeId: pulumi.String(dt.ApplyT(func(dt selectel.GetDbaasDatastoreTypeV1Result) (*string, error) {
    				return &dt.DatastoreTypes[0].Id, nil
    			}).(pulumi.StringPtrOutput)),
    			SubnetId:  subnet.SubnetId,
    			NodeCount: pulumi.Float64(3),
    			Flavors: selectel.DbaasDatastoreV1FlavorArray{
    				&selectel.DbaasDatastoreV1FlavorArgs{
    					Vcpus: pulumi.Float64(4),
    					Ram:   pulumi.Float64(4096),
    					Disk:  pulumi.Float64(32),
    				},
    			},
    			Poolers: selectel.DbaasDatastoreV1PoolerArray{
    				&selectel.DbaasDatastoreV1PoolerArgs{
    					Mode: pulumi.String("transaction"),
    					Size: pulumi.Float64(50),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		user1, err := selectel.NewDbaasUserV1(ctx, "user1", &selectel.DbaasUserV1Args{
    			ProjectId:   project1.VpcProjectV2Id,
    			Region:      pulumi.String("ru-3"),
    			DatastoreId: datastore1.DbaasDatastoreV1Id,
    			Password:    pulumi.String("secret"),
    		})
    		if err != nil {
    			return err
    		}
    		database1, err := selectel.NewDbaasDatabaseV1(ctx, "database1", &selectel.DbaasDatabaseV1Args{
    			ProjectId:   project1.VpcProjectV2Id,
    			Region:      pulumi.String("ru-3"),
    			DatastoreId: datastore1.DbaasDatastoreV1Id,
    			OwnerId:     user1.DbaasUserV1Id,
    			LcCtype:     pulumi.String("ru_RU.utf8"),
    			LcCollate:   pulumi.String("ru_RU.utf8"),
    		})
    		if err != nil {
    			return err
    		}
    		ae := selectel.GetDbaasAvailableExtensionV1Output(ctx, selectel.GetDbaasAvailableExtensionV1OutputArgs{
    			ProjectId: project1.VpcProjectV2Id,
    			Region:    pulumi.String("ru-3"),
    			Filters: selectel.GetDbaasAvailableExtensionV1FilterArray{
    				&selectel.GetDbaasAvailableExtensionV1FilterArgs{
    					Name: pulumi.String("hstore"),
    				},
    			},
    		}, nil)
    		_, err = selectel.NewDbaasExtensionV1(ctx, "extension1", &selectel.DbaasExtensionV1Args{
    			ProjectId:   project1.VpcProjectV2Id,
    			Region:      pulumi.String("ru-3"),
    			DatastoreId: datastore1.DbaasDatastoreV1Id,
    			DatabaseId:  database1.DbaasDatabaseV1Id,
    			AvailableExtensionId: pulumi.String(ae.ApplyT(func(ae selectel.GetDbaasAvailableExtensionV1Result) (*string, error) {
    				return &ae.AvailableExtensions[0].Id, nil
    			}).(pulumi.StringPtrOutput)),
    		})
    		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 project1 = new Selectel.VpcProjectV2("project1");
    
        var subnet = new Selectel.VpcSubnetV2("subnet", new()
        {
            ProjectId = project1.VpcProjectV2Id,
            Region = "ru-3",
        });
    
        var dt = Selectel.GetDbaasDatastoreTypeV1.Invoke(new()
        {
            ProjectId = project1.VpcProjectV2Id,
            Region = "ru-3",
            Filters = new[]
            {
                new Selectel.Inputs.GetDbaasDatastoreTypeV1FilterInputArgs
                {
                    Engine = "postgresql",
                    Version = "12",
                },
            },
        });
    
        var datastore1 = new Selectel.DbaasDatastoreV1("datastore1", new()
        {
            ProjectId = project1.VpcProjectV2Id,
            Region = "ru-3",
            TypeId = dt.Apply(getDbaasDatastoreTypeV1Result => getDbaasDatastoreTypeV1Result.DatastoreTypes[0]?.Id),
            SubnetId = subnet.SubnetId,
            NodeCount = 3,
            Flavors = new[]
            {
                new Selectel.Inputs.DbaasDatastoreV1FlavorArgs
                {
                    Vcpus = 4,
                    Ram = 4096,
                    Disk = 32,
                },
            },
            Poolers = new[]
            {
                new Selectel.Inputs.DbaasDatastoreV1PoolerArgs
                {
                    Mode = "transaction",
                    Size = 50,
                },
            },
        });
    
        var user1 = new Selectel.DbaasUserV1("user1", new()
        {
            ProjectId = project1.VpcProjectV2Id,
            Region = "ru-3",
            DatastoreId = datastore1.DbaasDatastoreV1Id,
            Password = "secret",
        });
    
        var database1 = new Selectel.DbaasDatabaseV1("database1", new()
        {
            ProjectId = project1.VpcProjectV2Id,
            Region = "ru-3",
            DatastoreId = datastore1.DbaasDatastoreV1Id,
            OwnerId = user1.DbaasUserV1Id,
            LcCtype = "ru_RU.utf8",
            LcCollate = "ru_RU.utf8",
        });
    
        var ae = Selectel.GetDbaasAvailableExtensionV1.Invoke(new()
        {
            ProjectId = project1.VpcProjectV2Id,
            Region = "ru-3",
            Filters = new[]
            {
                new Selectel.Inputs.GetDbaasAvailableExtensionV1FilterInputArgs
                {
                    Name = "hstore",
                },
            },
        });
    
        var extension1 = new Selectel.DbaasExtensionV1("extension1", new()
        {
            ProjectId = project1.VpcProjectV2Id,
            Region = "ru-3",
            DatastoreId = datastore1.DbaasDatastoreV1Id,
            DatabaseId = database1.DbaasDatabaseV1Id,
            AvailableExtensionId = ae.Apply(getDbaasAvailableExtensionV1Result => getDbaasAvailableExtensionV1Result.AvailableExtensions[0]?.Id),
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.selectel.VpcProjectV2;
    import com.pulumi.selectel.VpcSubnetV2;
    import com.pulumi.selectel.VpcSubnetV2Args;
    import com.pulumi.selectel.SelectelFunctions;
    import com.pulumi.selectel.inputs.GetDbaasDatastoreTypeV1Args;
    import com.pulumi.selectel.DbaasDatastoreV1;
    import com.pulumi.selectel.DbaasDatastoreV1Args;
    import com.pulumi.selectel.inputs.DbaasDatastoreV1FlavorArgs;
    import com.pulumi.selectel.inputs.DbaasDatastoreV1PoolerArgs;
    import com.pulumi.selectel.DbaasUserV1;
    import com.pulumi.selectel.DbaasUserV1Args;
    import com.pulumi.selectel.DbaasDatabaseV1;
    import com.pulumi.selectel.DbaasDatabaseV1Args;
    import com.pulumi.selectel.inputs.GetDbaasAvailableExtensionV1Args;
    import com.pulumi.selectel.DbaasExtensionV1;
    import com.pulumi.selectel.DbaasExtensionV1Args;
    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 project1 = new VpcProjectV2("project1");
    
            var subnet = new VpcSubnetV2("subnet", VpcSubnetV2Args.builder()
                .projectId(project1.vpcProjectV2Id())
                .region("ru-3")
                .build());
    
            final var dt = SelectelFunctions.getDbaasDatastoreTypeV1(GetDbaasDatastoreTypeV1Args.builder()
                .projectId(project1.vpcProjectV2Id())
                .region("ru-3")
                .filters(GetDbaasDatastoreTypeV1FilterArgs.builder()
                    .engine("postgresql")
                    .version("12")
                    .build())
                .build());
    
            var datastore1 = new DbaasDatastoreV1("datastore1", DbaasDatastoreV1Args.builder()
                .projectId(project1.vpcProjectV2Id())
                .region("ru-3")
                .typeId(dt.applyValue(getDbaasDatastoreTypeV1Result -> getDbaasDatastoreTypeV1Result).applyValue(dt -> dt.applyValue(getDbaasDatastoreTypeV1Result -> getDbaasDatastoreTypeV1Result.datastoreTypes()[0].id())))
                .subnetId(subnet.subnetId())
                .nodeCount(3)
                .flavors(DbaasDatastoreV1FlavorArgs.builder()
                    .vcpus(4)
                    .ram(4096)
                    .disk(32)
                    .build())
                .poolers(DbaasDatastoreV1PoolerArgs.builder()
                    .mode("transaction")
                    .size(50)
                    .build())
                .build());
    
            var user1 = new DbaasUserV1("user1", DbaasUserV1Args.builder()
                .projectId(project1.vpcProjectV2Id())
                .region("ru-3")
                .datastoreId(datastore1.dbaasDatastoreV1Id())
                .password("secret")
                .build());
    
            var database1 = new DbaasDatabaseV1("database1", DbaasDatabaseV1Args.builder()
                .projectId(project1.vpcProjectV2Id())
                .region("ru-3")
                .datastoreId(datastore1.dbaasDatastoreV1Id())
                .ownerId(user1.dbaasUserV1Id())
                .lcCtype("ru_RU.utf8")
                .lcCollate("ru_RU.utf8")
                .build());
    
            final var ae = SelectelFunctions.getDbaasAvailableExtensionV1(GetDbaasAvailableExtensionV1Args.builder()
                .projectId(project1.vpcProjectV2Id())
                .region("ru-3")
                .filters(GetDbaasAvailableExtensionV1FilterArgs.builder()
                    .name("hstore")
                    .build())
                .build());
    
            var extension1 = new DbaasExtensionV1("extension1", DbaasExtensionV1Args.builder()
                .projectId(project1.vpcProjectV2Id())
                .region("ru-3")
                .datastoreId(datastore1.dbaasDatastoreV1Id())
                .databaseId(database1.dbaasDatabaseV1Id())
                .availableExtensionId(ae.applyValue(getDbaasAvailableExtensionV1Result -> getDbaasAvailableExtensionV1Result).applyValue(ae -> ae.applyValue(getDbaasAvailableExtensionV1Result -> getDbaasAvailableExtensionV1Result.availableExtensions()[0].id())))
                .build());
    
        }
    }
    
    resources:
      project1:
        type: selectel:VpcProjectV2
      subnet:
        type: selectel:VpcSubnetV2
        properties:
          projectId: ${project1.vpcProjectV2Id}
          region: ru-3
      datastore1:
        type: selectel:DbaasDatastoreV1
        properties:
          projectId: ${project1.vpcProjectV2Id}
          region: ru-3
          typeId: ${dt.datastoreTypes[0].id}
          subnetId: ${subnet.subnetId}
          nodeCount: 3
          flavors:
            - vcpus: 4
              ram: 4096
              disk: 32
          poolers:
            - mode: transaction
              size: 50
      user1:
        type: selectel:DbaasUserV1
        properties:
          projectId: ${project1.vpcProjectV2Id}
          region: ru-3
          datastoreId: ${datastore1.dbaasDatastoreV1Id}
          password: secret
      database1:
        type: selectel:DbaasDatabaseV1
        properties:
          projectId: ${project1.vpcProjectV2Id}
          region: ru-3
          datastoreId: ${datastore1.dbaasDatastoreV1Id}
          ownerId: ${user1.dbaasUserV1Id}
          lcCtype: ru_RU.utf8
          lcCollate: ru_RU.utf8
      extension1:
        type: selectel:DbaasExtensionV1
        properties:
          projectId: ${project1.vpcProjectV2Id}
          region: ru-3
          datastoreId: ${datastore1.dbaasDatastoreV1Id}
          databaseId: ${database1.dbaasDatabaseV1Id}
          availableExtensionId: ${ae.availableExtensions[0].id}
    variables:
      dt:
        fn::invoke:
          function: selectel:getDbaasDatastoreTypeV1
          arguments:
            projectId: ${project1.vpcProjectV2Id}
            region: ru-3
            filters:
              - engine: postgresql
                version: '12'
      ae:
        fn::invoke:
          function: selectel:getDbaasAvailableExtensionV1
          arguments:
            projectId: ${project1.vpcProjectV2Id}
            region: ru-3
            filters:
              - name: hstore
    

    Create DbaasExtensionV1 Resource

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

    Constructor syntax

    new DbaasExtensionV1(name: string, args: DbaasExtensionV1Args, opts?: CustomResourceOptions);
    @overload
    def DbaasExtensionV1(resource_name: str,
                         args: DbaasExtensionV1Args,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def DbaasExtensionV1(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         available_extension_id: Optional[str] = None,
                         database_id: Optional[str] = None,
                         datastore_id: Optional[str] = None,
                         project_id: Optional[str] = None,
                         region: Optional[str] = None,
                         dbaas_extension_v1_id: Optional[str] = None,
                         timeouts: Optional[DbaasExtensionV1TimeoutsArgs] = None)
    func NewDbaasExtensionV1(ctx *Context, name string, args DbaasExtensionV1Args, opts ...ResourceOption) (*DbaasExtensionV1, error)
    public DbaasExtensionV1(string name, DbaasExtensionV1Args args, CustomResourceOptions? opts = null)
    public DbaasExtensionV1(String name, DbaasExtensionV1Args args)
    public DbaasExtensionV1(String name, DbaasExtensionV1Args args, CustomResourceOptions options)
    
    type: selectel:DbaasExtensionV1
    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 DbaasExtensionV1Args
    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 DbaasExtensionV1Args
    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 DbaasExtensionV1Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DbaasExtensionV1Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DbaasExtensionV1Args
    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 dbaasExtensionV1Resource = new Selectel.DbaasExtensionV1("dbaasExtensionV1Resource", new()
    {
        AvailableExtensionId = "string",
        DatabaseId = "string",
        DatastoreId = "string",
        ProjectId = "string",
        Region = "string",
        DbaasExtensionV1Id = "string",
        Timeouts = new Selectel.Inputs.DbaasExtensionV1TimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
    });
    
    example, err := selectel.NewDbaasExtensionV1(ctx, "dbaasExtensionV1Resource", &selectel.DbaasExtensionV1Args{
    	AvailableExtensionId: pulumi.String("string"),
    	DatabaseId:           pulumi.String("string"),
    	DatastoreId:          pulumi.String("string"),
    	ProjectId:            pulumi.String("string"),
    	Region:               pulumi.String("string"),
    	DbaasExtensionV1Id:   pulumi.String("string"),
    	Timeouts: &selectel.DbaasExtensionV1TimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    })
    
    var dbaasExtensionV1Resource = new DbaasExtensionV1("dbaasExtensionV1Resource", DbaasExtensionV1Args.builder()
        .availableExtensionId("string")
        .databaseId("string")
        .datastoreId("string")
        .projectId("string")
        .region("string")
        .dbaasExtensionV1Id("string")
        .timeouts(DbaasExtensionV1TimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .build());
    
    dbaas_extension_v1_resource = selectel.DbaasExtensionV1("dbaasExtensionV1Resource",
        available_extension_id="string",
        database_id="string",
        datastore_id="string",
        project_id="string",
        region="string",
        dbaas_extension_v1_id="string",
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        })
    
    const dbaasExtensionV1Resource = new selectel.DbaasExtensionV1("dbaasExtensionV1Resource", {
        availableExtensionId: "string",
        databaseId: "string",
        datastoreId: "string",
        projectId: "string",
        region: "string",
        dbaasExtensionV1Id: "string",
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
    });
    
    type: selectel:DbaasExtensionV1
    properties:
        availableExtensionId: string
        databaseId: string
        datastoreId: string
        dbaasExtensionV1Id: string
        projectId: string
        region: string
        timeouts:
            create: string
            delete: string
            update: string
    

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

    AvailableExtensionId string
    An associated available extension. Changing this creates a new extension.
    DatabaseId string
    An associated database. Changing this creates a new extension.
    DatastoreId string
    An associated datastore. Changing this creates a new extension.
    ProjectId string
    An associated Selectel VPC project. Changing this creates a new extension.
    Region string
    A Selectel VPC region of where the database is located. Changing this creates a new extension.
    DbaasExtensionV1Id string
    Timeouts DbaasExtensionV1Timeouts
    AvailableExtensionId string
    An associated available extension. Changing this creates a new extension.
    DatabaseId string
    An associated database. Changing this creates a new extension.
    DatastoreId string
    An associated datastore. Changing this creates a new extension.
    ProjectId string
    An associated Selectel VPC project. Changing this creates a new extension.
    Region string
    A Selectel VPC region of where the database is located. Changing this creates a new extension.
    DbaasExtensionV1Id string
    Timeouts DbaasExtensionV1TimeoutsArgs
    availableExtensionId String
    An associated available extension. Changing this creates a new extension.
    databaseId String
    An associated database. Changing this creates a new extension.
    datastoreId String
    An associated datastore. Changing this creates a new extension.
    projectId String
    An associated Selectel VPC project. Changing this creates a new extension.
    region String
    A Selectel VPC region of where the database is located. Changing this creates a new extension.
    dbaasExtensionV1Id String
    timeouts DbaasExtensionV1Timeouts
    availableExtensionId string
    An associated available extension. Changing this creates a new extension.
    databaseId string
    An associated database. Changing this creates a new extension.
    datastoreId string
    An associated datastore. Changing this creates a new extension.
    projectId string
    An associated Selectel VPC project. Changing this creates a new extension.
    region string
    A Selectel VPC region of where the database is located. Changing this creates a new extension.
    dbaasExtensionV1Id string
    timeouts DbaasExtensionV1Timeouts
    available_extension_id str
    An associated available extension. Changing this creates a new extension.
    database_id str
    An associated database. Changing this creates a new extension.
    datastore_id str
    An associated datastore. Changing this creates a new extension.
    project_id str
    An associated Selectel VPC project. Changing this creates a new extension.
    region str
    A Selectel VPC region of where the database is located. Changing this creates a new extension.
    dbaas_extension_v1_id str
    timeouts DbaasExtensionV1TimeoutsArgs
    availableExtensionId String
    An associated available extension. Changing this creates a new extension.
    databaseId String
    An associated database. Changing this creates a new extension.
    datastoreId String
    An associated datastore. Changing this creates a new extension.
    projectId String
    An associated Selectel VPC project. Changing this creates a new extension.
    region String
    A Selectel VPC region of where the database is located. Changing this creates a new extension.
    dbaasExtensionV1Id String
    timeouts Property Map

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Shows the current status of the extension.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Shows the current status of the extension.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Shows the current status of the extension.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    Shows the current status of the extension.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    Shows the current status of the extension.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Shows the current status of the extension.

    Look up Existing DbaasExtensionV1 Resource

    Get an existing DbaasExtensionV1 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?: DbaasExtensionV1State, opts?: CustomResourceOptions): DbaasExtensionV1
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            available_extension_id: Optional[str] = None,
            database_id: Optional[str] = None,
            datastore_id: Optional[str] = None,
            dbaas_extension_v1_id: Optional[str] = None,
            project_id: Optional[str] = None,
            region: Optional[str] = None,
            status: Optional[str] = None,
            timeouts: Optional[DbaasExtensionV1TimeoutsArgs] = None) -> DbaasExtensionV1
    func GetDbaasExtensionV1(ctx *Context, name string, id IDInput, state *DbaasExtensionV1State, opts ...ResourceOption) (*DbaasExtensionV1, error)
    public static DbaasExtensionV1 Get(string name, Input<string> id, DbaasExtensionV1State? state, CustomResourceOptions? opts = null)
    public static DbaasExtensionV1 get(String name, Output<String> id, DbaasExtensionV1State state, CustomResourceOptions options)
    resources:  _:    type: selectel:DbaasExtensionV1    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:
    AvailableExtensionId string
    An associated available extension. Changing this creates a new extension.
    DatabaseId string
    An associated database. Changing this creates a new extension.
    DatastoreId string
    An associated datastore. Changing this creates a new extension.
    DbaasExtensionV1Id string
    ProjectId string
    An associated Selectel VPC project. Changing this creates a new extension.
    Region string
    A Selectel VPC region of where the database is located. Changing this creates a new extension.
    Status string
    Shows the current status of the extension.
    Timeouts DbaasExtensionV1Timeouts
    AvailableExtensionId string
    An associated available extension. Changing this creates a new extension.
    DatabaseId string
    An associated database. Changing this creates a new extension.
    DatastoreId string
    An associated datastore. Changing this creates a new extension.
    DbaasExtensionV1Id string
    ProjectId string
    An associated Selectel VPC project. Changing this creates a new extension.
    Region string
    A Selectel VPC region of where the database is located. Changing this creates a new extension.
    Status string
    Shows the current status of the extension.
    Timeouts DbaasExtensionV1TimeoutsArgs
    availableExtensionId String
    An associated available extension. Changing this creates a new extension.
    databaseId String
    An associated database. Changing this creates a new extension.
    datastoreId String
    An associated datastore. Changing this creates a new extension.
    dbaasExtensionV1Id String
    projectId String
    An associated Selectel VPC project. Changing this creates a new extension.
    region String
    A Selectel VPC region of where the database is located. Changing this creates a new extension.
    status String
    Shows the current status of the extension.
    timeouts DbaasExtensionV1Timeouts
    availableExtensionId string
    An associated available extension. Changing this creates a new extension.
    databaseId string
    An associated database. Changing this creates a new extension.
    datastoreId string
    An associated datastore. Changing this creates a new extension.
    dbaasExtensionV1Id string
    projectId string
    An associated Selectel VPC project. Changing this creates a new extension.
    region string
    A Selectel VPC region of where the database is located. Changing this creates a new extension.
    status string
    Shows the current status of the extension.
    timeouts DbaasExtensionV1Timeouts
    available_extension_id str
    An associated available extension. Changing this creates a new extension.
    database_id str
    An associated database. Changing this creates a new extension.
    datastore_id str
    An associated datastore. Changing this creates a new extension.
    dbaas_extension_v1_id str
    project_id str
    An associated Selectel VPC project. Changing this creates a new extension.
    region str
    A Selectel VPC region of where the database is located. Changing this creates a new extension.
    status str
    Shows the current status of the extension.
    timeouts DbaasExtensionV1TimeoutsArgs
    availableExtensionId String
    An associated available extension. Changing this creates a new extension.
    databaseId String
    An associated database. Changing this creates a new extension.
    datastoreId String
    An associated datastore. Changing this creates a new extension.
    dbaasExtensionV1Id String
    projectId String
    An associated Selectel VPC project. Changing this creates a new extension.
    region String
    A Selectel VPC region of where the database is located. Changing this creates a new extension.
    status String
    Shows the current status of the extension.
    timeouts Property Map

    Supporting Types

    DbaasExtensionV1Timeouts, DbaasExtensionV1TimeoutsArgs

    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

    Extension can be imported using the id, e.g.

    export OS_DOMAIN_NAME=999999

    export OS_USERNAME=example_user

    export OS_PASSWORD=example_password

    export INFRA_PROJECT_ID=SELECTEL_VPC_PROJECT_ID

    export INFRA_REGION=SELECTEL_VPC_REGION

    $ pulumi import selectel:index/dbaasExtensionV1:DbaasExtensionV1 extension_1 b311ce58-2658-46b5-b733-7a0f418703f2
    

    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