Interface ComputeImageService

  • All Superinterfaces:
    RestService
    All Known Implementing Classes:
    ComputeImageServiceImpl

    @Deprecated
    public interface ComputeImageService
    extends RestService
    Deprecated.
    These APIs are proxy calls to the Image service. Nova has deprecated all the proxy APIs and users should use the native APIs instead. All the Image services proxy APIs except image metadata APIs will fail with a 404 starting from microversion 2.36. The image metadata APIs will fail with a 404 starting from microversion 2.39.
    Provides access to Compute Images
    Author:
    Jeremy Unruh
    See Also:
    ImageService
    • Method Detail

      • list

        List<? extends Image> list()
        Deprecated.
        Lists Images on an OpenStack Compute EndPoint. By default this method lists in "Detail" which means all major fields are populated for each image. This is equivalent to calling list(boolean) with {code}true{code}
        Returns:
        List of Image
      • list

        List<? extends Image> list​(boolean detailed)
        Deprecated.
        Lists Images on an OpenStack Compute EndPoint. If detailed is false then only Image.getId(), Image.getName() and
        Parameters:
        detailed - true to populate all properties within each Image, false to include Id, Name and Links only (all other properties will be null)
        Returns:
        List of Image Image.getLinks() will be populated. True will populate all fields
      • get

        Image get​(String imageId)
        Deprecated.
        Finds an Image by the given imageId.
        Parameters:
        imageId - the image identifier
        Returns:
        the specified Image
      • delete

        ActionResponse delete​(String imageId)
        Deprecated.
        Deletes an Image based on it's identifiers. Images created by another user typically cannot be deleted
        Parameters:
        imageId - the image identifier
        Returns:
        the action response
      • getMetaData

        Map<String,​String> getMetaData​(String imageId)
        Deprecated.
        Gets the metadata for an image
        Parameters:
        imageId - the image identifier
        Returns:
        the metadata as Map
      • setMetaData

        Map<String,​String> setMetaData​(String imageId,
                                             Map<String,​String> metadata)
        Deprecated.
        Sets the metadata for an image
        Parameters:
        imageId - the image identifier
        metadata - a Map containing the metadata
        Returns:
        the metadata as Map
      • deleteMetaData

        ActionResponse deleteMetaData​(String imageId,
                                      String... keys)
        Deprecated.
        Delete a metadata item from an image
        Parameters:
        imageId - the image identifier
        keys - one or more keys/metadata names to remove
        Returns:
        the action response