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 21, 2018Ret. Employee
See OData Queries for how to handle the query parameters in the Python SDK.
In short, you can do something like this.
from f5.bigip import ManagementRoot
mgmt = ManagementRoot('mgmtPort', 'admin', 'admin')
vs = mgmt.tm.ltm.virtuals.virtual.load(
name='vs', partition='Common',
requests_params={'params': 'expandSubcollections=true'})
prof = vs.__dict__['profilesReference']['items']
for p in prof:
print p['name']
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