Forum Discussion
REST API query route-domain
When I attempt to query all route domains using https:///mgmt/tm/net/route-domain, i get intermittent results. sometimes I receive only the common partition, other times I get the list of all route domains for all partitions. what is the best way to query for all route domain partitions using the REST API?
All feedback welcome.
9 Replies
- Faintly_Lucky_2
Altocumulus
Sounds like you might have multiple pairs running different versions. in 11.4 (early access feature) a query like that would only get you stuff in the common partition if you queried the Self-IPs, for instance. In 11.5, that same query will get you Self-IPs from all partitions/folders unless you specify a partition/folder.
- chradams_255528
Nimbostratus
Many thanks for the feedback, we are actually running 12.0 HF1. - Faintly_Lucky_2
Altocumulus
Hmmm....haven't had a chance to test 12.0 yet, but I will let you know what my findings are once I get it on one of my test boxes. Could be a bug because I've always found the API to be very consistent in the way it behaves from major rev to major rev. Might be worth opening a support case on it. Just to be sure, you're saying that something like "curl -k -u admin:$sglb -H "Content-Type: application/json" -X GET "https://1.1.1.1/mgmt/tm/net/route-domain" |python26 -m json.tool" nets inconsistent results in that sometimes you get data for all partitions and sometimes you get data for only Common? - chradams_255528
Nimbostratus
Correct, when I executed the curl command the first time it would return only the common partition. If I repeated the command it would get all partitions for several attempts and then only one common partition. We will see if we can get a case open. Thanks for your feedback!
- Faintly_Lucky
Nimbostratus
Sounds like you might have multiple pairs running different versions. in 11.4 (early access feature) a query like that would only get you stuff in the common partition if you queried the Self-IPs, for instance. In 11.5, that same query will get you Self-IPs from all partitions/folders unless you specify a partition/folder.
- chradams_255528
Nimbostratus
Many thanks for the feedback, we are actually running 12.0 HF1. - Faintly_Lucky
Nimbostratus
Hmmm....haven't had a chance to test 12.0 yet, but I will let you know what my findings are once I get it on one of my test boxes. Could be a bug because I've always found the API to be very consistent in the way it behaves from major rev to major rev. Might be worth opening a support case on it. Just to be sure, you're saying that something like "curl -k -u admin:$sglb -H "Content-Type: application/json" -X GET "https://1.1.1.1/mgmt/tm/net/route-domain" |python26 -m json.tool" nets inconsistent results in that sometimes you get data for all partitions and sometimes you get data for only Common? - chradams_255528
Nimbostratus
Correct, when I executed the curl command the first time it would return only the common partition. If I repeated the command it would get all partitions for several attempts and then only one common partition. We will see if we can get a case open. Thanks for your feedback!
- DevF5tech_31707
Nimbostratus
Hi
Is there a way to query instead of using the names of the routedomains? I read the doc and I found that we are supposed to use this . But I want to find a way to use the UUID instead of sub module names.
Thanks in advance.
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com