# PulpAnsibleClient::PulpAnsibleGalaxyApiCollectionsApi All URIs are relative to *http://localhost:24817* Method | HTTP request | Description ------------- | ------------- | ------------- [**create**](PulpAnsibleGalaxyApiCollectionsApi.md#create) | **POST** /pulp_ansible/galaxy/{path}/api/v2/collections/ | [**list**](PulpAnsibleGalaxyApiCollectionsApi.md#list) | **GET** /pulp_ansible/galaxy/{path}/api/v3/collections/ | [**read**](PulpAnsibleGalaxyApiCollectionsApi.md#read) | **GET** {collection_version_href} | ## create > create(path) Queues a task that creates a new Collection from an uploaded artifact. ### 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::PulpAnsibleGalaxyApiCollectionsApi.new path = 'path_example' # String | begin api_instance.create(path) rescue PulpAnsibleClient::ApiError => e puts "Exception when calling PulpAnsibleGalaxyApiCollectionsApi->create: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **path** | **String**| | ### Return type nil (empty response body) ### Authorization [Basic](../README.md#Basic) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: Not defined ## list > list(path, opts) ViewSet for Collections. ### 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::PulpAnsibleGalaxyApiCollectionsApi.new path = 'path_example' # String | opts = { limit: 56, # Integer | Number of results to return per page. offset: 56 # Integer | The initial index from which to return the results. } begin api_instance.list(path, opts) rescue PulpAnsibleClient::ApiError => e puts "Exception when calling PulpAnsibleGalaxyApiCollectionsApi->list: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **path** | **String**| | **limit** | **Integer**| Number of results to return per page. | [optional] **offset** | **Integer**| The initial index from which to return the results. | [optional] ### Return type nil (empty response body) ### Authorization [Basic](../README.md#Basic) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: Not defined ## read > GalaxyCollectionVersion read(collection_version_href) Get the detail view of a 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::PulpAnsibleGalaxyApiCollectionsApi.new collection_version_href = 'collection_version_href_example' # String | URI of Collection Version. e.g.: /pulp_ansible/galaxy/1/api/v2/collections/1/1/ begin result = api_instance.read(collection_version_href) p result rescue PulpAnsibleClient::ApiError => e puts "Exception when calling PulpAnsibleGalaxyApiCollectionsApi->read: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **collection_version_href** | **String**| URI of Collection Version. e.g.: /pulp_ansible/galaxy/1/api/v2/collections/1/1/ | ### Return type [**GalaxyCollectionVersion**](GalaxyCollectionVersion.md) ### Authorization [Basic](../README.md#Basic) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json