# Pulp2to3MigrationClient::Pulp2contentApi All URIs are relative to *http://pulp* Method | HTTP request | Description ------------- | ------------- | ------------- [**list**](Pulp2contentApi.md#list) | **GET** /pulp/api/v3/pulp2content/ | List pulp2 contents [**read**](Pulp2contentApi.md#read) | **GET** {pulp2_content_href} | Inspect a pulp2 content ## list > InlineResponse2001 list(opts) List pulp2 contents ViewSet for Pulp2Content model. ### Example ```ruby # load the gem require 'pulp_2to3_migration_client' # setup authorization Pulp2to3MigrationClient.configure do |config| # Configure HTTP basic authorization: Basic config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = Pulp2to3MigrationClient::Pulp2contentApi.new opts = { ordering: 'ordering_example', # String | Which field to use when ordering the results. pulp2_id: 'pulp2_id_example', # String | pulp2_id__in: 'pulp2_id__in_example', # String | Filter results where pulp2_id is in a comma-separated list of values pulp2_content_type_id: 'pulp2_content_type_id_example', # String | pulp2_content_type_id__in: 'pulp2_content_type_id__in_example', # String | Filter results where pulp2_content_type_id is in a comma-separated list of values pulp2_last_updated__lt: 3.4, # Float | Filter results where pulp2_last_updated is less than value pulp2_last_updated__lte: 3.4, # Float | Filter results where pulp2_last_updated is less than or equal to value pulp2_last_updated__gt: 3.4, # Float | Filter results where pulp2_last_updated is greater than value pulp2_last_updated__gte: 3.4, # Float | Filter results where pulp2_last_updated is greater than or equal to value pulp2_last_updated__range: 3.4, # Float | Filter results where pulp2_last_updated is between two comma separated values pulp3_content: 'pulp3_content_example', # String | Foreign Key referenced by HREF pulp2_last_updated: 'pulp2_last_updated_example', # String | ISO 8601 formatted dates are supported 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 #List pulp2 contents result = api_instance.list(opts) p result rescue Pulp2to3MigrationClient::ApiError => e puts "Exception when calling Pulp2contentApi->list: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ordering** | **String**| Which field to use when ordering the results. | [optional] **pulp2_id** | **String**| | [optional] **pulp2_id__in** | **String**| Filter results where pulp2_id is in a comma-separated list of values | [optional] **pulp2_content_type_id** | **String**| | [optional] **pulp2_content_type_id__in** | **String**| Filter results where pulp2_content_type_id is in a comma-separated list of values | [optional] **pulp2_last_updated__lt** | **Float**| Filter results where pulp2_last_updated is less than value | [optional] **pulp2_last_updated__lte** | **Float**| Filter results where pulp2_last_updated is less than or equal to value | [optional] **pulp2_last_updated__gt** | **Float**| Filter results where pulp2_last_updated is greater than value | [optional] **pulp2_last_updated__gte** | **Float**| Filter results where pulp2_last_updated is greater than or equal to value | [optional] **pulp2_last_updated__range** | **Float**| Filter results where pulp2_last_updated is between two comma separated values | [optional] **pulp3_content** | **String**| Foreign Key referenced by HREF | [optional] **pulp2_last_updated** | **String**| ISO 8601 formatted dates are supported | [optional] **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 [**InlineResponse2001**](InlineResponse2001.md) ### Authorization [Basic](../README.md#Basic) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ## read > Pulp2to3MigrationPulp2Content read(pulp2_content_href, opts) Inspect a pulp2 content ViewSet for Pulp2Content model. ### Example ```ruby # load the gem require 'pulp_2to3_migration_client' # setup authorization Pulp2to3MigrationClient.configure do |config| # Configure HTTP basic authorization: Basic config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = Pulp2to3MigrationClient::Pulp2contentApi.new pulp2_content_href = 'pulp2_content_href_example' # String | URI of Pulp2 Content. e.g.: /pulp/api/v3/pulp2content/1/ opts = { 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 #Inspect a pulp2 content result = api_instance.read(pulp2_content_href, opts) p result rescue Pulp2to3MigrationClient::ApiError => e puts "Exception when calling Pulp2contentApi->read: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pulp2_content_href** | **String**| URI of Pulp2 Content. e.g.: /pulp/api/v3/pulp2content/1/ | **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 [**Pulp2to3MigrationPulp2Content**](Pulp2to3MigrationPulp2Content.md) ### Authorization [Basic](../README.md#Basic) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json