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

参数

参数名字 描述
location_id
选填

根据位置界定的范围

Validations:

  • Integer

organization_id
选填

根据机构界定的范围

Validations:

  • Integer

search
选填

过滤结果

Validations:

  • String

order
选填

Sort field and order, eg. ‘id DESC’

Validations:

  • String

page
选填

编页结果

Validations:

  • String

per_page
选填

每个请求中的条目数

Validations:

  • String


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

参数

参数名字 描述
location_id
选填

根据位置界定的范围

Validations:

  • Integer

organization_id
选填

根据机构界定的范围

Validations:

  • Integer

id
必填

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

参数

参数名字 描述
location_id
选填

根据位置界定的范围

Validations:

  • Integer

organization_id
选填

根据机构界定的范围

Validations:

  • Integer

id
必填

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

参数

参数名字 描述
location_id
选填

根据位置界定的范围

Validations:

  • Integer

organization_id
选填

根据机构界定的范围

Validations:

  • Integer

foreman_virt_who_configure_config
必填

Validations:

  • Hash

foreman_virt_who_configure_config[name]
必填

Configuration name

Validations:

  • String

foreman_virt_who_configure_config[interval]
必填

Configuration interval in minutes

Validations:

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

foreman_virt_who_configure_config[filtering_mode]
必填

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]
选填 , 允许空值

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]
选填 , 允许空值

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]
必填

Specifies how the hypervisor will be identified.

Validations:

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

foreman_virt_who_configure_config[hypervisor_type]
必填

Hypervisor type

Validations:

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

foreman_virt_who_configure_config[hypervisor_server]
必填

Fully qualified host name or IP address of the hypervisor

Validations:

  • String

foreman_virt_who_configure_config[hypervisor_username]
必填

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

Validations:

  • String

foreman_virt_who_configure_config[hypervisor_password]
选填 , 允许空值

Hypervisor password, required for all hypervisor types except for libvirt

Validations:

  • String

foreman_virt_who_configure_config[satellite_url]
必填

Satellite server FQDN

Validations:

  • String

foreman_virt_who_configure_config[debug]
选填 , 允许空值

Enable debugging output

Validations:

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

foreman_virt_who_configure_config[proxy]
选填 , 允许空值

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]
选填 , 允许空值

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]
必填

Organization of the virt-who configuration

Validations:

  • Integer


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

参数

参数名字 描述
location_id
选填

根据位置界定的范围

Validations:

  • Integer

organization_id
选填

根据机构界定的范围

Validations:

  • Integer

id
必填

Configuration numeric identifier

Validations:

  • Must be a number.

foreman_virt_who_configure_config
必填

Validations:

  • Hash

foreman_virt_who_configure_config[name]
选填

Configuration name

Validations:

  • String

foreman_virt_who_configure_config[interval]
选填

Configuration interval in minutes

Validations:

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

foreman_virt_who_configure_config[filtering_mode]
选填

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]
选填 , 允许空值

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]
选填 , 允许空值

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]
选填

Specifies how the hypervisor will be identified.

Validations:

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

foreman_virt_who_configure_config[hypervisor_type]
选填

Hypervisor type

Validations:

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

foreman_virt_who_configure_config[hypervisor_server]
选填

Fully qualified host name or IP address of the hypervisor

Validations:

  • String

foreman_virt_who_configure_config[hypervisor_username]
选填

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

Validations:

  • String

foreman_virt_who_configure_config[hypervisor_password]
选填 , 允许空值

Hypervisor password, required for all hypervisor types except for libvirt

Validations:

  • String

foreman_virt_who_configure_config[satellite_url]
选填

Satellite server FQDN

Validations:

  • String

foreman_virt_who_configure_config[debug]
选填 , 允许空值

Enable debugging output

Validations:

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

foreman_virt_who_configure_config[proxy]
选填 , 允许空值

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]
选填 , 允许空值

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]
选填

Organization of the virt-who configuration

Validations:

  • Integer


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

参数

参数名字 描述
location_id
选填

根据位置界定的范围

Validations:

  • Integer

organization_id
选填

根据机构界定的范围

Validations:

  • Integer

id
必填

Configuration numeric identifier

Validations:

  • Must be a number.