public interface ITenantAPI
| Modifier and Type | Method and Description |
|---|---|
CreateTenantResponse |
addTenant(CreateTenantRequest createTenantRequest)
Add a new tenant.
|
DeleteTenantResponse |
deleteTenant(java.lang.String tenantName,
java.lang.String sID)
Delete a tenant by name.
|
DeleteTenantResponse |
deleteTenantById(java.lang.Integer tenantID,
java.lang.String sID)
Delete tenant by tenant's ID.
|
TenantElement |
getTenant(java.lang.String tenantName,
java.lang.String sID)
Retrieve a tenant by name.
|
TenantElement |
getTenantById(java.lang.Integer tenantID,
java.lang.String sID)
Retrieve a tenant by tenant's ID.
|
TenantListing |
listAllTenants(java.lang.String sID)
Retrieve information about all tenants.
|
UpdateTenantResponse |
updateTenant(java.lang.String tenantName,
UpdateTenantRequest updateTenantRequest)
Update a tenant's information.
|
TenantListing listAllTenants(java.lang.String sID) throws java.lang.Exception
sID - session ID.java.lang.ExceptionCreateTenantResponse addTenant(CreateTenantRequest createTenantRequest) throws java.lang.Exception
createTenantRequest - contains options to be used for the creation of the new tenant.200 OK and a body containing tenant details when adding the tenant succeeds.
If parameter validation fails, it will return a response with status 400 Bad Request and a body containing an ErrorMessage.
If parameter validation succeeds but creation of the tenant fails, the tenant will be left in
a partially created state, and will need to be deleted.java.lang.ExceptionUpdateTenantResponse updateTenant(java.lang.String tenantName, UpdateTenantRequest updateTenantRequest) throws java.lang.Exception
tenantName - The name of the tenant to update.updateTenantRequest - 200 OK and a body containing response information when updating the tenant succeeds.
If tenant name is null or empty, or an attempt is made to modify the name, it will return a
response with status 400 Bad Request and a body containing an ErrorMessage.
If the tenant does not exist, it will return a response with status 404 Not Found.java.lang.ExceptionTenantElement getTenant(java.lang.String tenantName, java.lang.String sID) throws java.lang.Exception
tenantName - The tenant's namesID - session ID.java.lang.ExceptionTenantElement getTenantById(java.lang.Integer tenantID, java.lang.String sID) throws java.lang.Exception
tenantID - The ID of the tenant to retrieve.sID - session ID.java.lang.ExceptionDeleteTenantResponse deleteTenant(java.lang.String tenantName, java.lang.String sID) throws java.lang.Exception
tenantName - The name of the tenant to delete.sID - session ID.200 OK and a body containing response information when deletion succeeds.
If the tenant does not exist, it will return a response with status 404 Not Found and a body containing an ErrorMessage.java.lang.ExceptionDeleteTenantResponse deleteTenantById(java.lang.Integer tenantID, java.lang.String sID) throws java.lang.Exception
tenantID - The ID of the tenant to delete.sID - session ID.200 OK and a body containing response information when deletion succeeds.
If the tenant does not exist, it will return a response with status 404 Not Found and a body containing an ErrorMessage.java.lang.ExceptionCopyright © 2015 Trend Micro Inc. All Rights Reserved.