Interface MorpheusVirtualImageLocationService

All Superinterfaces:
MorpheusDataService<VirtualImageLocation,VirtualImageLocationIdentityProjection>, MorpheusIdentityService<VirtualImageLocationIdentityProjection>

Context methods for syncing VirtualImageLocations in Morpheus. It can normally be accessed via the primary MorpheusContext via the MorpheusVirtualImageService

Examples:


 morpheusContext.getVirtualImage().getLocation()
 
See Also:
  • Method Details

    • listIdentityProjections

      io.reactivex.rxjava3.core.Observable<VirtualImageLocationIdentityProjection> listIdentityProjections(Long cloudId, String regionCode)
      Get a list of VirtualImageLocation projections based on Cloud id
      Parameters:
      cloudId - Cloud id
      regionCode - the CloudRegion to optionally filter by
      Returns:
      Observable stream of sync projection
    • listSyncProjections

      @Deprecated io.reactivex.rxjava3.core.Observable<VirtualImageLocationIdentityProjection> listSyncProjections(Long cloudId)
      Deprecated.
      Get a list of VirtualImageLocation projections based on Cloud id
      Parameters:
      cloudId - Cloud id
      Returns:
      Observable stream of sync projection
    • findVirtualImageLocation

      @Deprecated(since="0.15.4") io.reactivex.rxjava3.core.Single<VirtualImageLocation> findVirtualImageLocation(Long virtualImageId, Long cloudId, String regionCode, String imageFolder, Boolean sharedStorage)
      Deprecated.
      Find a VirtualImageLocation given the parameters
      Parameters:
      virtualImageId - The VirtualImage to search against
      cloudId - The id of the Cloud to search against
      regionCode - The regionCode of the Cloud to search against (optional) Defaults to null
      imageFolder - The name of the ComputeZoneFolder to search within (optional) Defaults to null
      sharedStorage - Whether to search for VirtualImageLocations with sharedStorage (optional) Defaults to false.
      Returns:
      Observable VirtualImageLocation matching the parameters
    • findVirtualImageLocationByExternalIdForCloudAndType

      @Deprecated(since="0.15.4") io.reactivex.rxjava3.core.Single<Optional<VirtualImageLocation>> findVirtualImageLocationByExternalIdForCloudAndType(String externalId, Long cloudId, String regionCode, String imageType, Long accountId)
      Deprecated.
      Looks up a VirtualImageLocation by the externalId within the context of a cloud,region,type, and account This is useful if a request is made based on a clouds remote id as opposed to the morpheus id. (i.e. AMI lookup).
      Parameters:
      externalId - the external identifier in the cloud of this image (i.e. ami-adfadsf)
      cloudId - the id of the Cloud to scope the search to
      regionCode - the region code scope of the image
      imageType - image type to scope to
      accountId - optional accountId to scope it based on user access permissions on the lookup
      Returns:
      an optional VirtualImageLocation with parent VirtualImage (if it exists)
    • findVirtualImageLocationByExternalIdForCloudAndType

      @Deprecated(since="0.15.4") io.reactivex.rxjava3.core.Single<Optional<VirtualImageLocation>> findVirtualImageLocationByExternalIdForCloudAndType(String externalId, Long cloudId, String regionCode, String imageType)
      Deprecated.
      Looks up a VirtualImageLocation by the externalId within the context of a cloud,region,type, and account This is useful if a request is made based on a clouds remote id as opposed to the morpheus id. (i.e. AMI lookup).
      Parameters:
      externalId - the external identifier in the cloud of this image (i.e. ami-adfadsf)
      cloudId - the id of the Cloud to scope the search to
      regionCode - the region code scope of the image
      imageType - image type to scope to
      Returns:
      an optional VirtualImageLocation with parent VirtualImage (if it exists)
    • save

      io.reactivex.rxjava3.core.Single<Boolean> save(List<VirtualImageLocation> virtualImageLocations, Cloud cloud)
      Save updates to existing VirtualImageLocations
      Parameters:
      virtualImageLocations - updated VirtualImageLocations
      cloud - the Cloud instance
      Returns:
      success
    • create

      io.reactivex.rxjava3.core.Single<Boolean> create(List<VirtualImageLocation> virtualImageLocations, Cloud cloud)
      Create new VirtualImageLocations in Morpheus
      Parameters:
      virtualImageLocations - new VirtualImageLocations to persist
      cloud - the Cloud instance
      Returns:
      success
    • create

      io.reactivex.rxjava3.core.Single<VirtualImageLocation> create(VirtualImageLocation virtualImageLocation, Cloud cloud)
      Create a new VirtualImageLocation in Morpheus
      Parameters:
      virtualImageLocation - a new VirtualImageLocation to persist
      cloud - the Cloud instance
      Returns:
      success
    • remove

      @Deprecated(since="0.15.4") io.reactivex.rxjava3.core.Single<Boolean> remove(List<VirtualImageLocationIdentityProjection> virtualImageLocations)
      Remove persisted VirtualImageLocations from Morpheus
      Specified by:
      remove in interface MorpheusDataService<VirtualImageLocation,VirtualImageLocationIdentityProjection>
      Parameters:
      virtualImageLocations - to delete
      Returns:
      success
      See Also: