jelapi: A Jelastic API Python library
Project description
jelapi
A Jelastic API Python library
Installation
pip3 install jelapi
Usage
import jelapi
jelapi.api_url = "https://app.jpc.infomaniak.com/1.0/"
jelapi.api_token = "your-long-token"
jelenvs = jelapi.JelasticEnvironment.list()
jelenv = next(
env
for _, env in jelenvs.items()
if all(eg in env.envGroups for eg in ["clients/envgroup", "prod"])
)
for n in jelenv.nodes:
n.fixedCloudlets = 2
cpnode = jelenv.node_by_node_group("cp")
cpnode.fixedCloudlets = 2
cpnode.envVars["AN_ENV_VARIABLE"] = "Content"
jelenv.save()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
jelapi-0.1.0rc2.tar.gz
(15.0 kB
view hashes)
Built Distribution
jelapi-0.1.0rc2-py3-none-any.whl
(29.9 kB
view hashes)
Close
Hashes for jelapi-0.1.0rc2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a339b51168ef865a53a26b9d64d0a937d75131d5e2ea799a9226255e91d5aaa1 |
|
MD5 | 7b2c401eca5b871231d57a8d986144f2 |
|
BLAKE2b-256 | 65fb385a7f17857ab60a1be8644f7bdd40090c2952f1858d8bc1fe6417c92b2d |