Interface RoleAdminApi
-
@Beta @Path("OS-KSADM/roles") public interface RoleAdminApi
Provides access to the OpenStack Keystone Role Administration Extension API.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Role
create(String name)
Creates a new Roleboolean
delete(String roleId)
Deletes a roleRole
get(String roleId)
Gets the rolecom.google.common.collect.FluentIterable<? extends Role>
list()
Returns a summary list of roles.
-
-
-
Method Detail
-
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
-
-