-
Notifications
You must be signed in to change notification settings - Fork 4
2.2 Server actions
The SDK provides the possibility to perform the following operations on one server or a group of servers.
1. Power on a single server or group of servers:
serverService.powerOn(server);
serverService.powerOn(server1, server2);
serverService.powerOn(serverFilter);
2. Power off a single server or group of servers:
serverService.powerOff(server);
serverService.powerOff(server1, server2);
serverService.powerOff(serverFilter);
3. Start the maintenance mode on a single server or group of servers:
serverService.startMaintenance(server);
serverService.startMaintenance(server1, server2);
serverService.startMaintenance(serverFilter);
4. Stop the maintenance mode on a single server or group of servers:
serverService.stopMaintenance(server);
serverService.stopMaintenance(server1, server2);
serverService.stopMaintenance(serverFilter);
5. Pause a single server or group of servers:
serverService.pause(server);
serverService.pause(server1, server2);
serverService.pause(serverFilter);
6. Reboot a single server or group of servers:
serverService.reboot(server);
serverService.reboot(server1, server2);
serverService.reboot(serverFilter);
7. Reset a single server or group of servers:
serverService.reset(server);
serverService.reset(server1, server2);
serverService.reset(serverFilter);
8. Shut down a single server or group of servers:
serverService.shutDown(server);
serverService.shutDown(server1, server2);
serverService.shutDown(serverFilter);
9. Archive a single server or group of servers:
serverService.archive(server);
serverService.archive(server1, server2);
serverService.archive(serverFilter);
10. Create a snapshot of a single server or group of servers:
serverService.createSnapshot(expirationDays, server);
serverService.createSnapshot(expirationDays, server1, server2);
serverService.createSnapshot(expirationDays, serverFilter);
11. Create a snapshot of a single server or group of servers with default expiration dates:
serverService.createSnapshot(server);
serverService.createSnapshot(server1, server2);
serverService.createSnapshot(serverFilter);
12. Delete a snapshot of a server or group of servers:
serverService.deleteSnapshot(server);
serverService.deleteSnapshot(server1, server2);
serverService.deleteSnapshot(serverFilter);
13. Restore a server or group of servers:
serverService.restore(server, group);
serverService.restore(groupId, server1, server2);
serverService.restore(serverList, groupId);
14. Revert a single server or group of servers to a snapshot:
serverService.revertToSnapshot(server);
serverService.revertToSnapshot(server1, server2);
serverService.revertToSnapshot(serverFilter);
Additionally, you can wait until an operation is complete, using:
serverService
.revertToSnapshot(server)
.waitUntilComplete()
- [Getting Started] (./1.-Getting-started)
- User Guide - Basic Functions
- Server management
- Server actions
- Managing groups
- Group actions
- Searching templates
- Searching data centers
- Invoice statistics
- SDK configuration
- User Guide - Advanced Functions
- Configuring remote servers over SSH
- Defining a group hierarchy
- Billing statistics
- Server monitoring statistics
- Policies management
- Shared load balancers management
- User Guide - Framework adapters