search methods#
get_audit_logs#
- get_audit_logs(apiuser, query)#
return full audit logs based on the query.
Please see example query in admin > settings > audit logs for examples
- Parameters:
apiuser (AuthUser) – This is filled automatically from the Authentication Token.
query (str) – filter query, example: action:repo.artifact.add date:[20200401 TO 20200601]”
search#
- search(apiuser, search_query, search_type, page_limit=<Optional:10>, page=<Optional:1>, search_sort=<Optional:'desc:date'>, repo_name=<Optional:None>, repo_group_name=<Optional:None>)#
Fetch Full Text Search results using API.
- Parameters:
apiuser (AuthUser) – This is filled automatically from the Authentication Token.
search_query (str) – Search query.
search_type (str) – Search type. The following are valid options: * commit * content * path
page_limit (Optional(int)) – Page item limit, from 1 to 500. Default 10 items.
page (Optional(int)) – Page number. Default first page.
search_sort (Optional(str)) – Search sort order.Must start with asc: or desc: Default desc:date. The following are valid options: * asc|desc:message.raw * asc|desc:date * asc|desc:author.email.raw * asc|desc:message.raw * newfirst (old legacy equal to desc:date) * oldfirst (old legacy equal to asc:date)
repo_name (Optional(str)) – Filter by one repo. Default is all.
repo_group_name (Optional(str)) – Filter by one repo group. Default is all.