MENU
      Secret Manager overview

        Secret Manager overview


        Article summary

        Overview

        The Secret manager API is available in the RESTful form. You must go through the API Gateway and Sub Account authentications to call the Secret Manager Rest API.

        For more information about calling APIs through API Gateway, see the API Gateway User Guide. An API request message consists of the following.

        Request description

        API Gateway request signature v2 request configuration

        Header
          x-ncp-apigw-timestamp:{Timestamp}
          x-ncp-iam-access-key:{Sub Account Access Key}
          x-ncp-apigw-signature-v2:{API Gateway Signature}
          Content-Type:application/json
        Body
          fieldName: {Value}
        URL
          https://secretmanager.apigw.ntruss.com/api/v1/{api}
        HTTP

        Examples

        API Gateway request signature v2 request example

        curl -i -s \
        -H "x-ncp-apigw-timestamp:1511759789542" \
        -H "x-ncp-iam-access-key:3A03131E1348C83101" \
        -H "x-ncp-apigw-signature-v2:FkL1mw12345678DRu9R50tdGSyc/uQ/oTw=" \
        -H "Content-Type:application/json" \
        'https://secretmanager.apigw.ntruss.com/api/v1/secrets'
        Shell

        Errors

        Response codeResponse message
        FORBIDDEN"Forbidden"
        INTERNAL_SERVER_ERROR"Server internal error"
        UNPROCESSABLE_ENTITY"Invalid status"
        INVALID_REQUEST"Invalid request"
        UNAUTHORIZED"Unauthorized"
        NOT_FOUND"Not found"
        INVALID_STATUS"Invalid status"

        Error response

        {
          "error": {
            "errorCode": "string",
            "message": "string",
            "details": "string"
          }
        }
        JSON

        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.