Onemind-Services-LLC / netbox-secrets

Enhance your secret management with encrypted storage and flexible, user-friendly features.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Docs]: API Pulling session Key

jguilford opened this issue · comments

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.

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.

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