For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

Arturo's avatar
Arturo
Icon for Employee rankEmployee
Jul 04, 2014

iControl Rest - Verify a config

Hi all,

 

I am trying to understand how can I verify a config as you can do using Enterprise Manager. I have find out how EM (Attached below) can do it using SOAP. But I would like to do it in REST.

 

I have found in the rest guide an example for save config. { "command":"save", "options":[ { "file":"configfile.scf" } ] }

 

but I would like to use load sys config verify merge. I have tested this option but no success.

 

{ "command":"load", "options":[ { ["merge"] ["verify"] "file":"configfile.scf" } ] }

 

when i try to upload a file, a problem happens telling me that is multi-part, not json content.

 

Is there any way where can I insert the code directly.

 

In EM I think that they run a tmsh::script load verify or something similar. Any idea regarding REST?

 

--- EM SOAP Request --- POST /iControl/iControlPortal.cgi?em_server_ip=1.1.1.5&em_server_auth_token=hfZ7%2FfB00vqJL20NHePsHV8UwCQmVXHNp FcwfUSTeMHSfg9DRhZAll54IVPzb9hxCduELFHTDmV%2FCQsfTXTf4j8YdEZiuhuO1oYM41XECrnazaEEpd%2FBk%2Fb3uz%2FUGi6Ihk1b4GaNbZGJ gtIlGjgbni5tv1hvhU7YVOnltNPh%2B%2F4%3D HTTP/1.1 Host: 1.1.1.1 Connection: Keep-Alive User-Agent: EasySoap++/0.6 X-BIG-IP_LICENSEREQUEST: Content-Type: text/xml; charset="UTF-8" SOAPAction: Content-Length: 916 FOR MAT_SHELLF5[Local Traffic / Pool] cli admin-partitions { update-partition Common }

 

    pool em_vs_pool {
       members {
          3.3.3.3 4.4.4.4
    }
    }


    F5[Local Traffic / Virtual Server]
    cli admin-partitions {
     update-partition Common
    }

    virtual em_vs {
       pool em_vs_pool
       destination 3.3.3.23:http
       ip protocol tcp
       profiles {
          http
          oneconnect
          tcp
    }
    }
    

1 Reply

  • Hi, for the verify you can use this syntax:

     

    { "command":"load", "options":[ { "file":"mybackup.scf", "verify":"" } ] }