Forum Discussion
how to get vip name and address(destination) with json
Hi,
I want to get all vip's name and their address(destination) with rest api.
I was able to get all the vips with postman with get - "https://localf5/mgmt/tm/ltm/virtual".
I can't figure a way to get only the name of the vip and address
have anyone manage to do that?
eventually, I want to build a script that create another vip with the same address but diffrent port
and for that I need to check the ip of the vip
thanks,
Hi,
To obtain the information from a specific virtual server you have to specify the partition and the VS name:
https://192.168.138.11/mgmt/tm/ltm/virtual/~Common~VS-WAF
In the example the partition is Common and the virtual server name is VS-WAF, if you want to create a script you have to read the destination field to obtain the IP.
Hope it´s works.
Recent Discussions
Related Content
* 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