Examples

PUT /api/settings/excluded_facts
{
  "setting": {
    "value": [
      "foo",
      "bar"
    ]
  }
}
200
{
  "description": "Exclude pattern for all types of imported facts (puppet, ansible, rhsm). Those facts won't be stored in foreman's database. You can use * wildcard to match names with indexes e.g. ignore* will filter out ignore, ignore123 as well as a::ignore or even a::ignore123::b",
  "settings_type": "array",
  "default": [
    "lo",
    "en*v*",
    "usb*",
    "vnet*",
    "macvtap*",
    ";vdsmdummy;",
    "veth*",
    "docker*",
    "tap*",
    "qbr*",
    "qvb*",
    "qvo*",
    "qr-*",
    "qg-*",
    "vlinuxbr*",
    "vovsbr*",
    "br-int",
    "vif*",
    "cali*",
    "load_averages::*",
    "memory::swap::available*",
    "memory::swap::capacity",
    "memory::swap::used*",
    "memory::system::available*",
    "memory::system::capacity",
    "memory::system::used*",
    "memoryfree",
    "memoryfree_mb",
    "swapfree",
    "swapfree_mb",
    "uptime_hours",
    "uptime_days"
  ],
  "updated_at": "2024-02-22 15:41:35 UTC",
  "id": "excluded_facts",
  "name": "excluded_facts",
  "full_name": "Exclude pattern for facts stored in foreman",
  "value": [
    "foo",
    "bar"
  ],
  "category": "facts",
  "category_name": "Facts",
  "readonly": false,
  "config_file": null,
  "encrypted": false,
  "select_values": null
}

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Integer

id
required

Validations:

  • String

setting
required

Validations:

  • Hash

setting[value]
optional

Validations:

  • String