# PulpcoreClient::PublicationsApi All URIs are relative to *http://pulp* Method | HTTP request | Description ------------- | ------------- | ------------- [**list**](PublicationsApi.md#list) | **GET** /pulp/api/v3/publications/ | List publications ## list > PaginatedPublicationResponseList list(opts) List publications A base class for any publication viewset. ### Example ```ruby # load the gem require 'pulpcore_client' # setup authorization PulpcoreClient.configure do |config| # Configure HTTP basic authorization: basicAuth config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = PulpcoreClient::PublicationsApi.new opts = { content: 'content_example', # String | Content Unit referenced by HREF content__in: 'content__in_example', # String | Content Unit referenced by HREF limit: 56, # Integer | Number of results to return per page. offset: 56, # Integer | The initial index from which to return the results. ordering: ['ordering_example'], # Array | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `complete` - Complete * `-complete` - Complete (descending) * `pass_through` - Pass through * `-pass_through` - Pass through (descending) * `pk` - Pk * `-pk` - Pk (descending) pulp_created: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_created matches value pulp_created__gt: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_created is greater than value pulp_created__gte: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_created is greater than or equal to value pulp_created__lt: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_created is less than value pulp_created__lte: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_created is less than or equal to value pulp_created__range: [DateTime.parse('2013-10-20T19:20:30+01:00')], # Array | Filter results where pulp_created is between two comma separated values pulp_href__in: ['pulp_href__in_example'], # Array | Multiple values may be separated by commas. pulp_id__in: ['pulp_id__in_example'], # Array | Multiple values may be separated by commas. pulp_type: 'pulp_type_example', # String | Pulp type * `file.file` - file.file pulp_type__in: ['pulp_type__in_example'], # Array | Multiple values may be separated by commas. * `file.file` - file.file q: 'q_example', # String | repository: 'repository_example', # String | Repository referenced by HREF repository_version: 'repository_version_example', # String | Repository Version referenced by HREF fields: ['fields_example'], # Array | A list of fields to include in the response. exclude_fields: ['exclude_fields_example'] # Array | A list of fields to exclude from the response. } begin #List publications result = api_instance.list(opts) p result rescue PulpcoreClient::ApiError => e puts "Exception when calling PublicationsApi->list: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **content** | **String**| Content Unit referenced by HREF | [optional] **content__in** | **String**| Content Unit referenced by HREF | [optional] **limit** | **Integer**| Number of results to return per page. | [optional] **offset** | **Integer**| The initial index from which to return the results. | [optional] **ordering** | [**Array<String>**](String.md)| Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `complete` - Complete * `-complete` - Complete (descending) * `pass_through` - Pass through * `-pass_through` - Pass through (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional] **pulp_created** | **DateTime**| Filter results where pulp_created matches value | [optional] **pulp_created__gt** | **DateTime**| Filter results where pulp_created is greater than value | [optional] **pulp_created__gte** | **DateTime**| Filter results where pulp_created is greater than or equal to value | [optional] **pulp_created__lt** | **DateTime**| Filter results where pulp_created is less than value | [optional] **pulp_created__lte** | **DateTime**| Filter results where pulp_created is less than or equal to value | [optional] **pulp_created__range** | [**Array<DateTime>**](DateTime.md)| Filter results where pulp_created is between two comma separated values | [optional] **pulp_href__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional] **pulp_id__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional] **pulp_type** | **String**| Pulp type * `file.file` - file.file | [optional] **pulp_type__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. * `file.file` - file.file | [optional] **q** | **String**| | [optional] **repository** | **String**| Repository referenced by HREF | [optional] **repository_version** | [**String**](.md)| Repository Version referenced by HREF | [optional] **fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional] **exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional] ### Return type [**PaginatedPublicationResponseList**](PaginatedPublicationResponseList.md) ### Authorization [basicAuth](../README.md#basicAuth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json