f5.bigip.tm.transaction
Module contents
BIG-IP® system dns module
- REST URI
http://localhost/mgmt/tm/transaction
- REST Kind
tm:transaction*
- class f5.bigip.tm.transaction.Transactions(api)[source]
This class is a context manager for iControl transactions.
Upon successful exit of the with statement, the transaction will be submitted, otherwise it will be rolled back.
NOTE: This feature was added to BIGIP in version 11.0.0.
Example: > bigip = BigIP(<args>) > tx = bigip.transactions.transaction > with TransactionContextManager(tx) as api: > api.net.pools.pool.create(name=”foo”) > api.sys.dbs.db.update(name=”setup.run”, value=”false”) > <perform actions inside a transaction> > > # transaction is committed when you exit the “with” statement.
BIG-IP® system dns module |