- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Adding grid member - WAPI error
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2022 12:58 AM
I am trying to add a member in the grid through the following WAPI curl through curl command.
POST "https://x.x.x.x/wapi/v2.11.1/member?_return_as_object=1" -d "{\"config_addr_type\":\"IPV4\",\"host_name\":\"dhcp21.service.group\",\"vip_setting\":[{\"address\":\"10.159.188.224\"}]}"
but keep getting the following error
{ "Error": "AdmConProtoError: Structure expected in vip_setting ([{u'address': u'10.159.188.224'}])",
"code": "Client.Ibap.Proto",
"text": "Structure expected in vip_setting ([{u'address': u'10.159.188.224'}])"
}
can anybody help what is the structure expected for this vip_setting?
Re: Adding grid member - WAPI error
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2022 02:05 AM
Hi,
You can use the below curl as a reference for request and expected vip_setting structure.
curl -L -X POST 'https://<grid-ip>/wapi/v2.12/member?_return_as_object=1' \ -H 'content-type: application/json' \ -H 'Authorization: Basic YWRtaW46aW5mb2Jsb3g=' \ --data-raw '{ "config_addr_type": "IPV4", "platform": "VNIOS", "host_name": "autojoin01.localdomain", "vip_setting": { "subnet_mask": "255.255.255.0", "address": "192.128.2.7", "gateway": "192.128.2.1" } }'