DX NetOps

 View Only
  • 1.  REST API Group query - only direct child groups - no child items or sub-groups

    Posted Feb 15, 2019 09:12 AM

    Hi All,

     

    I am able to pull the group ID's and all details for that group using a HTTP GET query in CAPM:

     

    pc/center/webservice/groups/groupPath/All%20Groups/Defined%20Tenants/<NAME>

     

    But this is very long and I don't need all the sub-groups, and sub-sub-groups, etc. Is there a way to restrict what is sent back in terms of only wanting direct child groups to the group in question?

     

    Many Thanks,

     

    Frank



  • 2.  Re: REST API Group query - only direct child groups - no child items or sub-groups
    Best Answer

    Broadcom Employee
    Posted Feb 15, 2019 09:55 AM

    Hi Frank,

     

    Using something along the lines of the URLs referenced in the following Knowledge Base Article, using the specific group ItemID that houses the sub-groups you want to see, does it get you closer to what you're seeking?

     

    List Group membership through REST - CA Knowledge 

     

    If not, can you provide more detail re: what you're looking to do with this data? Maybe there's an alternative to get the same thing.

     

    Thanks,

    Mike



  • 3.  Re: REST API Group query - only direct child groups - no child items or sub-groups

    Posted Feb 18, 2019 04:28 AM

    Thanks Mike,

     

    This is totally what I was looking for.

     

    It is the 'items' in the URL that got me what i wanted. I had everything else in place except that!

     

    Many Thanks,


    Frank