database

This provider is a derived work of the Terraform Provider distributed under MPL 2.0. If you encounter a bug or missing feature, first check the pulumi/pulumi-openstack repo; however, if that doesn’t turn up anything, please consult the source terraform-providers/terraform-provider-openstack repo.

class pulumi_openstack.database.Configuration(resource_name, opts=None, configurations=None, datastore=None, description=None, name=None, region=None, __props__=None, __name__=None, __opts__=None)

Manages a V1 DB configuration resource within OpenStack.

Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • configurations (pulumi.Input[list]) – An array of configuration parameter name and value. Can be specified multiple times. The configuration object structure is documented below.

  • datastore (pulumi.Input[dict]) – An array of database engine type and version. The datastore object structure is documented below. Changing this creates resource.

  • description (pulumi.Input[str]) – Description of the resource.

  • name (pulumi.Input[str]) – A unique name for the resource.

  • region (pulumi.Input[str]) – The region in which to create the db instance. Changing this creates a new instance.

The configurations object supports the following:

  • name (pulumi.Input[str]) - A unique name for the resource.

  • value (pulumi.Input[str])

The datastore object supports the following:

  • type (pulumi.Input[str])

  • version (pulumi.Input[str])

configurations = None

An array of configuration parameter name and value. Can be specified multiple times. The configuration object structure is documented below.

  • name (str) - A unique name for the resource.

  • value (str)

datastore = None

An array of database engine type and version. The datastore object structure is documented below. Changing this creates resource.

  • type (str)

  • version (str)

description = None

Description of the resource.

name = None

A unique name for the resource.

region = None

The region in which to create the db instance. Changing this creates a new instance.

static get(resource_name, id, opts=None, configurations=None, datastore=None, description=None, name=None, region=None)

Get an existing Configuration resource’s state with the given name, id, and optional extra properties used to qualify the lookup.

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • configurations (pulumi.Input[list]) – An array of configuration parameter name and value. Can be specified multiple times. The configuration object structure is documented below.

  • datastore (pulumi.Input[dict]) – An array of database engine type and version. The datastore object structure is documented below. Changing this creates resource.

  • description (pulumi.Input[str]) – Description of the resource.

  • name (pulumi.Input[str]) – A unique name for the resource.

  • region (pulumi.Input[str]) – The region in which to create the db instance. Changing this creates a new instance.

The configurations object supports the following:

  • name (pulumi.Input[str]) - A unique name for the resource.

  • value (pulumi.Input[str])

The datastore object supports the following:

  • type (pulumi.Input[str])

  • version (pulumi.Input[str])

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

class pulumi_openstack.database.Database(resource_name, opts=None, instance_id=None, name=None, region=None, __props__=None, __name__=None, __opts__=None)

Manages a V1 DB database resource within OpenStack.

Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • instance_id (pulumi.Input[str]) – The ID for the database instance.

  • name (pulumi.Input[str]) – A unique name for the resource.

  • region (pulumi.Input[str]) – Openstack region resource is created in.

instance_id = None

The ID for the database instance.

name = None

A unique name for the resource.

region = None

Openstack region resource is created in.

static get(resource_name, id, opts=None, instance_id=None, name=None, region=None)

Get an existing Database resource’s state with the given name, id, and optional extra properties used to qualify the lookup.

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • instance_id (pulumi.Input[str]) – The ID for the database instance.

  • name (pulumi.Input[str]) – A unique name for the resource.

  • region (pulumi.Input[str]) – Openstack region resource is created in.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

class pulumi_openstack.database.Instance(resource_name, opts=None, configuration_id=None, databases=None, datastore=None, flavor_id=None, name=None, networks=None, region=None, size=None, users=None, __props__=None, __name__=None, __opts__=None)

Manages a V1 DB instance resource within OpenStack.

Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • configuration_id (pulumi.Input[str]) – Configuration ID to be attached to the instance. Database instance will be rebooted when configuration is detached.

  • databases (pulumi.Input[list]) – An array of database name, charset and collate. The database object structure is documented below.

  • datastore (pulumi.Input[dict]) – An array of database engine type and version. The datastore object structure is documented below. Changing this creates a new instance.

  • flavor_id (pulumi.Input[str]) – The flavor ID of the desired flavor for the instance. Changing this creates new instance.

  • name (pulumi.Input[str]) – A unique name for the resource.

  • networks (pulumi.Input[list]) – 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 (pulumi.Input[str]) – The region in which to create the db instance. Changing this creates a new instance.

  • size (pulumi.Input[float]) – Specifies the volume size in GB. Changing this creates new instance.

  • users (pulumi.Input[list]) – An array of username, password, host and databases. The user object structure is documented below.

The databases object supports the following:

  • charset (pulumi.Input[str])

  • collate (pulumi.Input[str])

  • name (pulumi.Input[str]) - A unique name for the resource.

The datastore object supports the following:

  • type (pulumi.Input[str])

  • version (pulumi.Input[str])

The networks object supports the following:

  • fixedIpV4 (pulumi.Input[str])

  • fixedIpV6 (pulumi.Input[str])

  • port (pulumi.Input[str])

  • uuid (pulumi.Input[str])

The users object supports the following:

  • databases (pulumi.Input[list])

  • host (pulumi.Input[str])

  • name (pulumi.Input[str]) - A unique name for the resource.

  • password (pulumi.Input[str])

configuration_id = None

Configuration ID to be attached to the instance. Database instance will be rebooted when configuration is detached.

databases = None

An array of database name, charset and collate. The database object structure is documented below.

  • charset (str)

  • collate (str)

  • name (str) - A unique name for the resource.

datastore = None

An array of database engine type and version. The datastore object structure is documented below. Changing this creates a new instance.

  • type (str)

  • version (str)

flavor_id = None

The flavor ID of the desired flavor for the instance. Changing this creates new instance.

name = None

A unique name for the resource.

networks = None

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.

  • fixedIpV4 (str)

  • fixedIpV6 (str)

  • port (str)

  • uuid (str)

region = None

The region in which to create the db instance. Changing this creates a new instance.

size = None

Specifies the volume size in GB. Changing this creates new instance.

users = None

An array of username, password, host and databases. The user object structure is documented below.

  • databases (list)

  • host (str)

  • name (str) - A unique name for the resource.

  • password (str)

static get(resource_name, id, opts=None, configuration_id=None, databases=None, datastore=None, flavor_id=None, name=None, networks=None, region=None, size=None, users=None)

Get an existing Instance resource’s state with the given name, id, and optional extra properties used to qualify the lookup.

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • configuration_id (pulumi.Input[str]) – Configuration ID to be attached to the instance. Database instance will be rebooted when configuration is detached.

  • databases (pulumi.Input[list]) – An array of database name, charset and collate. The database object structure is documented below.

  • datastore (pulumi.Input[dict]) – An array of database engine type and version. The datastore object structure is documented below. Changing this creates a new instance.

  • flavor_id (pulumi.Input[str]) – The flavor ID of the desired flavor for the instance. Changing this creates new instance.

  • name (pulumi.Input[str]) – A unique name for the resource.

  • networks (pulumi.Input[list]) – 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 (pulumi.Input[str]) – The region in which to create the db instance. Changing this creates a new instance.

  • size (pulumi.Input[float]) – Specifies the volume size in GB. Changing this creates new instance.

  • users (pulumi.Input[list]) – An array of username, password, host and databases. The user object structure is documented below.

The databases object supports the following:

  • charset (pulumi.Input[str])

  • collate (pulumi.Input[str])

  • name (pulumi.Input[str]) - A unique name for the resource.

The datastore object supports the following:

  • type (pulumi.Input[str])

  • version (pulumi.Input[str])

The networks object supports the following:

  • fixedIpV4 (pulumi.Input[str])

  • fixedIpV6 (pulumi.Input[str])

  • port (pulumi.Input[str])

  • uuid (pulumi.Input[str])

The users object supports the following:

  • databases (pulumi.Input[list])

  • host (pulumi.Input[str])

  • name (pulumi.Input[str]) - A unique name for the resource.

  • password (pulumi.Input[str])

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

class pulumi_openstack.database.User(resource_name, opts=None, databases=None, host=None, instance_id=None, name=None, password=None, region=None, __props__=None, __name__=None, __opts__=None)

Manages a V1 DB user resource within OpenStack.

Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • databases (pulumi.Input[list]) – A list of database user should have access to.

  • name (pulumi.Input[str]) – A unique name for the resource.

  • password (pulumi.Input[str]) – User’s password.

  • region (pulumi.Input[str]) – Openstack region resource is created in.

databases = None

A list of database user should have access to.

name = None

A unique name for the resource.

password = None

User’s password.

region = None

Openstack region resource is created in.

static get(resource_name, id, opts=None, databases=None, host=None, instance_id=None, name=None, password=None, region=None)

Get an existing User resource’s state with the given name, id, and optional extra properties used to qualify the lookup.

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • databases (pulumi.Input[list]) – A list of database user should have access to.

  • name (pulumi.Input[str]) – A unique name for the resource.

  • password (pulumi.Input[str]) – User’s password.

  • region (pulumi.Input[str]) – Openstack region resource is created in.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str