save(obj: bigrest.common.restobject.RESTObject) → bigrest.common.restobject.RESTObject¶
Saves on the device the changes that were made locally to the object.
Sends an HTTP PUT request to the iControl REST API.
Parameters: path – HTTP path used in the HTTP request sent to the device.
- RESTAPIError: Raised when iControl REST API returns an error.
virtual = device.load( "/mgmt/tm/ltm/virtual/bigrest_vs") virtual.properties["pool"] = "bigrest_pool" device.save(virtual)
After you load the object from the device, you can edit its properties.
However, the modifications you do are local, so you need to send the modified object to the device.
You do this using the method save, and passing the object to be saved.