Source: factory.deploy/extend.substrate/ObjProxmox.py
| Method | Signature | Description |
|---|---|---|
| connect | connect() -> bool |
Establishes a connection to the Proxmox server. |
| list_instances | list_instances() -> List[Dict[str, Any]] |
Lists all VMs and containers on the Proxmox cluster. |
| get_instance | get_instance(name: str) -> Optional[Dict[str, Any]] |
Gets detailed information about a specific VM or container. |
| create_instance | create_instance(config: Dict[str, Any]) -> bool |
Creates a new VM or LXC container in Proxmox. |
| start_instance | start_instance(name: str) -> bool |
Starts a VM or container. |
| stop_instance | stop_instance(name: str, force: bool = False) -> bool |
Stops a VM or container. |
| delete_instance | delete_instance(name: str, force: bool = False) -> bool |
Deletes a VM or container in Proxmox. |
| execute_command | execute_command(name: str, command: List[str]) -> Optional[Dict[str, Any]] |
Execute a command in a Proxmox instance. |
| health_check | health_check() -> Dict[str, Any] |
Check Proxmox cluster health. |
| get_metrics | get_metrics(name: str) -> Optional[ResourceUsage] |
Get resource usage metrics for an instance. |
| get_vm_tags | get_vm_tags(node, vm_id) |
Get the tags for a specific VM. |
| set_vm_tags | set_vm_tags(node, vm_id, tags) |
Set the tags for a specific VM. |
Query the Proxmox server and list all nodes and their containers.
List all VMs and Containers.
Get detailed status of a specific VM or Container.
Start a VM or Container.
Stop a VM or Container.
Get the tags for a specific VM.
Set the tags for a specific VM.