The body of the request will be a JSON-encoded set of data about the image to add to the registry. It will be in the following format:
{'image':
{'id': <ID>|None,
'name': <NAME>,
'status': <STATUS>,
'disk_format': <DISK_FORMAT>,
'container_format': <CONTAINER_FORMAT>,
'properties': [ ... ]
}
}
The request shall validate the following conditions and return a
400 Bad request when any of the conditions are
not met:
statusmust be non-empty, and must be one of active, saving, queued, or killeddisk_formatmust be non-empty, and must be one of ari, aki, ami, raw, iso, vhd, vdi, qcow2, or vmdkcontainer_formatmust be non-empty, and must be on of ari, aki, ami, bare, or ovfIf
disk_formatorcontainer_formatis ari, aki, ami, then bothdisk_formatandcontainer_formatmust be the same.
