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