Forum Discussion
Chanan_Berler_3
Nimbostratus
Jan 28, 2017Create node fails
Hi All,
When running i get this error message - can anyone help?
{'apiError': 1,
'code': 400,
'errorStack': [],
'message': 'Found invalid JSON body in the request.'}
Thanks
Chanan
lo...
JRahm
Admin
Jan 28, 2017Oh did he now...off with his head! 🙂
With the sdk:
>>> fqdn['tmName'] = 'node.test.local'
>>> node = b.tm.ltm.nodes.node.create(name='node.test.local', address='any6', partition='Common', fqdn=fqdn)
The key for you is to not supply every argument that you see on a GET. Just setting the object name, the address, and the fqdn is sufficient, so if you clean up your code to reflect that it should work just fine. Supplying the autopopulate or addressFamily attributes in the fqdn dictionary will fail on POST.
I contribute to the SDK as I have time, but the larger team working on it strive to make it easier on the end users. My $.02.
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