View sub account access key
- Print
- PDF
View sub account access key
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
View the access key of a sub account.
Requests
The following describes the request format for the endpoint. The request format is as follows.
Method | URI |
---|---|
GET | /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 |
active | Boolean | - | Key activation status |
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 |
Response example
The following is a sample response.
[
{
"accessKey": "{access key}",
"active": false,
"createTime": "2024-04-25T08:02:15Z"
},
{
"accessKey": "{access key}",
"active": true,
"createTime": "2024-04-25T08:02:13Z"
}
]
Was this article helpful?