cancel
Showing results for 
Search instead for 
Did you mean: 

how to get vip name and address(destination) with json

lior
Nimbostratus
Nimbostratus

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,

 

1 REPLY 1

Sebastiansierra
Cirrocumulus
Cirrocumulus

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.