Package com.morpheusdata.request
Class RemoveHostRequest
java.lang.Object
com.morpheusdata.request.RemoveHostRequest
Request object for removing a host via
MorpheusComputeServerService.removeHost(com.morpheusdata.model.ComputeServer, com.morpheusdata.request.RemoveHostRequest).- Since:
- 1.4.2
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanWhentrue, force the removal and bypass safety checks (for example the pre-flight/canDeleteServervalidation).booleanWhentrue, also remove any instances associated with the host.booleanWhentrue, also delete the backing cloud resources (the underlying VM/disks) rather than only removing the host record from Morpheus.booleanWhentrue, skip enforcement of removal policies for this host.Optional id of the user requesting the removal, recorded for auditing/attribution. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
force
public boolean forceWhentrue, force the removal and bypass safety checks (for example the pre-flight/canDeleteServervalidation). Use with care. Defaults tofalse. -
removeResources
public boolean removeResourcesWhentrue, also delete the backing cloud resources (the underlying VM/disks) rather than only removing the host record from Morpheus. Defaults tofalse. -
removeInstances
public boolean removeInstancesWhentrue, also remove any instances associated with the host. Defaults tofalse. -
userId
Optional id of the user requesting the removal, recorded for auditing/attribution. Passed byidas a reference to a persisted user;nullattributes the action to the system. -
skipPolicyCheck
public boolean skipPolicyCheckWhentrue, skip enforcement of removal policies for this host. Defaults tofalse.
-
-
Constructor Details
-
RemoveHostRequest
public RemoveHostRequest()
-