From ebe8fd945b6d6aaf827d131dcdb2304e8b7f4713 Mon Sep 17 00:00:00 2001 From: Pavel Kholkin Date: Mon, 20 Jun 2016 18:42:54 +0300 Subject: [PATCH] api-ref: docs for microversion v2.28 Part of bp nova-api-hypervsor-cpu-info Part of bp api-ref-in-rst Change-Id: I48a5824c653825b9fdc6cd4d5a2f6ade03fff011 --- api-ref/source/os-hypervisors.inc | 12 ++++++++++-- api-ref/source/parameters.yaml | 8 ++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/api-ref/source/os-hypervisors.inc b/api-ref/source/os-hypervisors.inc index 6532fa767b47..602d66b938b4 100644 --- a/api-ref/source/os-hypervisors.inc +++ b/api-ref/source/os-hypervisors.inc @@ -84,7 +84,11 @@ Response **Example List Hypervisors Details: JSON request** -.. literalinclude:: ../../doc/api_samples/os-hypervisors/hypervisors-detail-resp.json +.. note:: + + This API sample is actual since microversion v2.28 + +.. literalinclude:: ../../doc/api_samples/os-hypervisors/v2.28/hypervisors-detail-resp.json :language: javascript Show Hypervisor Statistics @@ -177,7 +181,11 @@ Response **Example Show Hypervisor Details: JSON response** -.. literalinclude:: ../../doc/api_samples/os-hypervisors/hypervisors-show-resp.json +.. note:: + + This API sample is actual since microversion v2.28 + +.. literalinclude:: ../../doc/api_samples/os-hypervisors/v2.28/hypervisors-show-resp.json :language: javascript Show Hypervisor Uptime diff --git a/api-ref/source/parameters.yaml b/api-ref/source/parameters.yaml index 4b803db621c7..3b6dc0d6494d 100644 --- a/api-ref/source/parameters.yaml +++ b/api-ref/source/parameters.yaml @@ -1072,8 +1072,12 @@ cores_quota_optional: type: integer cpu_info: description: | - The cpu information object. The content of this field is hypervisor - specific. + A dictionary that contains cpu information like ``arch``, ``model``, + ``vendor``, ``features`` and ``topology``. The content of this field is + hypervisor specific. + + NOTE: Since version 2.28 ``cpu_info`` field is returned as a dictionary + instead of string. in: body required: true type: object