Forum Discussion

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

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_'s avatar
    George_Watkins_
    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
    
    ! 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
              
            
          
        
      
    

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

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