Interface AssignedPermissionsService

    • Method Detail

      • add

        AssignedPermissionsService.AddRequest add()
        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 ----
      • list

        AssignedPermissionsService.ListRequest list()
        List all the permissions of the specific entity. For example to list all the permissions of the cluster with id `123` send a request like this: .... GET /ovirt-engine/api/clusters/123/permissions .... [source,xml] ---- ---- The order of the returned permissions isn't guaranteed.
      • permissionService

        PermissionService permissionService​(String id)
        Sub-resource locator method, returns individual permission resource on which the remainder of the URI is dispatched.
      • service

        Service service​(String path)
        Service locator method, returns individual service on which the URI is dispatched.