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
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
Built Distribution
Close
Hashes for python3_cyberfusion_cluster_apicli-3.0.3.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5888b81c45e421fb1923fccaa9e244612637cdb5475c6cecafe300ce8d11baa8 |
|
MD5 | aca69d5c942d8e86dbcb68000a446040 |
|
BLAKE2b-256 | ef995da080260a27ee4af2df0f83b79a08acf6e2c9df7a2831b50c71cf1edae4 |
Close
Hashes for python3_cyberfusion_cluster_apicli-3.0.3.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 232aad32750ff28c04f95c8cd19ef667b07ce62da663cd9710f907e76a945b13 |
|
MD5 | f7e2bde774c7bb86dfc8235772bb1b9a |
|
BLAKE2b-256 | 5b8f82d9f2b6eb01abe727b9d5df6197102eaf09303a6feb4891508aac8cefe5 |