Get sub account list
- Print
- PDF
Get sub account list
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Available in Classic and VPC
Get the sub account list.
Request
This section describes the request format. The method and URI are as follows:
Method | URI |
---|---|
GET | /api/v1/sub-accounts |
Request headers
For information about the headers common to all Sub Account APIs, see Sub Account request headers.
Request query parameters
You can use the following query parameters with your request:
Field | Type | Required | Description |
---|---|---|---|
searchColumn | String | Optional | Search column
|
searchWord | String | Optional | Search keyword |
page | Integer | Optional | Page number
|
size | Integer | Optional | Page output count
|
Request example
The request example is as follows:
curl --location --request GET 'https://subaccount.apigw.ntruss.com/api/v1/sub-accounts' \
--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'
Response
This section describes the response format.
Response body
The response body includes the following data:
Field | Type | Required | Description |
---|---|---|---|
page | Integer | - | Page number |
totalPages | Integer | - | Total number of pages |
totalItems | Integer | - | Number of response results |
hasPrevious | Boolean | - | Whether previous page exists
|
hasNext | Boolean | - | Whether next page exists
|
items | Array | - | Sub account list |
isFirst | Boolean | - | Whether it is the first page
|
isLast | Boolean | - | Whether it is the last page
|
items
The following describes items
.
Field | Type | Required | Description |
---|---|---|---|
subAccountId | String | - | Sub account ID |
subAccountNo | Integer | - | Sub account number |
loginId | String | - | Sub account login ID |
name | String | - | Sub account username |
email | String | - | Sub account user email address |
needPasswordReset | Boolean | - | Sub account login password reset notification
|
canAPIGatewayAccess | Boolean | - | API Gateway accessibility of the sub account
|
canConsoleAccess | Boolean | - | Whether the sub account can access the console
|
useConsolePermitIp | Boolean | - | Whether the sub account's console access is restricted to a specific IP range
|
consolePermitIps | Array | - | List of IP ranges accessible to the console from the sub account |
useApiAllowSource | Boolean | - | Whether the accessible source for the API by the sub account is restricted
|
apiAllowSources | Array | - | List of sources accessible by sub account via API |
lastLoginTime | String | - | Sub account last login date and time
|
createTime | String | - | Sub account creation date and time
|
memo | String | - | Sub account description |
active | Boolean | - | Sub account status
|
modifiedTime | String | - | Sub account last modification date and time
|
nrn | String | - | NAVER Cloud Platform resource identification value for sub account |
apiAllowSources
The following describes apiAllowSources
.
Field | Type | Required | Description |
---|---|---|---|
type | String | - | Access source type
|
source | String | - | Access source information
|
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:
{
"page": 0,
"totalPages": 1,
"totalItems": 1,
"hasPrevious": false,
"hasNext": false,
"items": [
{
"subAccountId": "89b556d0-****-****-****-***********",
"subAccountNo": 16***,
"loginId": "h***",
"name": "h***",
"email": "l*****@*******.com",
"needPasswordReset": false,
"canAPIGatewayAccess": true,
"canConsoleAccess": true,
"useConsolePermitIp": true,
"consolePermitIps": [
"***.***.***.***"
],
"useApiAllowSource": true,
"apiAllowSources": [
{
"type": "IP",
"source": "***.***.***.***"
}
],
"lastLoginTime": "2025-01-01T23:48:07Z",
"createTime": "2024-09-30T04:57:47Z",
"memo": "",
"active": true,
"modifiedTime": "2024-12-23T02:56:29Z",
"nrn": "nrn:PUB:IAM::5*****8:SubAccount/89b556d0-****-****-****-***********"
}
],
"isFirst": true,
"isLast": true
}
Was this article helpful?