Interface AssignedPermissionsService.AddRequest

  • All Superinterfaces:
    Request<AssignedPermissionsService.AddRequest,​AssignedPermissionsService.AddResponse>
    Enclosing interface:
    AssignedPermissionsService

    public static interface AssignedPermissionsService.AddRequest
    extends Request<AssignedPermissionsService.AddRequest,​AssignedPermissionsService.AddResponse>
    Assign a new permission to a user or group for specific entity. For example, to assign the `UserVmManager` role to the virtual machine with id `123` to the user with id `456` send a request like this: .... POST /ovirt-engine/api/vms/123/permissions .... With a request body like this: [source,xml] ---- UserVmManager ---- To assign the `SuperUser` role to the system to the user with id `456` send a request like this: .... POST /ovirt-engine/api/permissions .... With a request body like this: [source,xml] ---- SuperUser ---- If you want to assign permission to the group instead of the user please replace the `user` element with the `group` element with proper `id` of the group. For example to assign the `UserRole` role to the cluster with id `123` to the group with id `789` send a request like this: .... POST /ovirt-engine/api/clusters/123/permissions .... With a request body like this: [source,xml] ---- UserRole ----