@Beta
@Consumes(value="application/json")
@Path(value="/tenants")
public interface TenantAdminApi
Modifier and Type | Method and Description |
---|---|
void |
addRoleOnTenant(String tenantId,
String userId,
String roleId)
Adds role to a user on a tenant
|
Tenant |
create(String name)
Creates a new tenant
|
Tenant |
create(String name,
CreateTenantOptions options)
Creates a new tenant
|
boolean |
delete(String userId)
Deletes a tenant
|
boolean |
deleteRoleOnTenant(String tenantId,
String userdId,
String roleId)
Deletes role to a user on tenant
|
Tenant |
update(String id,
UpdateTenantOptions options)
Updates a tenant
|
@Named(value="tenant:create") @POST @Produces(value="application/json") @Nullable Tenant create(String name)
@Named(value="tenant:create") @POST @Nullable Tenant create(String name, CreateTenantOptions options)
@Named(value="tenant:delete") @DELETE @Path(value="/{id}") boolean delete(@PathParam(value="id") String userId)
@Named(value="tenant:updateTenant") @PUT @Path(value="/{id}") @Nullable Tenant update(@PathParam(value="id") String id, UpdateTenantOptions options)
@Named(value="tenant:addRoleOnTenant") @PUT @Path(value="/{id}/users/{userId}/roles/OS-KSADM/{roleId}") void addRoleOnTenant(@PathParam(value="id") String tenantId, @PathParam(value="userId") String userId, @PathParam(value="roleId") String roleId)
@Named(value="tenant:deleteRoleOnTenant") @DELETE @Path(value="/{id}/users/{userId}/roles/OS-KSADM/{roleId}") boolean deleteRoleOnTenant(@PathParam(value="id") String tenantId, @PathParam(value="userId") String userdId, @PathParam(value="roleId") String roleId)
Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.