Forum Discussion

_GM__76130's avatar
Icon for Nimbostratus rankNimbostratus
Apr 18, 2011


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="" xmlns:xsd="" xmlns:soapenv="" xmlns:vir="urn:iControl:LocalLB/VirtualServer" xmlns:soapenc="">
   < soapenv:Header/>
   < soapenv:Body>
      < vir:remove_clone_pool soapenv:encodingStyle="">
         < 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>

2 Replies

  • George_Watkins_'s avatar
    Historic F5 Account
    Hi [GM],

    Here is the syntax (Ruby iControl library) I used to remove a clone pool from my virtual server:

    bigip["LocalLB.VirtualServer"].remove_clone_pool(["vs.test_ubuntu_http"], [[{"pool_name" => "ubuntu_http_pool", "type" => "CLONE_POOL_TYPE_SERVERSIDE"}]])

    and this is the output of my SOAP call:

    = Request
    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

    The operation completed successfully and the clone pull was removed from the respective VS. Hope this helps,

  • Thanks 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!