Forum Discussion

MarkM_63051's avatar
Icon for Nimbostratus rankNimbostratus
Jan 16, 2012

General Rollback Question




I have a general question about the proper way to rollback incomplete API calls. I have written code that performs the following series of API calls:



* Create virtual server


* Create empty pool


* Create rule for the pool


* Add the rule to the virtual server


* Create a monitor association for the pool


* Create a persistence profile for the new pool


* Add the persisten profile to the virtual server



I would like to know what is the standard way to undo the actions that completed should one in the list further down the list fail?







11 Replies