Reply

NIOS 6.6. WAPI error message "List value expected for field: options"

HShiftehmehr
Techie
Posts: 2
1798     0

I keep receiving the following error message no matter what format I try to use for the 'options' field:

  "Error": "AdmConProtoError: List value expected for field: options",
  "code": "Client.Ibap.Proto",
  "text": "List value expected for field: options"
 
What is the proper format to pass a list for options using the PUT method?
 
Here is a sample 'curl' command I have been trying:
[
        {
            "name": "domain-name-servers",
            "num": 6,
            "use_option": true,
            "value": "192.168.1.1,192.168.2.1",
            "vendor_class": "DHCP"
        },
        {
            "name": "routers",
            "num": 3,
            "use_option": true,
            "value": "192.168.1.254",
            "vendor_class": "DHCP"
        }
]"

I looked at this post: http://www.infoblox.com/community/community/forum/apis/web-apiwapirest/how-do-i-assign-router-ip-dhc...

and tried doing that too but I couldn't get it right. It suggests passing the parameters in an XML styel 'body' but I'm not sure if PUT method has a body?

Re: NIOS 6.6. WAPI error

I-Team Employee
Employee
Posts: 186
1799     0

Take a look at this blog post for how to format a curl command. It should help.

 

http://www.infoblox.com/community/community/blog/restart-services-using-rest-api

 

 

Re: NIOS 6.6. WAPI error

HShiftehmehr
Techie
Posts: 2
1799     0

Excellent! That is the framework I was lookng for. I tried the following format and it worked:

Showing results for 
Search instead for 
Do you mean 

Recommended for You