Get role
- Print
- PDF
Get role
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Available in Classic and VPC
Get a role.
Request
This section describes the request format. The method and URI are as follows:
Method | URI |
---|---|
GET | /api/v1/roles/{roleNo} |
Request headers
For information about the headers common to all Sub Account APIs, see Sub Account request headers.
Request path parameters
You can use the following path parameters with your request:
Field | Type | Required | Description |
---|---|---|---|
roleNo | String | Required | Role ID
|
Request example
The request example is as follows:
curl --location --request GET 'https://subaccount.apigw.ntruss.com/api/v1//roles/5d0d4d80-****-****-****-246e96591a38' \
--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 |
---|---|---|---|
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
|
policies | Array | - | List of policies assigned to role |
entities | Array | - | List of targets applied with role |
policies
The following describes policies
.
Field | Type | Required | Description |
---|---|---|---|
policyId | String | - | Policy ID |
policyName | String | - | Policy Name |
policyType | String | - | Policy type
|
policyDesc | String | - | Policy description |
nrn | String | - | NAVER Cloud Platform resource identification value for policy |
entities
The following describes entities
.
Field | Type | Required | Description |
---|---|---|---|
id | String | - | Role application target ID |
type | String | - | Role application target type
|
entityType | String | - | Role application target type
|
entityId | Integer | - | Role application target ID |
Note
Note that the entityType
and entityId
are scheduled to be discontinued in the future.
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:
{
"nrn": "nrn:PUB:IAM::*******:Role/5d0d4d80-****-****-****-246e96591a38",
"roleNo": "5d0d4d80-****-****-****-246e96591a38",
"roleName": "role002",
"roleType": "Account",
"sessionExpirationSec": 600,
"descCont": "Role description",
"active": true,
"createTime": "2024-12-12T23:32:34Z",
"modifiedTime": "2024-12-26T08:29:30Z",
"lastUseTime": "2025-01-02T01:26:02Z",
"policies": [
{
"policyId": "7938a9f0-****-****-****-005056a7ecf2",
"policyName": "policy010",
"policyType": "USER_CREATED",
"policyDesc": "policy",
"nrn": "nrn:PUB:IAM::*******:Policy/7938a9f0-****-****-****-005056a7ecf2"
}
],
"entities": [
{
"id": "*******",
"type": "Account",
"entityType": "Account",
"entityId": *******
}
]
}
Was this article helpful?