Secret manager overview
- Print
- PDF
Secret manager overview
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Summary
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 configuration
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}
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'
Errors
Response code | Response 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"
}
}
Was this article helpful?