@Path(value="/users") @Consumes(value="application/json") @Produces(value="application/vnd.ilandcloud.api.v1.0+json") public interface UserResource extends Serializable
Modifier and Type | Method and Description |
---|---|
void |
delete(String username)
Deletes a user.
|
void |
deleteCompanyRole(String username,
String companyId)
Deletes a user's role within a specified company.
|
void |
endAllActiveSessions(String username)
Ends all active sessions for the user.
|
void |
endSession(String username,
String sessionId)
Ends a session for a user.
|
AccountEventListResponse |
getAccountEvents(String username,
Integer offset,
Integer limit,
Long dateFrom,
Long dateTo)
Gets account event logs.
|
UserSessionListResponse |
getActiveSessions(String username)
Gets a user's current sessions.
|
OrgListResponse |
getAllUserOrgs(String username)
Gets the list of orgs that the user has access to.
|
CatalogListResponse |
getCatalogsForUser(String username,
String companyId,
String locationId)
Get the catalogs for the given company and user.
|
VccBackupTenantListResponse |
getCloudTenantsForUser(String username,
String companyId,
String locationId)
Get the vcc cloud tenants for company and user.
|
CompanyListResponse |
getCompanies(String username)
Gets the list of companies that the user has access to.
|
RoleResponse |
getCompanyRole(String username,
String companyId)
Get the company role for a specified user.
|
EdgeListResponse |
getEdgesForUser(String username,
String companyId,
String locationId)
Get the edges for a company and user.
|
UserEntityHistorySubscriptionListResponse |
getEntityHistorySubscriptions(String username)
Get entity history subscriptions for a given user.
|
UserInventoryResponse |
getInventory(String username,
String companyId)
Gets the inventory hierarchy for a user.
|
LoginEventListResponse |
getLoginEvents(String username,
Integer offset,
Integer limit)
Get login events for a user.
|
MediaListResponse |
getMediaForUser(String username,
String companyId,
String locationId)
Get the media for a company and user.
|
OrgListResponse |
getOrgsForUser(String username,
String companyId,
String locationId)
Get the orgs for a company and user.
|
OrgVdcNetworkListResponse |
getOrgVdcNetworksForUser(String username,
String companyId,
String locationId)
Get the org vdc networks for the company and user.
|
UserPreferencesResponse |
getPreferences(String username)
Retrieve user preferences section.
|
UserResponse |
getUser(String username)
Returns the user specified by their username.
|
UserAlertEmailsResponse |
getUserAlertEmails(String username)
Get the set of user alerting emails for a given username.
|
VappNetworkListResponse |
getVappNetworksForUser(String username,
String companyId,
String locationId)
Get the vapp networks for the company and user.
|
VappListResponse |
getVappsForUser(String username,
String companyId,
String locationId)
Get the vApps for a company and user.
|
VappTemplateListResponse |
getVappTemplatesForUser(String username,
String companyId,
String locationId)
Get the vApp templates for a company and user.
|
VccFailoverPlanListResponse |
getVccFailoverPlansForUser(String username,
String companyId,
String locationId)
Get all VCC-R failover plans for a company and user.
|
VccBackupTenantListResponse |
getVccInventory(String username)
Get the VCC inventory for a user.
|
VdcListResponse |
getVdcsForUser(String username,
String companyId,
String locationId)
Get the vDCs for a company and user.
|
VmListResponse |
getVmsForUser(String username,
String companyId,
String locationId)
Get the VMs for a company and user.
|
ExpandedVpgListResponse |
getVpgsForUser(String username,
String companyId,
String locationId,
List<VpgSubEntityRequest> expand)
Get the VPGs for company and user.
|
void |
registerDeviceForPushNotifications(String username,
DeviceRegistrationRequest registration)
Registers a mobile device for push notifications
|
void |
removeEntityHistorySubscription(String username,
UserEntityHistorySubscriptionDeleteRequest sub)
Remove an entity history subscription.
|
UserEntityHistorySubscriptionResponse |
subscribeToEntityHistory(String username,
UserEntityHistorySubscriptionCreateRequest sub)
Add an entity history subscription.
|
UserAlertEmailsResponse |
updateAlertEmails(String username,
UserAlertEmailsCreateRequest userAlertEmails)
Store the set of user alerting emails for a given username.
|
void |
updateCompanyRole(String username,
String companyId,
UserRoleUpdateRequest userRoleUpdateRequest)
Update the company role for a specified user.
|
UserPreferencesResponse |
updatePreferences(String username,
UserPreferencesCreateRequest request)
Store / update user preferences section.
|
UserResponse |
updateUser(String username,
UserUpdateRequest request)
Updates a user's information.
|
@POST @Consumes(value="application/json") @Path(value="/{username}/actions/register-device") void registerDeviceForPushNotifications(@PathParam(value="username") String username, DeviceRegistrationRequest registration)
username
- user's username@GET @Path(value="/{username}") @Produces(value="application/vnd.ilandcloud.api.v1.0+json") UserResponse getUser(@PathParam(value="username") String username)
username
- the user's username@PUT @Path(value="/{username}") @Consumes(value="application/json") @Produces(value="application/vnd.ilandcloud.api.v1.0+json") UserResponse updateUser(@PathParam(value="username") String username, UserUpdateRequest request)
username
- the user's username@GET @Path(value="/{username}/sessions") @Produces(value="application/vnd.ilandcloud.api.v1.0+json") UserSessionListResponse getActiveSessions(@PathParam(value="username") String username)
username
- unique username as seen by iland AD@DELETE @Path(value="/{username}/sessions") @Produces(value="application/vnd.ilandcloud.api.v1.0+json") void endAllActiveSessions(@PathParam(value="username") String username)
username
- the username to get sessions for@DELETE @Path(value="/{username}/sessions/{sessionId}") void endSession(@PathParam(value="username") String username, @PathParam(value="sessionId") String sessionId)
@GET @Path(value="/{username}/account-events") @Produces(value="application/vnd.ilandcloud.api.v1.0+json") AccountEventListResponse getAccountEvents(@PathParam(value="username") String username, @QueryParam(value="offset") Integer offset, @QueryParam(value="limit") Integer limit, @QueryParam(value="dateFrom") Long dateFrom, @QueryParam(value="dateTo") Long dateTo)
username
- String
the username of the user@POST @Path(value="/{username}/actions/subscribe-to-entity-history") @Consumes(value="application/json") @Produces(value="application/vnd.ilandcloud.api.v1.0+json") UserEntityHistorySubscriptionResponse subscribeToEntityHistory(@PathParam(value="username") String username, UserEntityHistorySubscriptionCreateRequest sub)
username
- usernamesub
- subscription details@POST @Path(value="/{username}/actions/unsubscribe-from-entity-history") @Consumes(value="application/json") @Produces(value="application/vnd.ilandcloud.api.v1.0+json") void removeEntityHistorySubscription(@PathParam(value="username") String username, UserEntityHistorySubscriptionDeleteRequest sub)
username
- usernamesub
- subscription details@GET @Path(value="/{username}/entity-history-subscriptions") @Produces(value="application/vnd.ilandcloud.api.v1.0+json") UserEntityHistorySubscriptionListResponse getEntityHistorySubscriptions(@PathParam(value="username") String username)
username
- username@GET @Path(value="/{username}/preferences") @Produces(value="application/vnd.ilandcloud.api.v1.0+json") UserPreferencesResponse getPreferences(@PathParam(value="username") String username)
username
- username to retrieve preferences for@PUT @Path(value="/{username}/preferences") @Consumes(value="application/json") @Produces(value="application/vnd.ilandcloud.api.v1.0+json") UserPreferencesResponse updatePreferences(@PathParam(value="username") String username, UserPreferencesCreateRequest request)
username
- username to store preferences for@DELETE @Path(value="/{username}") void delete(@PathParam(value="username") String username)
username
- username of the user to delete@GET @Path(value="/{username}/login-events") @Produces(value="application/vnd.ilandcloud.api.v1.0+json") LoginEventListResponse getLoginEvents(@PathParam(value="username") String username, @QueryParam(value="offset") Integer offset, @QueryParam(value="limit") Integer limit)
username
- the user's usernameoffset
- the offset of the first event to retrievelimit
- the limit of the number of login events to retrieve@GET @Path(value="/{username}/alert-emails") @Produces(value="application/vnd.ilandcloud.api.v1.0+json") UserAlertEmailsResponse getUserAlertEmails(@PathParam(value="username") String username)
username
- the user's username@POST @Path(value="/{username}/actions/update-alert-emails") @Consumes(value="application/json") @Produces(value="application/vnd.ilandcloud.api.v1.0+json") UserAlertEmailsResponse updateAlertEmails(@PathParam(value="username") String username, UserAlertEmailsCreateRequest userAlertEmails)
username
- the user's usernameuserAlertEmails
- set of alerting emails for the user@GET @Path(value="/{username}/inventory") @Produces(value="application/vnd.ilandcloud.api.v1.0+json") UserInventoryResponse getInventory(@PathParam(value="username") String username, @QueryParam(value="company") String companyId)
username
- the username of the usercompanyId
- optional company ID parameter that may be used to restrict
the results to just those within a specific company@GET @Path(value="/{username}/vcc-inventory") @Produces(value="application/vnd.ilandcloud.api.v1.0+json") VccBackupTenantListResponse getVccInventory(@PathParam(value="username") String username)
username
- the username of the user@GET @Path(value="/{username}/roles/{companyId}") @Produces(value="application/vnd.ilandcloud.api.v1.0+json") RoleResponse getCompanyRole(@PathParam(value="username") String username, @PathParam(value="companyId") String companyId)
username
- the username of the usercompanyId
- the company ID@PUT @Path(value="/{username}/roles/{companyId}") @Consumes(value="application/json") @Produces(value="application/vnd.ilandcloud.api.v1.0+json") void updateCompanyRole(@PathParam(value="username") String username, @PathParam(value="companyId") String companyId, UserRoleUpdateRequest userRoleUpdateRequest)
username
- the username of the usercompanyId
- the company IDuserRoleUpdateRequest
- the data object specifying role update
parameters@DELETE @Path(value="/{username}/roles/{companyId}") @Produces(value="application/vnd.ilandcloud.api.v1.0+json") void deleteCompanyRole(@PathParam(value="username") String username, @PathParam(value="companyId") String companyId)
username
- the username of the usercompanyId
- the company ID@GET @Path(value="/{username}/companies") @Produces(value="application/vnd.ilandcloud.api.v1.0+json") CompanyListResponse getCompanies(@PathParam(value="username") String username)
username
- the username of the user@GET @Path(value="/{username}/orgs") @Produces(value="application/vnd.ilandcloud.api.v1.0+json") OrgListResponse getAllUserOrgs(@PathParam(value="username") String username)
username
- the username of the user@GET @Path(value="/{username}/companies/{companyId}/orgs") @Produces(value="application/vnd.ilandcloud.api.v1.0+json") OrgListResponse getOrgsForUser(@PathParam(value="username") String username, @PathParam(value="companyId") String companyId, @QueryParam(value="location") String locationId)
username
- the username of the usercompanyId
- the company IDlocationId
- the location ID@GET @Path(value="/{username}/companies/{companyId}/vdcs") @Produces(value="application/vnd.ilandcloud.api.v1.0+json") VdcListResponse getVdcsForUser(@PathParam(value="username") String username, @PathParam(value="companyId") String companyId, @QueryParam(value="location") String locationId)
username
- the username of the usercompanyId
- the company IDlocationId
- the location ID@GET @Path(value="/{username}/companies/{companyId}/vapps") @Produces(value="application/vnd.ilandcloud.api.v1.0+json") VappListResponse getVappsForUser(@PathParam(value="username") String username, @PathParam(value="companyId") String companyId, @QueryParam(value="location") String locationId)
username
- the username of the usercompanyId
- the company IDlocationId
- the location ID@GET @Path(value="/{username}/companies/{companyId}/vms") @Produces(value="application/vnd.ilandcloud.api.v1.0+json") VmListResponse getVmsForUser(@PathParam(value="username") String username, @PathParam(value="companyId") String companyId, @QueryParam(value="location") String locationId)
username
- the username of the usercompanyId
- the company IDlocationId
- the location ID@GET @Path(value="/{username}/companies/{companyId}/media") @Produces(value="application/vnd.ilandcloud.api.v1.0+json") MediaListResponse getMediaForUser(@PathParam(value="username") String username, @PathParam(value="companyId") String companyId, @QueryParam(value="location") String locationId)
username
- the username of the usercompanyId
- the company IDlocationId
- the location ID@GET @Path(value="/{username}/companies/{companyId}/vapp-templates") @Produces(value="application/vnd.ilandcloud.api.v1.0+json") VappTemplateListResponse getVappTemplatesForUser(@PathParam(value="username") String username, @PathParam(value="companyId") String companyId, @QueryParam(value="location") String locationId)
username
- the username of the usercompanyId
- the company IDlocationId
- the location ID@GET @Path(value="/{username}/companies/{companyId}/edges") @Produces(value="application/vnd.ilandcloud.api.v1.0+json") EdgeListResponse getEdgesForUser(@PathParam(value="username") String username, @PathParam(value="companyId") String companyId, @QueryParam(value="location") String locationId)
username
- the username of the usercompanyId
- the company IDlocationId
- the location ID@GET @Path(value="/{username}/companies/{companyId}/vpgs") @Produces(value="application/vnd.ilandcloud.api.v1.0+json") ExpandedVpgListResponse getVpgsForUser(@PathParam(value="username") String username, @PathParam(value="companyId") String companyId, @QueryParam(value="location") String locationId, @QueryParam(value="expand") List<VpgSubEntityRequest> expand)
username
- the username of the usercompanyId
- the company IDlocationId
- the location ID@GET @Path(value="/{username}/companies/{companyId}/vcc-failover-plans") @Produces(value="application/vnd.ilandcloud.api.v1.0+json") VccFailoverPlanListResponse getVccFailoverPlansForUser(@PathParam(value="username") String username, @PathParam(value="companyId") String companyId, @QueryParam(value="location") String locationId)
username
- the username of the usercompanyId
- the company IDlocationId
- the location ID@GET @Path(value="/{username}/companies/{companyId}/vcc-backup-tenants") @Produces(value="application/vnd.ilandcloud.api.v1.0+json") VccBackupTenantListResponse getCloudTenantsForUser(@PathParam(value="username") String username, @PathParam(value="companyId") String companyId, @QueryParam(value="location") String locationId)
username
- the username of the usercompanyId
- the company IDlocationId
- the location ID@GET @Path(value="/{username}/companies/{companyId}/org-vdc-networks") @Produces(value="application/vnd.ilandcloud.api.v1.0+json") OrgVdcNetworkListResponse getOrgVdcNetworksForUser(@PathParam(value="username") String username, @PathParam(value="companyId") String companyId, @QueryParam(value="location") String locationId)
username
- the username of the usercompanyId
- the company IDlocationId
- the location ID@GET @Path(value="/{username}/companies/{companyId}/vapp-networks") @Produces(value="application/vnd.ilandcloud.api.v1.0+json") VappNetworkListResponse getVappNetworksForUser(@PathParam(value="username") String username, @PathParam(value="companyId") String companyId, @QueryParam(value="location") String locationId)
username
- the username of the usercompanyId
- the company IDlocationId
- the location ID@GET @Path(value="/{username}/companies/{companyId}/catalogs") @Produces(value="application/vnd.ilandcloud.api.v1.0+json") CatalogListResponse getCatalogsForUser(@PathParam(value="username") String username, @PathParam(value="companyId") String companyId, @QueryParam(value="location") String locationId)
username
- the username of the usercompanyId
- the company IDlocationId
- the location IDCopyright © 2019 iland Internet Solutions, Corp. All rights reserved.