From f7e4018a960834aee0816a4d9501f327938d9c7f Mon Sep 17 00:00:00 2001 From: Augustina Ragwitz Date: Mon, 9 May 2016 15:55:12 -0700 Subject: [PATCH] api-ref: ips.inc parameter verification Part of bp:api-ref-in-rst Change-Id: I929c186c3681b15b7e4c488ce81685deffde7ef0 --- api-ref/source/ips.inc | 14 +++++++++++++- api-ref/source/parameters.yaml | 12 ++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/api-ref/source/ips.inc b/api-ref/source/ips.inc index 16d733fd36..03d59773c5 100644 --- a/api-ref/source/ips.inc +++ b/api-ref/source/ips.inc @@ -1,5 +1,4 @@ .. -*- rst -*- -.. needs:parameter_verification .. needs:example_verification .. needs:body_verification @@ -34,6 +33,13 @@ Request Response -------- +.. rest_parameters:: parameters.yaml + + - addresses: addresses + - network_label: network_label_body + - addr: ip_address + - version: version + **Example List Ips: JSON response** .. literalinclude:: ../../doc/api_samples/server-ips/server-ips-resp.json @@ -64,6 +70,12 @@ Request Response -------- +.. rest_parameters:: parameters.yaml + + - network_label: network_label_body + - addr: ip_address + - version: version + **Example Show Ip Details: JSON response** .. literalinclude:: ../../doc/api_samples/server-ips/server-ips-network-resp.json diff --git a/api-ref/source/parameters.yaml b/api-ref/source/parameters.yaml index db1ad89f75..59a96e8c1b 100644 --- a/api-ref/source/parameters.yaml +++ b/api-ref/source/parameters.yaml @@ -1215,6 +1215,12 @@ interfaceAttachment: in: body required: true type: string +ip_address: + description: | + The IP address. + in: body + required: true + type: string ip_protocol: description: | The IP protocol. A valid value is ICMP, TCP, or UDP. @@ -1461,6 +1467,12 @@ net_id_1: in: body required: true type: string +network_label_body: + description: | + The network label, such as ``public`` or ``private``. + in: body + required: true + type: string networks: description: | A ``networks`` object. Required parameter when there are multiple networks defined