# 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** {pulp_2to3_migration_pulp2_content_href} | Inspect a pulp2 content ## list > Paginatedpulp2to3MigrationPulp2ContentResponseList 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: basicAuth config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = Pulp2to3MigrationClient::Pulp2ContentApi.new opts = { 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', # String | Which field to use when ordering the results. pulp2_content_type_id: 'pulp2_content_type_id_example', # String | pulp2_content_type_id pulp2_content_type_id__in: 'pulp2_content_type_id__in_example', # String | pulp2_content_type_id__in pulp2_id: 'pulp2_id_example', # String | pulp2_id pulp2_id__in: 'pulp2_id__in_example', # String | pulp2_id__in pulp2_last_updated: 'pulp2_last_updated_example', # String | pulp2_last_updated pulp2_last_updated__gt: 'pulp2_last_updated__gt_example', # String | pulp2_last_updated__gt pulp2_last_updated__gte: 'pulp2_last_updated__gte_example', # String | pulp2_last_updated__gte pulp2_last_updated__lt: 'pulp2_last_updated__lt_example', # String | pulp2_last_updated__lt pulp2_last_updated__lte: 'pulp2_last_updated__lte_example', # String | pulp2_last_updated__lte pulp2_last_updated__range: 'pulp2_last_updated__range_example', # String | pulp2_last_updated__range pulp3_content: 'pulp3_content_example', # String | pulp3_content 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 ------------- | ------------- | ------------- | ------------- **limit** | **Integer**| Number of results to return per page. | [optional] **offset** | **Integer**| The initial index from which to return the results. | [optional] **ordering** | **String**| Which field to use when ordering the results. | [optional] **pulp2_content_type_id** | **String**| pulp2_content_type_id | [optional] **pulp2_content_type_id__in** | **String**| pulp2_content_type_id__in | [optional] **pulp2_id** | **String**| pulp2_id | [optional] **pulp2_id__in** | **String**| pulp2_id__in | [optional] **pulp2_last_updated** | **String**| pulp2_last_updated | [optional] **pulp2_last_updated__gt** | **String**| pulp2_last_updated__gt | [optional] **pulp2_last_updated__gte** | **String**| pulp2_last_updated__gte | [optional] **pulp2_last_updated__lt** | **String**| pulp2_last_updated__lt | [optional] **pulp2_last_updated__lte** | **String**| pulp2_last_updated__lte | [optional] **pulp2_last_updated__range** | **String**| pulp2_last_updated__range | [optional] **pulp3_content** | **String**| pulp3_content | [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 [**Paginatedpulp2to3MigrationPulp2ContentResponseList**](Paginatedpulp2to3MigrationPulp2ContentResponseList.md) ### Authorization [basicAuth](../README.md#basicAuth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ## read > Pulp2to3MigrationPulp2ContentResponse read(pulp_2to3_migration_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: basicAuth config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = Pulp2to3MigrationClient::Pulp2ContentApi.new pulp_2to3_migration_pulp2_content_href = 'pulp_2to3_migration_pulp2_content_href_example' # String | 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(pulp_2to3_migration_pulp2_content_href, opts) p result rescue Pulp2to3MigrationClient::ApiError => e puts "Exception when calling Pulp2ContentApi->read: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pulp_2to3_migration_pulp2_content_href** | **String**| | **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 [**Pulp2to3MigrationPulp2ContentResponse**](Pulp2to3MigrationPulp2ContentResponse.md) ### Authorization [basicAuth](../README.md#basicAuth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json