Using Cloudsoc API's filter, search for empty values
search cancel

Using Cloudsoc API's filter, search for empty values

book

Article ID: 269965

calendar_today

Updated On:

Products

CASB Advanced Threat Protection CASB Audit CASB Gateway CASB Gateway Advanced CASB Security Advanced CASB Security Advanced IAAS CASB Security Premium CASB Security Premium IAAS CASB Security Standard CASB Securlet IAAS CASB Securlet SAAS CASB Securlet SAAS With DLP-CDS

Issue/Introduction

Cloudsoc API's offers different ways to get the right list of records through the use of the "Filters", this article covers the user case where the objective is to look for the keys that does not have a value set (Empty fields)

Resolution

The appropriate way to look for empty records is to set the filter key and leave the value unset.

like:

"/?FILTER="

Additional Information

Using user management APIs as an example.

To filter on the user records that do not have a "Secondary User ID" set, use the URI in this format:

"/api/admin/v1/user_management/?secondary_user_id="

 

The final URL will be something like:

https://api-vip.elastica.net/EXAMPLECOM//api/admin/v1/user_management/?secondary_user_id=