Skip to content

This is a Proxmox client for the API

Notifications You must be signed in to change notification settings

akevinieron/proxmox_client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Proxmox-client

This is a proxmox client for manage proxmox through python methods and command line interface.

Intallation for use as python methods

  • Clone repository

$ git clone https://github.com/akevinieron/proxmox_client.git
  • Move (your-clone-dir)/proxmox_client/main.py to (your-project-dir)/proxmoxclient

$ mv (your-clone-dir)/proxmox_client/main.py (your-project-dir)/proxmoxclient

Installation for use as CLI

TODO

How use in python

Check this https://pve.proxmox.com/pve-docs/api-viewer/

from proxmoxclient.main import ProxmoxClient

config = {
  "base_url": "your_host",
  "verify_ssl": False,
  "password": "your_password",
  "username": "your_username"
}

pxpx = ProxmoxClient(config)

# start use your method

How use in CLI

TODO

Cluster methods

Cluster Management in proxmox-client

pxpx.get_cluster_tasks() # return list of tasks

pxpx.get_cluster_status() # return list of status

pxpx.get_cluster_resources() # return list of resources

pxpx.get_cluster_nextid() # return intenger

pxpx.get_cluster_logs() # return list of logs

pxpx.get_cluster_replications() # return list of replications

pxpx.update_cluster_options() # update cluster options

Nodes methods

Nodes management in proxmox-client

pxpx.get_all_ct(data={...}) # get all ct in the cluster

pxpx.get_ct(data={...}) # get specific ct in the cluster

pxpx.get_nextid() # get nextid

pxpx.get_config_ct(data={...}) # get ct configuration

pxpx.get_snapshots(data={...}) # get all snapshopt on the specific ct

pxpx.get_snapshot(data={...}) # get specific snapshot on the specific ct

pxpx.start_ct(data={...}) # start a ct

pxpx.stop_ct(data={...}) # stopa a ct

pxpx.clone_ct(data={...}) # clone specific ct

pxpx.create_snapshot(data={...}) # create a snapshot in the specific ct

pxpx.create_template(data={...}) # create a template in the specific ct

pxpx.update_config_ct(data={...}) # update ct configuration

pxpx.update_snapshot(data={...}) # update snapshot on a specifit ct

pxpx.rollback_snapshot(data={...}) # rollnack snapshot on a specifit ct

pxpx.delete_snapshot(data={...}) # delete snapshot on a specifit ct

pxpx.delete_ct(data={...}) # delete specific ct

pxpx.resize_ct(data={...}) # TODO

pxpx.resume_ct(data={...}) # TODO: without test

pxpx.shutdown_ct(data={...}) # TODO: without test

pxpx.suspend_ct(data={...}) # TODO: without test

pxpx.create_ct(data={...}) # TODO: without test

About

This is a Proxmox client for the API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages