From 6178700598fad18f065f3ff806edb05b68852ea1 Mon Sep 17 00:00:00 2001 From: jichenjc Date: Fri, 9 Sep 2016 10:09:31 +0800 Subject: [PATCH] Add hypervisor_links into hypervisor v2.33 added hypervisor_links into response of hypervisor we need to add it Also, verified sample. Implements: blueprint api-ref-in-rst Change-Id: I38241f116482a99609e5892a9e20ea5496d89f2b --- api-ref/source/os-hypervisors.inc | 3 ++- api-ref/source/parameters.yaml | 10 ++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/api-ref/source/os-hypervisors.inc b/api-ref/source/os-hypervisors.inc index 61ac996b4dc1..9cfba7080ec9 100644 --- a/api-ref/source/os-hypervisors.inc +++ b/api-ref/source/os-hypervisors.inc @@ -1,5 +1,4 @@ .. -*- rst -*- -.. needs:example_verification .. needs:body_verification ============================== @@ -43,6 +42,7 @@ Response - id: hypervisor_id_body - state: hypervisor_state - status: hypervisor_status + - hypervisor_links: hypervisor_links **Example List Hypervisors: JSON response** @@ -101,6 +101,7 @@ Response - service.disable_reason: service_disable_reason - vcpus: hypervisor_vcpus - vcpus_used: hypervisor_vcpus_used + - hypervisor_links: hypervisor_links **Example List Hypervisors Details: JSON response** diff --git a/api-ref/source/parameters.yaml b/api-ref/source/parameters.yaml index 4e57941e831f..175737334fa4 100644 --- a/api-ref/source/parameters.yaml +++ b/api-ref/source/parameters.yaml @@ -2272,6 +2272,16 @@ hypervisor_id_body: in: body required: true type: integer +hypervisor_links: + description: | + Links to the hypervisors resource. See `API Guide / Links and + References + `_ + for more info. + in: body + type: array + min_version: 2.33 + required: false hypervisor_service: description: | The hypervisor service object.