Curl rest api

Hi all, I want to get all my virtual servers name by using rest api. How can i do this. I tried command shown below.

curl -k -u admin:admin -H “Content-Type: application/json” -X GET https://10.128.1.245/mgmt/tm/ltm/virtual

Try using below API

curl -sk -u admin:password https://bigip/mgmt/tm/ltm/virtual/ -H "Content-Type: application/json"

-Jinshu