Interface MorpheusSynchronousComputeServerGroupService
- All Superinterfaces:
MorpheusSynchronousDataService<ComputeServerGroup,,ComputeServerGroup> MorpheusSynchronousIdentityService<ComputeServerGroup>
public interface MorpheusSynchronousComputeServerGroupService
extends MorpheusSynchronousDataService<ComputeServerGroup,ComputeServerGroup>, MorpheusSynchronousIdentityService<ComputeServerGroup>
-
Method Summary
Modifier and TypeMethodDescriptionaddServerGroupServers(ComputeServerGroup cluster, ComputeTypeLayout layout, AddServerGroupServersRequest request) Add one or more servers to an existing cluster.getType()Returns the Compute Server Group Type ServiceMethods inherited from interface com.morpheusdata.core.MorpheusSynchronousDataService
bulkCreate, bulkRemove, bulkSave, count, create, create, find, get, getDataService, list, listById, listOptions, remove, remove, save, save, searchMethods inherited from interface com.morpheusdata.core.MorpheusSynchronousIdentityService
getDataIdentityService, listIdentityProjections
-
Method Details
-
getType
Returns the Compute Server Group Type Service- Returns:
- An instance of the Compute Server Group Type Service
-
addServerGroupServers
ServiceResponse<List<ComputeServer>> addServerGroupServers(ComputeServerGroup cluster, ComputeTypeLayout layout, AddServerGroupServersRequest request) Add one or more servers to an existing cluster. Follows the same flow as thePOST /api/clusters/:id/serversREST API endpoint, including license checks, policy enforcement, and async provisioning.- Parameters:
cluster- the target cluster (server group)layout- the ComputeTypeLayout to use for provisioningrequest- the request object describing the server(s) to add- Returns:
- a
ServiceResponsecontaining the list of provisionedComputeServerobjects on success - Since:
- 1.4.0
-