# PulpAnsibleClient::ContentCollectionsApi All URIs are relative to *http://localhost:24817* Method | HTTP request | Description ------------- | ------------- | ------------- [**create**](ContentCollectionsApi.md#create) | **POST** /pulp/api/v3/content/ansible/collections/ | Create a collection version [**list**](ContentCollectionsApi.md#list) | **GET** /pulp/api/v3/content/ansible/collections/ | List collection versions ## create > CollectionVersion create(data) Create a collection version ViewSet for Ansible Collection. ### Example ```ruby # load the gem require 'pulp_ansible_client' # setup authorization PulpAnsibleClient.configure do |config| # Configure HTTP basic authorization: Basic config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = PulpAnsibleClient::ContentCollectionsApi.new data = PulpAnsibleClient::CollectionVersion.new # CollectionVersion | begin #Create a collection version result = api_instance.create(data) p result rescue PulpAnsibleClient::ApiError => e puts "Exception when calling ContentCollectionsApi->create: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **data** | [**CollectionVersion**](CollectionVersion.md)| | ### Return type [**CollectionVersion**](CollectionVersion.md) ### Authorization [Basic](../README.md#Basic) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## list > InlineResponse200 list(opts) List collection versions ViewSet for Ansible Collection. ### Example ```ruby # load the gem require 'pulp_ansible_client' # setup authorization PulpAnsibleClient.configure do |config| # Configure HTTP basic authorization: Basic config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = PulpAnsibleClient::ContentCollectionsApi.new opts = { namespace: 'namespace_example', # String | name: 'name_example', # String | version: 'version_example', # String | Filter results where version matches value repository_version: 'repository_version_example', # String | Repository Version referenced by HREF repository_version_added: 'repository_version_added_example', # String | Repository Version referenced by HREF repository_version_removed: 'repository_version_removed_example', # String | Repository Version referenced by HREF latest: 'latest_example', # String | q: 'q_example', # String | page: 56, # Integer | A page number within the paginated result set. page_size: 56 # Integer | Number of results to return per page. } begin #List collection versions result = api_instance.list(opts) p result rescue PulpAnsibleClient::ApiError => e puts "Exception when calling ContentCollectionsApi->list: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| | [optional] **name** | **String**| | [optional] **version** | **String**| Filter results where version matches value | [optional] **repository_version** | **String**| Repository Version referenced by HREF | [optional] **repository_version_added** | **String**| Repository Version referenced by HREF | [optional] **repository_version_removed** | **String**| Repository Version referenced by HREF | [optional] **latest** | **String**| | [optional] **q** | **String**| | [optional] **page** | **Integer**| A page number within the paginated result set. | [optional] **page_size** | **Integer**| Number of results to return per page. | [optional] ### Return type [**InlineResponse200**](InlineResponse200.md) ### Authorization [Basic](../README.md#Basic) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json