Class: Ansible::Ruby::Modules::Zabbix_host
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Zabbix_host
- Defined in:
- lib/ansible/ruby/modules/generated/extras/monitoring/zabbix_host.rb
Overview
This module allows you to create, modify and delete Zabbix host entries and associated group and template data.
Instance Method Summary collapse
-
#force ⇒ :yes, ...
Overwrite the host configuration, even if already present.
-
#host_groups ⇒ Array<String>, ...
List of host groups the host is part of.
-
#host_name ⇒ String
Name of the host in Zabbix.,host_name is the unique identifier used and cannot be updated using this module.
-
#http_login_password ⇒ Object?
Basic Auth password.
-
#http_login_user ⇒ Object?
Basic Auth login.
-
#interfaces ⇒ Object?
List of interfaces to be created for the host (see example below).,Available values are: dns, ip, main, port, type and useip.,Please review the interface documentation for more information on the supported properties,www.zabbix.com/documentation/2.0/manual/appendix/api/hostinterface/definitions#host_interface.
-
#inventory_mode ⇒ :automatic, ...
Configure the inventory mode.
-
#link_templates ⇒ Array<String>, ...
List of templates linked to the host.
-
#login_password ⇒ String
Zabbix user password.
-
#login_user ⇒ String
Zabbix user name, used to authenticate against the server.
-
#proxy ⇒ String?
The name of the Zabbix Proxy to be used.
-
#server_url ⇒ String
Url of Zabbix server, with protocol (http or https).
-
#state ⇒ :present, ...
State of the host.,On C(present), it will create if host does not exist or update the host if the associated data is different.,On C(absent) will remove a host if it exists.
-
#status ⇒ :enabled, ...
Monitoring status of the host.
-
#timeout ⇒ Integer?
The timeout of API request (seconds).
Methods inherited from Base
Methods inherited from Ansible::Ruby::Models::Base
attr_option, attr_options, attribute, #initialize, remove_existing_validations, #to_h, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#force ⇒ :yes, ...
Returns Overwrite the host configuration, even if already present.
64 |
# File 'lib/ansible/ruby/modules/generated/extras/monitoring/zabbix_host.rb', line 64 attribute :force |
#host_groups ⇒ Array<String>, ...
Returns List of host groups the host is part of.
33 |
# File 'lib/ansible/ruby/modules/generated/extras/monitoring/zabbix_host.rb', line 33 attribute :host_groups |
#host_name ⇒ String
Returns Name of the host in Zabbix.,host_name is the unique identifier used and cannot be updated using this module.
29 |
# File 'lib/ansible/ruby/modules/generated/extras/monitoring/zabbix_host.rb', line 29 attribute :host_name |
#http_login_password ⇒ Object?
Returns Basic Auth password.
26 |
# File 'lib/ansible/ruby/modules/generated/extras/monitoring/zabbix_host.rb', line 26 attribute :http_login_password |
#http_login_user ⇒ Object?
Returns Basic Auth login.
23 |
# File 'lib/ansible/ruby/modules/generated/extras/monitoring/zabbix_host.rb', line 23 attribute :http_login_user |
#interfaces ⇒ Object?
Returns List of interfaces to be created for the host (see example below).,Available values are: dns, ip, main, port, type and useip.,Please review the interface documentation for more information on the supported properties,www.zabbix.com/documentation/2.0/manual/appendix/api/hostinterface/definitions#host_interface.
61 |
# File 'lib/ansible/ruby/modules/generated/extras/monitoring/zabbix_host.rb', line 61 attribute :interfaces |
#inventory_mode ⇒ :automatic, ...
Returns Configure the inventory mode.
41 |
# File 'lib/ansible/ruby/modules/generated/extras/monitoring/zabbix_host.rb', line 41 attribute :inventory_mode |
#link_templates ⇒ Array<String>, ...
Returns List of templates linked to the host.
37 |
# File 'lib/ansible/ruby/modules/generated/extras/monitoring/zabbix_host.rb', line 37 attribute :link_templates |
#login_password ⇒ String
Returns Zabbix user password.
19 |
# File 'lib/ansible/ruby/modules/generated/extras/monitoring/zabbix_host.rb', line 19 attribute :login_password |
#login_user ⇒ String
Returns Zabbix user name, used to authenticate against the server.
15 |
# File 'lib/ansible/ruby/modules/generated/extras/monitoring/zabbix_host.rb', line 15 attribute :login_user |
#proxy ⇒ String?
Returns The name of the Zabbix Proxy to be used.
57 |
# File 'lib/ansible/ruby/modules/generated/extras/monitoring/zabbix_host.rb', line 57 attribute :proxy |
#server_url ⇒ String
Returns Url of Zabbix server, with protocol (http or https).
11 |
# File 'lib/ansible/ruby/modules/generated/extras/monitoring/zabbix_host.rb', line 11 attribute :server_url |
#state ⇒ :present, ...
Returns State of the host.,On C(present), it will create if host does not exist or update the host if the associated data is different.,On C(absent) will remove a host if it exists.
49 |
# File 'lib/ansible/ruby/modules/generated/extras/monitoring/zabbix_host.rb', line 49 attribute :state |
#status ⇒ :enabled, ...
Returns Monitoring status of the host.
45 |
# File 'lib/ansible/ruby/modules/generated/extras/monitoring/zabbix_host.rb', line 45 attribute :status |
#timeout ⇒ Integer?
Returns The timeout of API request (seconds).
53 |
# File 'lib/ansible/ruby/modules/generated/extras/monitoring/zabbix_host.rb', line 53 attribute :timeout |