IaaS
- class jelastic.api.iaas.IaaS(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.iaas
Ref: https://docs.jelastic.com/api/private/#!/api/iaas
- property Project: _Project
>>> from jelastic import Jelastic >>> jelastic = Jelastic('https://app.xapp.cloudmydc.com', token='d6f4e314a5b5fefd164995169f28ae32d987704f') >>> jelastic.iaas.Project
Ref: https://docs.jelastic.com/api/private/#!/api/iaas.Project
- class jelastic.api.iaas._Project(session: Session, token: str, debug: bool = False, ruk: str | None = None)[source]
Bases:
IaaS
Ref: https://docs.jelastic.com/api/private/#!/api/iaas.Project
- Create(host_group: str, project_name: str, owner_uid: int | None = None, description: str | None = None, ruk: str | None = None)[source]
Creates a new Virtuozzo Hybrid Infrastructure project.
- Parameters:
host_group – unique identifier of the target host group.
project_name – new project’s name.
owner_uid – unique identifier of the project’s owner.
description – new project’s description.
- Delete(host_group: str, project_id: str, owner_uid: int | None = None, ruk: str | None = None)[source]
Deletes a specified Virtuozzo Hybrid Infrastructure project.
- Parameters:
host_group – unique identifier of the target host group.
project_id – unique identifier of the target project.
owner_uid – unique identifier of the project’s owner.
- Get(host_group: str, owner_uid: int | None = None, ruk: str | None = None)[source]
Returns a list of Virtuozzo Hybrid Infrastructure projects related to the user and host group.
- Parameters:
host_group – unique identifier of the target host group.
owner_uid – unique identifier of the project’s owner.
- Update(host_group: str, project_id: str, project_name: str, owner_uid: int | None = None, description: str | None = None, ruk: str | None = None)[source]
Changes the specified project name and description.
- Parameters:
host_group – unique identifier of the target host group.
project_id – unique identifier of the target project.
project_name – updated project’s name.
owner_uid – unique identifier of the project’s owner.
description – updated project’s description.