Query2 was introduced during 12.04 as a new feature for machine read-able format. While the new JSON format describes the images, it is rather unweildy. In light of that, it is proposed to deprecate the new format and introduce a simplified format which is based on request.
The new format will return results based on URL, for example: data=cloud&distro=lucid&arch=amd64&stream=server&instance_type=ebs®ion=ap-southeast-1
Will return: { "request": { "allactive": "1", "arch": "amd64", "bad_asks": [], "cloud": "EC2", "data": "cloud", "distro": "lucid", "instance_type": "ebs", "region": "ap-southeast-1", "release_tag": "release", "stream": "server" }, "response": [ { "arch": "amd64", "build_date": "2012-09-13", "build_id": "D87316017B9FF4490EF14CB7119E8995", "build_serial": "20120913", "build_type": "server", "cloud_name": "EC2", "distro_code_name": "lucid", "distro_name": "Lucid Lynx", "distro_version": "10.04", "instance_type": "ebs", "kernel_id": "aki-11d5aa43", "latest_build": true, "published_date": "2012-09-13", "published_id": "ami-903575c2", "published_url": "https://console.aws.amazon.com/ec2/home?region=#launchAmi=ami-903575c2", "ramdisk_id": "None", "region_name": "ap-southeast-1", "release_tag": "release", "response_type": "cloud" }, { "arch": "amd64", "build_date": "2012-07-26", "build_id": "9CF68D8D8D3F9B9D529A0BA3FDE64B94", "build_serial": "20120724", "build_type": "server", "cloud_name": "EC2", "distro_code_name": "lucid", "distro_name": "Lucid Lynx", "distro_version": "10.04", "instance_type": "ebs", "kernel_id": "aki-11d5aa43", "latest_build": false, "published_date": "2012-07-26", "published_id": "ami-786d2c2a", "published_url": "https://console.aws.amazon.com/ec2/home?region=#launchAmi=ami-786d2c2a", "ramdisk_id": "None", "region_name": "ap-southeast-1", "release_tag": "release", "response_type": "cloud" }, { "arch": "amd64", "build_date": "2012-04-03", "build_id": "BB64C065F8912EAC3947D7407FCC3F68", "build_serial": "20120403", "build_type": "server", "cloud_name": "EC2", "distro_code_name": "lucid", "distro_name": "Lucid Lynx", "distro_version": "10.04", "instance_type": "ebs", "kernel_id": "aki-11d5aa43", "latest_build": false, "published_date": "2012-04-03", "published_id": "ami-6c6f283e", "published_url": "https://console.aws.amazon.com/ec2/home?region=#launchAmi=ami-6c6f283e", "ramdisk_id": "None", "region_name": "ap-southeast-1", "release_tag": "release", "response_type": "cloud" }, { "arch": "amd64", "build_date": "2012-02-21", "build_id": "98BD8363A17C49562E89D52DF2F05097", "build_serial": "20120221", "build_type": "server", "cloud_name": "EC2", "distro_code_name": "lucid", "distro_name": "Lucid Lynx", "distro_version": "10.04", "instance_type": "ebs", "kernel_id": "aki-11d5aa43", "latest_build": false, "published_date": "2012-02-21", "published_id": "ami-7089cd22", "published_url": "https://console.aws.amazon.com/ec2/home?region=#launchAmi=ami-7089cd22", "ramdisk_id": "None", "region_name": "ap-southeast-1", "release_tag": "release", "response_type": "cloud" } ], "vendor": { "name": "Canonical Group, Ltd.", "product": "Ubuntu Cloud Images", "product_eula": "http://www.ubuntu.com/project/about-ubuntu/licensing", "product_url": "http://www.ubuntu.com" }, "version": { "epoch": 1348259881, "uuid": "7c057ef45e1543df8d538bd55d466733" } }
Rationale:
Goal: