Reply

Adding grid member - WAPI error

New Member
Posts: 5
1609     0

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

Superuser
Posts: 38
1610     0

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"
    }
}'
Shukran
Showing results for 
Search instead for 
Did you mean: 

Recommended for You