org.jclouds.digitalocean.features
Interface ImageApi

All Superinterfaces:
Closeable

public interface ImageApi
extends Closeable

Provides access to the Image management features.

Author:
Sergi Castro, Ignasi Barrera

Method Summary
 void delete(int id)
          Deletes an existing image.
 Image get(int id)
          Gets the details of the given image.
 List<Image> list()
          Lists all available images.
 int transfer(int id, int regionId)
          Transfers the image to the given region.
 
Methods inherited from interface java.io.Closeable
close
 

Method Detail

list

List<Image> list()
Lists all available images.

Returns:
The list of all available images.

get

Image get(int id)
Gets the details of the given image.

Parameters:
id - The id of the image to get.
Returns:
The details of the image or null if no image exists with the given id.

delete

void delete(int id)
Deletes an existing image.

Parameters:
id - The id of the key pair.

transfer

int transfer(int id,
             int regionId)
Transfers the image to the given region.

Parameters:
id - The id of the image to transfer.
regionId - The id of the region to which the image will be transferred.
Returns:
The id of the event to track the transfer process.


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.