Class ProxmoxClient
java.lang.Object
org.jenkinsci.plugins.proxmox.api.ProxmoxClient
-
Constructor Summary
ConstructorsConstructorDescriptionProxmoxClient(String apiUrl, String tokenId, Secret tokenSecret, boolean ignoreSslErrors) -
Method Summary
Modifier and TypeMethodDescriptioncloneVm(String node, int templateId, CloneOptions opts) configureVm(String node, int vmId, VmConfig config) getNetworkDevices(String node) intintgetNextVmId(int minId) getNodes()getPools()getStoragePools(String node) getTaskStatus(String node, String upid) getTemplates(String node) com.google.gson.JsonObjectgetVmConfig(String node, int vmId) getVmNetworkInterfaces(String node, int vmId) getVmStatus(String node, int vmId) voidresizeVmDisk(String node, int vmId, String disk, int sizeGb) voidsetNetworkBridge(String node, int vmId, String bridge) Point the VM's primary NIC (net0) at the given bridge, preserving the NIC model, MAC, and every othernet0option (firewall, VLAN tag, MTU, rate, ...).shutdownVm(String node, int vmId, int timeout) voidwaitForTask(String node, String upid, int timeoutSeconds)
-
Constructor Details
-
ProxmoxClient
-
-
Method Details
-
getVersion
-
getNodes
-
getVms
-
getTemplates
-
getNextVmId
public int getNextVmId() -
getNextVmId
public int getNextVmId(int minId) -
cloneVm
-
resizeVmDisk
-
configureVm
-
setNetworkBridge
Point the VM's primary NIC (net0) at the given bridge, preserving the NIC model, MAC, and every othernet0option (firewall, VLAN tag, MTU, rate, ...). Reads the currentnet0, swaps only itsbridge=component, and writes it back. If the VM has nonet0the call is a no-op (logged at WARNING). Used to apply the template's "Network Bridge" override after a clone, which otherwise inherits the template's bridge. -
startVm
-
stopVm
-
shutdownVm
-
destroyVm
-
getVmStatus
-
getVmConfig
-
getVmNetworkInterfaces
-
getStoragePools
-
getNetworkDevices
-
getPools
-
getTaskStatus
-
waitForTask
-