InstancesΒΆ

class troveclient.v1.instances.Instance(manager, info, loaded=False)

Bases: troveclient.base.Resource

An Instance is an opaque instance used to store Database instances.

delete()

Delete the instance.

detach_replica()

Stops the replica database from being replicated to.

list_databases()
restart()

Restart the database instance.

class troveclient.v1.instances.InstanceStatus

Bases: object

ACTIVE = 'ACTIVE'
BLOCKED = 'BLOCKED'
BUILD = 'BUILD'
EJECTING = 'EJECTING'
FAILED = 'FAILED'
PROMOTING = 'PROMOTING'
REBOOT = 'REBOOT'
RESIZE = 'RESIZE'
RESTART_REQUIRED = 'RESTART_REQUIRED'
SHUTDOWN = 'SHUTDOWN'
class troveclient.v1.instances.Instances(api)

Bases: troveclient.base.ManagerWithFind

Manage Instance resources.

backups(instance, limit=None, marker=None)

Get the list of backups for a specific instance.

Return type:list of Backups.
configuration(instance)

Get a configuration on instances.

Return type:Instance
create(name, flavor_id, volume=None, databases=None, users=None, restorePoint=None, availability_zone=None, datastore=None, datastore_version=None, nics=None, configuration=None, replica_of=None, slave_of=None, replica_count=None)

Create (boot) a new instance.

delete(instance)

Delete the specified instance.

Parameters:instance – A reference to the instance to delete
edit(instance, configuration=None, name=None, detach_replica_source=False, remove_configuration=False)
eject_replica_source(instance)

Eject a replica source from its set

Parameters:instance – The Instance (or its ID) of the database

instance to eject.

get(instance)

Get a specific instances.

Return type:Instance
list(limit=None, marker=None, include_clustered=False)

Get a list of all instances.

Return type:list of Instance.
modify(instance, configuration=None)
promote_to_replica_source(instance)

Promote a replica to be the new replica_source of its set

Parameters:instance – The Instance (or its ID) of the database

instance to promote.

resize_instance(instance, flavor_id)

Resizes an instance with a new flavor.

resize_volume(instance, volume_size)

Resize the volume on an existing instances.

resource_class

alias of Instance

restart(instance)

Restart the database instance.

Parameters:instance – The Instance (or its ID) of the database

instance to restart.

Previous topic

Hosts

Next topic

Limits

Project Source

This Page