# CloudsmithApi::VulnerabilitiesApi All URIs are relative to *https://api.cloudsmith.io/v1* Method | HTTP request | Description ------------- | ------------- | ------------- [**vulnerabilities_namespace_list**](VulnerabilitiesApi.md#vulnerabilities_namespace_list) | **GET** /vulnerabilities/{owner}/ | Lists scan results for a specific namespace. [**vulnerabilities_package_list**](VulnerabilitiesApi.md#vulnerabilities_package_list) | **GET** /vulnerabilities/{owner}/{repo}/{package}/ | Lists scan results for a specific package. [**vulnerabilities_read**](VulnerabilitiesApi.md#vulnerabilities_read) | **GET** /vulnerabilities/{owner}/{repo}/{package}/{identifier}/ | Get a scan result. [**vulnerabilities_repo_list**](VulnerabilitiesApi.md#vulnerabilities_repo_list) | **GET** /vulnerabilities/{owner}/{repo}/ | Lists scan results for a specific repository. # **vulnerabilities_namespace_list** > Array<VulnerabilityScanResultsList> vulnerabilities_namespace_list(owner, opts) Lists scan results for a specific namespace. Lists scan results 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' # Configure API key authorization: token config.api_key['Authorization'] = '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['Authorization'] = 'Bearer' end api_instance = CloudsmithApi::VulnerabilitiesApi.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. } begin #Lists scan results for a specific namespace. result = api_instance.vulnerabilities_namespace_list(owner, opts) p result rescue CloudsmithApi::ApiError => e puts "Exception when calling VulnerabilitiesApi->vulnerabilities_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] ### Return type [**Array<VulnerabilityScanResultsList>**](VulnerabilityScanResultsList.md) ### Authorization [apikey](../README.md#apikey), [basic](../README.md#basic), [token](../README.md#token) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json # **vulnerabilities_package_list** > Array<VulnerabilityScanResultsList> vulnerabilities_package_list(owner, repo, package, opts) Lists scan results for a specific package. Lists scan results for a specific package. ### 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' # Configure API key authorization: token config.api_key['Authorization'] = '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['Authorization'] = 'Bearer' end api_instance = CloudsmithApi::VulnerabilitiesApi.new owner = 'owner_example' # String | repo = 'repo_example' # String | package = 'package_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. } begin #Lists scan results for a specific package. result = api_instance.vulnerabilities_package_list(owner, repo, package, opts) p result rescue CloudsmithApi::ApiError => e puts "Exception when calling VulnerabilitiesApi->vulnerabilities_package_list: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **String**| | **repo** | **String**| | **package** | **String**| | **page** | **Integer**| A page number within the paginated result set. | [optional] **page_size** | **Integer**| Number of results to return per page. | [optional] ### Return type [**Array<VulnerabilityScanResultsList>**](VulnerabilityScanResultsList.md) ### Authorization [apikey](../README.md#apikey), [basic](../README.md#basic), [token](../README.md#token) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json # **vulnerabilities_read** > VulnerabilityScanResults vulnerabilities_read(owner, repo, package, identifier) Get a scan result. Get a scan result. ### 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' # Configure API key authorization: token config.api_key['Authorization'] = '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['Authorization'] = 'Bearer' end api_instance = CloudsmithApi::VulnerabilitiesApi.new owner = 'owner_example' # String | repo = 'repo_example' # String | package = 'package_example' # String | identifier = 'identifier_example' # String | begin #Get a scan result. result = api_instance.vulnerabilities_read(owner, repo, package, identifier) p result rescue CloudsmithApi::ApiError => e puts "Exception when calling VulnerabilitiesApi->vulnerabilities_read: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **String**| | **repo** | **String**| | **package** | **String**| | **identifier** | **String**| | ### Return type [**VulnerabilityScanResults**](VulnerabilityScanResults.md) ### Authorization [apikey](../README.md#apikey), [basic](../README.md#basic), [token](../README.md#token) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json # **vulnerabilities_repo_list** > Array<VulnerabilityScanResultsList> vulnerabilities_repo_list(owner, repo, opts) Lists scan results for a specific repository. Lists scan results 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' # Configure API key authorization: token config.api_key['Authorization'] = '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['Authorization'] = 'Bearer' end api_instance = CloudsmithApi::VulnerabilitiesApi.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. } begin #Lists scan results for a specific repository. result = api_instance.vulnerabilities_repo_list(owner, repo, opts) p result rescue CloudsmithApi::ApiError => e puts "Exception when calling VulnerabilitiesApi->vulnerabilities_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] ### Return type [**Array<VulnerabilityScanResultsList>**](VulnerabilityScanResultsList.md) ### Authorization [apikey](../README.md#apikey), [basic](../README.md#basic), [token](../README.md#token) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json