@Consumes(value="application/json")
@Path(value="/v{jclouds.api-version}")
public interface ImageApi
Modifier and Type | Method and Description |
---|---|
InputStream |
createImage(CreateImageOptions options)
Create an image, either by pull it from the registry or by importing it
|
InputStream |
deleteImage(String name) |
InputStream |
deleteImage(String name,
DeleteImageOptions options) |
List<ImageHistory> |
getHistory(String name)
Return the history of the image with given
name . |
Image |
inspectImage(String imageName)
Return low-level information on the image with given name.
|
List<ImageSummary> |
listImages() |
List<ImageSummary> |
listImages(ListImageOptions options) |
void |
tagImage(String name,
String repoName,
String tag,
boolean force)
Tag the image name into a repository.
|
@Named(value="images:list") @GET @Path(value="/images/json") List<ImageSummary> listImages()
@Named(value="images:list") @GET @Path(value="/images/json") List<ImageSummary> listImages(ListImageOptions options)
options
- the configuration to list images (@see ListImageOptions)@Named(value="image:inspect") @GET @Path(value="/images/{name}/json") @Nullable Image inspectImage(@PathParam(value="name") String imageName)
Image
instance
are populated by this method (e.g. Image.repoTags()
).imageName
- The id of the image to inspect.@Named(value="image:create") @POST @Path(value="/images/create") InputStream createImage(CreateImageOptions options)
options
- the configuration to create an image (@see CreateImageOptions)@Named(value="image:delete") @DELETE @Path(value="/images/{name}") InputStream deleteImage(@PathParam(value="name") String name)
name
- the image name to be deleted@Named(value="image:delete") @DELETE @Path(value="/images/{name}") InputStream deleteImage(@PathParam(value="name") String name, DeleteImageOptions options)
name
- the name of the image to be removedoptions
- the image deletion's options (@see DeleteImageOptions)@Named(value="image:tag") @POST @Path(value="/images/{name}/tag") void tagImage(@PathParam(value="name") String name, @QueryParam(value="repo") String repoName, @QueryParam(value="tag") String tag, @QueryParam(value="force") boolean force)
name
- the name of the image to be taggedrepoName
- the repository to tag intag
- the new tag nameforce
- force create if tag already exists@Named(value="image:history") @GET @Path(value="/images/{name}/history") List<ImageHistory> getHistory(@PathParam(value="name") String name)
name
.name
- the name of the image for which the history is retrievedCopyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.