Create sub account access key
- Print
- PDF
Create sub account access key
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Create an access key of a sub account.
Requests
The following describes the request format for the endpoint. The request format is as follows.
Method | URI |
---|---|
POST | /sub-accounts/{subAccountId}/access-keys |
Request headers
The following describes the headers. For headers common to all Sub Account APIs, see Sub Account common headers.
Field | Description |
---|---|
accept | Specify as application/json |
Request path parameters
The following describes the parameters.
Field | Type | Required | Description |
---|---|---|---|
subAccountId | String | Required | ID of sub account to view |
Request example
The following is a sample request.
curl -X GET "https://subaccount.apigw.ntruss.com/api/v1/sub-accounts/{subAccountId}/access-keys"
-H "accept: application/json"
-H "x-ncp-iam-access-key: {access key}"
-H "x-ncp-apigw-timestamp: 1594646226859"
-H "x-ncp-apigw-signature-v2: {signature}"
-H "cache-control: no-cache"
-H "pragma: no-cache"
Responses
The following describes the response format.
Response body
The following describes the response body.
Field | Type | Required | Description |
---|---|---|---|
accessKey | String | - | Access Key Id |
keySecret | String | - | Access Key Secret |
createTime | Date | - | Key creation time |
Response status codes
It describes response status codes. For response status codes common to NAVER Cloud Platform, see Ncloud API response status codes.
HTTP status code | Error Code | Error message |
---|---|---|
404 | 30 | Nonexistent account |
409 | 9012 | Maximum number of active access keys that can be created exceeded |
Response example
The following is a sample response.
{
"accessKey": "{access key}",
"keySecret": "{key secret}",
"createTime": "2024-04-25T08:02:15Z"
}
Was this article helpful?