-
Notifications
You must be signed in to change notification settings - Fork 4
2.5 Group actions
jwebs1 edited this page Jul 6, 2015
·
2 revisions
The SDK supports the following server operations that use group criteria.
1. Power on a group of servers
serverService.powerOn(group);
serverService.powerOn(group1, group2);
serverService.powerOn(groupFilter);
2. Power off a group of servers
serverService.powerOff(group);
serverService.powerOff(group1, group2);
serverService.powerOff(groupFilter);
3. Start the maintenance mode for a group of servers
serverService.startMaintenance(group);
serverService.startMaintenance(group1, group2);
serverService.startMaintenance(groupFilter);
4. Stop the maintenance mode for a group of servers
serverService.stopMaintenance(group);
serverService.stopMaintenance(group1, group2);
serverService.stopMaintenance(groupFilter);
5. Pause a group of servers
serverService.pause(group);
serverService.pause(group1, group2);
serverService.pause(groupFilter);
6. Reboot a group of servers
serverService.reboot(group);
serverService.reboot(group1, group2);
serverService.reboot(groupFilter);
7. Reset a group of servers
serverService.reset(group);
serverService.reset(group1, group2);
serverService.reset(groupFilter);
8. Shut down a group of servers
serverService.shutDown(group);
serverService.shutDown(group1, group2);
serverService.shutDown(groupFilter);
9. Archive a group of servers
serverService.archive(group);
serverService.archive(group1, group2);
serverService.archive(groupFilter);
10. Create a snapshot for a group of servers
serverService.createSnapshot(expirationDays, group);
serverService.createSnapshot(expirationDays, group1, group2);
serverService.createSnapshot(expirationDays, groupFilter);
It is also possible to wait until the operation has been completed (see the example below).
serverService
.archive(group)
.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