Clarity Service Management

Expand all | Collapse all

How to get the group list for a cnt via REST API?

Jump to Best Answer
  • 1.  How to get the group list for a cnt via REST API?

    Posted 05-28-2018 04:27 PM

    I need a way to retrieve the group list via REST API. How can i do it?

     

    I had tried by this both ways, without success:

     

    http://localhost:8050/caisd-rest/cnt/U'24AFC7176B76894C9CE161AEFA710989'/group_list

    http://localhost:8050/caisd-rest/grpmem?WC=member%U'24AFC7176B76894C9CE161AEFA710989'



  • 2.  Re: How to get the group list for a cnt via REST API?
    Best Answer

    Posted 05-29-2018 02:52 AM

    Hi

    Did you correctly encode your URI??

    The below work for me:

     

    http://localhost:8050/caisd-rest/grpmem?WC=member%3DU%2724AFC7176B76894C9CE161AEFA710989%27

     

    /J



  • 3.  Re: How to get the group list for a cnt via REST API?

    Posted 05-29-2018 10:34 AM

    Also don't forget the X-Obj-Attrs header. Without it the operation will only return the ID and COMMON_NAME attributes. You can supply "*" as the value of the header to return all attributes.



  • 4.  Re: How to get the group list for a cnt via REST API?

    Posted 05-29-2018 12:11 PM

    In fact, the two responses were of great value because I was having difficulty receiving the necessary values in the response. Thank you all!