Package com.morpheusdata.core.providers
Interface ProvisionProvider.ConvertToManagedFacet
- Enclosing interface:
- ProvisionProvider
public static interface ProvisionProvider.ConvertToManagedFacet
Provides methods for hooks for converting pre-provisioned ComputeServers to managed Instances
- Since:
- 1.2.13
-
Method Summary
Modifier and TypeMethodDescriptionafterConvertToManaged(AfterConvertToManagedRequest afterConvertToManagedRequest) beforeConvertToManaged(BeforeConvertToManagedRequest beforeConvertToManagedRequest) Validates that a pre-provisioned server is eligible to be converted to managed (or added as a node to an existing instance).
-
Method Details
-
validateConvertToManaged
default ServiceResponse<ValidateConvertToManagedResponse> validateConvertToManaged(ValidateConvertToManagedRequest request) Validates that a pre-provisioned server is eligible to be converted to managed (or added as a node to an existing instance). Called synchronously before the async conversion job is queued, so a failure response causes the endpoint to return an immediate HTTP error.The default implementation always returns success and is a no-op for providers that do not require pre-validation.
- Parameters:
request- contains theComputeServerto be validated- Returns:
- a
ServiceResponsewhosesuccessflag indicates whether the conversion may proceed. On failure, populatemsgand/orerrorswith human-readable details. - Since:
- 1.4.1
-
beforeConvertToManaged
ServiceResponse<BeforeConvertToManagedResponse> beforeConvertToManaged(BeforeConvertToManagedRequest beforeConvertToManagedRequest) -
afterConvertToManaged
ServiceResponse<AfterConvertToManagedResponse> afterConvertToManaged(AfterConvertToManagedRequest afterConvertToManagedRequest)
-