# CloudsmithApi::DistrosApi All URIs are relative to *https://api.cloudsmith.io/v1* Method | HTTP request | Description ------------- | ------------- | ------------- [**distros_list**](DistrosApi.md#distros_list) | **GET** /distros/ | Get a list of all supported distributions. [**distros_read**](DistrosApi.md#distros_read) | **GET** /distros/{slug}/ | View for viewing/listing package formats. # **distros_list** > Array<Distribution> distros_list Get a list of all supported distributions. Get a list of all supported distributions. ### 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: csrf_token config.api_key['X-CSRFToken'] = '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-CSRFToken'] = 'Bearer' end api_instance = CloudsmithApi::DistrosApi.new begin #Get a list of all supported distributions. result = api_instance.distros_list p result rescue CloudsmithApi::ApiError => e puts "Exception when calling DistrosApi->distros_list: #{e}" end ``` ### Parameters This endpoint does not need any parameter. ### Return type [**Array<Distribution>**](Distribution.md) ### Authorization [apikey](../README.md#apikey), [basic](../README.md#basic), [csrf_token](../README.md#csrf_token) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: Not defined # **distros_read** > Distribution distros_read(slug) View for viewing/listing package formats. View for viewing/listing package formats. ### 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: csrf_token config.api_key['X-CSRFToken'] = '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-CSRFToken'] = 'Bearer' end api_instance = CloudsmithApi::DistrosApi.new slug = "slug_example" # String | begin #View for viewing/listing package formats. result = api_instance.distros_read(slug) p result rescue CloudsmithApi::ApiError => e puts "Exception when calling DistrosApi->distros_read: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **slug** | **String**| | ### Return type [**Distribution**](Distribution.md) ### Authorization [apikey](../README.md#apikey), [basic](../README.md#basic), [csrf_token](../README.md#csrf_token) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: Not defined