From b343e96fb40a989128da8e5b6c20b0dd35d14196 Mon Sep 17 00:00:00 2001 From: ghanshyam Date: Tue, 13 Sep 2016 13:48:17 +0900 Subject: [PATCH] Correct address, version parameter in ips.inc 'osapi_hide_server_address_states' does not hide the address field in server/ips APIs so address paramater for this API is wrong and this commit fis the same. Also fixing the 'version' parameter. Partially implements blueprint api-ref-in-rst Change-Id: I22d6ab97d14779fe3a32c23a5148b4eb59f1034f --- api-ref/source/ips.inc | 6 +++--- api-ref/source/parameters.yaml | 12 ++++++++++++ 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/api-ref/source/ips.inc b/api-ref/source/ips.inc index a28a07c36f..1bc19fb10f 100644 --- a/api-ref/source/ips.inc +++ b/api-ref/source/ips.inc @@ -34,10 +34,10 @@ Response .. rest_parameters:: parameters.yaml - - addresses: addresses + - addresses: addresses_obj - network_label: network_label_body - addr: ip_address - - version: version + - version: version_ip **Example List Ips: JSON response** @@ -74,7 +74,7 @@ Response - network_label: network_label_body - addr: ip_address - - version: version + - version: version_ip **Example Show Ip Details: JSON response** diff --git a/api-ref/source/parameters.yaml b/api-ref/source/parameters.yaml index 292e0c65cc..f5c66377c3 100644 --- a/api-ref/source/parameters.yaml +++ b/api-ref/source/parameters.yaml @@ -821,6 +821,12 @@ addresses: in: body required: true type: object +addresses_obj: + description: | + The addresses information for the server. + in: body + required: true + type: object addSecurityGroup: description: | The action. @@ -4348,6 +4354,12 @@ version_id: description: > A common name for the version in question. Informative only, it has no real semantic meaning. +version_ip: + description: | + The IP version of the address associated with server. + in: body + required: true + type: integer version_max: type: string in: body