1. Packages
  2. OpenStack
  3. API Docs
  4. database
  5. Instance
OpenStack v3.15.2 published on Friday, Mar 29, 2024 by Pulumi

openstack.database.Instance

Explore with Pulumi AI

openstack logo
OpenStack v3.15.2 published on Friday, Mar 29, 2024 by Pulumi

    Manages a V1 DB instance resource within OpenStack.

    Note: All arguments including the instance user password will be stored in the raw state as plain-text. Read more about sensitive data in state.

    Example Usage

    Instance

    import * as pulumi from "@pulumi/pulumi";
    import * as openstack from "@pulumi/openstack";
    
    const test = new openstack.database.Instance("test", {
        datastore: {
            type: "mysql",
            version: "mysql-5.7",
        },
        flavorId: "31792d21-c355-4587-9290-56c1ed0ca376",
        networks: [{
            uuid: "c0612505-caf2-4fb0-b7cb-56a0240a2b12",
        }],
        region: "region-test",
        size: 8,
    });
    
    import pulumi
    import pulumi_openstack as openstack
    
    test = openstack.database.Instance("test",
        datastore=openstack.database.InstanceDatastoreArgs(
            type="mysql",
            version="mysql-5.7",
        ),
        flavor_id="31792d21-c355-4587-9290-56c1ed0ca376",
        networks=[openstack.database.InstanceNetworkArgs(
            uuid="c0612505-caf2-4fb0-b7cb-56a0240a2b12",
        )],
        region="region-test",
        size=8)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-openstack/sdk/v3/go/openstack/database"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := database.NewInstance(ctx, "test", &database.InstanceArgs{
    			Datastore: &database.InstanceDatastoreArgs{
    				Type:    pulumi.String("mysql"),
    				Version: pulumi.String("mysql-5.7"),
    			},
    			FlavorId: pulumi.String("31792d21-c355-4587-9290-56c1ed0ca376"),
    			Networks: database.InstanceNetworkArray{
    				&database.InstanceNetworkArgs{
    					Uuid: pulumi.String("c0612505-caf2-4fb0-b7cb-56a0240a2b12"),
    				},
    			},
    			Region: pulumi.String("region-test"),
    			Size:   pulumi.Int(8),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using OpenStack = Pulumi.OpenStack;
    
    return await Deployment.RunAsync(() => 
    {
        var test = new OpenStack.Database.Instance("test", new()
        {
            Datastore = new OpenStack.Database.Inputs.InstanceDatastoreArgs
            {
                Type = "mysql",
                Version = "mysql-5.7",
            },
            FlavorId = "31792d21-c355-4587-9290-56c1ed0ca376",
            Networks = new[]
            {
                new OpenStack.Database.Inputs.InstanceNetworkArgs
                {
                    Uuid = "c0612505-caf2-4fb0-b7cb-56a0240a2b12",
                },
            },
            Region = "region-test",
            Size = 8,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.openstack.database.Instance;
    import com.pulumi.openstack.database.InstanceArgs;
    import com.pulumi.openstack.database.inputs.InstanceDatastoreArgs;
    import com.pulumi.openstack.database.inputs.InstanceNetworkArgs;
    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 test = new Instance("test", InstanceArgs.builder()        
                .datastore(InstanceDatastoreArgs.builder()
                    .type("mysql")
                    .version("mysql-5.7")
                    .build())
                .flavorId("31792d21-c355-4587-9290-56c1ed0ca376")
                .networks(InstanceNetworkArgs.builder()
                    .uuid("c0612505-caf2-4fb0-b7cb-56a0240a2b12")
                    .build())
                .region("region-test")
                .size(8)
                .build());
    
        }
    }
    
    resources:
      test:
        type: openstack:database:Instance
        properties:
          datastore:
            type: mysql
            version: mysql-5.7
          flavorId: 31792d21-c355-4587-9290-56c1ed0ca376
          networks:
            - uuid: c0612505-caf2-4fb0-b7cb-56a0240a2b12
          region: region-test
          size: 8
    

    Create Instance Resource

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

    Constructor syntax

    new Instance(name: string, args: InstanceArgs, opts?: CustomResourceOptions);
    @overload
    def Instance(resource_name: str,
                 args: InstanceArgs,
                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def Instance(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 datastore: Optional[InstanceDatastoreArgs] = None,
                 size: Optional[int] = None,
                 configuration_id: Optional[str] = None,
                 databases: Optional[Sequence[InstanceDatabaseArgs]] = None,
                 flavor_id: Optional[str] = None,
                 name: Optional[str] = None,
                 networks: Optional[Sequence[InstanceNetworkArgs]] = None,
                 region: Optional[str] = None,
                 users: Optional[Sequence[InstanceUserArgs]] = None)
    func NewInstance(ctx *Context, name string, args InstanceArgs, opts ...ResourceOption) (*Instance, error)
    public Instance(string name, InstanceArgs args, CustomResourceOptions? opts = null)
    public Instance(String name, InstanceArgs args)
    public Instance(String name, InstanceArgs args, CustomResourceOptions options)
    
    type: openstack:database:Instance
    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 InstanceArgs
    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 InstanceArgs
    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 InstanceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args InstanceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args InstanceArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var openstackInstanceResource = new OpenStack.Database.Instance("openstackInstanceResource", new()
    {
        Datastore = new OpenStack.Database.Inputs.InstanceDatastoreArgs
        {
            Type = "string",
            Version = "string",
        },
        Size = 0,
        ConfigurationId = "string",
        Databases = new[]
        {
            new OpenStack.Database.Inputs.InstanceDatabaseArgs
            {
                Name = "string",
                Charset = "string",
                Collate = "string",
            },
        },
        FlavorId = "string",
        Name = "string",
        Networks = new[]
        {
            new OpenStack.Database.Inputs.InstanceNetworkArgs
            {
                FixedIpV4 = "string",
                FixedIpV6 = "string",
                Port = "string",
                Uuid = "string",
            },
        },
        Region = "string",
        Users = new[]
        {
            new OpenStack.Database.Inputs.InstanceUserArgs
            {
                Name = "string",
                Databases = new[]
                {
                    "string",
                },
                Host = "string",
                Password = "string",
            },
        },
    });
    
    example, err := database.NewInstance(ctx, "openstackInstanceResource", &database.InstanceArgs{
    	Datastore: &database.InstanceDatastoreArgs{
    		Type:    pulumi.String("string"),
    		Version: pulumi.String("string"),
    	},
    	Size:            pulumi.Int(0),
    	ConfigurationId: pulumi.String("string"),
    	Databases: database.InstanceDatabaseArray{
    		&database.InstanceDatabaseArgs{
    			Name:    pulumi.String("string"),
    			Charset: pulumi.String("string"),
    			Collate: pulumi.String("string"),
    		},
    	},
    	FlavorId: pulumi.String("string"),
    	Name:     pulumi.String("string"),
    	Networks: database.InstanceNetworkArray{
    		&database.InstanceNetworkArgs{
    			FixedIpV4: pulumi.String("string"),
    			FixedIpV6: pulumi.String("string"),
    			Port:      pulumi.String("string"),
    			Uuid:      pulumi.String("string"),
    		},
    	},
    	Region: pulumi.String("string"),
    	Users: database.InstanceUserArray{
    		&database.InstanceUserArgs{
    			Name: pulumi.String("string"),
    			Databases: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			Host:     pulumi.String("string"),
    			Password: pulumi.String("string"),
    		},
    	},
    })
    
    var openstackInstanceResource = new Instance("openstackInstanceResource", InstanceArgs.builder()        
        .datastore(InstanceDatastoreArgs.builder()
            .type("string")
            .version("string")
            .build())
        .size(0)
        .configurationId("string")
        .databases(InstanceDatabaseArgs.builder()
            .name("string")
            .charset("string")
            .collate("string")
            .build())
        .flavorId("string")
        .name("string")
        .networks(InstanceNetworkArgs.builder()
            .fixedIpV4("string")
            .fixedIpV6("string")
            .port("string")
            .uuid("string")
            .build())
        .region("string")
        .users(InstanceUserArgs.builder()
            .name("string")
            .databases("string")
            .host("string")
            .password("string")
            .build())
        .build());
    
    openstack_instance_resource = openstack.database.Instance("openstackInstanceResource",
        datastore=openstack.database.InstanceDatastoreArgs(
            type="string",
            version="string",
        ),
        size=0,
        configuration_id="string",
        databases=[openstack.database.InstanceDatabaseArgs(
            name="string",
            charset="string",
            collate="string",
        )],
        flavor_id="string",
        name="string",
        networks=[openstack.database.InstanceNetworkArgs(
            fixed_ip_v4="string",
            fixed_ip_v6="string",
            port="string",
            uuid="string",
        )],
        region="string",
        users=[openstack.database.InstanceUserArgs(
            name="string",
            databases=["string"],
            host="string",
            password="string",
        )])
    
    const openstackInstanceResource = new openstack.database.Instance("openstackInstanceResource", {
        datastore: {
            type: "string",
            version: "string",
        },
        size: 0,
        configurationId: "string",
        databases: [{
            name: "string",
            charset: "string",
            collate: "string",
        }],
        flavorId: "string",
        name: "string",
        networks: [{
            fixedIpV4: "string",
            fixedIpV6: "string",
            port: "string",
            uuid: "string",
        }],
        region: "string",
        users: [{
            name: "string",
            databases: ["string"],
            host: "string",
            password: "string",
        }],
    });
    
    type: openstack:database:Instance
    properties:
        configurationId: string
        databases:
            - charset: string
              collate: string
              name: string
        datastore:
            type: string
            version: string
        flavorId: string
        name: string
        networks:
            - fixedIpV4: string
              fixedIpV6: string
              port: string
              uuid: string
        region: string
        size: 0
        users:
            - databases:
                - string
              host: string
              name: string
              password: string
    

    Instance Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Instance resource accepts the following input properties:

    Datastore Pulumi.OpenStack.Database.Inputs.InstanceDatastore
    An array of database engine type and version. The datastore object structure is documented below. Changing this creates a new instance.
    Size int
    Specifies the volume size in GB. Changing this creates new instance.
    ConfigurationId string
    Configuration ID to be attached to the instance. Database instance will be rebooted when configuration is detached.
    Databases List<Pulumi.OpenStack.Database.Inputs.InstanceDatabase>
    An array of database name, charset and collate. The database object structure is documented below.
    FlavorId string
    The flavor ID of the desired flavor for the instance. Changing this creates new instance.
    Name string
    A unique name for the resource.
    Networks List<Pulumi.OpenStack.Database.Inputs.InstanceNetwork>
    An array of one or more networks to attach to the instance. The network object structure is documented below. Changing this creates a new instance.
    Region string
    The region in which to create the db instance. Changing this creates a new instance.
    Users List<Pulumi.OpenStack.Database.Inputs.InstanceUser>
    An array of username, password, host and databases. The user object structure is documented below.
    Datastore InstanceDatastoreArgs
    An array of database engine type and version. The datastore object structure is documented below. Changing this creates a new instance.
    Size int
    Specifies the volume size in GB. Changing this creates new instance.
    ConfigurationId string
    Configuration ID to be attached to the instance. Database instance will be rebooted when configuration is detached.
    Databases []InstanceDatabaseArgs
    An array of database name, charset and collate. The database object structure is documented below.
    FlavorId string
    The flavor ID of the desired flavor for the instance. Changing this creates new instance.
    Name string
    A unique name for the resource.
    Networks []InstanceNetworkArgs
    An array of one or more networks to attach to the instance. The network object structure is documented below. Changing this creates a new instance.
    Region string
    The region in which to create the db instance. Changing this creates a new instance.
    Users []InstanceUserArgs
    An array of username, password, host and databases. The user object structure is documented below.
    datastore InstanceDatastore
    An array of database engine type and version. The datastore object structure is documented below. Changing this creates a new instance.
    size Integer
    Specifies the volume size in GB. Changing this creates new instance.
    configurationId String
    Configuration ID to be attached to the instance. Database instance will be rebooted when configuration is detached.
    databases List<InstanceDatabase>
    An array of database name, charset and collate. The database object structure is documented below.
    flavorId String
    The flavor ID of the desired flavor for the instance. Changing this creates new instance.
    name String
    A unique name for the resource.
    networks List<InstanceNetwork>
    An array of one or more networks to attach to the instance. The network object structure is documented below. Changing this creates a new instance.
    region String
    The region in which to create the db instance. Changing this creates a new instance.
    users List<InstanceUser>
    An array of username, password, host and databases. The user object structure is documented below.
    datastore InstanceDatastore
    An array of database engine type and version. The datastore object structure is documented below. Changing this creates a new instance.
    size number
    Specifies the volume size in GB. Changing this creates new instance.
    configurationId string
    Configuration ID to be attached to the instance. Database instance will be rebooted when configuration is detached.
    databases InstanceDatabase[]
    An array of database name, charset and collate. The database object structure is documented below.
    flavorId string
    The flavor ID of the desired flavor for the instance. Changing this creates new instance.
    name string
    A unique name for the resource.
    networks InstanceNetwork[]
    An array of one or more networks to attach to the instance. The network object structure is documented below. Changing this creates a new instance.
    region string
    The region in which to create the db instance. Changing this creates a new instance.
    users InstanceUser[]
    An array of username, password, host and databases. The user object structure is documented below.
    datastore InstanceDatastoreArgs
    An array of database engine type and version. The datastore object structure is documented below. Changing this creates a new instance.
    size int
    Specifies the volume size in GB. Changing this creates new instance.
    configuration_id str
    Configuration ID to be attached to the instance. Database instance will be rebooted when configuration is detached.
    databases Sequence[InstanceDatabaseArgs]
    An array of database name, charset and collate. The database object structure is documented below.
    flavor_id str
    The flavor ID of the desired flavor for the instance. Changing this creates new instance.
    name str
    A unique name for the resource.
    networks Sequence[InstanceNetworkArgs]
    An array of one or more networks to attach to the instance. The network object structure is documented below. Changing this creates a new instance.
    region str
    The region in which to create the db instance. Changing this creates a new instance.
    users Sequence[InstanceUserArgs]
    An array of username, password, host and databases. The user object structure is documented below.
    datastore Property Map
    An array of database engine type and version. The datastore object structure is documented below. Changing this creates a new instance.
    size Number
    Specifies the volume size in GB. Changing this creates new instance.
    configurationId String
    Configuration ID to be attached to the instance. Database instance will be rebooted when configuration is detached.
    databases List<Property Map>
    An array of database name, charset and collate. The database object structure is documented below.
    flavorId String
    The flavor ID of the desired flavor for the instance. Changing this creates new instance.
    name String
    A unique name for the resource.
    networks List<Property Map>
    An array of one or more networks to attach to the instance. The network object structure is documented below. Changing this creates a new instance.
    region String
    The region in which to create the db instance. Changing this creates a new instance.
    users List<Property Map>
    An array of username, password, host and databases. The user object structure is documented below.

    Outputs

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

    Addresses List<string>
    A list of IP addresses assigned to the instance.
    Id string
    The provider-assigned unique ID for this managed resource.
    Addresses []string
    A list of IP addresses assigned to the instance.
    Id string
    The provider-assigned unique ID for this managed resource.
    addresses List<String>
    A list of IP addresses assigned to the instance.
    id String
    The provider-assigned unique ID for this managed resource.
    addresses string[]
    A list of IP addresses assigned to the instance.
    id string
    The provider-assigned unique ID for this managed resource.
    addresses Sequence[str]
    A list of IP addresses assigned to the instance.
    id str
    The provider-assigned unique ID for this managed resource.
    addresses List<String>
    A list of IP addresses assigned to the instance.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing Instance Resource

    Get an existing Instance 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?: InstanceState, opts?: CustomResourceOptions): Instance
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            addresses: Optional[Sequence[str]] = None,
            configuration_id: Optional[str] = None,
            databases: Optional[Sequence[InstanceDatabaseArgs]] = None,
            datastore: Optional[InstanceDatastoreArgs] = None,
            flavor_id: Optional[str] = None,
            name: Optional[str] = None,
            networks: Optional[Sequence[InstanceNetworkArgs]] = None,
            region: Optional[str] = None,
            size: Optional[int] = None,
            users: Optional[Sequence[InstanceUserArgs]] = None) -> Instance
    func GetInstance(ctx *Context, name string, id IDInput, state *InstanceState, opts ...ResourceOption) (*Instance, error)
    public static Instance Get(string name, Input<string> id, InstanceState? state, CustomResourceOptions? opts = null)
    public static Instance get(String name, Output<String> id, InstanceState 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:
    Addresses List<string>
    A list of IP addresses assigned to the instance.
    ConfigurationId string
    Configuration ID to be attached to the instance. Database instance will be rebooted when configuration is detached.
    Databases List<Pulumi.OpenStack.Database.Inputs.InstanceDatabase>
    An array of database name, charset and collate. The database object structure is documented below.
    Datastore Pulumi.OpenStack.Database.Inputs.InstanceDatastore
    An array of database engine type and version. The datastore object structure is documented below. Changing this creates a new instance.
    FlavorId string
    The flavor ID of the desired flavor for the instance. Changing this creates new instance.
    Name string
    A unique name for the resource.
    Networks List<Pulumi.OpenStack.Database.Inputs.InstanceNetwork>
    An array of one or more networks to attach to the instance. The network object structure is documented below. Changing this creates a new instance.
    Region string
    The region in which to create the db instance. Changing this creates a new instance.
    Size int
    Specifies the volume size in GB. Changing this creates new instance.
    Users List<Pulumi.OpenStack.Database.Inputs.InstanceUser>
    An array of username, password, host and databases. The user object structure is documented below.
    Addresses []string
    A list of IP addresses assigned to the instance.
    ConfigurationId string
    Configuration ID to be attached to the instance. Database instance will be rebooted when configuration is detached.
    Databases []InstanceDatabaseArgs
    An array of database name, charset and collate. The database object structure is documented below.
    Datastore InstanceDatastoreArgs
    An array of database engine type and version. The datastore object structure is documented below. Changing this creates a new instance.
    FlavorId string
    The flavor ID of the desired flavor for the instance. Changing this creates new instance.
    Name string
    A unique name for the resource.
    Networks []InstanceNetworkArgs
    An array of one or more networks to attach to the instance. The network object structure is documented below. Changing this creates a new instance.
    Region string
    The region in which to create the db instance. Changing this creates a new instance.
    Size int
    Specifies the volume size in GB. Changing this creates new instance.
    Users []InstanceUserArgs
    An array of username, password, host and databases. The user object structure is documented below.
    addresses List<String>
    A list of IP addresses assigned to the instance.
    configurationId String
    Configuration ID to be attached to the instance. Database instance will be rebooted when configuration is detached.
    databases List<InstanceDatabase>
    An array of database name, charset and collate. The database object structure is documented below.
    datastore InstanceDatastore
    An array of database engine type and version. The datastore object structure is documented below. Changing this creates a new instance.
    flavorId String
    The flavor ID of the desired flavor for the instance. Changing this creates new instance.
    name String
    A unique name for the resource.
    networks List<InstanceNetwork>
    An array of one or more networks to attach to the instance. The network object structure is documented below. Changing this creates a new instance.
    region String
    The region in which to create the db instance. Changing this creates a new instance.
    size Integer
    Specifies the volume size in GB. Changing this creates new instance.
    users List<InstanceUser>
    An array of username, password, host and databases. The user object structure is documented below.
    addresses string[]
    A list of IP addresses assigned to the instance.
    configurationId string
    Configuration ID to be attached to the instance. Database instance will be rebooted when configuration is detached.
    databases InstanceDatabase[]
    An array of database name, charset and collate. The database object structure is documented below.
    datastore InstanceDatastore
    An array of database engine type and version. The datastore object structure is documented below. Changing this creates a new instance.
    flavorId string
    The flavor ID of the desired flavor for the instance. Changing this creates new instance.
    name string
    A unique name for the resource.
    networks InstanceNetwork[]
    An array of one or more networks to attach to the instance. The network object structure is documented below. Changing this creates a new instance.
    region string
    The region in which to create the db instance. Changing this creates a new instance.
    size number
    Specifies the volume size in GB. Changing this creates new instance.
    users InstanceUser[]
    An array of username, password, host and databases. The user object structure is documented below.
    addresses Sequence[str]
    A list of IP addresses assigned to the instance.
    configuration_id str
    Configuration ID to be attached to the instance. Database instance will be rebooted when configuration is detached.
    databases Sequence[InstanceDatabaseArgs]
    An array of database name, charset and collate. The database object structure is documented below.
    datastore InstanceDatastoreArgs
    An array of database engine type and version. The datastore object structure is documented below. Changing this creates a new instance.
    flavor_id str
    The flavor ID of the desired flavor for the instance. Changing this creates new instance.
    name str
    A unique name for the resource.
    networks Sequence[InstanceNetworkArgs]
    An array of one or more networks to attach to the instance. The network object structure is documented below. Changing this creates a new instance.
    region str
    The region in which to create the db instance. Changing this creates a new instance.
    size int
    Specifies the volume size in GB. Changing this creates new instance.
    users Sequence[InstanceUserArgs]
    An array of username, password, host and databases. The user object structure is documented below.
    addresses List<String>
    A list of IP addresses assigned to the instance.
    configurationId String
    Configuration ID to be attached to the instance. Database instance will be rebooted when configuration is detached.
    databases List<Property Map>
    An array of database name, charset and collate. The database object structure is documented below.
    datastore Property Map
    An array of database engine type and version. The datastore object structure is documented below. Changing this creates a new instance.
    flavorId String
    The flavor ID of the desired flavor for the instance. Changing this creates new instance.
    name String
    A unique name for the resource.
    networks List<Property Map>
    An array of one or more networks to attach to the instance. The network object structure is documented below. Changing this creates a new instance.
    region String
    The region in which to create the db instance. Changing this creates a new instance.
    size Number
    Specifies the volume size in GB. Changing this creates new instance.
    users List<Property Map>
    An array of username, password, host and databases. The user object structure is documented below.

    Supporting Types

    InstanceDatabase, InstanceDatabaseArgs

    Name string
    Database to be created on new instance. Changing this creates a new instance.
    Charset string
    Database character set. Changing this creates a new instance.
    Collate string
    Database collation. Changing this creates a new instance.
    Name string
    Database to be created on new instance. Changing this creates a new instance.
    Charset string
    Database character set. Changing this creates a new instance.
    Collate string
    Database collation. Changing this creates a new instance.
    name String
    Database to be created on new instance. Changing this creates a new instance.
    charset String
    Database character set. Changing this creates a new instance.
    collate String
    Database collation. Changing this creates a new instance.
    name string
    Database to be created on new instance. Changing this creates a new instance.
    charset string
    Database character set. Changing this creates a new instance.
    collate string
    Database collation. Changing this creates a new instance.
    name str
    Database to be created on new instance. Changing this creates a new instance.
    charset str
    Database character set. Changing this creates a new instance.
    collate str
    Database collation. Changing this creates a new instance.
    name String
    Database to be created on new instance. Changing this creates a new instance.
    charset String
    Database character set. Changing this creates a new instance.
    collate String
    Database collation. Changing this creates a new instance.

    InstanceDatastore, InstanceDatastoreArgs

    Type string
    Database engine type to be used in new instance. Changing this creates a new instance.
    Version string
    Version of database engine type to be used in new instance. Changing this creates a new instance.
    Type string
    Database engine type to be used in new instance. Changing this creates a new instance.
    Version string
    Version of database engine type to be used in new instance. Changing this creates a new instance.
    type String
    Database engine type to be used in new instance. Changing this creates a new instance.
    version String
    Version of database engine type to be used in new instance. Changing this creates a new instance.
    type string
    Database engine type to be used in new instance. Changing this creates a new instance.
    version string
    Version of database engine type to be used in new instance. Changing this creates a new instance.
    type str
    Database engine type to be used in new instance. Changing this creates a new instance.
    version str
    Version of database engine type to be used in new instance. Changing this creates a new instance.
    type String
    Database engine type to be used in new instance. Changing this creates a new instance.
    version String
    Version of database engine type to be used in new instance. Changing this creates a new instance.

    InstanceNetwork, InstanceNetworkArgs

    FixedIpV4 string
    Specifies a fixed IPv4 address to be used on this network. Changing this creates a new instance.
    FixedIpV6 string
    Specifies a fixed IPv6 address to be used on this network. Changing this creates a new instance.
    Port string
    The port UUID of a network to attach to the instance. Changing this creates a new instance.
    Uuid string
    The network UUID to attach to the instance. Changing this creates a new instance.
    FixedIpV4 string
    Specifies a fixed IPv4 address to be used on this network. Changing this creates a new instance.
    FixedIpV6 string
    Specifies a fixed IPv6 address to be used on this network. Changing this creates a new instance.
    Port string
    The port UUID of a network to attach to the instance. Changing this creates a new instance.
    Uuid string
    The network UUID to attach to the instance. Changing this creates a new instance.
    fixedIpV4 String
    Specifies a fixed IPv4 address to be used on this network. Changing this creates a new instance.
    fixedIpV6 String
    Specifies a fixed IPv6 address to be used on this network. Changing this creates a new instance.
    port String
    The port UUID of a network to attach to the instance. Changing this creates a new instance.
    uuid String
    The network UUID to attach to the instance. Changing this creates a new instance.
    fixedIpV4 string
    Specifies a fixed IPv4 address to be used on this network. Changing this creates a new instance.
    fixedIpV6 string
    Specifies a fixed IPv6 address to be used on this network. Changing this creates a new instance.
    port string
    The port UUID of a network to attach to the instance. Changing this creates a new instance.
    uuid string
    The network UUID to attach to the instance. Changing this creates a new instance.
    fixed_ip_v4 str
    Specifies a fixed IPv4 address to be used on this network. Changing this creates a new instance.
    fixed_ip_v6 str
    Specifies a fixed IPv6 address to be used on this network. Changing this creates a new instance.
    port str
    The port UUID of a network to attach to the instance. Changing this creates a new instance.
    uuid str
    The network UUID to attach to the instance. Changing this creates a new instance.
    fixedIpV4 String
    Specifies a fixed IPv4 address to be used on this network. Changing this creates a new instance.
    fixedIpV6 String
    Specifies a fixed IPv6 address to be used on this network. Changing this creates a new instance.
    port String
    The port UUID of a network to attach to the instance. Changing this creates a new instance.
    uuid String
    The network UUID to attach to the instance. Changing this creates a new instance.

    InstanceUser, InstanceUserArgs

    Name string
    Username to be created on new instance. Changing this creates a new instance.
    Databases List<string>
    A list of databases that user will have access to. If not specified, user has access to all databases on th einstance. Changing this creates a new instance.
    Host string
    An ip address or %!s(MISSING)ign indicating what ip addresses can connect with this user credentials. Changing this creates a new instance.
    Password string
    User's password. Changing this creates a new instance.
    Name string
    Username to be created on new instance. Changing this creates a new instance.
    Databases []string
    A list of databases that user will have access to. If not specified, user has access to all databases on th einstance. Changing this creates a new instance.
    Host string
    An ip address or %!s(MISSING)ign indicating what ip addresses can connect with this user credentials. Changing this creates a new instance.
    Password string
    User's password. Changing this creates a new instance.
    name String
    Username to be created on new instance. Changing this creates a new instance.
    databases List<String>
    A list of databases that user will have access to. If not specified, user has access to all databases on th einstance. Changing this creates a new instance.
    host String
    An ip address or %!s(MISSING)ign indicating what ip addresses can connect with this user credentials. Changing this creates a new instance.
    password String
    User's password. Changing this creates a new instance.
    name string
    Username to be created on new instance. Changing this creates a new instance.
    databases string[]
    A list of databases that user will have access to. If not specified, user has access to all databases on th einstance. Changing this creates a new instance.
    host string
    An ip address or %!s(MISSING)ign indicating what ip addresses can connect with this user credentials. Changing this creates a new instance.
    password string
    User's password. Changing this creates a new instance.
    name str
    Username to be created on new instance. Changing this creates a new instance.
    databases Sequence[str]
    A list of databases that user will have access to. If not specified, user has access to all databases on th einstance. Changing this creates a new instance.
    host str
    An ip address or %!s(MISSING)ign indicating what ip addresses can connect with this user credentials. Changing this creates a new instance.
    password str
    User's password. Changing this creates a new instance.
    name String
    Username to be created on new instance. Changing this creates a new instance.
    databases List<String>
    A list of databases that user will have access to. If not specified, user has access to all databases on th einstance. Changing this creates a new instance.
    host String
    An ip address or %!s(MISSING)ign indicating what ip addresses can connect with this user credentials. Changing this creates a new instance.
    password String
    User's password. Changing this creates a new instance.

    Package Details

    Repository
    OpenStack pulumi/pulumi-openstack
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the openstack Terraform Provider.
    openstack logo
    OpenStack v3.15.2 published on Friday, Mar 29, 2024 by Pulumi