transaction_validate

Code

BIGIP.transaction_validate() RESTObject

Validate a transaction on the device.

Sends an HTTP PATCH request to the iControl REST API.

Exceptions:

RESTAPIError: Raised when iControl REST API returns an error.

Example

try:
    device.transaction_validate()
except RESTAPIError:
    print("Transaction failed.")
else:
    device.transaction_commit()
    print("Transaction completed.")

Explanation

Before committing the transaction we can also validate the transaction.
This will evaluate if the transaction is likely to fail or not.