From 659c783768d52ac136d9d6126a5b11d094c4f017 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Moser?= Date: Thu, 28 Nov 2024 15:04:03 +0200 Subject: [PATCH] readme: update after move from exoscale (#131) --- README.rst | 17 ++++++++--------- setup.cfg | 2 +- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/README.rst b/README.rst index 71bd923..e24000e 100644 --- a/README.rst +++ b/README.rst @@ -41,7 +41,7 @@ In Python: from cs import CloudStack - cs = CloudStack(endpoint='https://api.exoscale.ch/v1', + cs = CloudStack(endpoint='https://cloudstack.example.com/client/api', key='cloudstack api key', secret='cloudstack api secret') @@ -58,13 +58,13 @@ From the command-line, this requires some configuration: .. code-block:: ini [cloudstack] - endpoint = https://api.exoscale.ch/v1 + endpoint = https://cloudstack.example.com/client/api key = cloudstack api key secret = cloudstack api secret # Optional ca authority certificate - verify = /path/to/certs/exoscale_ca.crt + verify = /path/to/certs/ca.crt # Optional client PEM certificate - cert = /path/to/client_exoscale.pem + cert = /path/to/client.pem # If you need to pass the certificate and key as separate files cert_key = /path/to/client_key.pem @@ -159,14 +159,14 @@ the credentials or endpoint to use with a command-line flag. key = api key secret = api secret - [exoscale] - endpoint = https://api.exoscale.ch/v1 + [region-example] + endpoint = https://cloudstack.example.com/client/api key = api key secret = api secret Usage:: - $ cs listVirtualMachines --region=exoscale + $ cs listVirtualMachines --region=region-example Optionally ``CLOUDSTACK_REGION`` can be used to overwrite the default region ``cloudstack``. @@ -250,7 +250,7 @@ Release Procedure mktmpenv -p /usr/bin/python3 pip install -U twine wheel build - cd exoscale/cs + cd ./cs rm -rf build dist python -m build twine upload dist/* @@ -259,4 +259,3 @@ Links ----- * CloudStack API: http://cloudstack.apache.org/api.html -* Example of use: `Get Started with the exoscale API client `_ diff --git a/setup.cfg b/setup.cfg index 74867ce..1808227 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,7 +1,7 @@ [metadata] name = cs version = 3.2.0 -url = https://github.com/exoscale/cs +url = https://github.com/ngine-io/cs author = Bruno ReniƩ description = A simple yet powerful CloudStack API client for Python and the command-line. long_description = file: README.rst