Forum Discussion
_GM__76130
Apr 18, 2011Nimbostratus
remove_clone_pool
I am trying to use a SOAP call to remove a clone-pool from a virtual server. The SOAP call is going through without errors, but the clone-pool is not getting removed. Using the "remove_all_clone_pools" function does work, but is obviously not what I want.
Any feedback would greatly be appreciated.
Here is my SOAP call:
< soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:vir="urn:iControl:LocalLB/VirtualServer" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
< soapenv:Header/>
< soapenv:Body>
< vir:remove_clone_pool soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
< virtual_servers xsi:type="urn:Common.StringSequence" soapenc:arrayType="xsd:string[]" xmlns:urn="urn:iControl">
< virtual_server>v2< /virtual_server>
< /virtual_servers>
< clone_pools xsi:type="urn:LocalLB.VirtualServer.VirtualServerClonePoolSequenceSequence" soapenc:arrayType="urn:LocalLB.VirtualServer.VirtualServerClonePoolSequence[2]" xmlns:urn="urn:iControl">
< pool_name>test< /pool_name>
< type>CLONE_POOL_TYPE_SERVERSIDE< /type>
< /clone_pools>
< /vir:remove_clone_pool>
< /soapenv:Body>
< /soapenv:Envelope>
- George_Watkins_Historic F5 AccountHi [GM],
bigip["LocalLB.VirtualServer"].remove_clone_pool(["vs.test_ubuntu_http"], [[{"pool_name" => "ubuntu_http_pool", "type" => "CLONE_POOL_TYPE_SERVERSIDE"}]])
= Request ! CONNECT TO 10.0.0.2:443 ! CONNECTION ESTABLISHED at depth 0 - 18: self signed certificate POST /iControl/iControlPortal.cgi HTTP/1.1 SOAPAction: "urn:iControl:LocalLB/VirtualServer" Content-Type: text/xml; charset=utf-8 Authorization: Basic xxxxxxxxxxxxxxxxxxx= User-Agent: SOAP4R/1.5.5 (httpclient.rb/280, ruby 1.8.7 (2010-01-10) [x86_64-linux]) Date: Mon, 25 Apr 2011 21:19:13 GMT Content-Length: 1192 Host: 10.0.0.2 vs.test_ubuntu_http ubuntu_http_pool CLONE_POOL_TYPE_SERVERSIDE
- _GM__76130NimbostratusThanks George; your reply is much appreciated. Your example made me realize I should have passed a hash instead of an array. It is working now. Thanks again!
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