Forum Discussion
Buddy_Edwards_1
Nimbostratus
Sep 09, 2016Get ClientSSL and ServerSSL profiles using the Rest API
I've written the following script so that I can document at a high level the VIPs that I have created without having to dig into them every time I need to know pools, irules, members, etc... the prob...
James_Thomson
Employee
Sep 26, 2016You're looking for the profile associated with the virtual server. They are in a subcollection.
This GET https://192.168.153.234/mgmt/tm/ltm/virtual/testssl
gives me
"profilesReference": {
"link": "https://localhost/mgmt/tm/ltm/virtual/~Common~testssl/profiles?ver=12.1.0",
"isSubcollection": true
}
so if I then send GET to that:
https://192.168.153.234/mgmt/tm/ltm/virtual/~Common~testssl/profiles
I get the following:
{
"kind": "tm:ltm:virtual:profiles:profilescollectionstate",
"selfLink": "https://localhost/mgmt/tm/ltm/virtual/~Common~testssl/profiles?ver=12.1.0",
"items": [
{
"kind": "tm:ltm:virtual:profiles:profilesstate",
"name": "clientssl",
"partition": "Common",
"fullPath": "/Common/clientssl",
"generation": 284,
"selfLink": "https://localhost/mgmt/tm/ltm/virtual/~Common~testssl/profiles/~Common~clientssl?ver=12.1.0",
"context": "clientside"
},
{
"kind": "tm:ltm:virtual:profiles:profilesstate",
"name": "serverssl",
"partition": "Common",
"fullPath": "/Common/serverssl",
"generation": 284,
"selfLink": "https://localhost/mgmt/tm/ltm/virtual/~Common~testssl/profiles/~Common~serverssl?ver=12.1.0",
"context": "serverside"
},
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
