Interface TenantAdminApi
@Beta
@Consumes("application/json")
@Path("/tenants")
public interface TenantAdminApi
Provides access to Tenant Administration actions.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addRoleOnTenant
(String tenantId, String userId, String roleId) Adds role to a user on a tenantCreates a new tenantcreate
(String name, CreateTenantOptions options) Creates a new tenantboolean
Deletes a tenantboolean
deleteRoleOnTenant
(String tenantId, String userdId, String roleId) Deletes role to a user on tenantupdate
(String id, UpdateTenantOptions options) Updates a tenant
-
Method Details
-
create
Creates a new tenant- Returns:
- the new tenant
-
create
Creates a new tenant- Returns:
- the new tenant
-
delete
Deletes a tenant- Returns:
- true if successful
-
update
@Named("tenant:updateTenant") @PUT @Path("/{id}") @Nullable Tenant update(@PathParam("id") String id, UpdateTenantOptions options) Updates a tenant- Returns:
- the updated tenant
-
addRoleOnTenant
@Named("tenant:addRoleOnTenant") @PUT @Path("/{id}/users/{userId}/roles/OS-KSADM/{roleId}") void addRoleOnTenant(@PathParam("id") String tenantId, @PathParam("userId") String userId, @PathParam("roleId") String roleId) Adds role to a user on a tenant -
deleteRoleOnTenant
@Named("tenant:deleteRoleOnTenant") @DELETE @Path("/{id}/users/{userId}/roles/OS-KSADM/{roleId}") boolean deleteRoleOnTenant(@PathParam("id") String tenantId, @PathParam("userId") String userdId, @PathParam("roleId") String roleId) Deletes role to a user on tenant- Returns:
- true if successful
-