# PulpcoreClient::TaskGroupsApi All URIs are relative to *http://localhost:24817* 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 [**task_groups_cancel**](TaskGroupsApi.md#task_groups_cancel) | **PATCH** {task_group_href} | Cancel a task group ## list > PaginatedTaskGroupResponseList list(opts) List task groups ### 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::TaskGroupsApi.new 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'], # 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 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 ------------- | ------------- | ------------- | ------------- **limit** | **Integer**| Number of results to return per page. | [optional] **offset** | **Integer**| The initial index from which to return the results. | [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 [**PaginatedTaskGroupResponseList**](PaginatedTaskGroupResponseList.md) ### Authorization [basicAuth](../README.md#basicAuth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ## read > TaskGroupResponse 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: basicAuth config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = PulpcoreClient::TaskGroupsApi.new task_group_href = 'task_group_href_example' # String | opts = { 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 #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**| | **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 [**TaskGroupResponse**](TaskGroupResponse.md) ### Authorization [basicAuth](../README.md#basicAuth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ## task_groups_cancel > TaskGroupResponse task_groups_cancel(task_group_href, patched_task_cancel) Cancel a task group This operation cancels a task group. ### 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::TaskGroupsApi.new task_group_href = 'task_group_href_example' # String | patched_task_cancel = PulpcoreClient::PatchedTaskCancel.new # PatchedTaskCancel | begin #Cancel a task group result = api_instance.task_groups_cancel(task_group_href, patched_task_cancel) p result rescue PulpcoreClient::ApiError => e puts "Exception when calling TaskGroupsApi->task_groups_cancel: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **task_group_href** | **String**| | **patched_task_cancel** | [**PatchedTaskCancel**](PatchedTaskCancel.md)| | ### Return type [**TaskGroupResponse**](TaskGroupResponse.md) ### Authorization [basicAuth](../README.md#basicAuth) ### HTTP request headers - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data - **Accept**: application/json