troveclient.v1.management module

class troveclient.v1.management.Management(api)

Bases: ManagerWithFind

Manage Instances resources.

index(**kwargs)

A wrapper for list method.

list(limit=None, marker=None, deleted=False, **kwargs)

Get all the database instances.

migrate(instance_id, host=None)

Migrate the instance.

Parameters:

instance_id – The Instance (or its ID) to share onto.

reboot(instance_id)

Reboot the underlying OS.

Parameters:

instance_id – The Instance (or its ID) to share onto.

rebuild(instance_id, image_id)

Rebuild the underlying OS.

reset_task_status(instance_id)

Set the task status to NONE.

resource_class

alias of Instance

root_enabled_history(instance)

Get root access history of one instance.

show(instance)

Get details of one instance.

Return type:

Instance.

stop(instance_id)
update(instance_id)

Update the guest agent via apt-get.

class troveclient.v1.management.MgmtClusters(api)

Bases: ManagerWithFind

Manage Cluster resources.

index(deleted=None, limit=None, marker=None)

Show an overview of all local clusters.

Optionally, filter by deleted status.

Return type:

list of Cluster.

list()
reset_task(cluster_id)

Reset the current cluster task to NONE.

resource_class

alias of Cluster

show(cluster)

Get details of one cluster.

class troveclient.v1.management.MgmtConfigurationParameters(api)

Bases: ConfigurationParameters

create(version, name, restart_required, data_type, max_size=None, min_size=None)

Mgmt call to create a new configuration parameter.

delete(version, name)

Mgmt call to delete a configuration parameter.

get_any_parameter_by_version(version, key)

Get any configuration parameter deleted or not.

list_all_parameter_by_version(version)

List all configuration parameters deleted or not.

modify(version, name, restart_required, data_type, max_size=None, min_size=None)

Mgmt call to modify an existing configuration parameter.

class troveclient.v1.management.MgmtDatastoreVersions(api)

Bases: ManagerWithFind

Manage DatastoreVersion resources.

create(name, datastore_name, datastore_manager, image, packages=None, registry_ext=None, repl_strategy=None, active='true', default='false', image_tags=[], version=None)

Create a new datastore version.

delete(datastore_version_id)

Delete a datastore version.

edit(datastore_version_id, datastore_manager=None, image=None, packages=None, registry_ext=None, repl_strategy=None, active=None, default=None, image_tags=None, name=None)

Update a datastore-version.

get(datastore_version_id)

Get details of a datastore version.

list(limit=None, marker=None)

List all datastore versions.

resource_class

alias of DatastoreVersion

class troveclient.v1.management.MgmtFlavors(api)

Bases: ManagerWithFind

Manage Flavor resources.

create(name, ram, disk, vcpus, flavorid='auto', ephemeral=None, swap=None, rxtx_factor=None, service_type=None)

Create a new flavor.

list()
resource_class

alias of Flavor

class troveclient.v1.management.RootHistory(manager, info, loaded=False)

Bases: Resource