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 24, 2018Ret. Employee
Check the Q&A in change virtual server type with TMSH command?.
However, some virtual server types come with additional fields that indicate their types. For example,
Forwarding (Layer 2)
comes with the l2-forward
field with no value (in tmsh) or l2Forward
with the value true (in iControl REST).
(tmos) list ltm virtual vs
ltm virtual vs {
....
l2-forward
....
}
curl -sku admin:admin https:///mgmt/tm/ltm/virtual/vs | python -m json.tool | grep l2
"l2Forward": true,
Some don't. In that case, you need to infer the virtual server type from its profiles. For example, I would assume that the presence of
fasthttp4
profile suggests that it is a Performance (HTTP)
type.
To my knowledge, there is no documentation, so you need to come up with your own heuristics.
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