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
File details
Details for the file python3_cyberfusion_cluster_apicli-3.1.tar.gz
.
File metadata
- Download URL: python3_cyberfusion_cluster_apicli-3.1.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e903bb2d438d52a3e23520020e86e6f314f9c6f19653a9cd821af76e1e3f6b1 |
|
MD5 | f82f6e1b8dcf0b973445d548d019da1b |
|
BLAKE2b-256 | 1159515b0ee5f79c3f64f404463ee0299b608afd1f83b9ffcaf42edb5f7bb738 |
File details
Details for the file python3_cyberfusion_cluster_apicli-3.1-py3-none-any.whl
.
File metadata
- Download URL: python3_cyberfusion_cluster_apicli-3.1-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49adcc06138235cf37d3e52ff93d090d789add6e649a4cdfbba7932df0d727b8 |
|
MD5 | e64695a84eec4fb6e83415301fa44812 |
|
BLAKE2b-256 | 4da180191e5288fabd73f5d4cd210dcc6dbfc0b3521a9b7fdfb14102aeb06300 |