DeleteWithResponse makes a DELETE request to the Proxmox API and returns the response with timeout.
(path string, result *map[string]interface{})
| 117 | |
| 118 | // DeleteWithResponse makes a DELETE request to the Proxmox API and returns the response with timeout. |
| 119 | func (c *Client) DeleteWithResponse(path string, result *map[string]interface{}) error { |
| 120 | ctx, cancel := context.WithTimeout(context.Background(), DefaultAPITimeout) |
| 121 | defer cancel() |
| 122 | |
| 123 | c.logger.Debug("API DELETE with response: %s", path) |
| 124 | |
| 125 | return c.httpClient.Delete(ctx, path, result) |
| 126 | } |
| 127 | |
| 128 | // IsUsingTokenAuth returns true if the client is using API token authentication. |
| 129 | func (c *Client) IsUsingTokenAuth() bool { |
no test coverage detected