# PulpcoreClient::TaskGroupsApi All URIs are relative to *http://pulp* Method | HTTP request | Description ------------- | ------------- | ------------- [**list**](TaskGroupsApi.md#list) | **GET** /pulp/api/v3/task-groups/ | List task groups [**read**](TaskGroupsApi.md#read) | **GET** {task_group_href} | Inspect a task group ## list > InlineResponse2006 list(opts) List task groups ### Example ```ruby # load the gem require 'pulpcore_client' # setup authorization PulpcoreClient.configure do |config| # Configure HTTP basic authorization: Basic config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = PulpcoreClient::TaskGroupsApi.new opts = { ordering: 'ordering_example', # String | Which field to use when ordering the results. 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 task groups result = api_instance.list(opts) p result rescue PulpcoreClient::ApiError => e puts "Exception when calling TaskGroupsApi->list: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ordering** | **String**| Which field to use when ordering the results. | [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 [**InlineResponse2006**](InlineResponse2006.md) ### Authorization [Basic](../README.md#Basic) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ## read > TaskGroupRead read(task_group_href, opts) Inspect a task group ### Example ```ruby # load the gem require 'pulpcore_client' # setup authorization PulpcoreClient.configure do |config| # Configure HTTP basic authorization: Basic config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = PulpcoreClient::TaskGroupsApi.new task_group_href = 'task_group_href_example' # String | URI of Task Group. e.g.: /pulp/api/v3/task-groups/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 task group result = api_instance.read(task_group_href, opts) p result rescue PulpcoreClient::ApiError => e puts "Exception when calling TaskGroupsApi->read: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **task_group_href** | **String**| URI of Task Group. e.g.: /pulp/api/v3/task-groups/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 [**TaskGroupRead**](TaskGroupRead.md) ### Authorization [Basic](../README.md#Basic) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json