Platform

class jelastic.api.platform.Platform(session: Session, token: str, debug: bool = False, ruk: str | None = None)[source]

Bases: ClientAbstract

>>> from jelastic import Jelastic
>>> jelastic = Jelastic('https://app.xapp.cloudmydc.com', token='d6f4e314a5b5fefd164995169f28ae32d987704f')
>>> jelastic.platform
property Engine: _Engine

Service provides an interface for managing host group engines.

>>> from jelastic import Jelastic
>>> jelastic = Jelastic('https://app.xapp.cloudmydc.com', token='d6f4e314a5b5fefd164995169f28ae32d987704f')
>>> jelastic.platform.Engine

Ref: https://docs.jelastic.com/api/private/#!/api/platform.Engine

class jelastic.api.platform._Engine(session: Session, token: str, debug: bool = False, ruk: str | None = None)[source]

Bases: Platform

Service provides an interface for managing host group engines.

Ref: https://docs.jelastic.com/api/private/#!/api/platform.Engine

Get(engine_type: str | None = None, owner_uid: int | None = None, ruk: str | None = None)[source]

Returns a list of available engines for the user.

Parameters:
  • engine_type – specific engine, support for which should be checked by the method.

  • owner_uid – unique identifier of the platform owner.

GetEntryPoint(host_group: str, owner_uid: int | None = None, ruk: str | None = None)[source]

Connects a user to the host group.

Parameters:
  • host_group – unique identifier of the target host group.

  • owner_uid – unique identifier of the platform owner.