API client for Core API.
Project description
python3-cyberfusion-cluster-apicli
API client for Core API.
Install
PyPI
Run the following command to install the package from PyPI:
pip3 install python3-cyberfusion-cluster-apicli
Generic
Run the following command to create a source distribution:
python3 setup.py sdist
Debian
Run the following commands to build a Debian package:
mk-build-deps -i -t 'apt -o Debug::pkgProblemResolver=yes --no-install-recommends -y'
dpkg-buildpackage -us -uc
Configure
Config file options
- Section
clusterapi
, keyserverurl
- Section
clusterapi
, keysusername
andpassword
(optional) - Section
clusterapi
, keyapikey
(optional)
Class options
config_file_path
. Non-default config file path.authenticate
. Endpoint is called without token when set.
Usage
Basic
from cyberfusion.ClusterApiCli import ClusterApiRequest
endpoint = "/api/v1/certificates"
r = ClusterApiRequest()
Request
First, set the request:
r.GET(endpoint)
r.PATCH(endpoint)
r.PUT(endpoint)
r.POST(endpoint)
r.DELETE(endpoint)
Then execute the request:
print(r.execute())
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for python3-cyberfusion-cluster-apicli-3.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e47455ec36360b703f0d3048d62a720eb2f0ac864426efa4e3848dc79f96889c |
|
MD5 | 434b792ab73a996e91cb31516a951d82 |
|
BLAKE2b-256 | a4c47a078ce115fcec9b38f1469dbde356e5a78d88dc65f93fa95053e1de4174 |