MENU
      Enable Auto Rotation

        Enable Auto Rotation


        Article summary

        Overview

        Set automatic rotation of a secret.

        POST https://secretmanager.apigw.ntruss.com/api/v1/secrets/{secretId}/enable-auto-rotation
        HTTP

        Request

        Request parameter

        Parameter nameTypeDescription
        secretIdStringSecret ID

        Request body

        {
          "rotationPeriod": 0,
          "triggerId": "string"
        }
        JSON
        Parameter nameTypeDescription
        rotationPeriodIntegerRotation cycle (default: 90)
        triggerIdStringTrigger ID

        Response

        Response body

        {
          "code": "SUCCESS",
          "data": {
            "secretId": "string",
            "autoRotationYN": "Y",
            "autoRotationPeriod": 0,
            "nextRotationDate": 0,
            "trigger": {
              "id": "string",
              "name": "string",
              "url": "string",
              "recentlyExecutedAction": "string"
            }
          }
        }
        JSON
        Parameter nameTypeDescription
        secretIdStringSecret ID
        autoRotationYNStringAutomatic rotation status (Y)
        autoRotationPeriodIntegerAutomatic rotation cycle
        nextRotationDateIntegerNext rotation date
        trigger.idStringTrigger ID
        trigger.nameStringTrigger name
        trigger.urlStringTrigger URL
        trigger.recentlyExecutedActionStringRecently executed action

        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.