Apache CloudStack 4.15.0.0 Root Admin API Reference

importRole

Imports a role based on provided map of rule permissions

Request parameters

Parameter NameDescriptionRequired
nameCreates a role with this unique nametrue
rulesRules param list, rule and permission is must. Example: rules[0].rule=create*&rules[0].permission=allow&rules[0].description=create%20rule&rules[1].rule=list*&rules[1].permission=allow&rules[1].description=listingtrue
descriptionThe description of the rolefalse
forcedForce create a role with the same name. This overrides the role type, description and rule permissions for the existing role. Default is false.false
typeThe type of the role, valid options are: Admin, ResourceAdmin, DomainAdmin, Userfalse

Response Tags

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