Forum Discussion
Patrik_Jonsson1
Altocumulus
Apr 26, 2017Demystifying the iControl Rest API documentation
Hi!
Just started to dabble with the REST interface and so far it's been going great, but I've run into some problems with decrypting the API documentation.
Looking at the doc for client SSL...
Jun 21, 2017
To anyone reading this in the same situation. Might seem obvious (I missed it though), but the easiest way is to reverse engineer the objects by retrieving current configuration.
Example:
curl -sku user:password https://localhost/mgmt/tm/ltm/profile/client-ssl/ | json-format
...Previous config omitted
"certKeyChain": [
{
"name": "default",
"cert": "/Common/default.crt",
"certReference": {
"link": "https://localhost/mgmt/tm/sys/file/ssl-cert/~Common~default.crt?ver\u003d12.1.2"
},
"key": "/Common/default.key",
"keyReference": {
"link": "https://localhost/mgmt/tm/sys/file/ssl-key/~Common~default.key?ver\u003d12.1.2"
}
}
Remove the reference properties and you are good to go!
/Patrik
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