Add secrets

    Use the influx secret update command to add a new secret to your organization. Provide the secret key with the -k or --key flag. You may also provide the secret value with the -v or --value flag. If you do not provide the secret value with the or --value flag, enter the value when prompted.

    Add a secret using the InfluxDB API

    Use the PATCH request method and the /orgs/{orgID}/secrets API endpoint to add a new secret to your organization.

    • Your organization ID in the request URL
    • The secret key-value pair in the request body
    1. curl --request PATCH http://localhost:8086/api/v2/orgs/<org-id>/secrets \
    2. --header 'Authorization: Token YOURAUTHTOKEN' \
    3. --data '{
    4. "<secret-key>": "<secret-value>"

    security