Apache CloudStack 4.20.0.0 Root Admin API Reference

createRole

Creates a role

Request parameters

Parameter NameDescriptionRequired
nameCreates a role with this unique nametrue
descriptionThe description of the rolefalse
ispublicIndicates whether the role will be visible to all users (public) or only to root admins (private). Default is true.false
roleidID of the role to be cloned from. Either roleid or type must be passed infalse
typeThe type of the role, valid options are: Admin, ResourceAdmin, DomainAdmin, Userfalse

Response Tags

Response NameDescription
isdefaulttrue if role is default, false otherwise
statethe state of the role
typethe type of the role