[openstack-dev] [Lbaas] Create a VIP API sample

Youcef Laribi Youcef.Laribi at eu.citrix.com
Thu Nov 15 20:28:26 UTC 2012


Thanks for spotting this Leon ! I have corrected it now. I missed that one when I removed the "bulk create" support from the API.

Youcef

From: Leon Cui [mailto:lcui at vmware.com]
Sent: Wednesday, November 14, 2012 10:46 PM
To: Youcef Laribi
Cc: openstack-dev at lists.openstack.org
Subject: [Lbaas] Create a VIP API sample

Hi Youcef,
I just noticed that on Lbaas API spec, the json sample for "POST /v1.0/vips" and "POST /v1.0/pools" are not consistent.

The json request is:

{

  "vips":[

         {

And the json response is:
{
  "vips":[
         {


However, looking at the corresponding "POST /v1.0/pools" sample (as well as member and healthmonitor), the json format is different.  Rather than using an array, every time to create a pool, a single hash value is contained in the json request/response:

The json request is:

{

  "pool" : {
The json response is:

{

  "pool" : {


I think we need to make them consistent by modifying VIP json sample.  What do you think?


Thanks
Leon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20121115/4947cd92/attachment.html>


More information about the OpenStack-dev mailing list