Congirue request
- Print
- PDF
Congirue request
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Base URL(End point)
https://ocapi.ncloud.com
Request configuration
Account Auth API | Token Auth API | |
---|---|---|
Authentication method | User authentication using the NAVER Cloud Platform account information | Key authentication token |
Required header | x-ncp-apigw-timestamp x-ncp-apigw-signature-v2 x-ncp-iam-access-key | x-ncp-ocapi-token |
Request example
- 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?