Double check but that function may be meant to return static routes from an MX appliance configuration, perhaps not a switch network or a combined network, meaning you have multiple locales like security, switching, wireless in the same dashboard as a "combined" network. I haven't tried grabbing static routes off a L3 switch via API, will give it a try when time permits, but double check with Support to confirm the proper use of the API call.