Secret Manager 개요
    • PDF

    Secret Manager 개요

    • PDF

    기사 요약

    개요

    Secret Manager API는 RESTful 형태로 제공됩니다. Secret Manager Rest API를 호출하기 위해서는 API Gateway와 Sub Account 인증을 수행해야 합니다.

    API Gateway를 통한 API 호출은 API Gateway 사용 가이드를 참조해 주십시오. API 요청 메시지는 아래와 같이 구성됩니다.

    요청 구성

    API Gateway request signature v2 요청 구성

    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}
    

    예시

    API Gateway request signature v2 요청 예시

    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'
    

    오류 코드

    응답 코드응답 메시지
    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": {
        "errorCode": "string",
        "message": "string",
        "details": "string"
      }
    }
    

    이 문서가 도움이 되었습니까?

    What's Next
    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.