Forum Discussion
Satoshi_Toyosa1
Sep 24, 2018Employee
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.