libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anthonys...@apache.org
Subject [07/11] libcloud git commit: add a description of specifying the nova api version
Date Mon, 10 Jul 2017 07:45:25 GMT
add a description of specifying the nova api version


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/d5a1d7b1
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/d5a1d7b1
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/d5a1d7b1

Branch: refs/heads/trunk
Commit: d5a1d7b1c83c0b4a508a9dd36503457ab33274af
Parents: 384f63d
Author: Anthony Shaw <anthonyshaw@apache.org>
Authored: Fri May 5 15:00:53 2017 +1000
Committer: Anthony Shaw <anthonyshaw@apache.org>
Committed: Fri May 5 15:00:53 2017 +1000

----------------------------------------------------------------------
 docs/compute/drivers/openstack.rst | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/d5a1d7b1/docs/compute/drivers/openstack.rst
----------------------------------------------------------------------
diff --git a/docs/compute/drivers/openstack.rst b/docs/compute/drivers/openstack.rst
index 248bf37..17f9cc0 100644
--- a/docs/compute/drivers/openstack.rst
+++ b/docs/compute/drivers/openstack.rst
@@ -13,6 +13,32 @@ Among many other private clouds, it also powers Rackspace's Public Cloud.
 
 .. _connecting-to-openstack-installation:
 
+Selecting the Nova API version
+------------------------------
+
+Along with your connection criteria, you can specify the Nova version with `api_version`,

+currently supported versions of Nova are:
+
+- 1.0
+- 1.1
+- 2.0
+- 2.1 (v12)
+- 2.2 (v13)
+
+.. code-block:: python
+
+  from libcloud.compute.providers import get_driver
+  from libcloud.compute.types import Provider
+
+  Openstack = get_driver(Provider.OPENSTACK)
+
+  con = Openstack(
+      'admin', 'password',
+      ex_force_base_url='http://23.12.198.36:8774/v2.1',
+      api_version='2.0',
+      ex_tenant_name='demo')
+
+
 Connecting to the OpenStack installation
 ----------------------------------------
 


Mime
View raw message