From ef887d441c53eb26865acf94a4cf0073f6598e3e Mon Sep 17 00:00:00 2001 From: Konstantin Babushkin Date: Wed, 17 Jan 2024 17:10:11 +0100 Subject: [PATCH] fix OpenStack creation --- doc/quick-start.rst | 3 ++- doc/services/identity/v3/index.rst | 7 ++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/doc/quick-start.rst b/doc/quick-start.rst index c4a94b62..1492a093 100644 --- a/doc/quick-start.rst +++ b/doc/quick-start.rst @@ -46,7 +46,8 @@ Only the ``authUrl`` is mandatory to create a client. But you will have to provi to each service you create. So it is recommended to provide them when creating the client. There are different ways to provide the authentication credentials. See the `Token generation`_ section for -the full list of options. +the full list of options. You should provide credentials to the `OpenStack` constructor as an array the same way +you provide options to `generateToken` method of the `Identity` service. Here is an example of how to create a client with a user id and password: diff --git a/doc/services/identity/v3/index.rst b/doc/services/identity/v3/index.rst index d06b8c69..8c161650 100644 --- a/doc/services/identity/v3/index.rst +++ b/doc/services/identity/v3/index.rst @@ -5,15 +5,16 @@ Creating the service -------------------- Service can be created via `identityV3` method of `OpenStack` object: + .. code-block:: php + $service = $openstack->identityV3(); A list of additional options can be passed to the method. For example, to change the region: + .. code-block:: php - $service = $openstack->identityV3(['region' => '{region}']); -Service methods ---------------- + $service = $openstack->identityV3(['region' => '{region}']); .. toctree:: :maxdepth: 3