Class CreateImageOptions

  • All Implemented Interfaces:
    HttpRequestOptions

    public class CreateImageOptions
    extends UpdateImageOptions

    Usage The recommended way to instantiate a CreateImageOptions object is to statically import CreateImageOptions.Builder.* and invoke a static creation method for each option as needed:

    import static org.jclouds.openstack.glance.v1_0.options.CreateImageOptions.Builder.* // this will create an image with the name "imageName", minimum required disk of 10GB, etc. details = api.create("imageName", minDisk(10), isPublic(true), property("mykey", "somevalue"));

    See Also:
    • Constructor Detail

      • CreateImageOptions

        public CreateImageOptions()
    • Method Detail

      • id

        public CreateImageOptions id​(String id)
        When present, Glance will use the supplied identifier for the image instead of generating one. If the identifier already exists in that Glance node, then a 409 Conflict will be returned by Glance. The value of the header must be a uuid in hexadecimal string notation (i.e. 71c675ab-d94f-49cd-a114-e12490b328d9).