get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/807109/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 807109,
    "url": "http://patchwork.ozlabs.org/api/patches/807109/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/1504016587-39779-3-git-send-email-pradeep.jagadeesh@huawei.com/",
    "project": {
        "id": 14,
        "url": "http://patchwork.ozlabs.org/api/projects/14/?format=api",
        "name": "QEMU Development",
        "link_name": "qemu-devel",
        "list_id": "qemu-devel.nongnu.org",
        "list_email": "qemu-devel@nongnu.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<1504016587-39779-3-git-send-email-pradeep.jagadeesh@huawei.com>",
    "list_archive_url": null,
    "date": "2017-08-29T14:23:03",
    "name": "[v8,2/6] qmp: Create IOThrottle structure",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "c4fc57e47a602f7c0b0e51c0b119ef1368bea651",
    "submitter": {
        "id": 69852,
        "url": "http://patchwork.ozlabs.org/api/people/69852/?format=api",
        "name": "Pradeep Jagadeesh",
        "email": "pradeepkiruvale@gmail.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/1504016587-39779-3-git-send-email-pradeep.jagadeesh@huawei.com/mbox/",
    "series": [
        {
            "id": 377,
            "url": "http://patchwork.ozlabs.org/api/series/377/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=377",
            "date": "2017-08-29T14:23:01",
            "name": "fsdev: qmp interface for io throttling",
            "version": 8,
            "mbox": "http://patchwork.ozlabs.org/series/377/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/807109/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/807109/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org",
        "Authentication-Results": [
            "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=nongnu.org\n\t(client-ip=2001:4830:134:3::11; helo=lists.gnu.org;\n\tenvelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"mbpiChkc\"; dkim-atps=neutral"
        ],
        "Received": [
            "from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11])\n\t(using TLSv1 with cipher AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xhWGQ4Z62z9t16\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 30 Aug 2017 00:28:46 +1000 (AEST)",
            "from localhost ([::1]:45237 helo=lists.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.71) (envelope-from\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>)\n\tid 1dmhVU-0005VM-J3\n\tfor incoming@patchwork.ozlabs.org; Tue, 29 Aug 2017 10:28:44 -0400",
            "from eggs.gnu.org ([2001:4830:134:3::10]:53687)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <pradeepkiruvale@gmail.com>) id 1dmhQx-0001g4-Jn\n\tfor qemu-devel@nongnu.org; Tue, 29 Aug 2017 10:24:13 -0400",
            "from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <pradeepkiruvale@gmail.com>) id 1dmhQv-0004DU-0Q\n\tfor qemu-devel@nongnu.org; Tue, 29 Aug 2017 10:24:03 -0400",
            "from mail-wr0-x242.google.com ([2a00:1450:400c:c0c::242]:33294)\n\tby eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)\n\t(Exim 4.71) (envelope-from <pradeepkiruvale@gmail.com>)\n\tid 1dmhQu-0004DF-QL\n\tfor qemu-devel@nongnu.org; Tue, 29 Aug 2017 10:24:00 -0400",
            "by mail-wr0-x242.google.com with SMTP id k94so2410468wrc.0\n\tfor <qemu-devel@nongnu.org>; Tue, 29 Aug 2017 07:24:00 -0700 (PDT)",
            "from localhost.localdomain.localdomain ([217.110.131.66])\n\tby smtp.gmail.com with ESMTPSA id\n\t15sm2540487wmv.45.2017.08.29.07.23.58\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tTue, 29 Aug 2017 07:23:59 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=XJDYqcNKTPJ4bVXu+u8oqSrNjS8+eCzwl09w8KTx0rQ=;\n\tb=mbpiChkc4o/ku3qCpOVWcvFDoR9atIFHPvUvvraSB+pVdpOUpjTKW175l4ry2XynkI\n\tHa3+EZkCXD6vxk4VF3MVXbkT17ongxOMjoxmYKGthP9tcZOSZfsfssjY3H3qHxyzUuTP\n\tzg29B+FcenXCO/AbMe2oZucykL7+FpveL5oGy2WH6VAVyAYAcr+sybbIfpWGqUuMMH5S\n\tOTphXut83gLQ2EmwaUCB7bkgtCBoiggwiPubA+a+B7h9xhPTKwLGZO/t4/WrS1RCxgLp\n\tefzpOMl7IeYaY2HPWJg4/9oA7WV8FRQ7hI04mjCGcxYVFcqidgL/I5qo5z9WWFsIWO9v\n\tXVbA==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=XJDYqcNKTPJ4bVXu+u8oqSrNjS8+eCzwl09w8KTx0rQ=;\n\tb=VXYFiEgV8VN6RsXaQwQm5ghd4fMusGfH1L6Yo3Nd/JBhCCWWdEhIMjqPcbeZfVrRec\n\tI/exV26/xDP9atXARs5sG80GpnAEnGZglXeCR6dwDTRs4bhPFMRFYF/y8H4Htf0CNfGg\n\tgrZPMxjfAnvPXpHmUi7Pz8z3+lUqKMZ9sFUNDNwPEGSX2i9/3Ra/fn8VuYTUuJzdxiUI\n\tPdiekS9IWvaZaHE4H/kmPVsczWn4TWL6vYE1BkuVfLvwKkF2VPn90lvU4btAFFzKwyZh\n\tA9+CqlRyIFPCsCSPb9Gu7FlczJDkPhnP6HDY5TQTFiG31WcWcIiMUUOptmhcghj/9LSV\n\tDV7A==",
        "X-Gm-Message-State": "AHYfb5gZ68OrMRdcvkvNbkJ3RKj2A+xzJ3p7lBIuChddXkfitKUM+6So\n\t2Ma/KNW+cSUQDQ==",
        "X-Received": "by 10.223.173.46 with SMTP id p43mr396523wrc.23.1504016639751;\n\tTue, 29 Aug 2017 07:23:59 -0700 (PDT)",
        "From": "Pradeep Jagadeesh <pradeepkiruvale@gmail.com>",
        "X-Google-Original-From": "Pradeep Jagadeesh <pradeep.jagadeesh@huawei.com>",
        "To": "\"eric blake\" <eblake@redhat.com>,\n\t\"greg kurz\" <groug@kaod.org>",
        "Date": "Tue, 29 Aug 2017 10:23:03 -0400",
        "Message-Id": "<1504016587-39779-3-git-send-email-pradeep.jagadeesh@huawei.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "In-Reply-To": "<1504016587-39779-1-git-send-email-pradeep.jagadeesh@huawei.com>",
        "References": "<1504016587-39779-1-git-send-email-pradeep.jagadeesh@huawei.com>",
        "X-detected-operating-system": "by eggs.gnu.org: Genre and OS details not\n\trecognized.",
        "X-Received-From": "2a00:1450:400c:c0c::242",
        "Subject": "[Qemu-devel] [PATCH v8 2/6] qmp: Create IOThrottle structure",
        "X-BeenThere": "qemu-devel@nongnu.org",
        "X-Mailman-Version": "2.1.21",
        "Precedence": "list",
        "List-Id": "<qemu-devel.nongnu.org>",
        "List-Unsubscribe": "<https://lists.nongnu.org/mailman/options/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.nongnu.org/archive/html/qemu-devel/>",
        "List-Post": "<mailto:qemu-devel@nongnu.org>",
        "List-Help": "<mailto:qemu-devel-request@nongnu.org?subject=help>",
        "List-Subscribe": "<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=subscribe>",
        "Cc": "jani kokkonen <jani.kokkonen@huawei.com>,\n\talberto garcia <berto@igalia.com>, \n\tPradeep Jagadeesh <pradeep.jagadeesh@huawei.com>, qemu-devel@nongnu.org",
        "Errors-To": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org",
        "Sender": "\"Qemu-devel\"\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>"
    },
    "content": "This patch enables qmp interfaces for the fsdev\ndevices. This provides two interfaces one\nfor querying info of all the fsdev devices. The second one\nto set the IO limits for the required fsdev device.\n\nSigned-off-by: Pradeep Jagadeesh <pradeep.jagadeesh@huawei.com>\nReviewed-by: Greg Kurz <groug@kaod.org>\nReviewed-by: Eric Blake <eblake@redhat.com>\nReviewed-by: Alberto Garcia <berto@igalia.com>\n---\n qapi/block-core.json | 34 +++++++++++++++++++++++++---------\n 1 file changed, 25 insertions(+), 9 deletions(-)",
    "diff": "diff --git a/qapi/block-core.json b/qapi/block-core.json\nindex 833c602..95bbc5e 100644\n--- a/qapi/block-core.json\n+++ b/qapi/block-core.json\n@@ -1819,11 +1819,13 @@\n   'data': 'BlockIOThrottle' }\n \n ##\n-# @BlockIOThrottle:\n-#\n-# A set of parameters describing block throttling.\n+# == QAPI IOThrottle definitions\n+##\n+\n+##\n+# @IOThrottle:\n #\n-# @device: Block device name (deprecated, use @id instead)\n+# A set of parameters describing IO throttling\n #\n # @id: The name or QOM path of the guest device (since: 2.8)\n #\n@@ -1889,12 +1891,11 @@\n #\n # @iops_size: an I/O size in bytes (Since 1.7)\n #\n-# @group: throttle group name (Since 2.4)\n #\n-# Since: 1.1\n+# Since: 2.11\n ##\n-{ 'struct': 'BlockIOThrottle',\n-  'data': { '*device': 'str', '*id': 'str', 'bps': 'int', 'bps_rd': 'int',\n+{ 'struct': 'IOThrottle',\n+  'data': { '*id': 'str', 'bps': 'int', 'bps_rd': 'int',\n             'bps_wr': 'int', 'iops': 'int', 'iops_rd': 'int', 'iops_wr': 'int',\n             '*bps_max': 'int', '*bps_rd_max': 'int',\n             '*bps_wr_max': 'int', '*iops_max': 'int',\n@@ -1902,7 +1903,22 @@\n             '*bps_max_length': 'int', '*bps_rd_max_length': 'int',\n             '*bps_wr_max_length': 'int', '*iops_max_length': 'int',\n             '*iops_rd_max_length': 'int', '*iops_wr_max_length': 'int',\n-            '*iops_size': 'int', '*group': 'str' } }\n+            '*iops_size': 'int' } }\n+\n+##\n+# @BlockIOThrottle:\n+#\n+# A set of parameters describing block throttling.\n+#\n+# @device: Block device name (deprecated, use @id instead)\n+#\n+# @group: throttle group name (Since 2.4)\n+#\n+# Since: 1.1\n+##\n+{ 'struct': 'BlockIOThrottle',\n+  'base': 'IOThrottle',\n+  'data': { '*device': 'str', '*group': 'str' } }\n \n ##\n # @block-stream:\n",
    "prefixes": [
        "v8",
        "2/6"
    ]
}