Forum Discussion

chradams_255528's avatar
chradams_255528
Icon for Nimbostratus rankNimbostratus
Apr 04, 2016

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

  • 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.

     

    • Faintly_Lucky_2's avatar
      Faintly_Lucky_2
      Icon for Altocumulus rankAltocumulus
      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's avatar
      chradams_255528
      Icon for Nimbostratus rankNimbostratus
      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!
  • 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.

     

    • Faintly_Lucky's avatar
      Faintly_Lucky
      Icon for Nimbostratus rankNimbostratus
      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's avatar
      chradams_255528
      Icon for Nimbostratus rankNimbostratus
      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!
  • 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.