Interface MorpheusInstanceService


  • public interface MorpheusInstanceService
    Context methods for dealing with Instance in Morpheus
    • Method Detail

      • listById

        io.reactivex.Observable<Instance> listById​(java.util.Collection<java.lang.Long> ids)
        Get a list of Instance objects from a list of ids
        Parameters:
        ids - Instance ids
        Returns:
        Observable stream of Instance
      • save

        io.reactivex.Single<java.lang.Boolean> save​(java.util.List<Instance> instances)
        Save updates to existing Instance
        Parameters:
        instances - updated Instances
        Returns:
        success
      • delete

        io.reactivex.Single<ServiceResponse> delete​(Instance instance,
                                                    DeleteInstanceRequest deleteRequest)
        Delete the existing Instance from Morpheus and the resources from the underlying Cloud. Use with caution as resources within the Cloud will be deleted.
        Parameters:
        instance - Instance to delete
        deleteRequest - Options for the delete
        Returns:
        ServiceResponse indicating success or failure. This is an async request within Morpheus and the return will not capture any underlying errors experienced asynchronously.