- Print
- PDF
Create trust anchor
- Print
- PDF
The latest service changes have not yet been reflected in this content. We will update the content as soon as possible. Please refer to the Korean version for information on the latest updates.
Available in Classic and VPC
Create a trust anchor.
To create a trust anchor, you must first create a private CA in the Private CA service of NAVER Cloud Platform. See the following for how to create a CA.
- Create from NAVER Cloud Platform console: Private CA User Guide
- Create using API: Private CA API guide
Request
This section describes the request format. The method and URI are as follows:
Method | URI |
---|---|
POST | /api/v1/trust-anchors |
Request headers
For information about the headers common to all Sub Account APIs, see Sub Account request headers.
Request body
You can include the following data in the body of your request:
Field | Type | Required | Description |
---|---|---|---|
name | String | Required | Trust anchor name
|
description | String | Optional | Trust anchor description (byte)
|
enabled | Boolean | Optional | Status
|
source | Object | Required | CA information |
source.sourceType | String | Required | CA type
|
source.sourceData | Object | Required | CA target information |
source.sourceData.caId | Integer | Required | NAVER Cloud Platform Private CA ID |
Request example
The request example is as follows:
curl --location --request POST 'https://externalaccess.apigw.ntruss.com/api/v1/trust-anchors' \
--header 'x-ncp-apigw-timestamp: {Timestamp}' \
--header 'x-ncp-iam-access-key: {Access Key}' \
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"name": "ta000",
"description": "test",
"enabled": false,
"source": {
"sourceType": "NCP_PCA",
"sourceData": {
"caId": ****
}
}
}'
Response
This section describes the response format.
Response body
The response body includes the following data:
Field | Type | Required | Description |
---|---|---|---|
trustAnchorId | String | - | Trust anchor ID |
trustAnchorNrn | String | - | NAVER Cloud Platform resource identification value for trust anchor |
name | String | - | Trust anchor name |
description | String | - | Trust anchor description |
enabled | Boolean | - | Status
|
createTime | String | - | Creation date and time
|
updateTime | String | - | Last modification date and time
|
source | Object | - | CA information |
source.sourceType | String | - | CA type
|
source.sourceData | Object | - | CA target information |
source.sourceData.caId | Integer | - | NAVER Cloud Platform Private CA's ID |
Response status codes
For information about the HTTP status codes common to all Sub Account APIs, see Sub Account status codes.
Response example
The response example is as follows:
{
"trustAnchorId": "a271f5b5-****-****-****-bda95123e58e",
"trustAnchorNrn": "nrn:PUB:ExternalAccess::*******:TrustAnchor/a271f5b5-****-****-****-bda95123e58e",
"name": "ta000",
"description": "test",
"enabled": false,
"createTime": "2024-12-13T13:16:50.330726376+09:00",
"updateTime": "2024-12-13T13:16:50.330726376+09:00",
"source": {
"sourceType": "NCP_PCA",
"sourceData": {
"caId": *****
}
}
}