get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 809757,
    "url": "http://patchwork.ozlabs.org/api/patches/809757/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/1504541267-36954-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": "<1504541267-36954-3-git-send-email-pradeep.jagadeesh@huawei.com>",
    "list_archive_url": null,
    "date": "2017-09-04T16:07:43",
    "name": "[v10,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/1504541267-36954-3-git-send-email-pradeep.jagadeesh@huawei.com/mbox/",
    "series": [
        {
            "id": 1415,
            "url": "http://patchwork.ozlabs.org/api/series/1415/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=1415",
            "date": "2017-09-04T16:07:42",
            "name": "fsdev: qmp interface for io throttling",
            "version": 10,
            "mbox": "http://patchwork.ozlabs.org/series/1415/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/809757/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/809757/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=208.118.235.17; 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=\"Bbidqhn0\"; dkim-atps=neutral"
        ],
        "Received": [
            "from lists.gnu.org (lists.gnu.org [208.118.235.17])\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 3xmFJk47Vdz9s7m\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue,  5 Sep 2017 02:13:42 +1000 (AEST)",
            "from localhost ([::1]:54762 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 1dou0K-0002p6-II\n\tfor incoming@patchwork.ozlabs.org; Mon, 04 Sep 2017 12:13:40 -0400",
            "from eggs.gnu.org ([2001:4830:134:3::10]:46882)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <pradeepkiruvale@gmail.com>) id 1dotvJ-0007Kd-Mi\n\tfor qemu-devel@nongnu.org; Mon, 04 Sep 2017 12:08:34 -0400",
            "from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <pradeepkiruvale@gmail.com>) id 1dotvE-0008RS-Mc\n\tfor qemu-devel@nongnu.org; Mon, 04 Sep 2017 12:08:29 -0400",
            "from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]:33075)\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 1dotvE-0008RA-GM\n\tfor qemu-devel@nongnu.org; Mon, 04 Sep 2017 12:08:24 -0400",
            "by mail-wm0-x244.google.com with SMTP id 187so726460wmn.0\n\tfor <qemu-devel@nongnu.org>; Mon, 04 Sep 2017 09:08:24 -0700 (PDT)",
            "from localhost.localdomain.localdomain ([217.110.131.66])\n\tby smtp.gmail.com with ESMTPSA id\n\tx67sm976582wma.7.2017.09.04.09.08.22\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tMon, 04 Sep 2017 09:08:22 -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=PMWb39TG6i90d/bBdYkgh1s4O4E5BpKYtBUKz04GHyM=;\n\tb=Bbidqhn0CLjik2+jTQ3pmnhi4ZjXabf8oozdg/X6+ooKCE9rEyQ/Q46GVZ7IAYNHXY\n\tuDmEkVz7+xFdDkC7877PUpsxqrGNgBx0pyCeeNcEzlstfRiSqRBbBbhibPYGdapfc1a5\n\tQ7hrwOzmnV2xnGv1VYvDqE4+n0Kk+YlNd7HAlMEID45kwUN88baf1nQOd1s1j9tUd1+x\n\tnglgJCIwU7GWrEdiuYwsk/D2zPkv6sdOSa7JAeNywWen5ef9yyK4hSumvu1bJY1Reiah\n\trmzV72paTb1Y/GN+aDHtwKNZr9z5gte3KS/Y8GLS+HTUrJbtVhakFxSgZ9mKO+XMvIxl\n\tve2A==",
        "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=PMWb39TG6i90d/bBdYkgh1s4O4E5BpKYtBUKz04GHyM=;\n\tb=HR1rhY9+rmYmGO7Z1XKk5snl0wxNW4szMPUsPQtUPeZJxzmOCoWCfAYgqWNn5DPfH5\n\tmlRCGJH2qTsDPR67de7AcIGr9o+lTDuWNUoiovvC0eIKq748bOyWgR0X2gYtkLDBYhKB\n\tRJKjBFy/lPp2IaFNhgHV367T6T75YuFub/G4TXe/8zdvKmHdOynK7Og9Lz3ALC1H7rWr\n\t9KwmEwCJgi1oXkVkO025ZAu7lguCIZY4qggA5r+q2RvVI7fSu8ti1HmUdoJ6GnIl+hOq\n\tFmNVgHAPuQqxm+UjjPd94YUGNHzpnGSIvboNEvZPGFm8D3bA6fb/0Bd1rehJjHFDex7X\n\tgblQ==",
        "X-Gm-Message-State": "AHPjjUhPx70pQHlJe4SpD2bJ37UprDbrX5NLySnSt9JJm5j+z5Mu2BT7\n\ta5zZpYNh4jSwEg==",
        "X-Google-Smtp-Source": "ADKCNb4dHyC8hT8zSfVxxu1es0NXCsRuKSbw3y9iwfa6GNPiiuJcpr16WWTDFLq4P3zrDIJhFuKupA==",
        "X-Received": "by 10.28.131.211 with SMTP id f202mr763934wmd.187.1504541303474; \n\tMon, 04 Sep 2017 09:08:23 -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": "Mon,  4 Sep 2017 12:07:43 -0400",
        "Message-Id": "<1504541267-36954-3-git-send-email-pradeep.jagadeesh@huawei.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "In-Reply-To": "<1504541267-36954-1-git-send-email-pradeep.jagadeesh@huawei.com>",
        "References": "<1504541267-36954-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:c09::244",
        "Subject": "[Qemu-devel] [PATCH v10 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..a01074c 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": [
        "v10",
        "2/6"
    ]
}