MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / Put

Method Put

pkg/api/http.go:55–57  ·  view source on GitHub ↗

Put performs a PUT request to the Proxmox API.

(ctx context.Context, path string, data interface{}, result *map[string]interface{})

Source from the content-addressed store, hash-verified

53
54// Put performs a PUT request to the Proxmox API.
55func (hc *HTTPClient) Put(ctx context.Context, path string, data interface{}, result *map[string]interface{}) error {
56 return hc.doRequest(ctx, "PUT", path, data, result)
57}
58
59// Delete performs a DELETE request to the Proxmox API.
60func (hc *HTTPClient) Delete(ctx context.Context, path string, result *map[string]interface{}) error {

Callers 4

UpdateVMConfigMethod · 0.80
ResizeVMStorageMethod · 0.80
UpdateVMResourcesMethod · 0.80

Calls 1

doRequestMethod · 0.95

Tested by 1