I want to use Marathon's Rest API to get the hostname of a particular application.
curl -XGET http://IP:8080/v2/apps/app_name/tasks gives a list of details including hostname. However I want the output to be only the hostname. Does something exist for this?