Skip to main content

jelapi: A Jelastic API Python library

Project description

Lint and Tests codecov


A Jelastic API Python library


pip3 install jelapi


import jelapi

jelapi.api_url = ""
jelapi.api_token = "your-long-token"

jelenvs = jelapi.JelasticEnvironment.list()

jelenv = next(
    for env in jelenvs.values()
    if all(eg in env.envGroups for eg in ["clients/envgroup", "prod"])

for ng in jelenv.nodeGroups.values():
    for n in ng.nodes:
        n.fixedCloudlets = 2

cpnodegroup = jelenv.nodeGroups("cp"]
cpnodegroup.nodes[0].fixedCloudlets = 2
cpnodegroup.envVars["AN_ENV_VARIABLE"] = "Content"

sqlnode = jelenv.nodeGroups["sqldb"].nodes[0]
sqlnode.flexibleCloudlets = max(sqlnode.flexibleCloudlets - 2, 0)
sqlnode.allowFlexibleCloudletsReduction = True

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for jelapi, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size jelapi-0.1.1.tar.gz (31.3 kB) File type Source Python version None Upload date Hashes View
Filename, size jelapi-0.1.1-py3-none-any.whl (127.6 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page