- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Set "additional_ip_list" of member:dns via WAPI failed with error "expected single object, got 2"
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2019 07:05 PM
I have 2 grid members.
For both members, I configured anycast IP 10.240.240.6
Then I call WAPI with the request below to add the IP to additional_ip_list
{ "additional_ip_list": ["10.240.240.6"] }
but got such an error
{ "Error": "AdmConDataError: expected single object, got 2", "code": "Client.Ibap.Data", "text": "expected single object, got 2" }
After I remove one of the anycast IP or change one of them o 10.240.240.7, the problem disappear.
I think this should be a WAPI bug.
Is there a workaround for this problem?
Re: Set "additional_ip_list" of member:dns via WAPI failed with error "expected sin
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2019 02:50 AM
Hi,
Could you please send the API call that you are using?
Meanwhile, this is the WAPI I use to add the anycast IP to a member.
curl -k -u admin:Infoblox -H 'content-type: application/json' -X PUT "https://127.0.0.1/wapi/v2.10/member/b25lLnZpcnR1YWxfbm9kZSQw:infoblox.localdomain?_return_fields%2B=additional_ip_list&_return_as_object=1" -d '{"additional_ip_list":[{"anycast":true,"interface":"LOOPBACK","ipv4_network_setting":{"subnet_mask": "255.255.255.255","address": "192.128.2.10","gateway":"192.128.2.1"}}]}'
Thanks and Regards,
Krishna Vasudevan
Re: Set "additional_ip_list" of member:dns via WAPI failed with error "expected sin
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2019 08:27 PM - edited 10-08-2019 08:29 PM
my request is:
PUT https://${baseurl}/wapi/v2.9.1/member:dns/${memberId} { "additional_ip_list": ["10.240.240.6"] }
The anycast IP was pre-configured in the system.
What I want to do is to add/remove the IP.
I also tried your sample, and got such error response:
{ "Error": "AdmConProtoError: Invalid value for additional_ip_list: {\"interface\": \"LOOPBACK\", \"ipv4_network_setting\": {\"subnet_mask\": \"255.255.255.255\", \"gateway\": \"10.240.240.1\", \"address\": \"10.240.240.6\"}, \"anycast\": true}: Must be string type", "code": "Client.Ibap.Proto", "text": "Invalid value for additional_ip_list: {\"interface\": \"LOOPBACK\", \"ipv4_network_setting\": {\"subnet_mask\": \"255.255.255.255\", \"gateway\": \"10.240.240.1\", \"address\": \"10.240.240.6\"}, \"anycast\": true}: Must be string type" }
Re: Set "additional_ip_list" of member:dns via WAPI failed with error "expected sin
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2019 12:38 AM
Hi,
In my sample, i used the member object and not the member:dns object. Could you change that and check?
In member:dns, the additional_ip_list indicates the list of additional IP addresses on which DNS is enabled for a Grid member.
Re: Set "additional_ip_list" of member:dns via WAPI failed with error "expected sin
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2019 04:19 PM - edited 10-23-2019 02:42 PM
Could you please send the API call that you are using?
_____________________________________________________