REST API on F5 with Transactions

It’s possible to group commands together and then have the F5 process them, if one fails, then the config is rolled back the the transaction in voided.  Here’s an example from the documentation:

Create a transaction that will group commands together:

POST https://192.168.25.42/mgmt/tm/transaction

Then the POST with the transaction ID:

POST https://192.168.25.42/mgmt/tm/ltm/poolX-F5-REST-Coordination-Id:1389812351{   "name":"tcb-xact-pool",   "members": [ {"name":"192.168.25.32:80","description":"First pool for transactions"} ]}

Commit transaction:

PATCH https://localhost/mgmt/tm/transaction/1389812351{ "state":"VALIDATING” }

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: