Home

Results 1 to 3 of 3

Thread: REST API and roles and filter expressions

  1. #1
    mickelarsson NNTP User

    REST API and roles and filter expressions


    According to the documentation it's possible to make a request to the
    REST API with the URI /roles?filter={role filter expression}. However,
    the role filter expression isn't covered at all in the docs. There are
    some notations about filter expressions with workentries and processes
    but when trying with the same syntax at the role service it doesnt work.
    Some insights?


    --
    mickelarsson
    ------------------------------------------------------------------------
    mickelarsson's Profile: https://forums.netiq.com/member.php?userid=224
    View this thread: https://forums.netiq.com/showthread.php?t=48481


  2. #2
    Steven Williams NNTP User

    Re: REST API and roles and filter expressions

    On 08/26/2013 10:34 AM, mickelarsson wrote:
    >
    > According to the documentation it's possible to make a request to the
    > REST API with the URI /roles?filter={role filter expression}. However,
    > the role filter expression isn't covered at all in the docs. There are
    > some notations about filter expressions with workentries and processes
    > but when trying with the same syntax at the role service it doesnt work.
    > Some insights?
    >
    >

    Greetings,

    1) What are the Attributes that can be Filtered: Name | Description

    2) What are the Operators: equal | startwith | endwith | notequal

    3) The Value must be within single quotes (')

    4) There must be spaces between the the Attribute Operator Value


    /roles?filter=<Attribute>%20<Operator>%20'Value'

    For Example: /roles?filter=Description%20startwith%20'test'

    --

    Sincerely,
    Steven Williams
    Lead Software Engineer
    NetIQ

  3. #3
    2qkv8 NNTP User

    Re: REST API and roles and filter expressions


    Steven Williams;235121 Wrote:[color=blue]
    > On 08/26/2013 10:34 AM, mickelarsson wrote:
    > 1) What are the Attributes that can be Filtered: Name | Description
    > 2) What are the Operators: equal | startwith | endwith | notequal
    > 3) The Value must be within single quotes (')
    > 4) There must be spaces between the the Attribute Operator Value
    > /roles?filter=<Attribute>%20<Operator>%20'Value'
    >
    > For Example: /roles?filter=Description%20startwith%20'test'
    >


    How can I combine the attributes and filter by both description and
    name?


    --
    2qkv8
    ------------------------------------------------------------------------
    2qkv8's Profile: https://forums.netiq.com/member.php?userid=10246
    View this thread: https://forums.netiq.com/showthread.php?t=48481


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •