Creates a role.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
edas:InsertRole |
create |
*All Resource
|
None | None |
Request syntax
POST /pop/v5/account/create_role HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RoleName |
string |
Yes |
The name of the role. |
testrole |
| ActionData |
string |
Yes |
The set of permissions to be granted to the role. The value is in the format of |
15:1;14:2 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
integer |
The HTTP status code that is returned. |
200 |
| Message |
string |
The additional information that is returned. |
success |
| RequestId |
string |
The ID of the request. |
57609587-DFA2-41EC-****-********* |
| RoleId |
integer |
The ID of the role. |
33 |
Examples
Success response
JSON format
{
"Code": 200,
"Message": "success",
"RequestId": "57609587-DFA2-41EC-****-*********",
"RoleId": 33
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.