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

Method Post

pkg/api/http.go:50–52  ·  view source on GitHub ↗

Post performs a POST request to the Proxmox API.

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

Source from the content-addressed store, hash-verified

48
49// Post performs a POST request to the Proxmox API.
50func (hc *HTTPClient) Post(ctx context.Context, path string, data interface{}, result *map[string]interface{}) error {
51 return hc.doRequest(ctx, "POST", path, data, result)
52}
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 {

Calls 1

doRequestMethod · 0.95

Tested by 3