Deprecation of Query2 format; introduce a simplified Query2

Registered by Ben Howard on 2012-09-21

Rationale:
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.

Goal:
Deprecate Query2 format.

Blueprint information

Status:
Not started
Approver:
Antonio Rosales
Priority:
Low
Drafter:
Ubuntu Server Team
Direction:
Approved
Assignee:
Ben Howard
Definition:
Discussion
Series goal:
Accepted for raring
Implementation:
Unknown
Milestone target:
milestone icon ubuntu-13.04-alpha-2

Related branches

Sprints

Whiteboard

User Stories:

Risks:

Test Plans:

Release Note:

(WI definition needed.) -[a.rosales; 12-DEC-2012]

--- UDS Discussion ---

The new format will return results based on URL, for example:
data=cloud&distro=lucid&arch=amd64&stream=server&instance_type=ebs&region=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"
    }
}

(?)

Work Items

Dependency tree

* Blueprints in grey have been implemented.

This blueprint contains Public information 
Everyone can see this information.