yuanqiang_22112
Oct 23, 2018Nimbostratus
use rest api create ucs archive
Hello: I want to use rest api create ucs archive ,and send to my external storage ; Can you give me the python code .
import requests import json import urllib3 urllib3.disable_warnings()
bigip_ip='20.42.1.51' bigip_username='admin' bigip_password='admin'
resp =requests.post/mgmt/tm/sys/ucs -d '{"command":"save","name":"/var/local/ucs/test.ucs"}'
print resp