Interface HostProvisionProvider.ResizeFacet

Enclosing interface:
HostProvisionProvider

public static interface HostProvisionProvider.ResizeFacet
Allows the server to be resized
Since:
0.15.3
  • Method Details

    • resizeServer

      ServiceResponse resizeServer(ComputeServer server, ResizeRequest resizeRequest, Map opts)
      Request to scale the size of the ComputeServer. It is up to implementations to create the volumes, set the memory, etc on the underlying ComputeServer in the cloud environment. In addition, implementations of this method should add, remove, and update the StorageVolumes, StorageControllers, ComputeServerInterface in the cloud environment with the requested attributes and then save these attributes on the models in Morpheus. This requires adding, removing, and saving the various models to the ComputeServer using the appropriate contexts. The ServicePlan, memory, cores, coresPerSocket, maxStorage values defined on ResizeRequest will be set on the ComputeServer upon return of a successful ServiceResponse
      Parameters:
      server - to resize
      resizeRequest - the resize requested parameters
      opts - additional options
      Returns:
      Response from the API