Onemind-Services-LLC / netbox-secrets

Enhance your secret management with encrypted storage and flexible, user-friendly features.
Apache License 2.0
96 stars 8 forks source link

[Docs]: API Pulling session Key #83

Closed jguilford closed 10 months ago

jguilford commented 1 year ago

Change Type

Correction

Area

Other

Proposed Changes

Please retest and validate that documentation is correct when I test the documentation I get the following error trying to retrieve session_key. I have tested variable and trying to reference file neither works correctly.

Unsupported media type \"application/x-www-form-urlencoded\" in request.

abhi1693 commented 1 year ago

Thank you for submitting this. We will update the docs in the next release. In the meantime, if you want to use application/x-www-form-urlencoded media type, you can use the deprecated endpoint at http://netbox/api/plugins/secrets/get-session-key/.

The new endpoint only expects a JSON body with the private_key and optional preserve_key. The value to the private_key is the content of your private key.

jhofmueller commented 11 months ago

Please assign updating the docs to me. I can do that next week.