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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6611686d687b3d84d836f916194ff4851ceee16d1dcd74c215dd2d63c82e0f90 |
|
MD5 | 4cf7940d7940a4e60cc333f868408217 |
|
BLAKE2b-256 | 9558f741dd1a11a5c50df456add563988a96dd69c6ad240cad39a89402fbf4bc |