summaryrefslogtreecommitdiff
path: root/troveclient/v1/instances.py
diff options
context:
space:
mode:
authorMorgan Jones <morgan@parelastic.com>2016-10-05 11:08:18 -0400
committeramrith <amrith@tesora.com>2016-11-17 01:28:54 +0000
commitaed18902d07eb091e444b8d4b20bf90ea66a13ca (patch)
treea80689effd2d009d2101cde0d53fbaab0946f9d7 /troveclient/v1/instances.py
parentc4d9ebb66d28fa6ab4ac0ece3803184108893e94 (diff)
downloadpython-troveclient-aed18902d07eb091e444b8d4b20bf90ea66a13ca.tar.gz
Multi-Region Support
This is an initial attempt at supporting multiple regions. It should handle the mechanics of deploying an instance/volume to a remote region. Additional changes may be required to allow the guest agent on the instance to connect back to the originating region. Co-Authored-By: Doug Shelley <doug@tesora.com> Depends-On: I386efb2d5c147417af7ea25704405977c9b6bbcd Change-Id: Ib0b35100c0780dc07c60d20622554ba77c4bc850
Diffstat (limited to 'troveclient/v1/instances.py')
-rw-r--r--troveclient/v1/instances.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/troveclient/v1/instances.py b/troveclient/v1/instances.py
index 6541361..a25b192 100644
--- a/troveclient/v1/instances.py
+++ b/troveclient/v1/instances.py
@@ -92,7 +92,7 @@ class Instances(base.ManagerWithFind):
restorePoint=None, availability_zone=None, datastore=None,
datastore_version=None, nics=None, configuration=None,
replica_of=None, slave_of=None, replica_count=None,
- modules=None, locality=None):
+ modules=None, locality=None, region_name=None):
"""Create (boot) a new instance."""
body = {"instance": {
@@ -134,6 +134,8 @@ class Instances(base.ManagerWithFind):
body["instance"]["modules"] = self._get_module_list(modules)
if locality:
body["instance"]["locality"] = locality
+ if region_name:
+ body["instance"]["region_name"] = region_name
return self._create("/instances", body, "instance")