GET /foreman_virt_who_configure/api/v2/configs
List of virt-who configurations

GET /foreman_virt_who_configure/api/v2/organizations/:organization_id/configs
List of virt-who configurations per organization

Parametri

Nome parametro Descrizione
location_id
opzionale

Scopo per posizioni

Validations:

  • Integer

organization_id
opzionale

Scopo per organizzazioni

Validations:

  • Integer

search
opzionale

filtra i risultati

Validations:

  • String

order
opzionale

Sort field and order, eg. ‘id DESC’

Validations:

  • String

page
opzionale

paginazione risultati

Validations:

  • String

per_page
opzionale

numero di voci per richiesta

Validations:

  • String


GET /foreman_virt_who_configure/api/v2/configs/:id
Show a virt-who configuration

Parametri

Nome parametro Descrizione
location_id
opzionale

Scopo per posizioni

Validations:

  • Integer

organization_id
opzionale

Scopo per organizzazioni

Validations:

  • Integer

id
richiesto

Validations:

  • string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..


GET /foreman_virt_who_configure/api/v2/configs/:id/deploy_script
Renders a deploy script for the specified virt-who configuration

Parametri

Nome parametro Descrizione
location_id
opzionale

Scopo per posizioni

Validations:

  • Integer

organization_id
opzionale

Scopo per organizzazioni

Validations:

  • Integer

id
richiesto

Validations:

  • string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..


POST /foreman_virt_who_configure/api/v2/configs
Create a virt-who configuration

Parametri

Nome parametro Descrizione
location_id
opzionale

Scopo per posizioni

Validations:

  • Integer

organization_id
opzionale

Scopo per organizzazioni

Validations:

  • Integer

foreman_virt_who_configure_config
richiesto

Validations:

  • Hash

foreman_virt_who_configure_config[name]
richiesto

Configuration name

Validations:

  • String

foreman_virt_who_configure_config[interval]
richiesto

Configuration interval in minutes

Validations:

  • Must be one of: 60, 120, 240, 480, 720, 1440, 2880, 4320.

foreman_virt_who_configure_config[filtering_mode]
richiesto

Hypervisor filtering mode, 0 means no filtering, 1 means whitelist, 2 means blacklist

Validations:

  • Must be one of: 0, 1, 2.

foreman_virt_who_configure_config[whitelist]
opzionale , consentito nil

Hypervisor whitelist, applicable only when filtering mode is set to 1. Wildcards and regular expressions are supported, multiple records must be separated by comma.

Validations:

  • String

foreman_virt_who_configure_config[blacklist]
opzionale , consentito nil

Hypervisor blacklist, applicable only when filtering mode is set to 2. Wildcards and regular expressions are supported, multiple records must be separated by comma.

Validations:

  • String

foreman_virt_who_configure_config[hypervisor_id]
richiesto

Specifies how the hypervisor will be identified.

Validations:

  • Must be one of: hostname, uuid, hwuuid.

foreman_virt_who_configure_config[hypervisor_type]
richiesto

Hypervisor type

Validations:

  • Must be one of: esx, rhevm, hyperv, xen, libvirt, kubevirt.

foreman_virt_who_configure_config[hypervisor_server]
richiesto

Fully qualified host name or IP address of the hypervisor

Validations:

  • String

foreman_virt_who_configure_config[hypervisor_username]
richiesto

Account name by which virt-who is to connect to the hypervisor.

Validations:

  • String

foreman_virt_who_configure_config[hypervisor_password]
opzionale , consentito nil

Hypervisor password, required for all hypervisor types except for libvirt

Validations:

  • String

foreman_virt_who_configure_config[satellite_url]
richiesto

Satellite server FQDN

Validations:

  • String

foreman_virt_who_configure_config[debug]
opzionale , consentito nil

Enable debugging output

Validations:

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

foreman_virt_who_configure_config[proxy]
opzionale , consentito nil

HTTP proxy that should be used for communication between the server on which virt-who is running and the hypervisors and virtualization managers.

Validations:

  • String

foreman_virt_who_configure_config[no_proxy]
opzionale , consentito nil

Ignore proxy. A comma-separated list of hostnames or domains or ip addresses to ignore proxy settings for. Optionally this may be set to * to bypass proxy settings for all hostnames domains or ip addresses.

Validations:

  • String

foreman_virt_who_configure_config[organization_id]
richiesto

Organization of the virt-who configuration

Validations:

  • Integer


PUT /foreman_virt_who_configure/api/v2/configs/:id
Update a virt-who configuration

Parametri

Nome parametro Descrizione
location_id
opzionale

Scopo per posizioni

Validations:

  • Integer

organization_id
opzionale

Scopo per organizzazioni

Validations:

  • Integer

id
richiesto

Configuration numeric identifier

Validations:

  • Must be a number.

foreman_virt_who_configure_config
richiesto

Validations:

  • Hash

foreman_virt_who_configure_config[name]
opzionale

Configuration name

Validations:

  • String

foreman_virt_who_configure_config[interval]
opzionale

Configuration interval in minutes

Validations:

  • Must be one of: 60, 120, 240, 480, 720, 1440, 2880, 4320.

foreman_virt_who_configure_config[filtering_mode]
opzionale

Hypervisor filtering mode, 0 means no filtering, 1 means whitelist, 2 means blacklist

Validations:

  • Must be one of: 0, 1, 2.

foreman_virt_who_configure_config[whitelist]
opzionale , consentito nil

Hypervisor whitelist, applicable only when filtering mode is set to 1. Wildcards and regular expressions are supported, multiple records must be separated by comma.

Validations:

  • String

foreman_virt_who_configure_config[blacklist]
opzionale , consentito nil

Hypervisor blacklist, applicable only when filtering mode is set to 2. Wildcards and regular expressions are supported, multiple records must be separated by comma.

Validations:

  • String

foreman_virt_who_configure_config[hypervisor_id]
opzionale

Specifies how the hypervisor will be identified.

Validations:

  • Must be one of: hostname, uuid, hwuuid.

foreman_virt_who_configure_config[hypervisor_type]
opzionale

Hypervisor type

Validations:

  • Must be one of: esx, rhevm, hyperv, xen, libvirt, kubevirt.

foreman_virt_who_configure_config[hypervisor_server]
opzionale

Fully qualified host name or IP address of the hypervisor

Validations:

  • String

foreman_virt_who_configure_config[hypervisor_username]
opzionale

Account name by which virt-who is to connect to the hypervisor.

Validations:

  • String

foreman_virt_who_configure_config[hypervisor_password]
opzionale , consentito nil

Hypervisor password, required for all hypervisor types except for libvirt

Validations:

  • String

foreman_virt_who_configure_config[satellite_url]
opzionale

Satellite server FQDN

Validations:

  • String

foreman_virt_who_configure_config[debug]
opzionale , consentito nil

Enable debugging output

Validations:

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

foreman_virt_who_configure_config[proxy]
opzionale , consentito nil

HTTP proxy that should be used for communication between the server on which virt-who is running and the hypervisors and virtualization managers.

Validations:

  • String

foreman_virt_who_configure_config[no_proxy]
opzionale , consentito nil

Ignore proxy. A comma-separated list of hostnames or domains or ip addresses to ignore proxy settings for. Optionally this may be set to * to bypass proxy settings for all hostnames domains or ip addresses.

Validations:

  • String

foreman_virt_who_configure_config[organization_id]
opzionale

Organization of the virt-who configuration

Validations:

  • Integer


DELETE /foreman_virt_who_configure/api/v2/configs/:id
Delete a virt-who configuration

Parametri

Nome parametro Descrizione
location_id
opzionale

Scopo per posizioni

Validations:

  • Integer

organization_id
opzionale

Scopo per organizzazioni

Validations:

  • Integer

id
richiesto

Configuration numeric identifier

Validations:

  • Must be a number.