50
50
* Ticket ID from the ticket system
52
54
* base_image : {"image_type": IMAGE_TYPE, "url_list": [...], "series": SERIES}
54
56
* A json object containing the image_type (cloud for now), list of
55
57
URLs pointing to the image artifact(s), and the Ubuntu series
60
62
* A list of PPAs to add to the image.
64
66
* A list of additional packages to install in the image.
66
68
* progress_trigger : STRING
68
70
* The amqp exchange to use for sending progress events.
72
curl --dump-header - -H "Content-Type: application/json" -X POST --data '{"base_image": {"image_type": "cloud", "url_list": ["http://cloud-images.ubuntu.com/trusty/current/trusty-server-cloudimg-amd64-disk1.img"], "series": "trusty"}, "ppa_list": ["ppa:project/ppaname"], "package_list": ["libfoo", "baz-utils"], "progress_trigger": "testbuild-1-imagebuilder", "ticket_id": "1"}' http://localhost:8000/api/v1/build_image/
74
curl --dump-header - -H "Content-Type: application/json" -X POST --data '{"base_image": {"image_type": "cloud", "url_list": ["http://cloud-images.ubuntu.com/trusty/current/trusty-server-cloudimg-amd64-disk1.img"], "series": "trusty"}, "ppa_list": ["ppa:project/ppaname"], "package_list": ["libfoo", "baz-utils"], "progress_trigger": "testbuild-1-imagebuilder", "ticket_id": "1", "cancel_url": null}' http://localhost:8000/api/v1/build_image/