Forum Discussion
Rob_74473
Cirrus
Sep 17, 2018Trying to find virtual server type through python sdk
I am pulling virtual server info through the rest api and I need to find the type of the virtual server. In everything returned I don't see anything that looks like Standard or Performance (Fast L4) ...
Satoshi_Toyosa1
Sep 19, 2018Ret. Employee
Or you can add
expandSubcollections=true
query string to the request to expand the profilesReference
link. For example, the following curl command will get you the names of profiles attached to the virtual vs
(you can do better with Python than sh, of course).
curl -sku admin:admin https:///mgmt/tm/ltm/virtual/vs?\$select=profilesReference\&expandSubcollections=true \
| python -m json.tool \
| fgrep \"name\"
"name": "fastL4",
"name": "http",
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