Get role list
- Print
- PDF
Get role list
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Available in Classic and VPC
Get the list of roles.
Request
This section describes the request format. The method and URI are as follows:
Method | URI |
---|---|
GET | /api/v1/roles |
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 |
---|---|---|---|
page | Integer | Optional | Page number
|
size | Integer | Optional | Page output count
|
searchColumn | String | Optional | Search column
|
searchWord | String | Optional | Search keyword |
Request example
The request example is as follows:
curl --location --request GET 'https://subaccount.apigw.ntruss.com/api/v1/roles?page=0&size=10' \
--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 | - | Role 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 |
---|---|---|---|
nrn | String | - | NAVER Cloud Platform resource identification value for role |
roleNo | String | - | Role ID |
roleName | String | - | Role name |
roleType | String | - | Role type
|
sessionExpirationSec | Integer | - | Session expiration time (second)
|
descCont | String | - | Description of the role |
active | Boolean | - | Role status
|
createTime | String | - | Role creation date and time
|
modifiedTime | String | - | Last modification date and time of the role
|
lastUseTime | String | - | Last usage date and time of the role
|
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": 2,
"hasPrevious": false,
"hasNext": false,
"items": [
{
"nrn": "nrn:PUB:IAM::5*****8:Role/76a744f0-****-****-****-246e966ebeb4",
"roleNo": "76a744f0-****-****-****-246e966ebeb4",
"roleName": "service1",
"roleType": "Service",
"descCont": "",
"active": true,
"createTime": "2024-12-23T02:41:51Z",
"modifiedTime": "2024-12-24T02:25:16Z",
"lastUseTime": "2025-01-02T01:26:02Z"
},
{
"nrn": "nrn:PUB:IAM::5*****8:Role/6e1de560-****-****-****-246e966ebec4",
"roleNo": "6e1de560-****-****-****-246e966ebec4",
"roleName": "NcloudStorageManagementRole",
"roleType": "NcloudStorage",
"active": true,
"createTime": "2024-11-07T05:23:32Z",
"modifiedTime": "2024-11-07T05:23:32Z"
}
],
"isFirst": true,
"isLast": true
}
Was this article helpful?