요청 구성
- Print
- PDF
요청 구성
- Print
- PDF
The content is currently unavailable in English. You are viewing the default Korean version.
Article summary
Did you find this summary helpful?
Thank you for your feedback
Base URL(End point)
https://ocapi.ncloud.com
요청 구성
Account Auth API | Token Auth API | |
---|---|---|
인증 방식 | NCP 계정 정보를 이용한 사용자 인증 | 키 인증 토큰 |
필요 헤더 | x-ncp-apigw-timestamp x-ncp-apigw-signature-v2 x-ncp-iam-access-key | x-ncp-ocapi-token |
요청 예시
- Account Auth API
curl -X 'POST' \
'https://ocapi.ncloud.com/keys/v2/{keyTag}/{action}' \
-H 'accept: application/json' \
-H 'x-ncp-apigw-timestamp:{Timestamp}' \
-H 'x-ncp-iam-access-key:{Sub Account Access Key}' \
-H 'x-ncp-apigw-signature-v2:{API Gateway Signature}' \
-H 'Content-Type:application/json' \
-d '{
"plaintext": "string",
"context": "string"
}'
- Token Auth API
curl -X 'POST' \
'https://ocapi.ncloud.com/kms/v1/keys/{keyTag}/encrypt' \
-H 'accept: application/json' \
-H 'x-ncp-ocapi-token: {Key Access Token}' \
-H 'Content-Type: application/json' \
-d '{
"plaintext": "string",
"context": "string"
}'
Was this article helpful?