### zabbix_proto_item_simple Resource Schema Source: https://github.com/tpretz/terraform-provider-zabbix/blob/master/docs/resources/proto_item_simple.md Defines the schema for the zabbix_proto_item_simple Terraform resource, used to create Zabbix low-level discovery prototype items. It includes required and optional attributes, as well as nested schemas for preprocessors and tags. ```APIDOC zabbix_proto_item_simple (Resource) Schema: Required: hostid (String) - Host ID key (String) - Item KEY name (String) - Item Name ruleid (String) - LLD Rule ID valuetype (String) - Item Value Type, one of: float, character, log, unsigned, text Optional: applications (Set of String) - Application IDs to associate this item with delay (String) - Item Delay period history (String) - Item History id (String) - The ID of this resource. interfaceid (String) - Host Interface ID preprocessor (Block List) - (see [below for nested schema](#nestedblock--preprocessor)) tag (Block Set) - (see [below for nested schema](#nestedblock--tag)) trends (String) - Item Trends Nested Schema for preprocessor: Required: type (String) - Preprocessor type, zabbix identifier number Optional: error_handler (String) - error_handler_params (String) - params (List of String) - Preprocessor parameters Read-Only: id (String) - The ID of this resource. Nested Schema for tag: Required: key (String) - Tag Key Optional: value (String) - Tag Value ``` -------------------------------- ### zabbix_proto_graph Resource Schema Source: https://github.com/tpretz/terraform-provider-zabbix/blob/master/docs/resources/proto_graph.md Defines the schema for the zabbix_proto_graph resource, specifying required and optional arguments for configuring Zabbix graphs, including nested item configurations. ```APIDOC zabbix_proto_graph (Resource) Description: Resource for defining a Zabbix proto graph. Schema: Required: height (String): Height item (Block List, Min: 1): Nested schema for graph items. See below. name (String): Graph Name Optional: do3d (Boolean): Show 3d graph id (String): The ID of this resource. legend (Boolean): Show legend percent_left (String): Left percentile percent_right (String): Right percentile type (String): Type, one of: normal, stacked, pie, exploded work_period (Boolean): Show work period ymax (String): Y Axis Max ymax_itemid (String): Y Axis Max ItemId ymax_type (String): Y Axis Max Type, one of: calculated, fixed, item ymin (String): Y Axis Min ymin_itemid (String): Y Axis Min ItemId ymin_type (String): Y Axis Min Type, one of: calculated, fixed, item Nested Schema for item: Required: color (String): color itemid (String): itemid Optional: drawtype (String): Draw Type, one of: line, filled, bold, dot, dashed, gradient function (String): Function, one of: min, average, max, all, last sortorder (String): sort order type (String): Type, one of: simple, sum yaxis_side (String): Y Axis Side, one of: left, right Read-Only: id (String): The ID of this resource. ``` -------------------------------- ### Zabbix LLD Rule Arguments Reference Source: https://github.com/tpretz/terraform-provider-zabbix/blob/master/README.md Detailed reference for arguments used in Zabbix LLD rule resources within the Terraform Zabbix provider. Covers common arguments like hostid, key, name, delay, lifetime, evaltype, formula, preprocessor configuration, condition filters, macro definitions, and master_itemid. ```apidoc Terraform Zabbix LLD Rule Arguments: Common Arguments: hostid: (Required) Host/Template ID to attach LLD Rule to. key: (Required) LLD Key. name: (Required) LLD Name. delay: (Optional) LLD collection interval, defaults to 1m. lifetime: (Optional) Discovery Item lifetime, defaults to 30d. evaltype: (Optional) Discovery Filter Evaluation type, defaults to andor. formula: (Optional) Filter formula. master_itemid: (Required) ItemID this depends on. Preprocessor Configuration: preprocessor: (Optional) LLD Preprocessors. Can be specified multiple times. type: (Required) Preprocessor type. See Zabbix API documentation for available types. params: (Optional) Preprocessor parameters, typically a list of strings. error_handler: (Optional) Error handler type (e.g., '0' for default, '1' for log). Relevant in Zabbix > 4.0. error_handler_params: (Optional) Error handler parameters. Relevant in Zabbix > 4.0. Condition Filters: condition: (Optional) LLD Filters. Can be specified multiple times. macro: (Required) Filter macro name (e.g., "{#NAME}"). value: (Required) Filter Regex to match against the macro value. operator: (Optional) Filter operator, defaults to "match". Macro Definitions: macro: (Optional) LLD Macros. Can be specified multiple times. macro: (Required) Macro name (e.g., "{#NAME}"). path: (Required) Macro JSON path to extract value from discovery data. SNMP Specific Arguments (for zabbix_lld_snmp): interfaceid: (Optional) Host interface ID, defaults to 0 (not required for template attachment). snmp_version: (Optional) SNMP Version, defaults to 2. One of (1, 2, 3). snmp_oid: (Required) SNMP OID Number. snmp_community: (Optional) SNMPv1/v2 community string, defaults to {$SNMP_COMMUNITY}. snmp3_authpassphrase: (Optional) SNMPv3 Auth passphrase, defaults to {$SNMP3_AUTHPASSPHRASE}. snmp3_authprotocol: (Optional) SNMPv3 Auth protocol, defaults to sha. One of (md5, sha). snmp3_contextname: (Optional) SNMPv3 Context Name, defaults to {$SNMP3_CONTEXTNAME}. snmp3_privpassphrase: (Optional) SNMPv3 Priv passphrase, defaults to {$SNMP3_PRIVPASSPHRASE}. snmp3_privprotocol: (Optional) SNMPv3 Priv protocol, defaults to aes. One of (des, aes). snmp3_securitylevel: (Optional) SNMPv3 Security Level, defaults to authpriv. One of (noauthnopriv, authnopriv, authpriv). snmp3_securityname: (Optional) SNMPv3 Security Name, defaults to {$SNMP3_SECURITYNAME}. HTTP Specific Arguments (for zabbix_lld_http): interfaceid: (Optional) Host interface ID, defaults to 0 (not required for template attachment). url: (Required) The URL to query. request_method: (Optional) HTTP request method (e.g., 'get', 'post'), defaults to 'get'. post_type: (Optional) Type of POST data (e.g., 'body', 'form'), defaults to 'body'. posts: (Optional) POST data as a JSON string. status_codes: (Optional) Expected HTTP status codes, comma-separated string. timeout: (Optional) Request timeout, defaults to '3s'. verify_host: (Optional) Whether to verify the host's SSL certificate. verify_peer: (Optional) Whether to verify the peer's SSL certificate. Attributes Reference: preprocessor.#.id: Preprocessor assigned ID number. ``` -------------------------------- ### zabbix_template Resource Schema Source: https://github.com/tpretz/terraform-provider-zabbix/blob/master/docs/resources/template.md Defines the schema for the zabbix_template resource, specifying required and optional arguments for creating and managing Zabbix templates. Includes nested blocks for macros. ```terraform zabbix_template (Resource): Defines a Zabbix template. Schema: groups: (Set of String) Required. Host Group IDs to which the template belongs. host: (String) Required. Internal hostname for the template. description: (String) Optional. Description for the template. id: (String) Optional, Read-Only. The ID of the resource. macro: (Block List) Optional. A list of macros to associate with the template. - name: (String) Required. The name of the macro (key). - value: (String) Required. The value of the macro. - id: (String) Optional, Read-Only. The ID of the macro. name: (String) Optional. Display name for the template. Defaults to the 'host' value. templates: (Set of String) Optional. IDs of linked templates. ``` -------------------------------- ### zabbix_proto_item_external Resource Definition Source: https://github.com/tpretz/terraform-provider-zabbix/blob/master/docs/resources/proto_item_external.md Defines a Zabbix prototype item resource. This resource allows users to configure Zabbix items that are created via Low-Level Discovery (LLD) rules, specifying key properties, associations, and preprocessing steps. ```APIDOC zabbix_proto_item_external (Resource) Defines a Zabbix prototype item resource. Schema: Required: - hostid (String): Host ID - key (String): Item KEY - name (String): Item Name - ruleid (String): LLD Rule ID - valuetype (String): Item Value Type, one of: float, character, log, unsigned, text Optional: - applications (Set of String): Application IDs to associate this item with - delay (String): Item Delay period - history (String): Item History - id (String): The ID of this resource. - interfaceid (String): Host Interface ID - preprocessor (Block List): (see below for nested schema) - tag (Block Set): (see below for nested schema) - trends (String): Item Trends Nested Schema for preprocessor: Required: - type (String): Preprocessor type, zabbix identifier number Optional: - error_handler (String) - error_handler_params (String) - params (List of String): Preprocessor parameters Read-Only: - id (String): The ID of this resource. Nested Schema for tag: Required: - key (String): Tag Key Optional: - value (String): Tag Value ``` -------------------------------- ### Configure Zabbix Provider Source: https://github.com/tpretz/terraform-provider-zabbix/blob/master/README.md Instantiates the Zabbix provider with necessary API credentials and connection details. Requires username, password, and API URL. Optional parameters include TLS verification disabling and serialization. ```hcl provider "zabbix" { # Required username = "" password = "" url = "http://example.com/api_jsonrpc.php" # Optional # Disable TLS verfication (false by default) tls_insecure = true # Serialize Zabbix API calls (false by default) # Note: race conditions have been observed, enable this if required serialize = true } ``` -------------------------------- ### zabbix_host Resource Schema Source: https://github.com/tpretz/terraform-provider-zabbix/blob/master/docs/resources/host.md Defines the schema for the zabbix_host Terraform resource, including required and optional attributes, nested blocks for interfaces, inventory, macros, and tags. This provides a structured way to configure Zabbix hosts. ```APIDOC zabbix_host (Resource) - groups (Set of String) [Required] Hostgroup IDs to associate this host with - host (String) [Required] FQDN of host - interface (Block List, Min: 1) [Required] (see [below for nested schema](#nestedblock--interface)) - dns (String) [Optional] Interface DNS name - ip (String) [Optional] Interface IP address - main (Boolean) [Optional] Primary interface of this type - port (Number) [Optional] Destination Port - snmp3_authpassphrase (String) [Optional] Authentication Passphrase (v3 only) - snmp3_authprotocol (String) [Optional] Authentication Protocol (v3 only), one of: md5, sha - snmp3_contextname (String) [Optional] Context Name (v3 only) - snmp3_privpassphrase (String) [Optional] Priv Passphrase (v3 only) - snmp3_privprotocol (String) [Optional] Priv Protocol (v3 only), one of: des, aes - snmp3_securitylevel (String) [Optional] Security Level (v3 only), one of: noauthnopriv, authnopriv, authpriv - snmp3_securityname (String) [Optional] Security Name (v3 only) - snmp_bulk (Boolean) [Optional] SNMP Bulk - snmp_community (String) [Optional] HSNMP Community (v1/v2 only) - snmp_version (String) [Optional] SNMP Version, one of: 1, 2, 3 - type (String) [Optional] Interface type - id (String) [Read-Only] Interface ID (internally generated) - enabled (Boolean) [Optional] Enable host for monitoring - id (String) [Optional] The ID of this resource. - inventory (Block List) [Optional] (see [below for nested schema](#nestedblock--inventory)) - inventory_mode (String) [Optional] Inventory Mode, one of: disabled, manual, automatic - macro (Block List) [Optional] (see [below for nested schema](#nestedblock--macro)) - name (String) [Optional] Zabbix host displayname, defaults to the value of "host" - proxyid (String) [Optional] ID of proxy to monitor this host - tag (Block Set) [Optional] (see [below for nested schema](#nestedblock--tag)) - templates (Set of String) [Optional] Template IDs to attach to this host ``` -------------------------------- ### zabbix_application Resource Schema Source: https://github.com/tpretz/terraform-provider-zabbix/blob/master/docs/resources/application.md Defines the schema for the zabbix_application resource, used to manage applications within Zabbix. It requires a host ID and application name, and optionally exposes a resource ID. ```terraform zabbix_application: description: Manages a Zabbix application. schema: id: Type: TypeString Description: The ID of this resource. Computed: "true" hostid: Type: TypeString Description: Host ID Required: "true" name: Type: TypeString Description: Application Name Required: "true" ``` -------------------------------- ### Terraform zabbix_proto_item_trapper Resource Schema Source: https://github.com/tpretz/terraform-provider-zabbix/blob/master/docs/resources/proto_item_trapper.md This snippet details the schema for the zabbix_proto_item_trapper Terraform resource. It outlines the required arguments (hostid, key, name, ruleid, valuetype) and optional arguments (applications, history, id, preprocessor, tag, trends), including nested block definitions for preprocessor and tag configurations. ```terraform # zabbix_proto_item_trapper (Resource) # Schema ### Required - **hostid** (String) Host ID - **key** (String) Item KEY - **name** (String) Item Name - **ruleid** (String) LLD Rule ID - **valuetype** (String) Item Value Type, one of: float, character, log, unsigned, text ### Optional - **applications** (Set of String) Application IDs to associate this item with - **history** (String) Item History - **id** (String) The ID of this resource. - **preprocessor** (Block List) (see [below for nested schema](#nestedblock--preprocessor)) - **tag** (Block Set) (see [below for nested schema](#nestedblock--tag)) - **trends** (String) Item Trends ### Nested Schema for `preprocessor` Required: - **type** (String) Preprocessor type, zabbix identifier number Optional: - **error_handler** (String) - **error_handler_params** (String) - **params** (List of String) Preprocessor parameters Read-Only: - **id** (String) The ID of this resource. ### Nested Schema for `tag` Required: - **key** (String) Tag Key Optional: - **value** (String) Tag Value ``` -------------------------------- ### zabbix_proto_item_aggregate Resource Schema Source: https://github.com/tpretz/terraform-provider-zabbix/blob/master/docs/resources/proto_item_aggregate.md Defines the schema for the zabbix_proto_item_aggregate resource, which allows users to configure aggregate prototype items for Zabbix low-level discovery. This includes required fields like hostid, key, name, ruleid, and valuetype, as well as optional fields for applications, delay, history, trends, and nested configurations for preprocessors and tags. ```APIDOC zabbix_proto_item_aggregate (Resource) Defines an aggregate prototype item in Zabbix, used for low-level discovery. It specifies how to create items based on discovered entities. Schema: ### Required - **hostid** (String) Host ID - **key** (String) Item KEY - **name** (String) Item Name - **ruleid** (String) LLD Rule ID - **valuetype** (String) Item Value Type, one of: float, character, log, unsigned, text ### Optional - **applications** (Set of String) Application IDs to associate this item with - **delay** (String) Item Delay period - **history** (String) Item History - **id** (String) The ID of this resource. - **preprocessor** (Block List) (see below for nested schema) - **tag** (Block Set) (see below for nested schema) - **trends** (String) Item Trends ### Nested Schema for `preprocessor` Required: - **type** (String) Preprocessor type, zabbix identifier number Optional: - **error_handler** (String) - **error_handler_params** (String) - **params** (List of String) Preprocessor parameters Read-Only: - **id** (String) The ID of this resource. ### Nested Schema for `tag` Required: - **key** (String) Tag Key Optional: - **value** (String) Tag Value ``` -------------------------------- ### zabbix_proto_item_agent Resource Schema Source: https://github.com/tpretz/terraform-provider-zabbix/blob/master/docs/resources/proto_item_agent.md Defines the schema for the zabbix_proto_item_agent Terraform resource, including required and optional arguments, and nested blocks for preprocessors and tags. ```APIDOC zabbix_proto_item_agent (Resource) Schema: ### Required - hostid (String) Host ID - key (String) Item KEY - name (String) Item Name - ruleid (String) LLD Rule ID - valuetype (String) Item Value Type, one of: float, character, log, unsigned, text ### Optional - active (Boolean) Active zabbix agent Item - applications (Set of String) Application IDs to associate this item with - delay (String) Item Delay period - history (String) Item History - id (String) The ID of this resource. - interfaceid (String) Host Interface ID - preprocessor (Block List) (see [below for nested schema](#nestedblock--preprocessor)) - tag (Block Set) (see [below for nested schema](#nestedblock--tag)) - trends (String) Item Trends ### Nested Schema for preprocessor Required: - type (String) Preprocessor type, zabbix identifier number Optional: - error_handler (String) - error_handler_params (String) - params (List of String) Preprocessor parameters Read-Only: - id (String) The ID of this resource. ### Nested Schema for tag Required: - key (String) Tag Key Optional: - value (String) Tag Value ``` -------------------------------- ### zabbix_template Data Source Source: https://github.com/tpretz/terraform-provider-zabbix/blob/master/docs/data-sources/template.md This data source retrieves information about Zabbix templates, allowing users to fetch template details like hostname, display name, description, and associated host groups. It also supports querying template macros. ```APIDOC zabbix_template (Data Source) Retrieves information about Zabbix templates. Schema: Optional: - host (String): Template hostname (internal name) - id (String): The ID of this resource. - macro (Block List): Configuration for template macros. - name (String): Macro Name (key) [Required] - value (String): Macro Value [Required] - id (String): The ID of this resource. [Read-Only] - name (String): Template Display Name (defaults to host) Read-Only: - description (String): Template description - groups (Set of String): Host Group IDs ``` -------------------------------- ### zabbix_proto_item_http Resource Schema Source: https://github.com/tpretz/terraform-provider-zabbix/blob/master/docs/resources/proto_item_http.md Defines the schema for the zabbix_proto_item_http Terraform resource. This includes required fields like hostid, key, name, ruleid, url, and valuetype, as well as optional fields for applications, authentication, request details, and nested configurations for preprocessors and tags. ```APIDOC zabbix_proto_item_http (Resource) Schema: ### Required - **hostid** (String) Host ID - **key** (String) Item KEY - **name** (String) Item Name - **ruleid** (String) LLD Rule ID - **url** (String) url to probe - **valuetype** (String) Item Value Type, one of: float, character, log, unsigned, text ### Optional - **applications** (Set of String) Application IDs to associate this item with - **auth_type** (String) HTTP auth type, one of: basic, ntlm, kerberos, none - **delay** (String) Item Delay period - **follow_redirects** (Boolean) follow http redirects - **headers** (Map of String) - **history** (String) Item History - **id** (String) The ID of this resource. - **interfaceid** (String) Host Interface ID - **password** (String, Sensitive) Authentication Password - **post_type** (String) HTTP post type, one of: xml, raw, json - **posts** (String) POST data to send in request - **preprocessor** (Block List) (see [below for nested schema](#nestedblock--preprocessor)) - **proxy** (String) HTTP proxy connection string - **request_method** (String) HTTP request method, one of: get, post, put, head - **retrieve_mode** (String) HTTP retrieve mode, one of: body, headers, both - **status_codes** (String) http status code - **tag** (Block Set) (see [below for nested schema](#nestedblock--tag)) - **timeout** (String) http request timeout - **trends** (String) Item Trends - **username** (String) Authentication Username - **verify_host** (Boolean) https verify host - **verify_peer** (Boolean) https verify peer ### Nested Schema for `preprocessor` Required: - **type** (String) Preprocessor type, zabbix identifier number Optional: - **error_handler** (String) - **error_handler_params** (String) - **params** (List of String) Preprocessor parameters Read-Only: - **id** (String) The ID of this resource. ### Nested Schema for `tag` Required: - **key** (String) Tag Key Optional: - **value** (String) Tag Value ``` -------------------------------- ### zabbix_lld_simple Resource Schema Source: https://github.com/tpretz/terraform-provider-zabbix/blob/master/docs/resources/lld_simple.md Defines the schema for the zabbix_lld_simple Terraform resource, including required and optional attributes, nested blocks for conditions, macros, and preprocessors, along with their respective fields and types. ```APIDOC zabbix_lld_simple (Resource): Manages a Zabbix Low-Level Discovery (LLD) simple rule. Schema: Required: - hostid (String): Host ID. - key (String): LLD KEY. - name (String): LLD Name. Optional: - condition (Block List): Filter conditions for LLD. Nested Schema: Required: - macro (String): Filter Macro. - value (String): Filter Value. Optional: - operator (String): Operator, one of: match, notmatch. Read-Only: - id (String): The ID of this condition. - delay (String): LLD Delay period. - evaltype (String): EvalType, one of: or, custom, andor, and. - formula (String): Formula. - id (String): The ID of this resource. - interfaceid (String): Host Interface ID. - lifetime (String): LLD Stale Item Lifetime. - macro (Block Set): Macros for LLD. Nested Schema: Required: - macro (String): Macro. - path (String): Macro Path. - preprocessor (Block List): Preprocessors for LLD. Nested Schema: Required: - type (String): Preprocessor type, zabbix identifier number. Optional: - error_handler (String): Error handler. - error_handler_params (String): Error handler parameters. - params (List of String): Preprocessor parameters. Read-Only: - id (String): The ID of this preprocessor. ``` -------------------------------- ### zabbix_proto_trigger Resource Schema Source: https://github.com/tpretz/terraform-provider-zabbix/blob/master/docs/resources/proto_trigger.md Defines the schema for the zabbix_proto_trigger resource, which is used to manage Zabbix trigger prototypes. It includes required fields like expression and name, along with various optional configuration parameters for trigger behavior, dependencies, and tagging. ```APIDOC zabbix_proto_trigger (Resource) Manages Zabbix trigger prototypes. Schema: Required: - expression (String): Trigger Expression - name (String): Trigger name Optional: - comments (String): Trigger comments - correlation_tag (String): correlation tag - dependencies (Set of String): Trigger Dependencies - enabled (Boolean): Enable this trigger - id (String): The ID of this resource. - manual_close (Boolean): Manual resolution - multiple (Boolean): generate multiple events - priority (String): Trigger Priority level, one of: high, disaster, not_classified, info, warn, average - recovery_expression (String): use recovery expression (recovery_none must not be true) - recovery_none (Boolean): set recovery mode to none - tag (Block Set): (see below for nested schema) - Nested Schema for tag: Required: - key (String): Tag Key Optional: - value (String): Tag Value - url (String): link to url relevent to trigger ``` -------------------------------- ### zabbix_proto_item_snmp Resource Schema Source: https://github.com/tpretz/terraform-provider-zabbix/blob/master/docs/resources/proto_item_snmp.md Defines the schema for the zabbix_proto_item_snmp Terraform resource, including required and optional arguments, and nested schemas for preprocessors and tags. ```APIDOC zabbix_proto_item_snmp (Resource): Manages a Zabbix SNMP prototype item. Schema: Required: hostid (String): Host ID. key (String): Item KEY. name (String): Item Name. ruleid (String): LLD Rule ID. snmp_oid (String): SNMP OID. valuetype (String): Item Value Type. One of: float, character, log, unsigned, text. Optional: applications (Set of String): Application IDs to associate this item with. delay (String): Item Delay period. history (String): Item History. id (String): The ID of this resource. interfaceid (String): Host Interface ID. preprocessor (Block List): Configuration for item preprocessors. snmp3_authpassphrase (String): Authentication Passphrase (v3 only). snmp3_authprotocol (String): Authentication Protocol (v3 only). One of: md5, sha. snmp3_contextname (String): Context Name (v3 only). snmp3_privpassphrase (String): Priv Passphrase (v3 only). snmp3_privprotocol (String): Priv Protocol (v3 only). One of: aes, des. snmp3_securitylevel (String): Security Level (v3 only). One of: noauthnopriv, authnopriv, authpriv. snmp3_securityname (String): Security Name (v3 only). snmp_community (String): SNMP Community (v1/v2 only). snmp_version (String): SNMP Version. One of: 1, 2, 3. tag (Block Set): Tags to associate with the item. trends (String): Item Trends. Nested Schema for preprocessor: Required: type (String): Preprocessor type, zabbix identifier number. Optional: error_handler (String):. error_handler_params (String):. params (List of String): Preprocessor parameters. Read-Only: id (String): The ID of this resource. Nested Schema for tag: Required: key (String): Tag Key. Optional: value (String): Tag Value. ``` -------------------------------- ### Configure zabbix_lld_simple Resource Source: https://github.com/tpretz/terraform-provider-zabbix/blob/master/README.md Defines a Zabbix Low-Level Discovery (LLD) simple item. It specifies the host, key, name, collection interval, and optional preprocessors, conditions, and interface ID for discovery. ```hcl resource "zabbix_lld_simple" "example" { hostid = "1234" key = "zabbix.hostname" name = "Item Name" delay = "1m" lifetime = "1d" evaltype = "and" interfaceid = "5678" preprocessor { type = "5" params = ["param a", "param b"] error_handler = "1" error_handler_params = "" } condition { macro = "{#name}" value = "^blah" operator = "match" } macro { macro = "{#name}" path = "$.bob" } } ``` -------------------------------- ### Schema Definition: Zabbix Provider Inventory Fields Source: https://github.com/tpretz/terraform-provider-zabbix/blob/master/docs/resources/host.md Defines the optional fields for inventory details within the Zabbix Terraform provider. These fields allow for detailed asset tracking and management. ```APIDOC inventory: alias (String) Optional: Inventory alias asset_tag (String) Optional: Inventory asset_tag chassis (String) Optional: Inventory chassis contact (String) Optional: Inventory contact contract_number (String) Optional: Inventory contract_number date_hw_decomm (String) Optional: Inventory date_hw_decomm date_hw_expiry (String) Optional: Inventory date_hw_expiry date_hw_install (String) Optional: Inventory date_hw_install date_hw_purchase (String) Optional: Inventory date_hw_purchase deployment_status (String) Optional: Inventory deployment_status hardware (String) Optional: Inventory hardware hardware_full (String) Optional: Inventory hardware_full host_netmask (String) Optional: Inventory host_netmask host_networks (String) Optional: Inventory host_networks host_router (String) Optional: Inventory host_router hw_arch (String) Optional: Inventory hw_arch installer_name (String) Optional: Inventory installer_name location (String) Optional: Inventory location location_lat (String) Optional: Inventory location_lat location_lon (String) Optional: Inventory location_lon macaddress_a (String) Optional: Inventory macaddress_a macaddress_b (String) Optional: Inventory macaddress_b model (String) Optional: Inventory model name (String) Optional: Inventory name notes (String) Optional: Inventory notes oob_ip (String) Optional: Inventory oob_ip oob_netmask (String) Optional: Inventory oob_netmask oob_router (String) Optional: Inventory oob_router os (String) Optional: Inventory os os_full (String) Optional: Inventory os_full os_short (String) Optional: Inventory os_short poc_1_cell (String) Optional: Inventory poc_1_cell poc_1_email (String) Optional: Inventory poc_1_email poc_1_name (String) Optional: Inventory poc_1_name poc_1_notes (String) Optional: Inventory poc_1_notes poc_1_phone_a (String) Optional: Inventory poc_1_phone_a poc_1_phone_b (String) Optional: Inventory poc_1_phone_b poc_1_screen (String) Optional: Inventory poc_1_screen poc_2_cell (String) Optional: Inventory poc_2_cell poc_2_email (String) Optional: Inventory poc_2_email poc_2_name (String) Optional: Inventory poc_2_name poc_2_notes (String) Optional: Inventory poc_2_notes poc_2_phone_a (String) Optional: Inventory poc_2_phone_a poc_2_phone_b (String) Optional: Inventory poc_2_phone_b poc_2_screen (String) Optional: Inventory poc_2_screen serialno_a (String) Optional: Inventory serialno_a serialno_b (String) Optional: Inventory serialno_b site_address_a (String) Optional: Inventory site_address_a site_address_b (String) Optional: Inventory site_address_b site_address_c (String) Optional: Inventory site_address_c site_city (String) Optional: Inventory site_city site_country (String) Optional: Inventory site_country site_notes (String) Optional: Inventory site_notes site_rack (String) Optional: Inventory site_rack site_state (String) Optional: Inventory site_state site_zip (String) Optional: Inventory site_zip software (String) Optional: Inventory software software_app_a (String) Optional: Inventory software_app_a software_app_b (String) Optional: Inventory software_app_b software_app_c (String) Optional: Inventory software_app_c software_app_d (String) Optional: Inventory software_app_d software_app_e (String) Optional: Inventory software_app_e software_full (String) Optional: Inventory software_full tag (String) Optional: Inventory tag type (String) Optional: Inventory type type_full (String) Optional: Inventory type_full url_a (String) Optional: Inventory url_a url_b (String) Optional: Inventory url_b url_c (String) Optional: Inventory url_c vendor (String) Optional: Inventory vendor ``` -------------------------------- ### Schema Definition: Zabbix Provider Macro Fields Source: https://github.com/tpretz/terraform-provider-zabbix/blob/master/docs/resources/host.md Defines the required and read-only fields for macro configurations within the Zabbix Terraform provider. Macros are used to parameterize Zabbix configurations. ```APIDOC macro: name (String) Required: Macro Name (key) value (String) Required: Macro Value id (String) Read-Only: The ID of this resource. ``` -------------------------------- ### zabbix_trigger Resource Schema Source: https://github.com/tpretz/terraform-provider-zabbix/blob/master/docs/resources/trigger.md Defines the schema for the zabbix_trigger Terraform resource, including required and optional attributes like expression, name, comments, priority, and tags. It specifies data types, constraints, and nested structures for configuration. ```APIDOC zabbix_trigger (Resource) Schema: Required: expression (String) Trigger Expression name (String) Trigger name Optional: comments (String) Trigger comments correlation_tag (String) correlation tag dependencies (Set of String) Trigger Dependencies enabled (Boolean) Enable this trigger id (String) The ID of this resource. manual_close (Boolean) Manual resolution multiple (Boolean) generate multiple events priority (String) Trigger Priority level, one of: high, disaster, not_classified, info, warn, average recovery_expression (String) use recovery expression (recovery_none must not be true) recovery_none (Boolean) set recovery mode to none tag (Block Set) (see below for nested schema) url (String) link to url relevent to trigger Nested Schema for tag: Required: key (String) Tag Key Optional: value (String) Tag Value ``` -------------------------------- ### zabbix_application Data Source Schema Source: https://github.com/tpretz/terraform-provider-zabbix/blob/master/docs/data-sources/application.md Defines the schema for the zabbix_application data source, specifying required and optional attributes for retrieving Zabbix application details. ```APIDOC zabbix_application: description: Represents a Zabbix application. schema: name: Type: TypeString Description: Application Name Required: "true" hostid: Type: TypeString Description: Host ID Optional: "true" id: Type: TypeString Description: The ID of this resource. Optional: "true" Computed: "true" ``` -------------------------------- ### zabbix_item_simple Resource Schema Source: https://github.com/tpretz/terraform-provider-zabbix/blob/master/docs/resources/item_simple.md Defines the schema for the zabbix_item_simple Terraform resource, used to manage simple items in Zabbix. It includes required fields like hostid, key, name, and valuetype, along with optional fields for applications, delay, history, interfaceid, preprocessor configuration, tags, and trends. ```APIDOC zabbix_item_simple (Resource) Schema: Required: - hostid (String): Host ID - key (String): Item KEY - name (String): Item Name - valuetype (String): Item Value Type, one of: float, character, log, unsigned, text Optional: - applications (Set of String): Application IDs to associate this item with - delay (String): Item Delay period - history (String): Item History - id (String): The ID of this resource. - interfaceid (String): Host Interface ID - preprocessor (Block List): Configuration for item preprocessors. Nested Schema for preprocessor: Required: - type (String): Preprocessor type, zabbix identifier number Optional: - error_handler (String): Error handler type - error_handler_params (String): Parameters for the error handler - params (List of String): Preprocessor parameters Read-Only: - id (String): The ID of this resource. - tag (Block Set): Tags to associate with the item. Nested Schema for tag: Required: - key (String): Tag Key Optional: - value (String): Tag Value - trends (String): Item Trends ``` -------------------------------- ### Schema Definition: Zabbix Provider Tag Fields Source: https://github.com/tpretz/terraform-provider-zabbix/blob/master/docs/resources/host.md Defines the required and optional fields for tag configurations within the Zabbix Terraform provider. Tags are used for organizing and categorizing Zabbix resources. ```APIDOC tag: key (String) Required: Tag Key value (String) Optional: Tag Value ``` -------------------------------- ### zabbix_proxy Data Source Schema Source: https://github.com/tpretz/terraform-provider-zabbix/blob/master/docs/data-sources/proxy.md Defines the schema for the zabbix_proxy data source, specifying required and optional attributes for querying Zabbix proxy information. This includes the proxy's FQDN and an optional ID. ```APIDOC zabbix_proxy (Data Source): Retrieves information about a Zabbix proxy. Schema: Required: host (String): FQDN of the Zabbix proxy. Optional: id (String): The ID of this resource. Defaults to the FQDN if not provided. ```