Bug 1390415 - [RFE] - Hammer command to list errata for a particular content-view
Summary: [RFE] - Hammer command to list errata for a particular content-view
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hammer - Content
Version: 6.2.0
Hardware: x86_64
OS: Linux
medium
medium vote
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-01 02:48 UTC by Nagoor Shaik
Modified: 2019-12-16 07:16 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-02 02:19:06 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 2740681 0 None None None 2016-11-01 04:13:31 UTC

Description Nagoor Shaik 2016-11-01 02:48:36 UTC
[RFE] - Hammer command to list errata for a particular content-view

Version-Release number of selected component (if applicable):
tfm-rubygem-hammer_cli_katello-0.0.22.26-1.el7sat.noarch

It would be really helpful, if we incorporate the below API query into the hammer commands.

GET katello/api/errata?content_view_version_id=<ID>

We don't have any additional options when running "hammer erratum" or "hammer content-view version" 

# hammer content-view version info --help
Usage:
    hammer content-view version info [OPTIONS]

Options:
 --content-view CONTENT_VIEW_NAME        Content view name to search by
 --content-view-id CONTENT_VIEW_ID       content view numeric identifier
 --environment ENVIRONMENT_NAME          Name to search by
 --environment-id ENVIRONMENT_ID          
 --id ID                                 Content view version identifier
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       organization ID
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --version VERSION                       Content view version number
 -h, --help                              print help


# hammer erratum --help
Usage:
    hammer erratum [OPTIONS] SUBCOMMAND [ARG] ...

Parameters:
 SUBCOMMAND                    subcommand
 [ARG] ...                     subcommand arguments

Subcommands:
 info                          Show an erratum
 list                          List errata

Options:
 -h, --help                    print help

Comment 1 Brad Buckingham 2016-11-01 20:43:52 UTC
Hi Nagoor, 

The following hammer cli should provide what you are looking for:

   erratum list --content-view-version-id 5

The above results in the following API call to the server:

   GET katello/api/errata?content_view_version_id=5

Based on this, we can probably close this request.  Do you agree?


Note You need to log in before you can comment on or make changes to this bug.