Skip to main content

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, key serverurl
  • Section clusterapi, keys username and password (optional)
  • Section clusterapi, key apikey (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

File hashes

Hashes for python3_cyberfusion_cluster_apicli-3.1.tar.gz
Algorithm Hash digest
SHA256 1e903bb2d438d52a3e23520020e86e6f314f9c6f19653a9cd821af76e1e3f6b1
MD5 f82f6e1b8dcf0b973445d548d019da1b
BLAKE2b-256 1159515b0ee5f79c3f64f404463ee0299b608afd1f83b9ffcaf42edb5f7bb738

See more details on using hashes here.

File details

Details for the file python3_cyberfusion_cluster_apicli-3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for python3_cyberfusion_cluster_apicli-3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 49adcc06138235cf37d3e52ff93d090d789add6e649a4cdfbba7932df0d727b8
MD5 e64695a84eec4fb6e83415301fa44812
BLAKE2b-256 4da180191e5288fabd73f5d4cd210dcc6dbfc0b3521a9b7fdfb14102aeb06300

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page