1. Packages
  2. Openstack Provider
  3. API Docs
  4. database
  5. Instance
OpenStack v5.0.3 published on Wednesday, Feb 12, 2025 by Pulumi

openstack.database.Instance

Explore with Pulumi AI

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", {
    region: "region-test",
    name: "test",
    flavorId: "31792d21-c355-4587-9290-56c1ed0ca376",
    size: 8,
    networks: [{
        uuid: "c0612505-caf2-4fb0-b7cb-56a0240a2b12",
    }],
    datastore: {
        version: "mysql-5.7",
        type: "mysql",
    },
});
Copy
import pulumi
import pulumi_openstack as openstack

test = openstack.database.Instance("test",
    region="region-test",
    name="test",
    flavor_id="31792d21-c355-4587-9290-56c1ed0ca376",
    size=8,
    networks=[{
        "uuid": "c0612505-caf2-4fb0-b7cb-56a0240a2b12",
    }],
    datastore={
        "version": "mysql-5.7",
        "type": "mysql",
    })
Copy
package main

import (
	"github.com/pulumi/pulumi-openstack/sdk/v5/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{
			Region:   pulumi.String("region-test"),
			Name:     pulumi.String("test"),
			FlavorId: pulumi.String("31792d21-c355-4587-9290-56c1ed0ca376"),
			Size:     pulumi.Int(8),
			Networks: database.InstanceNetworkArray{
				&database.InstanceNetworkArgs{
					Uuid: pulumi.String("c0612505-caf2-4fb0-b7cb-56a0240a2b12"),
				},
			},
			Datastore: &database.InstanceDatastoreArgs{
				Version: pulumi.String("mysql-5.7"),
				Type:    pulumi.String("mysql"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
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()
    {
        Region = "region-test",
        Name = "test",
        FlavorId = "31792d21-c355-4587-9290-56c1ed0ca376",
        Size = 8,
        Networks = new[]
        {
            new OpenStack.Database.Inputs.InstanceNetworkArgs
            {
                Uuid = "c0612505-caf2-4fb0-b7cb-56a0240a2b12",
            },
        },
        Datastore = new OpenStack.Database.Inputs.InstanceDatastoreArgs
        {
            Version = "mysql-5.7",
            Type = "mysql",
        },
    });

});
Copy
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.InstanceNetworkArgs;
import com.pulumi.openstack.database.inputs.InstanceDatastoreArgs;
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()
            .region("region-test")
            .name("test")
            .flavorId("31792d21-c355-4587-9290-56c1ed0ca376")
            .size(8)
            .networks(InstanceNetworkArgs.builder()
                .uuid("c0612505-caf2-4fb0-b7cb-56a0240a2b12")
                .build())
            .datastore(InstanceDatastoreArgs.builder()
                .version("mysql-5.7")
                .type("mysql")
                .build())
            .build());

    }
}
Copy
resources:
  test:
    type: openstack:database:Instance
    properties:
      region: region-test
      name: test
      flavorId: 31792d21-c355-4587-9290-56c1ed0ca376
      size: 8
      networks:
        - uuid: c0612505-caf2-4fb0-b7cb-56a0240a2b12
      datastore:
        version: mysql-5.7
        type: mysql
Copy

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 This property is required. string
The unique name of the resource.
args This property is required. InstanceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. InstanceArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. InstanceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. InstanceArgs
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 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",
        },
    },
});
Copy
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"),
		},
	},
})
Copy
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());
Copy
openstack_instance_resource = openstack.database.Instance("openstackInstanceResource",
    datastore={
        "type": "string",
        "version": "string",
    },
    size=0,
    configuration_id="string",
    databases=[{
        "name": "string",
        "charset": "string",
        "collate": "string",
    }],
    flavor_id="string",
    name="string",
    networks=[{
        "fixed_ip_v4": "string",
        "fixed_ip_v6": "string",
        "port": "string",
        "uuid": "string",
    }],
    region="string",
    users=[{
        "name": "string",
        "databases": ["string"],
        "host": "string",
        "password": "string",
    }])
Copy
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",
    }],
});
Copy
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
Copy

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

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The Instance resource accepts the following input properties:

Datastore
This property is required.
Changes to this property will trigger replacement.
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
This property is required.
Changes to this property will trigger replacement.
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 Changes to this property will trigger replacement. List<Pulumi.OpenStack.Database.Inputs.InstanceDatabase>
An array of database name, charset and collate. The database object structure is documented below.
FlavorId Changes to this property will trigger replacement. string
The flavor ID of the desired flavor for the instance. Changing this creates new instance.
Name Changes to this property will trigger replacement. string
A unique name for the resource.
Networks Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. List<Pulumi.OpenStack.Database.Inputs.InstanceUser>
An array of username, password, host and databases. The user object structure is documented below.
Datastore
This property is required.
Changes to this property will trigger replacement.
InstanceDatastoreArgs
An array of database engine type and version. The datastore object structure is documented below. Changing this creates a new instance.
Size
This property is required.
Changes to this property will trigger replacement.
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 Changes to this property will trigger replacement. []InstanceDatabaseArgs
An array of database name, charset and collate. The database object structure is documented below.
FlavorId Changes to this property will trigger replacement. string
The flavor ID of the desired flavor for the instance. Changing this creates new instance.
Name Changes to this property will trigger replacement. string
A unique name for the resource.
Networks Changes to this property will trigger replacement. []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 Changes to this property will trigger replacement. []InstanceUserArgs
An array of username, password, host and databases. The user object structure is documented below.
datastore
This property is required.
Changes to this property will trigger replacement.
InstanceDatastore
An array of database engine type and version. The datastore object structure is documented below. Changing this creates a new instance.
size
This property is required.
Changes to this property will trigger replacement.
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 Changes to this property will trigger replacement. List<InstanceDatabase>
An array of database name, charset and collate. The database object structure is documented below.
flavorId Changes to this property will trigger replacement. String
The flavor ID of the desired flavor for the instance. Changing this creates new instance.
name Changes to this property will trigger replacement. String
A unique name for the resource.
networks Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. List<InstanceUser>
An array of username, password, host and databases. The user object structure is documented below.
datastore
This property is required.
Changes to this property will trigger replacement.
InstanceDatastore
An array of database engine type and version. The datastore object structure is documented below. Changing this creates a new instance.
size
This property is required.
Changes to this property will trigger replacement.
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 Changes to this property will trigger replacement. InstanceDatabase[]
An array of database name, charset and collate. The database object structure is documented below.
flavorId Changes to this property will trigger replacement. string
The flavor ID of the desired flavor for the instance. Changing this creates new instance.
name Changes to this property will trigger replacement. string
A unique name for the resource.
networks Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. InstanceUser[]
An array of username, password, host and databases. The user object structure is documented below.
datastore
This property is required.
Changes to this property will trigger replacement.
InstanceDatastoreArgs
An array of database engine type and version. The datastore object structure is documented below. Changing this creates a new instance.
size
This property is required.
Changes to this property will trigger replacement.
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 Changes to this property will trigger replacement. Sequence[InstanceDatabaseArgs]
An array of database name, charset and collate. The database object structure is documented below.
flavor_id Changes to this property will trigger replacement. str
The flavor ID of the desired flavor for the instance. Changing this creates new instance.
name Changes to this property will trigger replacement. str
A unique name for the resource.
networks Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. Sequence[InstanceUserArgs]
An array of username, password, host and databases. The user object structure is documented below.
datastore
This property is required.
Changes to this property will trigger replacement.
Property Map
An array of database engine type and version. The datastore object structure is documented below. Changing this creates a new instance.
size
This property is required.
Changes to this property will trigger replacement.
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 Changes to this property will trigger replacement. List<Property Map>
An array of database name, charset and collate. The database object structure is documented below.
flavorId Changes to this property will trigger replacement. String
The flavor ID of the desired flavor for the instance. Changing this creates new instance.
name Changes to this property will trigger replacement. String
A unique name for the resource.
networks Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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)
resources:  _:    type: openstack:database:Instance    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 Changes to this property will trigger replacement. List<Pulumi.OpenStack.Database.Inputs.InstanceDatabase>
An array of database name, charset and collate. The database object structure is documented below.
Datastore Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
The flavor ID of the desired flavor for the instance. Changing this creates new instance.
Name Changes to this property will trigger replacement. string
A unique name for the resource.
Networks Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. int
Specifies the volume size in GB. Changing this creates new instance.
Users Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. []InstanceDatabaseArgs
An array of database name, charset and collate. The database object structure is documented below.
Datastore Changes to this property will trigger replacement. InstanceDatastoreArgs
An array of database engine type and version. The datastore object structure is documented below. Changing this creates a new instance.
FlavorId Changes to this property will trigger replacement. string
The flavor ID of the desired flavor for the instance. Changing this creates new instance.
Name Changes to this property will trigger replacement. string
A unique name for the resource.
Networks Changes to this property will trigger replacement. []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 Changes to this property will trigger replacement. int
Specifies the volume size in GB. Changing this creates new instance.
Users Changes to this property will trigger replacement. []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 Changes to this property will trigger replacement. List<InstanceDatabase>
An array of database name, charset and collate. The database object structure is documented below.
datastore Changes to this property will trigger replacement. InstanceDatastore
An array of database engine type and version. The datastore object structure is documented below. Changing this creates a new instance.
flavorId Changes to this property will trigger replacement. String
The flavor ID of the desired flavor for the instance. Changing this creates new instance.
name Changes to this property will trigger replacement. String
A unique name for the resource.
networks Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. Integer
Specifies the volume size in GB. Changing this creates new instance.
users Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. InstanceDatabase[]
An array of database name, charset and collate. The database object structure is documented below.
datastore Changes to this property will trigger replacement. InstanceDatastore
An array of database engine type and version. The datastore object structure is documented below. Changing this creates a new instance.
flavorId Changes to this property will trigger replacement. string
The flavor ID of the desired flavor for the instance. Changing this creates new instance.
name Changes to this property will trigger replacement. string
A unique name for the resource.
networks Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. number
Specifies the volume size in GB. Changing this creates new instance.
users Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. Sequence[InstanceDatabaseArgs]
An array of database name, charset and collate. The database object structure is documented below.
datastore Changes to this property will trigger replacement. InstanceDatastoreArgs
An array of database engine type and version. The datastore object structure is documented below. Changing this creates a new instance.
flavor_id Changes to this property will trigger replacement. str
The flavor ID of the desired flavor for the instance. Changing this creates new instance.
name Changes to this property will trigger replacement. str
A unique name for the resource.
networks Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. int
Specifies the volume size in GB. Changing this creates new instance.
users Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. List<Property Map>
An array of database name, charset and collate. The database object structure is documented below.
datastore Changes to this property will trigger replacement. Property Map
An array of database engine type and version. The datastore object structure is documented below. Changing this creates a new instance.
flavorId Changes to this property will trigger replacement. String
The flavor ID of the desired flavor for the instance. Changing this creates new instance.
name Changes to this property will trigger replacement. String
A unique name for the resource.
networks Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. Number
Specifies the volume size in GB. Changing this creates new instance.
users Changes to this property will trigger replacement. List<Property Map>
An array of username, password, host and databases. The user object structure is documented below.

Supporting Types

InstanceDatabase
, InstanceDatabaseArgs

Name
This property is required.
Changes to this property will trigger replacement.
string
Database to be created on new instance. Changing this creates a new instance.
Charset Changes to this property will trigger replacement. string
Database character set. Changing this creates a new instance.
Collate Changes to this property will trigger replacement. string
Database collation. Changing this creates a new instance.
Name
This property is required.
Changes to this property will trigger replacement.
string
Database to be created on new instance. Changing this creates a new instance.
Charset Changes to this property will trigger replacement. string
Database character set. Changing this creates a new instance.
Collate Changes to this property will trigger replacement. string
Database collation. Changing this creates a new instance.
name
This property is required.
Changes to this property will trigger replacement.
String
Database to be created on new instance. Changing this creates a new instance.
charset Changes to this property will trigger replacement. String
Database character set. Changing this creates a new instance.
collate Changes to this property will trigger replacement. String
Database collation. Changing this creates a new instance.
name
This property is required.
Changes to this property will trigger replacement.
string
Database to be created on new instance. Changing this creates a new instance.
charset Changes to this property will trigger replacement. string
Database character set. Changing this creates a new instance.
collate Changes to this property will trigger replacement. string
Database collation. Changing this creates a new instance.
name
This property is required.
Changes to this property will trigger replacement.
str
Database to be created on new instance. Changing this creates a new instance.
charset Changes to this property will trigger replacement. str
Database character set. Changing this creates a new instance.
collate Changes to this property will trigger replacement. str
Database collation. Changing this creates a new instance.
name
This property is required.
Changes to this property will trigger replacement.
String
Database to be created on new instance. Changing this creates a new instance.
charset Changes to this property will trigger replacement. String
Database character set. Changing this creates a new instance.
collate Changes to this property will trigger replacement. String
Database collation. Changing this creates a new instance.

InstanceDatastore
, InstanceDatastoreArgs

Type
This property is required.
Changes to this property will trigger replacement.
string
Database engine type to be used in new instance. Changing this creates a new instance.
Version
This property is required.
Changes to this property will trigger replacement.
string
Version of database engine type to be used in new instance. Changing this creates a new instance.
Type
This property is required.
Changes to this property will trigger replacement.
string
Database engine type to be used in new instance. Changing this creates a new instance.
Version
This property is required.
Changes to this property will trigger replacement.
string
Version of database engine type to be used in new instance. Changing this creates a new instance.
type
This property is required.
Changes to this property will trigger replacement.
String
Database engine type to be used in new instance. Changing this creates a new instance.
version
This property is required.
Changes to this property will trigger replacement.
String
Version of database engine type to be used in new instance. Changing this creates a new instance.
type
This property is required.
Changes to this property will trigger replacement.
string
Database engine type to be used in new instance. Changing this creates a new instance.
version
This property is required.
Changes to this property will trigger replacement.
string
Version of database engine type to be used in new instance. Changing this creates a new instance.
type
This property is required.
Changes to this property will trigger replacement.
str
Database engine type to be used in new instance. Changing this creates a new instance.
version
This property is required.
Changes to this property will trigger replacement.
str
Version of database engine type to be used in new instance. Changing this creates a new instance.
type
This property is required.
Changes to this property will trigger replacement.
String
Database engine type to be used in new instance. Changing this creates a new instance.
version
This property is required.
Changes to this property will trigger replacement.
String
Version of database engine type to be used in new instance. Changing this creates a new instance.

InstanceNetwork
, InstanceNetworkArgs

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

InstanceUser
, InstanceUserArgs

Name
This property is required.
Changes to this property will trigger replacement.
string
Username to be created on new instance. Changing this creates a new instance.
Databases Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
An ip address or % sign indicating what ip addresses can connect with this user credentials. Changing this creates a new instance.
Password Changes to this property will trigger replacement. string
User's password. Changing this creates a new instance.
Name
This property is required.
Changes to this property will trigger replacement.
string
Username to be created on new instance. Changing this creates a new instance.
Databases Changes to this property will trigger replacement. []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 Changes to this property will trigger replacement. string
An ip address or % sign indicating what ip addresses can connect with this user credentials. Changing this creates a new instance.
Password Changes to this property will trigger replacement. string
User's password. Changing this creates a new instance.
name
This property is required.
Changes to this property will trigger replacement.
String
Username to be created on new instance. Changing this creates a new instance.
databases Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. String
An ip address or % sign indicating what ip addresses can connect with this user credentials. Changing this creates a new instance.
password Changes to this property will trigger replacement. String
User's password. Changing this creates a new instance.
name
This property is required.
Changes to this property will trigger replacement.
string
Username to be created on new instance. Changing this creates a new instance.
databases Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
An ip address or % sign indicating what ip addresses can connect with this user credentials. Changing this creates a new instance.
password Changes to this property will trigger replacement. string
User's password. Changing this creates a new instance.
name
This property is required.
Changes to this property will trigger replacement.
str
Username to be created on new instance. Changing this creates a new instance.
databases Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. str
An ip address or % sign indicating what ip addresses can connect with this user credentials. Changing this creates a new instance.
password Changes to this property will trigger replacement. str
User's password. Changing this creates a new instance.
name
This property is required.
Changes to this property will trigger replacement.
String
Username to be created on new instance. Changing this creates a new instance.
databases Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. String
An ip address or % sign indicating what ip addresses can connect with this user credentials. Changing this creates a new instance.
password Changes to this property will trigger replacement. 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.