# CloudsmithApi::AuditLogApi All URIs are relative to *https://api.cloudsmith.io/v1* Method | HTTP request | Description ------------- | ------------- | ------------- [**audit_log_namespace_list**](AuditLogApi.md#audit_log_namespace_list) | **GET** /audit-log/{owner}/ | Lists audit log entries for a specific namespace. [**audit_log_repo_list**](AuditLogApi.md#audit_log_repo_list) | **GET** /audit-log/{owner}/{repo}/ | Lists audit log entries for a specific repository. # **audit_log_namespace_list** > Array<NamespaceAuditLog> audit_log_namespace_list(owner, opts) Lists audit log entries for a specific namespace. Lists audit log entries for a specific namespace. ### Example ```ruby # load the gem require 'cloudsmith-api' # setup authorization CloudsmithApi.configure do |config| # Configure API key authorization: apikey config.api_key['X-Api-Key'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) #config.api_key_prefix['X-Api-Key'] = 'Bearer' # Configure HTTP basic authorization: basic config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = CloudsmithApi::AuditLogApi.new owner = 'owner_example' # String | opts = { page: 56, # Integer | A page number within the paginated result set. page_size: 56, # Integer | Number of results to return per page. query: 'query_example' # String | A search term for querying events, actors, or timestamps of log records. } begin #Lists audit log entries for a specific namespace. result = api_instance.audit_log_namespace_list(owner, opts) p result rescue CloudsmithApi::ApiError => e puts "Exception when calling AuditLogApi->audit_log_namespace_list: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **String**| | **page** | **Integer**| A page number within the paginated result set. | [optional] **page_size** | **Integer**| Number of results to return per page. | [optional] **query** | **String**| A search term for querying events, actors, or timestamps of log records. | [optional] ### Return type [**Array<NamespaceAuditLog>**](NamespaceAuditLog.md) ### Authorization [apikey](../README.md#apikey), [basic](../README.md#basic) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json # **audit_log_repo_list** > Array<RepositoryAuditLog> audit_log_repo_list(owner, repo, opts) Lists audit log entries for a specific repository. Lists audit log entries for a specific repository. ### Example ```ruby # load the gem require 'cloudsmith-api' # setup authorization CloudsmithApi.configure do |config| # Configure API key authorization: apikey config.api_key['X-Api-Key'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) #config.api_key_prefix['X-Api-Key'] = 'Bearer' # Configure HTTP basic authorization: basic config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = CloudsmithApi::AuditLogApi.new owner = 'owner_example' # String | repo = 'repo_example' # String | opts = { page: 56, # Integer | A page number within the paginated result set. page_size: 56, # Integer | Number of results to return per page. query: 'query_example' # String | A search term for querying events, actors, or timestamps of log records. } begin #Lists audit log entries for a specific repository. result = api_instance.audit_log_repo_list(owner, repo, opts) p result rescue CloudsmithApi::ApiError => e puts "Exception when calling AuditLogApi->audit_log_repo_list: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **String**| | **repo** | **String**| | **page** | **Integer**| A page number within the paginated result set. | [optional] **page_size** | **Integer**| Number of results to return per page. | [optional] **query** | **String**| A search term for querying events, actors, or timestamps of log records. | [optional] ### Return type [**Array<RepositoryAuditLog>**](RepositoryAuditLog.md) ### Authorization [apikey](../README.md#apikey), [basic](../README.md#basic) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json