Apache CloudStack 4.15.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 |
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 |
type | the type of the role |