Update secret value
    • PDF

    Update secret value

    • PDF

    Article summary

    Summary

    Edit secret values.
    The value of a secret in the REVOKE (deletion requested) status can't be changed.

    Caution

    All stages are edited with the entered values. (If the stage value is empty, it removes the stage value.)
    To update only a specific stage, use the Update secret stage value API.

    PUT https://secretmanager.apigw.ntruss.com/api/v1/secrets/{secretId}/values
    

    Request

    Request parameters

    Parameter nameTypeDescription
    secretIdStringSecret ID

    Request body

    {
      "previous": "string",
      "active": "string",
      "pending": "string"
    }
    
    Parameter nameTypeDescription
    previousStringPrevious status secret value
    activeStringActive status secret value
    pendingStringPending status Secret value

    Response

    Response body

    {
      "code": "SUCCESS",
      "data": {
        "encryptedSecretChain": {
          "previous": "string",
          "active": "string",
          "pending": "string"
        }
      }
    }
    
    Parameter nameTypeDescription
    encryptedSecretChain.previousStringPrevious status encrypted secret value
    encryptedSecretChain.activeStringActive status encrypted secret value
    encryptedSecretChain.pendingStringPending status encrypted secret value

    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.