From 88aa1bcabbfffbf6c8bfe41ee05303ea9ea2156d Mon Sep 17 00:00:00 2001 From: yfzhao Date: Mon, 20 Mar 2017 15:06:12 +0800 Subject: [PATCH] Add two response parameters in the api-ref of getting capabilities Add "display_name" and "replication_targets" to the response parameters in the api-ref of getting capabilities. Change-Id: Id1776641ea9938d024906707fec2e21404668ff7 Closes-bug: #1674237 --- api-ref/source/v3/capabilities-v3.inc | 2 ++ api-ref/source/v3/parameters.yaml | 13 +++++++++++++ .../v3/samples/backend-capabilities-response.json | 1 + 3 files changed, 16 insertions(+) diff --git a/api-ref/source/v3/capabilities-v3.inc b/api-ref/source/v3/capabilities-v3.inc index 3f4af560bf5..19a87155a79 100644 --- a/api-ref/source/v3/capabilities-v3.inc +++ b/api-ref/source/v3/capabilities-v3.inc @@ -39,6 +39,8 @@ Response Parameters - vendor_name: vendor_name - properties: properties - storage_protocol: storage_protocol + - replication_targets: replication_targets + - display_name: display_name Response Example ---------------- diff --git a/api-ref/source/v3/parameters.yaml b/api-ref/source/v3/parameters.yaml index 596987a35da..315889d802e 100644 --- a/api-ref/source/v3/parameters.yaml +++ b/api-ref/source/v3/parameters.yaml @@ -601,6 +601,12 @@ description_9: in: body required: true type: string +display_name: + description: | + The name of volume backend capabilities. + in: body + required: true + type: string driver_version: description: | The driver version. @@ -1473,6 +1479,13 @@ replication_status: in: body required: true type: string +replication_targets: + description: | + A list of volume backends used to replicate volumes + on this backend. + in: body + required: true + type: list request_id: description: | The id of the request during which the message was created. diff --git a/api-ref/source/v3/samples/backend-capabilities-response.json b/api-ref/source/v3/samples/backend-capabilities-response.json index 03604a5e68a..dcf213d2445 100644 --- a/api-ref/source/v3/samples/backend-capabilities-response.json +++ b/api-ref/source/v3/samples/backend-capabilities-response.json @@ -8,6 +8,7 @@ "display_name": "Capabilities of Cinder LVM driver", "description": "These are volume type options provided by Cinder LVM driver, blah, blah.", "visibility": "public", + "replication_targets": [], "properties": { "compression": { "title": "Compression",