# PulpAnsibleClient::VersionsApi All URIs are relative to *http://pulp* Method | HTTP request | Description ------------- | ------------- | ------------- [**get**](VersionsApi.md#get) | **GET** {ansible_role_href}versions/ | [**get_0**](VersionsApi.md#get_0) | **GET** {ansible_collection_version_href}versions/ | ## get > InlineResponse20010 get(ansible_role_href, opts) APIView for Role Versions. ### Example ```ruby # load the gem require 'pulp_ansible_client' api_instance = PulpAnsibleClient::VersionsApi.new ansible_role_href = 'ansible_role_href_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. fields: 'fields_example', # String | A list of fields to include in the response. exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response. } begin result = api_instance.get(ansible_role_href, opts) p result rescue PulpAnsibleClient::ApiError => e puts "Exception when calling VersionsApi->get: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ansible_role_href** | **String**| | **limit** | **Integer**| Number of results to return per page. | [optional] **offset** | **Integer**| The initial index from which to return the results. | [optional] **fields** | **String**| A list of fields to include in the response. | [optional] **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional] ### Return type [**InlineResponse20010**](InlineResponse20010.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ## get_0 > InlineResponse20012 get_0(ansible_collection_version_href, opts) APIView for Collections by namespace/name. ### Example ```ruby # load the gem require 'pulp_ansible_client' api_instance = PulpAnsibleClient::VersionsApi.new ansible_collection_version_href = 'ansible_collection_version_href_example' # String | opts = { page: 56, # Integer | A page number within the paginated result set. fields: 'fields_example', # String | A list of fields to include in the response. exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response. } begin result = api_instance.get_0(ansible_collection_version_href, opts) p result rescue PulpAnsibleClient::ApiError => e puts "Exception when calling VersionsApi->get_0: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ansible_collection_version_href** | **String**| | **page** | **Integer**| A page number within the paginated result set. | [optional] **fields** | **String**| A list of fields to include in the response. | [optional] **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional] ### Return type [**InlineResponse20012**](InlineResponse20012.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json