Interface RoleAdminApi


@Beta @Path("OS-KSADM/roles") public interface RoleAdminApi
Provides access to the OpenStack Keystone Role Administration Extension API.
  • Method Summary

    Modifier and Type
    Method
    Description
    create(String name)
    Creates a new Role
    boolean
    delete(String roleId)
    Deletes a role
    get(String roleId)
    Gets the role
    com.google.common.collect.FluentIterable<? extends Role>
    Returns a summary list of roles.
  • Method Details

    • list

      @Named("role:list") @GET @Consumes("application/json") com.google.common.collect.FluentIterable<? extends Role> list()
      Returns a summary list of roles.
      Returns:
      The list of roles
    • create

      @Named("role:create") @POST @Produces("application/json") @Nullable Role create(String name)
      Creates a new Role
      Returns:
      the new Role
    • get

      @Named("role:get") @GET @Path("/{id}") @Nullable Role get(@PathParam("id") String roleId)
      Gets the role
      Returns:
      the role
    • delete

      @Named("role:delete") @DELETE @Path("/{id}") @Consumes boolean delete(@PathParam("id") String roleId)
      Deletes a role
      Returns:
      true if successful