Skip to main content

Filtering UAPI Responses

Comments

5 comments

  • cPRex Jurassic Moderator
    Hey there! Would this possibly be an easier, or more efficient, API call to use?
    0
  • bellwood
    Rex, That certainly works, however, any reason why filtering wouldn't be working on UAPI?
    0
  • cPRex Jurassic Moderator
    I'll do some testing with this and let you know!
    0
  • cPRex Jurassic Moderator
    At this point, I'm not able to get it working on my end either. I've reached out to the development team although I haven't heard back just yet. Once I have an update I'll be sure to let you know.
    0
  • cPRex Jurassic Moderator
    I heard back from the developers and they let me know the following information: "The filtering functionality requires an API output that lists multiple sets of data. That is not the case for Variables::get_user_information. These two options work for filtering if you want to see that in action: whmapi1 listaccts api.filter.enable=1 api.filter.a.field=suspended api.filter.a.arg0=1 api.filter.a.type=eq whmapi1 listaccts api.columns.enable=1 api.columns.a=user api.columns.b=suspended" Does that help to clear things up?
    0

Please sign in to leave a comment.