Apache CloudStack 4.20.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
ispublicIndicates whether the role will be visible to all users (public) or only to root admins (private). If this parameter is not specified during the creation of the role its value will be defaulted to true (public).false
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