@Beta
@Path(value="OS-KSADM/roles")
public interface RoleAdminApi
| Modifier and Type | Method and Description |
|---|---|
Role |
create(String name)
Creates a new Role
|
boolean |
delete(String roleId)
Deletes a role
|
Role |
get(String roleId)
Gets the role
|
com.google.common.collect.FluentIterable<? extends Role> |
list()
Returns a summary list of roles.
|
@Named(value="role:list") @GET @Consumes(value="application/json") com.google.common.collect.FluentIterable<? extends Role> list()
@Named(value="role:create") @POST @Produces(value="application/json") @Nullable Role create(String name)
@Named(value="role:get")
@GET
@Path(value="/{id}")
@Nullable
Role get(@PathParam(value="id")
String roleId)
@Named(value="role:delete")
@DELETE
@Path(value="/{id}")
@Consumes
boolean delete(@PathParam(value="id")
String roleId)
Copyright © 2009–2021 The Apache Software Foundation. All rights reserved.