Forum Discussion
Brandon_12856
Jul 18, 2014Nimbostratus
How can I call iControlREST to save and load configurations from UCS?
I'm working on automating my development process so I want to be able to save/load a known state in my lab.
Essentially I want to be able to RESTfully call these commands:
* tmsh save sys ucs Sn...
Arnaud_F_
Aug 07, 2015Nimbostratus
Hi Arnaud,
Thanks for the reply.
My tests confirm that the issue is fixed in 11.5.3 release.
Saving and loading ucs are working even if there is timeout error or wrong feedback from the api.
You will bellow an extract of python code :
bigip_url_base = 'https://%s/mgmt/tm' % bigip_address
bigip = requests.session()
bigip.auth = (bigip_user, bigip_pass)
bigip.verify = False
bigip.headers.update({'Content-Type' : 'application/json'})
payload = {}
Load
payload['command'] = 'load'
payload['options'] = [{ 'ucs' : 'my-backup.ucs' },{ 'passphrase' : 'my-archive-password' }, { 'no-license' : '' }]
result = bigip.post('%s/sys' % bigip_url_base, data=json.dumps(payload))
Save
payload = {}
payload['command'] = 'save'
payload['options'] = [{ 'ucs' : 'my-backup.ucs' },{ 'passphrase' : 'my-archive-password' }]
result = bigip.post('%s/sys' % bigip_url_base, data=json.dumps(payload))
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