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.

Instance.delete()

Delete the instance.

Instance.detach_replica()

Stops the replica database from being replicated to.

Instance.list_databases()
Instance.restart()

Restart the database instance.

class troveclient.v1.instances.InstanceStatus

Bases: object

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

Bases: troveclient.base.ManagerWithFind

Manage Instance resources.

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

Get the list of backups for a specific instance.

Return type:list of Backups.
Instances.configuration(instance)

Get a configuration on instances.

Return type:Instance
Instances.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.

Instances.delete(instance)

Delete the specified instance.

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

Eject a replica source from its set

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

instance to eject.

Instances.get(instance)

Get a specific instances.

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

Get a list of all instances.

Return type:list of Instance.
Instances.modify(instance, configuration=None)
Instances.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.

Instances.resize_instance(instance, flavor_id)

Resizes an instance with a new flavor.

Instances.resize_volume(instance, volume_size)

Resize the volume on an existing instances.

Instances.resource_class

alias of Instance

Instances.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

This Page