Apache CloudStack 4.20.0.0 Root Admin API Reference
importRole
Imports a role based on provided map of rule permissions
Request parameters
Parameter Name | Description | Required |
name | Creates a role with this unique name | true |
rules | Rules 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=listing | true |
description | The description of the role | false |
forced | Force create a role with the same name. This overrides the role type, description and rule permissions for the existing role. Default is false. | false |
ispublic | Indicates 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 |
type | The type of the role, valid options are: Admin, ResourceAdmin, DomainAdmin, User | false |
Response Tags
Response Name | Description |
isdefault | true if role is default, false otherwise |
state | the state of the role |
type | the type of the role |