Skip to main content

Unofficial API client for the FireAPI from 24fire GmbH.

Project description

Python FireAPI Client

Unofficial API client for the FireAPI from 24fire GmbH.

Python

Installation

pip install pyonfireapi 

Examples

1. List all VMs

from pyonfireapi import FireAPIClient

# Set the client and authenticate
client = FireAPIClient("api-key")

# Perform the Request
r = client.vm.list_all_vms()

# Print statuscode
print("Status Code: ", r.status_code)

# Print json
print(r.json())

Output: Status Code: 200

{
    "status": "success",
    "requestID": "a24effc3-b1d6-46a3-a49a-fe07734717ad",
    "message": "All vm data are listed below",
    "data": {
        "total_vms": 2,
        "total_stats": {
            "cores": 12,
            "mem": 3072,
            "disk": 20
        },
        "list": [
            {
                "vmid": 30071,
                "createDate": "2023-05-31T00:38:40.000Z",
                "node": "node09",
                "config": {
                    "cores": 10,
                    "mem": 1024,
                    "disk": 10
                }
            },
            {
                "vmid": 30074,
                "createDate": "2023-06-10T11:10:34.000Z",
                "node": "node09",
                "config": {
                    "cores": 2,
                    "mem": 2048,
                    "disk": 10
                }
            }
        ]
    }
}

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

pyonfireapi-0.0.4.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

pyonfireapi-0.0.4-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file pyonfireapi-0.0.4.tar.gz.

File metadata

  • Download URL: pyonfireapi-0.0.4.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.4

File hashes

Hashes for pyonfireapi-0.0.4.tar.gz
Algorithm Hash digest
SHA256 61ba410d38e2b5365b2eeb791ee4c4818ab655e5a90d425d4f849cf087aacb28
MD5 32b6f7dcd4df800a5bc8e3c07941e536
BLAKE2b-256 5e2e7813cad4be63c51f5ecdfbdb10d1a39f19b9aaf175281a0cb8366e0082c7

See more details on using hashes here.

File details

Details for the file pyonfireapi-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: pyonfireapi-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.4

File hashes

Hashes for pyonfireapi-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8982dffa2aa081de2d3c5bc95182bd1872ee90671b356754c895f340f2f07335
MD5 b08a1c32fb5bea99b6bb1e518cb77622
BLAKE2b-256 995de84498a45be81e987f95cef59622b6a8abb9e7df0c8bf96b7833c62cfb49

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