Forum Discussion
DevBabu_124276
Nimbostratus
Mar 30, 2016Not able to create transaction - iControl REST
I am not able to get the transaction ID while trying to create one:
.\curl.exe -u XX:XX -kv -H "Content-Type: application/json" -X POST https://bigip/mgmt/tm/transaction
Getting the fol...
May 14, 2016
Here is a sample of what I use with Python's requests module. I send an empty payload which seems to work.
uri = "https://IP/mgmt/tm/transaction"
response = bigip.post(uri, data=json.dumps({}))
This will return a JSON response with a transId value, which must be passed into every other request that should be part of the transaction. The transId value should be passed as the value to the header "X-F5-REST-Coordination-Id".
headers = {'X-F5-REST-Coordination-Id': transId}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects