Create Role
- Print
- PDF
Create Role
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
- Create a role.
API
- POST /roles
Requests
Body
{
"descCont": "string",
"roleName": "string",
"roleType": "string"
"sessionExpirationSec": "integer"
}
Parameters | Requirement status | Type | Restrictions | Description |
---|---|---|---|---|
descCont | N | string | Role description (max : 300bytes) | |
roleName | Y | string | Role name | |
roleType | Y | string | Role type (available : Server, Account, Service) | |
sessionExpirationSec | N | integer | Required when roleType is Account | Session expiration time (available: 600, 1800, 3600,10800) |
Response
- Response
Parameter name | Requirement status | Type | Description |
---|---|---|---|
ProcessResult | Y | ProcessResult | Processing result |
- Response examples - Succeeded in registration
{
"success": true,
"id": "roleNo"
}
Errors
Errors that may occur while using this action are listed below. For error response format, see ErrorResponse.
For more information about common errors, see the NAVER Cloud Platform API.
HTTP status code | Error code | Error message |
---|---|---|
400 | 400 | Enter role name |
400 | 400 | Enter the role name between 2 and 30 characters long. |
400 | 400 | Specify role type |
400 | 400 | The role name already exists. |
400 | 9002 | When the role type is Server, unused session expiration time is not allowed. |
400 | 9002 | For session expiration time, only [600, 1800, 3600,10,800] seconds can be specified. |
409 | 9012 | Reached the maximum number of roles that can be created |
400 | 9010 | Only characters, numbers and special characters of "._-" are allowed, and it must start with a character. |
Was this article helpful?