Forum Discussion
bonny_11145
Jan 28, 2015Historic F5 Account
Hi there,
Another possible way is to run two queries (I know it's less than efficient, but...):
- The first is to specify as you did some monitor type. It seems to not make a difference so long as the type is valid. The change is that you add a select filter, so the query becomes:
curl -s -k -u admin:admin -H "Content-Type: application/json" -X GET https://localhost/mgmt/tm/ltm/monitor/tcp/monitor_name?$select=defaultsFrom
This query returns the parent monitor you used to create the monitor (assuming this is a custom monitor), which would, in most cases, be the monitor type name as well. For example when I run this, I get:
{
"defaultsFrom": "/Common/http"
}
- You can construct the proper query using the type obtained above.