GET /katello/api/content_view_filters/:content_view_filter_id/rules
List filter rules

Examples

GET /katello/api/content_view_filters/696247676/rules
204

Params

Param name Description
content_view_filter_id
required

filter identifier

Validations:

  • Must be a number.

name
optional

name of the content view filter rule

Validations:

  • String

errata_id
optional

errata_id of the content view filter rule

Validations:

  • String

search
optional

Search string

Validations:

  • String

page
optional

Page number, starting at 1

Validations:

  • Must be a number.

per_page
optional

Number of results per page to return

Validations:

  • Must be a number.

order
optional

Sort field and order, eg. 'id DESC'

Validations:

  • String

full_result
optional

Whether or not to show all results

Validations:

  • Must be one of: true, false, 1, 0.

sort_by
optional

Field to sort the results on

Validations:

  • String

sort_order
optional

How to order the sorted results (e.g. ASC for ascending)

Validations:

  • String


POST /katello/api/content_view_filters/:content_view_filter_id/rules
Create a filter rule. The parameters included should be based upon the filter type.

Examples

POST /katello/api/content_view_filters/696247676/rules
{
  "name": "testpkg",
  "version": "10.0",
  "content_view_filter_rule": {
    "name": "testpkg",
    "version": "10.0"
  }
}
201
{
  "content_view_filter_id": 696247676,
  "version": "10.0",
  "id": 1033226539,
  "name": "testpkg",
  "created_at": "2022-11-08 19:30:55 UTC",
  "updated_at": "2022-11-08 19:30:55 UTC"
}

Params

Param name Description
content_view_filter_id
required

filter identifier

Validations:

  • Must be a number.

name
optional

deb, package, package group, or docker tag names

Validations:

  • Must be an array of [String]

uuid
optional

package group: uuid

Validations:

  • String

version
optional

package: version

Validations:

  • String

architecture
optional

package: architecture

Validations:

  • String

min_version
optional

package: minimum version

Validations:

  • String

max_version
optional

package: maximum version

Validations:

  • String

errata_id
optional

erratum: id

Validations:

  • String

errata_ids
optional

erratum: IDs or a select all object

Validations:

  • Must be an array of any type

start_date
optional

erratum: start date (YYYY-MM-DD)

Validations:

  • String

end_date
optional

erratum: end date (YYYY-MM-DD)

Validations:

  • String

types
optional

erratum: types (enhancement, bugfix, security)

Validations:

  • Must be an array of any type

date_type
optional

erratum: search using the 'Issued On' or 'Updated On' column of the errata. Values are 'issued'/'updated'

Validations:

  • String

module_stream_ids
optional

module stream ids

Validations:

  • Must be an array of any type


GET /katello/api/content_view_filters/:content_view_filter_id/rules/:id
Show filter rule info

Examples

GET /katello/api/content_view_filters/696247676/rules/36287325
200
{
  "content_view_filter_id": 696247676,
  "version": "1.0",
  "id": 36287325,
  "name": "package def",
  "created_at": "2022-11-08 19:09:32 UTC",
  "updated_at": "2022-11-08 19:09:32 UTC"
}

Params

Param name Description
content_view_filter_id
required

filter identifier

Validations:

  • Must be a number.

id
required

rule identifier

Validations:

  • Must be a number.


PUT /katello/api/content_view_filters/:content_view_filter_id/rules/:id
Update a filter rule. The parameters included should be based upon the filter type.

Examples

PUT /katello/api/content_view_filters/696247676/rules/36287325
{
  "name": [
    "testpkg"
  ],
  "version": "10.0",
  "content_view_filter_rule": {
    "name": [
      "testpkg"
    ],
    "version": "10.0"
  }
}
200
{
  "content_view_filter_id": 696247676,
  "version": "10.0",
  "id": 36287325,
  "name": "testpkg",
  "created_at": "2022-11-08 19:09:32 UTC",
  "updated_at": "2022-11-08 19:30:57 UTC"
}

Params

Param name Description
content_view_filter_id
required

filter identifier

Validations:

  • Must be a number.

id
required

rule identifier

Validations:

  • Must be a number.

name
optional

package, package group, or docker tag: name

Validations:

  • String

version
optional

package: version

Validations:

  • String

architecture
optional

package: architecture

Validations:

  • String

min_version
optional

package: minimum version

Validations:

  • String

max_version
optional

package: maximum version

Validations:

  • String

errata_id
optional

erratum: id

Validations:

  • String

start_date
optional

erratum: start date (YYYY-MM-DD)

Validations:

  • String

end_date
optional

erratum: end date (YYYY-MM-DD)

Validations:

  • String

types
optional

erratum: types (enhancement, bugfix, security)

Validations:

  • Must be an array of any type


DELETE /katello/api/content_view_filters/:content_view_filter_id/rules/:id
Delete a filter rule

Examples

DELETE /katello/api/content_view_filters/696247676/rules/36287325
{
  "content_view_filter_rule": {}
}
200
{
  "content_view_filter_id": 696247676,
  "version": "1.0",
  "id": 36287325,
  "name": "package def",
  "created_at": "2022-11-08 19:09:32 UTC",
  "updated_at": "2022-11-08 19:09:32 UTC"
}

Params

Param name Description
content_view_filter_id
required

filter identifier

Validations:

  • Must be a number.

id
required

rule identifier

Validations:

  • Must be a number.