security iam role create
Creates custom roles with the security iam role create
command.
The security iam role create command is used to create
custom roles.
Custom role creation is supported only on primary cluster.
Syntax
- CLI
-
maprcli security iam role create -name <Role Name> -desc <Description Message> - REST
-
Request Type POST Request URL http[s]://<host>:<port>/rest/iam/role/create?<parameters>
Parameters
| Parameter | Description |
|---|---|
name |
(Required) Name of the role. |
desc |
(Optional) Description about the role. |
Example
Create a custom role with the name Eng and description All Engineers.
CLI
maprcli security iam role create -name Eng -desc "All Engineers" -json
{
"timestamp":1726571524419,
"timeofday":"2024-09-17 04:12:04.419 GMT-0700 AM",
"status":"OK",
"total":0,
"data":[
],
"messages":[
"Successfully created the role 'Eng'."
]
}
REST
curl -u <username> -X POST https://server.sj.us:8443/rest/security/iam/role/create?name=Eng&desc="All Engineers"