save

Code

BIGIP.save(obj: 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.

Exceptions:

RESTAPIError: Raised when iControl REST API returns an error.

Example

virtual = device.load(
    "/mgmt/tm/ltm/virtual/bigrest_vs")[0]
virtual.properties["pool"] = "bigrest_pool"
device.save(virtual)

Explanation

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.