Forum Discussion
Rudi_95802
Jun 06, 2014Nimbostratus
How do I enable and disable pool members using iControlREST
Hi
I'm trying to the following PUT request to enable a pool member (IP's masked out):
https://10.102.xx.xx/mgmt/tm/ltm/pool/~QA~pool_vcoza_portal_UAT/members/~QA~10.102.xx.xx:9001
My request ha...
Kapil_Malhotra_
Mar 13, 2015Nimbostratus
I tried this but getting the following error. {"code":415,"message":"Found invalid content-type. The content-type must be application/json. The received content-type is application/x-www-form-urlencoded","errorStack":[]}
- JRahmMar 13, 2015Admindon't forget this part of the query: -H "Content-Type: application/json"
- Kapil_Malhotra_Mar 13, 2015NimbostratusHi Jason, -H "Content-Type: application/json was part of my query but still getting the error posted above curl -sk -u kapil:xxxxx https://xxxxxxxx/mgmt/tm/ltm/pool/test-default/members/~Common~10.xx.xx.xx:10001/ \ -H "Content.Type: application/json" -X PUT -d '{"state": "user-down", "session": "user-disabled"}'
- Romuald_197888Jun 26, 2015NimbostratusHello, I've got the same error : {"code":400,"message":"Found invalid JSON body in the request.","errorStack":[]} With the following request : curl -sk -u admin:xxxxx -H "Content-Type: application/json" -X PUT -d '{"session": "user-enabled"}' https://xx.xx.xx.xx/mgmt/tm/ltm/pool/~PREPROD~POOL_COLLECTEAI/members/~PREPROD~host.domain.fr:80 Any idea ? Thanks
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects