Forum Discussion

mars_li123_3573's avatar
mars_li123_3573
Icon for Nimbostratus rankNimbostratus
Aug 14, 2018

iControl REST API added member into existed Pool http 400 error

Big-IP version 12.1.2 When I used cURL or python SDK to add members into existed pool. I get below error.

 

I am not sure. I need to install hotfix?

 

raise iControlUnexpectedHTTPError(error_message, response=response) icontrol.exceptions.iControlUnexpectedHTTPError: 400 Unexpected Error: Bad Request for uri: https://192.168.1.1:443/mgmt/tm/ltm/pool/~Common~test/members/ Text: '{"code":400,"message":"\"pool\" unexpected argument","errorStack":[],"apiError":26214401}'

 

  • For an existing node named /Common/node01:

    curl -k -u admin:admin -H "Content-Type: application/json" https://192.168.1.1:443/mgmt/tm/ltm/pool/~Common~test/members -X POST -d '{"name":"node01:80", "partition":"Common"}'
    

    For a new node using IP '1.1.1.1' on the Common partition:

    curl -k -u admin:admin -H "Content-Type: application/json" https://192.168.1.1:443/mgmt/tm/ltm/pool/~Common~test/members -X POST -d '{"name":"node01:80", "address":"1.1.1.1", "partition":"Common"}'