public class ServersApi extends Object
| Constructor and Description |
|---|
ServersApi(ApiClient api)
ServersApi constructor.
|
| Modifier and Type | Method and Description |
|---|---|
List<ServerGroup> |
addGroupToGroup(long childId,
long parentId)
Add an existing server group to another server group.
|
List<Server> |
addServerToGroup(long serverId,
long groupId)
Add an existing server to a server group.
|
List<Server> |
all()
Get all servers.
|
List<Server> |
all(Options options)
Get all servers.
|
Msg |
delete(long serverId)
Delete a specific server.
|
Msg |
deleteGroupFromGroup(long childId,
long parentId)
Delete a server group from another server group.
|
Msg |
deleteServerFromGroup(long serverId,
long groupId)
Delete a server from a server group.
|
Msg |
deleteServerGroup(long id)
Delete a specific server group.
|
List<ServerGroup> |
getAllServerGroups()
Get all server groups.
|
List<ServerGroup> |
getAllServerGroups(Options options)
Get all server groups.
|
List<Server> |
getGroupServers(long groupId)
* Get all servers in the server group.
|
List<ServerGroup> |
getGroupsFromGroup(long groupId)
Get all child server groups for a server group.
|
Server |
getServer(long serverId)
Get the a specific server by his id.
|
Server |
getServer(long serverId,
Options options)
Get the a specific server by his id.
|
ServerGroup |
getServerGroup(long id)
Get a specific server group.
|
Server |
insert(ServerInsert serverInsert)
Insert a new server.
|
ServerGroup |
insertServerGroup(ServerGroupInsert serverGroup)
Insert a new server group.
|
public ServersApi(ApiClient api)
api - ApiClient.public List<Server> all() throws IOException
IOExceptionpublic List<Server> all(Options options) throws IOException
options - which contain query parametersIOExceptionpublic Server getServer(long serverId) throws IOException
serverId - the id of the server.IOExceptionpublic Server getServer(long serverId, Options options) throws IOException
serverId - the id of the server.options - which contain query parametersIOExceptionpublic Server insert(ServerInsert serverInsert) throws IOException
serverInsert - the server to be added.IOExceptionpublic Msg delete(long serverId) throws IOException
serverId - the id of the server to be deleted.IOExceptionpublic List<ServerGroup> getAllServerGroups() throws IOException
IOExceptionpublic List<ServerGroup> getAllServerGroups(Options options) throws IOException
options - filter the ServerGroups. e.g. filter by server name.IOExceptionpublic ServerGroup getServerGroup(long id) throws IOException
id - the id of the server group.IOExceptionpublic ServerGroup insertServerGroup(ServerGroupInsert serverGroup) throws IOException
serverGroup - the server group to insert.IOExceptionpublic Msg deleteServerGroup(long id) throws IOException
id - the id of the server group.IOExceptionpublic List<ServerGroup> addGroupToGroup(long childId, long parentId) throws IOException
childId - parentId - IOExceptionpublic List<Server> addServerToGroup(long serverId, long groupId) throws IOException
serverId - groupId - IOExceptionpublic List<Server> getGroupServers(long groupId) throws IOException
groupId - the id of the server group.IOExceptionpublic Msg deleteServerFromGroup(long serverId, long groupId) throws IOException
serverId - the id of the server.groupId - the id of the group.IOExceptionpublic List<ServerGroup> getGroupsFromGroup(long groupId) throws IOException
groupId - the if of the group.IOExceptionpublic Msg deleteGroupFromGroup(long childId, long parentId) throws IOException
childId - the id of the group that will be removed.parentId - the id of the group from which the child group will be
removed.IOExceptionCopyright © 2016. All rights reserved.