influxdata / influx-cli

CLI for managing resources in InfluxDB v2
MIT License
61 stars 23 forks source link

fix: updated api for deleting secrets so "influx secret delete" command works again #469

Closed FernandoBenayas closed 1 year ago

FernandoBenayas commented 1 year ago

Hi! Closes #468

The influx secret delete command stopped working because the influx client was not updated following the changes regarding the secrets delete API in the influxdb and openapi repos.

This PR updates the secrets delete functionality in order to use DELETE queries to /api/v2/orgs/{org id}/secrets/{secret key} instead of POST queries to /api/v2/orgs/{org id}/secrets/delete