From 0bb682c930147580f5eb1211847268afac5ec28f Mon Sep 17 00:00:00 2001 From: Joseph Bollman Date: Mon, 26 Oct 2020 16:42:25 -0500 Subject: [PATCH] Update README.rst Added creating a namespace example. --- README.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.rst b/README.rst index db77409..98b1572 100644 --- a/README.rst +++ b/README.rst @@ -100,6 +100,19 @@ don't need to supply a username/password. token='ALAcbGZtbjh6eVB3eUF1TzFEZWNmc0M2VVl2QjBVPQM', ecs_endpoint='https://192.168.1.146:4443') +Create a namespace +~~~~~~~~~~~~~~ +Creating a namespace is as simple as creatinga client object. and calling create namespac method. + +.. code-block:: python + + client = Client('3', + token='ALAcbGZtbjh6eVB3eUF1TzFEZWNmc0M2VVl2QjBVPQM', + ecs_endpoint='https://192.168.1.146:4443') + + client.namespace.create( + name="green" + ) Token caching ~~~~~~~~~~~~~