en-us	##### RefreshActiveChecks  How often the list of active checks is refreshed, in seconds. Note that after failing to refresh active checks the next refresh will be attempted in 60 seconds.  Default: `5`<br> Range: 1-86400
es	##### RefreshActiveChecks  Con qué frecuencia se actualiza la lista de comprobaciones activas, en segundos. Tenga en cuenta que después de no poder actualizar las comprobaciones activas, la siguiente actualización se intentará en 60 segundos.  Predeterminado: `5`<br> Rango: 1-86400

en-us	##### RefreshActiveChecks  How often the list of active checks is refreshed, in seconds. Note that after failing to refresh active checks the next refresh will be attempted in 60 seconds.  Default: `5`<br> Range: 1-86400
es	##### RefreshActiveChecks  Con qué frecuencia se actualiza la lista de comprobaciones activas, en segundos. Tenga en cuenta que después de no poder actualizar las comprobaciones activas, la siguiente actualización se intentará en 60 segundos.  Predeterminado: `5`<br> Rango: 1-86400

en-us	### 'Refresh proxy configuration' request object  The 'Refresh proxy configuration' task request object has the following properties.  |Property|[Type](/manual/api/reference_commentary#data_types)|Description| |--|--|------| |proxyids|array|Proxy IDs.|
es	### Objeto de solicitud 'Actualizar configuración de proxy'  El objeto de solicitud de tarea 'Actualizar configuración de proxy' tiene las siguientes propiedades.  |Propiedad|[Tipo](/manual/api/reference_commentary#data_types)|Descripción| |--|--|------| |proxy_hostids|matriz|IDs de proxy.|

en-us	# regexp.create
es	# regexp.create

en-us	# regexp.delete
es	# regexp.delete

en-us	# regexp.get
es	# regexp.get

en-us	# regexp.update
es	# regexp.update

en-us	# Register a new module  This section explains how to add a new module to Zabbix frontend.
es	# Registrar un nuevo módulo  Esta sección explica cómo agregar un nuevo módulo a la interfaz de Zabbix.

en-us	 ###### Register request  A request sent by the agent during the agent startup phase to obtain provided metrics to register a plugin.  |   |   | |---|---| |direction|agent → plugin| |response|yes|  Parameters specific to register requests:  |Name|Type|Comments| |---------|--------|----------| |version|string|The protocol version <major>.<minor>|  *Example:*      {"id":1,"type":2,"version":"1.0"}
es	 ###### Solicitud de registro  Una solicitud enviada por el agente durante la fase de inicio del agente para obtener las métricas proporcionadas para registrar un complemento.  |    |    | |---|---| |direction|agente → plugin| |response|sí|  Parámetros específicos para registrar solicitudes:  |Nombre|Tipo|Comentarios| |---------|--------|----------| |version|cadena|La versión del protocolo <principal>.<menor>|  *Ejemplo:*      {"id":1,"type":2,"version":"1.0"}

en-us	 ###### Register response  Plugin's response to the register request.  |   |   | |---|---| |direction|plugin → agent| |response|n/a|  Parameters specific to register responses:  |Name|Type|Comments| |---------|--------|----------| |name|string|The plugin name.| |metrics|array of strings (optional)|The metrics with descriptions as used in the plugin. Returns RegisterMetrics(). Absent if error is returned.| |interfaces|uint32 (optional)|The bit mask of plugin's supported interfaces. Absent if error is returned.| |error|string (optional)|An error message returned if a plugin cannot be started. Absent, if metrics are returned.|  *Examples:*      {"id":2,"type":3,"metrics":["external.test", "External exporter Test."], "interfaces": 4}  or      {"id":2,"type":3,"error":"error message"}
es	 ###### Registrar respuesta  Respuesta del complemento a la solicitud de registro.  |   |   | |---|---| |direction|complemento → agente| |response|n/a|  Parámetros específicos para registrar respuestas:  |Nombre|Tipo|Comentarios| |---------|--------|----------| |name|cadena|El nombre del complemento.| |metrics|matriz de cadenas (opcional)|Las métricas con descripciones tal como se utilizan en el complemento. Devuelve RegisterMetrics(). Ausente si se devuelve un error.| |interfaces|uint32 (opcional)|La máscara de bits de las interfaces admitidas por el complemento. Ausente si se devuelve un error.| |error|cadena (opcional)|Se devuelve un mensaje de error si no se puede iniciar un complemento. Ausente, si se devuelven métricas.|  *Ejemplos:*      {"id":2,"type":3,"metrics":["external.test", "External exporter Test."], "interfaces": 4}  o      {"id":2,"type":3,"error":"error message"}

en-us	 ##### registry.data[key,<value name>] {#registry.data}  <br> Return data for the specified value name in the Windows Registry key.<br> Return value: *Integer*, *string* or *text* (depending on the value type)  Parameters:  -   **key** - the registry key including the root key; root abbreviations (e.g. HKLM) are allowed; -   **value name** - the registry value name in the key (empty string "" by default). The default value is returned if the value name is not supplied.  Comments:  -   Supported root abbreviations:<br>HKCR - HKEY_CLASSES_ROOT<br>HKCC - HKEY_CURRENT_CONFIG<br>HKCU - HKEY_CURRENT_USER<br>HKCULS - HKEY_CURRENT_USER_LOCAL_SETTINGS<br>HKLM - HKEY_LOCAL_MACHINE<br>HKPD - HKEY_PERFORMANCE_DATA<br>HKPN - HKEY_PERFORMANCE_NLSTEXT<br>HKPT - HKEY_PERFORMANCE_TEXT<br>HKU - HKEY_USERS<br> -   Keys with spaces must be double-quoted.  Examples:      registry.data["HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting"] #return the data of the default value of this key     registry.data["HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting","EnableZip"] #return the data of the value named "Enable Zip" in this key
es	 ##### registro.datos[clave,<nombre del valor>] {#registro.datos}  <br> Devuelve datos para el nombre del valor especificado en la clave del Registro de Windows.<br> Valor de retorno: *Entero*, *cadena* o *texto* (dependiendo del tipo de valor)  Parámetros:  - **clave**: la clave de registro, incluida la clave raíz; se permiten abreviaturas de raíz (por ejemplo, HKLM); - **nombre del valor**: el nombre del valor del registro en la clave (cadena vacía "" de forma predeterminada). El valor predeterminado se devuelve si no se proporciona el nombre del valor.  Comentarios:  - Abreviaturas de raíz admitidas:<br>HKCR - HKEY_CLASSES_ROOT<br>HKCC - HKEY_CURRENT_CONFIG<br>HKCU - HKEY_CURRENT_USER<br>HKCULS - HKEY_CURRENT_USER_LOCAL_SETTINGS<br>HKLM - HKEY_LOCAL_MACHINE<br>HKPD - HKEY_PERFORMANCE_DATA<br>HKPN - <br> HKPT - HKEY_PERFORMANCE_TEXT<br>HKU - HKEY_USERS<br> - Las claves con espacios deben estar entre comillas dobles.  Ejemplos:      registro.data["HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting"] #devuelve los datos del valor predeterminado de esta clave     registro.data["HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting","EnableZip"] #devuelve los datos del valor denominado "Enable Zip" en esta clave

en-us	 ##### registry.get[key,<mode>,<name regexp>] {#registry.get}  <br> The list of Windows Registry values or keys located at given key.<br> Return value: *JSON object*.  Parameters:  -   **key** - the registry key including the root key; root abbreviations (e.g. HKLM) are allowed (see comments for registry.data\[\] to see full list of abbreviations);<br> -   **mode** - possible values:<br>*values* (default) or *keys*;<br> -   **name regexp** - only discover values with names that match the regexp (default - discover all values). Allowed only with *values* as `mode`.  Keys with spaces must be double-quoted.  Examples:      registry.get[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall,values,"^DisplayName|DisplayVersion$"] #return the data of the values named "DisplayName" or "DisplayValue" in this key. The JSON will include details of the key, last subkey, value name, value type and value data.     registry.get[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall,values] #return the data of the all values in this key. The JSON will include details of the key, last subkey, value name, value type and value data.     registry.get[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall,keys] #return all subkeys of this key. The JSON will include details of the key and last subkey.
es	 ##### registro.get[clave,<modo>,<nombre expresión regular>] {#registry.get}  <br> La lista de valores o claves del Registro de Windows ubicadas en la clave determinada.<br> Valor de retorno: *objeto JSON*.  Parámetros:  - **clave**: la clave de registro, incluida la clave raíz; se permiten abreviaturas de raíz (por ejemplo, HKLM) (consulte los comentarios de registro.data\[\] para ver la lista completa de abreviaturas);<br> - **modo** - valores posibles:<br>*valores* (predeterminado) o *claves*;<br> - **name regexp**: solo descubre valores con nombres que coincidan con la expresión regular (predeterminado: descubre todos los valores). Permitido solo con *valores* como `modo`.  Las claves con espacios deben estar entre comillas dobles.  Ejemplos:      registro.get[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall,values,"^DisplayName|DisplayVersion$"] #devuelve los datos de los valores denominados "DisplayName" o "DisplayValue" en esta clave. El JSON incluirá detalles de la clave, la última subclave, el nombre del valor, el tipo de valor y los datos del valor.     registro.get[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall,values] #devuelve los datos de todos los valores en esta clave. El JSON incluirá detalles de la clave, la última subclave, el nombre del valor, el tipo de valor y los datos del valor.     registro.get[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall,keys] #devuelve todas las subclaves de esta clave. El JSON incluirá detalles de la clave y la última subclave.

en-us	#### regsub(pattern,output) {#regsub}  Substring extraction by a regular expression match (case-sensitive).  Parameters:  -   **pattern** - the regular expression to match; -   **output** - the output options. **\\1 - \\9** placeholders are supported to capture groups. **\\0** returns the matched text.  Comments:  -   If the function pattern is an incorrect regular expression, then the macro evaluates to 'UNKNOWN'     (except for low-level discovery macros, in which case the function will be ignored, and the macro will remain unresolved).  Examples:  |Macro function|Received value|Output| |-------------|----|-------------| |`{{ITEM.VALUE}.regsub(^[0-9]+, Problem)}`|`123Log line`|`Problem`| |`{{ITEM.VALUE}.regsub("^([0-9]+)", "Problem")}`|`123 Log line`|`Problem`| |`{{ITEM.VALUE}.regsub("^([0-9]+)", Problem ID: \1)}`|`123 Log line`|`Problem ID: 123`| |`{{ITEM.VALUE}.regsub(".*", "Problem ID: \1")}`|`Log line`|''Problem ID: ''| |`{{ITEM.VALUE}.regsub("^(\w+).*?([0-9]+)", " Problem ID: \1_\2 ")}`|`MySQL crashed errno 123`|'' Problem ID: MySQL\_123 ''| |`{{ITEM.VALUE}.regsub("([1-9]+", "Problem ID: \1")}`|`123 Log line`|`*UNKNOWN*` (invalid regular expression)| |`{{#IFALIAS}.regsub("(.*)_([0-9]+)", \1)}`|`customername_1`|`customername`| |`{{#IFALIAS}.regsub("(.*)_([0-9]+)", \2)}`|`customername_1`|`1`| |`{{#IFALIAS}.regsub("(.*)_([0-9]+", \1)}`|`customername_1`|`{{#IFALIAS}.regsub("(.*)_([0-9]+", \1)}` (invalid regular expression)| |`{$MACRO:"{{#IFALIAS}.regsub(\"(.*)_([0-9]+)\", \1)}"}`|`customername_1`|`{$MACRO:"customername"}`| |`{$MACRO:"{{#IFALIAS}.regsub(\"(.*)_([0-9]+)\", \2)}"}`|`customername_1`|`{$MACRO:"1"}`| |`{$MACRO:"{{#IFALIAS}.regsub(\"(.*)_([0-9]+\", \1)}"}`|`customername_1`|`{$MACRO:"{{#M}.regsub(\"(.*)_([0-9]+\", \1)}"}` (invalid regular expression)| |`"{$MACRO:\"{{#IFALIAS}.regsub(\\"(.*)_([0-9]+)\\", \1)}\"}"`|`customername_1`|`"{$MACRO:\"customername\"}"`| |`"{$MACRO:\"{{#IFALIAS}.regsub(\\"(.*)_([0-9]+)\\", \2)}\"}"`|`customername_1`|`"{$MACRO:\"1\"}")`| |`"{$MACRO:\"{{#IFALIAS}.regsub(\\"(.*)_([0-9]+\\", \1)}\"}"`|`customername_1`|`"{$MACRO:\"{{#IFALIAS}.regsub(\\"(.*)_([0-9]+\\", \1)}\"}")` (invalid regular expression)|
es	#### regsub(patrón,salida) {#regsub}  Extracción de subcadenas mediante una coincidencia de expresión regular (distingue entre mayúsculas y minúsculas).  Parámetros:  - **patrón** - la expresión regular que debe coincidir; - **salida** - las opciones de salida. **\\1 - \\9** se admiten marcadores de posición para capturar grupos. **\\0** devuelve el texto coincidente.  Comentarios:  - Si el patrón de función es una expresión regular incorrecta, entonces la macro se evalúa como 'DESCONOCIDA'     (excepto para macros de descubrimiento de bajo nivel, en cuyo caso la función se ignorará y la macro permanecerá sin resolver).  Ejemplos:  |Función macro|Valor recibido|Salida| |-------------|----|-------------| |`{{ITEM.VALUE}.regsub(^[0-9]+, Problema)}`|`123Línea de registro`|`Problema`| |`{{ITEM.VALUE}.regsub("^([0-9]+)", "Problema")}`|`123 Línea de registro`|`Problema`| |`{{ITEM.VALUE}.regsub("^([0-9]+)", ID del problema: \1)}`|`123 Línea de registro`|`ID del problema: 123`| |`{{ITEM.VALUE}.regsub(".*", "ID del problema: \1")}`|`Línea de registro`|''ID del problema: ''| |`{{ITEM.VALUE}.regsub("^(\w+).*?([0-9]+)", " ID del problema: \1_\2 ")}`|`MySQL falló errno 123`| '' ID del problema: MySQL\_123 ''| |`{{ITEM.VALUE}.regsub("([1-9]+", "ID del problema: \1")}`|`123 Línea de registro`|`*UNKNOWN*` (expresión regular no válida)| |`{{#IFALIAS}.regsub("(.*)_([0-9]+)", \1)}`|`nombre_cliente_1`|`nombre_cliente`| |`{{#IFALIAS}.regsub("(.*)_([0-9]+)", \2)}`|`nombre_cliente_1`|`1`| |`{{#IFALIAS}.regsub("(.*)_([0-9]+", \1)}`|`nombre de cliente_1`|`{{#IFALIAS}.regsub("(.*)_ ([0-9]+", \1)}` (expresión regular no válida)| |`{$MACRO:"{{#IFALIAS}.regsub(\"(.*)_([0-9]+)\", \1)}"}`|`nombre_cliente_1`|`{$MACRO: "nombre de cliente"}`| |`{$MACRO:"{{#IFALIAS}.regsub(\"(.*)_([0-9]+)\", \2)}"}`|`nombre_cliente_1`|`{$MACRO: "1"}`| |`{$MACRO:"{{#IFALIAS}.regsub(\"(.*)_([0-9]+\", \1)}"}`|`nombre_cliente_1`|`{$MACRO:" {{#M}.regsub(\"(.*)_([0-9]+\", \1)}"}` (expresión regular no válida)| |`"{$MACRO:\"{{#IFALIAS}.regsub(\\"(.*)_([0-9]+)\\", \1)}\"}"`|`nombre_cliente_1` |`"{$MACRO:\"nombre de cliente\"}"`| |`"{$MACRO:\"{{#IFALIAS}.regsub(\\"(.*)_([0-9]+)\\", \2)}\"}"`|`nombre_cliente_1` |`"{$MACRO:\"1\"}")`| |`"{$MACRO:\"{{#IFALIAS}.regsub(\\"(.*)_([0-9]+\\", \1)}\"}"`|`nombre_cliente_1`| `"{$MACRO:\"{{#IFALIAS}.regsub(\\"(.*)_([0-9]+\\", \1)}\"}")` (expresión regular no válida) |

en-us	#### Regular expression limitations in Zabbix agent 2  Zabbix agent 2 does not support lookaheads and lookbehinds in regular expressions due to the standard Go regexp library limitations.
es	#### Limitaciones de las expresiones regulares en el agente Zabbix 2  Zabbix Agent 2 no admite búsquedas hacia adelante y hacia atrás en expresiones regulares debido a las limitaciones de la biblioteca estándar de expresiones regulares de Go.

en-us	# Regular expression object  The following objects are directly related to the `regexp` API.
es	# Objeto de expresión regular  Los siguientes objetos están directamente relacionados con la API `regexp`.

en-us	##### Regular expression {#regexp}  Match the value to the regular expression and replace with the required output.  Parameters:  -   **pattern** - the regular expression;<br> -   **output** - the output formatting template. An \\N (where N=1…9) escape sequence is replaced with the Nth matched group. A \\0 escape sequence is replaced with the matched text.  Comments:  -   A failure to match the input value will make the item unsupported;<br> -   The regular expression supports extraction of maximum 10 captured groups with the \\N sequence;<br> -   If you mark the *Custom on fail* checkbox, it is possible to specify custom error-handling options: either to discard the value, set a specified value, or set a specified error message. In case of a failed preprocessing step, the item will not become unsupported if the option to discard the value or set a specified value is selected.<br> -   Please refer to [regular expressions](/manual/regular_expressions#example) section for some existing examples.
es	##### Expresión regular {#regexp}  Haga coincidir el valor con la expresión regular y reemplácelo con la salida requerida.  Parámetros:  -   **patrón** - la expresión regular;<br> -   **salida**: la plantilla de formato de salida. Una secuencia de escape \\N (donde N=1…9) se reemplaza con el enésimo grupo coincidente. Una secuencia de escape \\0 se reemplaza con el texto coincidente.  Comentarios:  -   Si no se coincide con el valor de entrada, la métrica no será compatible;<br> -   La expresión regular admite la extracción de un máximo de 10 grupos capturados con la secuencia \\N;<br> -   Si marca la casilla de verificación *Personalizado en caso de error*, es posible especificar opciones personalizadas de manejo de errores: descartar el valor, establecer un valor específico o establecer un mensaje de error específico. En caso de que un paso de preprocesamiento falle, la métrica no dejará de ser compatible si se selecciona la opción de descartar el valor o establecer un valor específico.<br> -   Consulte la sección [expresiones regulares](/manual/regular_expressions#example) para ver algunos ejemplos existentes.

en-us	#### - Regular expressions  This section allows creating custom regular expressions that can be used in several places in the frontend. See [Regular expressions](/manual/regular_expressions) section for details.
es	#### - Expresiones regulares  Esta sección permite crear expresiones regulares personalizadas que pueden usarse en varios lugares del frontend. Ver [expresiones regulares](/manual/regular_expressions) para obtener más detalles.

en-us	#### Regular expression support by location  |Location|<|Regular expression|Global regular expression|Multiline matching|Comments| |-|----------|---------|---------|---------|--------------------| |**[Agent items](/manual/config/items/itemtypes/zabbix_agent)**|<|<|<|<|<| |<|eventlog\[\]|Yes|Yes|Yes|`regexp`, `severity`, `source`, `eventid` parameters| |<|eventlog.count\[\]|^|^|^|`regexp`, `severity`, `source`, `eventid` parameters| |^|log\[\]|^|^|^|`regexp` parameter| |^|log.count\[\]|^|^|^|^| |^|logrt\[\]|^|Yes/No|^|`regexp` parameter supports both, `file_regexp` parameter supports non-global expressions only| |^|logrt.count\[\]|^|^|^|^ |^|proc.cpu.util\[\]|^|No|No|`cmdline` parameter| |^|proc.get\[\]|^|^|^|^| |^|proc.mem\[\]|^|^|^|^| |^|proc.num\[\]|^|^|^|^| |^|sensor\[\]|^|^|^|`device` and `sensor` parameters on Linux 2.4| |^|system.hw.macaddr\[\]|^|^|^|`interface` parameter| |^|system.sw.packages\[\]|^|^|^|`regexp` parameter| |^|system.sw.packages.get\[\]|^|^|^|`regexp` parameter| |^|vfs.dir.count\[\]|^|^|^|`regex_incl`, `regex_excl`, `regex_excl_dir` parameters| |^|vfs.dir.get\[\]|^|^|^|`regex_incl`, `regex_excl`, `regex_excl_dir` parameters| |^|vfs.dir.size\[\]|^|^|^|`regex_incl`, `regex_excl`, `regex_excl_dir` parameters| |^|vfs.file.regexp\[\]|^|^|Yes|`regexp` parameter| |^|vfs.file.regmatch\[\]|^|^|^|^| |^|web.page.regexp\[\]|^|^|^|^| |**[SNMP traps](/manual/config/items/itemtypes/snmptrap)**|<|<|<|<|<| |<|snmptrap\[\]|Yes|Yes|No|`regexp` parameter| |**[Item value preprocessing](/manual/config/items/item#item_value_preprocessing)**|<|Yes|No|No|`pattern` parameter| |**[Functions for triggers/calculated items](/manual/appendix/functions)**|<|<|<|<|<| |<|count()|Yes|Yes|Yes|`pattern` parameter if `operator` parameter is *regexp* or *iregexp*| |<|countunique()|Yes|Yes|^|^| |<|find()|Yes|Yes|^|^| |^|logeventid()|Yes|Yes|No|`pattern` parameter| |^|logsource()|^|^|^|^| |**[Low-level discovery](/manual/discovery/low_level_discovery#discovery_rule_filter)**|<|<|<|<|<| |<|Filters|Yes|Yes|No|*Regular expression* field| |^|Overrides|Yes|No|^|In *matches*, *does not match* options for *Operation* conditions| |**[Action conditions](/manual/config/notifications/action/conditions)**|<|Yes|No|No|In *matches*, *does not match* options for *Host name* and *Host metadata* autoregistration conditions| |**[Scripts](/manual/web_interface/frontend_sections/alerts/scripts)**|<|Yes|Yes|No|*Input validation rule* field| |**[Web monitoring](/manual/web_monitoring#configuring_a_web_scenario)**|<|Yes|No|Yes|*Variables* with a **regex:** prefix<br>*Required string* field| |**[User macro context](/manual/config/macros/user_macros#user_macro_context)**|<|Yes|No|No|In macro context with a **regex:** prefix| |**[Macro functions](/manual/config/macros/macro_functions)**|<|<|<|<|<| |<|regsub()|Yes|No|No|`pattern` parameter| |^|iregsub()|^|^|^|^| |**[Icon mapping](/manual/web_interface/frontend_sections/administration/general#icon_mapping)**|<|Yes|Yes|No|*Expression* field| |**[Value mapping](/manual/config/items/mapping#configuration)**|<|Yes|No|No|*Value* field if mapping type is `regexp`|
es	#### Soporte de expresiones regulares por ubicación  |Ubicación|<|Expresión regular|Expresión regular global|Coincidencia multilínea|Comentarios| |-|----------|---------|---------|---------|--------------------| |**[Métricas del agente](/manual/config/items/itemtypes/zabbix_agent)**|<|<|<|<|<| |<|eventlog\[\]|Sí|Sí|Sí|parámetros `regexp`, `severity`, `source`, `eventid` | |<|eventlog.count\[\]|^|^|^|parámetros `regexp`, `severity`, `source`, `eventid`| |^|log\[\]|^|^|^|parámetro `regexp`| |^|log.count\[\]|^|^|^|^| |^|logrt\[\]|^|Sí/No|^|El parámetro `regexp` admite ambos, el parámetro `file_regexp` admite solo expresiones no globales| |^|logrt.count\[\]|^|^|^|^ |^|proc.cpu.util\[\]|^|No|No|`cmdline` parámetro| |^|proc.get\[\]|^|^|^|^| |^|proc.mem\[\]|^|^|^|^| |^|proc.num\[\]|^|^|^|^| |^|sensor\[\]|^|^|^|Parámetros `device` y `sensor` en Linux 2.4| |^|system.hw.macaddr\[\]|^|^|^|parámetro `interfaz`| |^|system.sw.packages\[\]|^|^|^|parámetro `regexp`| |^|system.sw.packages.get\[\]|^|^|^|parámetro `regexp`| |^|vfs.dir.count\[\]|^|^|^|parámetros `regex_incl`, `regex_excl`, `regex_excl_dir`| |^|vfs.dir.get\[\]|^|^|^|parámetros `regex_incl`, `regex_excl`, `regex_excl_dir`| |^|vfs.dir.size\[\]|^|^|^|parámetros `regex_incl`, `regex_excl`, `regex_excl_dir`| |^|vfs.file.regexp\[\]|^|^|Sí|parámetro `regexp`| |^|vfs.file.regmatch\[\]|^|^|^|^| |^|web.page.regexp\[\]|^|^|^|^| |**[Capturas SNMP](/manual/config/items/itemtypes/snmptrap)**|<|<|<|<|<| |<|snmptrap\[\]|Sí|Sí|No|parámetro `regexp`| |**[Preprocesamiento del valor de la métrica](/manual/config/items/item#item_value_preprocessing)**|<|Sí|No|No|parámetro `pattern`| |**[Funciones para iniciadores/métricas calculadas](/manual/appendix/functions)**|<|<|<|<|<| |<|count()|Sí|Sí|Sí|parámetro `pattern` si el parámetro `operator` es *regexp* o *iregexp*| |<|countunique()|Sí|Sí|^|^| |<|find()|Sí|Sí|^|^| |^|logeventid()|Sí|Sí|No|parámetro `patrón`| |^|logsource()|^|^|^|^| |**[Descubrimiento de bajo nivel](/manual/discovery/low_level_discovery#discovery_rule_filter)**|<|<|<|<|<| |<|Filters|Sí|Sí|No|*Campo de expresión regular*| |^|Overrides|Sí|No|^|En *coincide*, *no coincide* opciones para las condiciones de *Operation*| |**[Condiciones de acción](/manual/config/notifications/action/conditions)**|<|Sí|No|No|En *coincide*, *no coincide* opciones para las condiciones de autorregistro de *Nombre de equipo* y *Metadatos de equipo * | |**[Scripts](/manual/web_interface/frontend_sections/alerts/scripts)**|<|Sí|Yes|No|Campo *Regla de validación de entrada* | |**[Monitoreo web](/manual/web_monitoring#configuring_a_web_scenario)**|<|Sí|No|Sí|*Variables* con un prefijo **regex:**<br>*Campo de cadena requerida*| |**[Contexto de macro de usuario](/manual/config/macros/user_macros#user_macro_context)**|<|Sí|No|No|En contexto de macro con un prefijo **regex:**| |**[Funciones de macro](/manual/config/macros/macro_functions)**|<|<|<|<|<| |<|regsub()|Sí|No|No|parámetro `patrón`| |^|iregsub()|^|^|^|^| |**[Asignación de iconos](/manual/web_interface/frontend_sections/administration/general#icon_mapping)**|<|Sí|Sí|No|Campo de *expresión*| |**[Asignación de valores](/manual/config/items/mapping#configuration)**|<|Sí|No|No|Campo * Valor* si el tipo de asignación es `regexp`|

en-us	#### Regular expressions  You may manually enter a regular expression in supported places. Note that the expression may not start with @ because that symbol is used in Zabbix for referencing global regular expressions.  ::: notewarning It's possible to run out of stack when using regular expressions. See the [pcrestack man page](http://pcre.org/original/doc/html/pcrestack.html) for more information. :::  Note that in multiline matching, the `^` and `$` anchors match at the beginning/end of each line respectively, instead of the beginning/end of the entire string.  See also examples for [correct escaping](/manual/appendix/escaping) in various contexts.
es	#### Expresiones regulares  Puede ingresar manualmente una expresión regular en lugares admitidos. Tenga en cuenta que la expresión no puede comenzar con @ porque ese símbolo se usa en Zabbix para hacer referencia a expresiones regulares globales.  ::: notewarning Es posible quedarse sin stack cuando se usa expresiones regulares. Ver la página [man pcrestack](http://pcre.org/original/doc/html/pcrestack.html) para más información. :::  Tenga en cuenta que en la coincidencia multilínea, los anclajes `^` y `$` coinciden en el principio/final de cada línea respectivamente, en lugar del principio/final de toda la cadena.  Consulte también ejemplos de [escape correcto](/manual/appendix/escaping) en varios contextos.

en-us	### Regular expression  The global regular expression object has the following properties.  |Property|[Type](/manual/api/reference_commentary#data_types)|Description| |--|--|------| |regexpid|ID|ID of the regular expression.<br><br>[Property behavior](/manual/api/reference_commentary#property-behavior):<br>- *read-only*<br>- *required* for update operations| |name|string|Name of the regular expression.<br><br>[Property behavior](/manual/api/reference_commentary#property-behavior):<br>- *required* for create operations| |test\_string|string|Test string.|
es	### Expresión regular  El objeto de expresión regular global tiene las siguientes propiedades.  |Propiedad|[Tipo](/manual/api/reference_commentary#data_types)|Descripción| |--|--|------| |regexpid|ID|ID de la expresión regular.<br><br>[Comportamiento de la propiedad](/manual/api/reference_commentary#property-behavior):<br>- *solo lectura*<br>- *obligatorio* para operaciones de actualización| |name|cadena|Nombre de la expresión regular.<br><br>[Comportamiento de la propiedad](/manual/api/reference_commentary#property-behavior):<br>- *obligatorio* para operaciones de creación| |test\_string|cadena|Cadena de prueba.|

en-us	### Regular expression  These examples use regular expressions in the preprocessing steps.
es	### Expresión regular  Estos ejemplos utilizan expresiones regulares en los pasos de preprocesamiento.

en-us	# Regular expression  This class is designed to work with global regular expressions.  Object references:  -   [Regular expression](/manual/api/reference/regexp/object#regular_expression) -   [Expressions](/manual/api/reference/regexp/object#expressions)  Available methods:  -   [regexp.create](/manual/api/reference/regexp/create) - create new regular expressions -   [regexp.delete](/manual/api/reference/regexp/delete) - delete regular expressions -   [regexp.get](/manual/api/reference/regexp/get) - retrieve regular expressions -   [regexp.update](/manual/api/reference/regexp/update) - update regular expressions
es	# Expresión regular  Esta clase está diseñada para trabajar con expresiones regulares globales.  Referencias de objetos:  -   [Expresión regular](/manual/api/reference/regexp/object#regular_expression) -   [Expresiones](/manual/api/reference/regexp/object#expressions)  Métodos disponibles:  - [regexp.create](/manual/api/reference/regexp/create) - crear nuevas expresiones regulares - [regexp.delete](/manual/api/reference/regexp/delete) - eliminar expresiones regulares - [regexp.get](/manual/api/reference/regexp/get) - obtener expresiones regulares - [regexp.update](/manual/api/reference/regexp/update) - actualizar expresiones regulares

en-us	##### Remote command limit  Remote command limit after resolving all macros depends on the type of database and character set (non-ASCII characters require more than one byte to be stored):  |Database|Limit in characters|Limit in bytes| |---|---|---| |MySQL|65535|65535| |Oracle Database|2048|4000| |PostgreSQL|65535|not limited| |SQLite (only Zabbix proxy)|65535|not limited|  Remote command execution output (return value) is limited to 16MB (including trailing whitespace that is truncated). [IPMI remote command](#ipmi-remote-commands) limit is based on the installed IPMI library. Note that [database limits](/manual/config/items/item#text-data-limits) apply to all remote commands.
es	##### Límite de comando remoto  El límite de comando remoto después de resolver todas las macros depende del tipo de base de datos y juego de caracteres (los caracteres no ASCII requieren más de un byte a almacenar):  |Base de datos|Límite en caracteres|Límite en bytes| |---|---|---| |MySQL|65535|65535| |Base de datos Oracle|2048|4000| |PostgreSQL|65535|no limitado| |SQLite (solo proxy Zabbix)|65535|no limitado|  La salida de ejecución remota de comandos (valor de retorno) está limitada a 16 MB (incluidos los espacios en blanco finales que están truncados). El límite del [comando remoto IPMI] (#ipmi-remote-commands) se basa en la biblioteca IPMI instalada. Tenga en cuenta que los [límites de la base de datos](/manual/config/items/item#text-data-limits) se aplican a todos los comandos remotos.

en-us	#### Remote commands on active agents  It is now possible to execute [remote commands](/manual/config/notifications/action/operation/remote_command) on a version 7.0 agent that is operating in active mode. Once the execution of a remote command is triggered by an action [operation](/manual/config/notifications/action/operation#operations) or manual [script](/manual/web_interface/frontend_sections/alerts/scripts) execution, the command will be included in the active checks configuration and executed once the active agent receives it. Note that older active agents will ignore any remote commands included in the active checks configuration. For more information, see [*Passive and active agent checks*](/manual/appendix/items/activepassive#active-checks).
es	#### Comandos remotos en agentes activos  Ahora es posible ejecutar [comandos remotos](/manual/config/notifications/action/operation/remote_command) en un agente versión 7.0 que esté funcionando en modo activo. Una vez que la ejecución de un comando remoto se activa mediante una acción [operación](/manual/config/notifications/action/operation#operaciones) o una ejecución manual de [script](/manual/web_interface/frontend_sections/alerts/scripts), el comando se incluirá en la configuración de comprobaciones activas y se ejecutará una vez que el agente activo lo reciba. Tenga en cuenta que los agentes activos más antiguos ignorarán cualquier comando remoto incluido en la configuración de comprobaciones activas. Para obtener más información, consulte [*Comprobaciones de agentes activos y pasivos*](/manual/appendix/items/activepassive#active-checks).

en-us	#### Remote commands with multiple interfaces  If the target system has multiple interfaces of the selected type (Zabbix agent or IPMI), remote commands will be executed on the default interface.  It is possible to execute remote commands via SSH and Telnet using another interface than the Zabbix agent one. The available interface to use is selected in the following order:  * Zabbix agent default interface * SNMP default interface * JMX default interface * IPMI default interface
es	#### Comandos remotos con múltiples interfaces  Si el sistema de destino tiene múltiples interfaces del tipo seleccionado (Agente Zabbix o IPMI), los comandos remotos se ejecutarán en la interfaz predeterminada.  Es posible ejecutar comandos remotos a través de SSH y Telnet usando otra interfaz que la del agente Zabbix. La interfaz disponible para el uso se selecciona en el siguiente orden:  * Interfaz predeterminada del agente Zabbix * Interfaz SNMP predeterminada * Interfaz predeterminada JMX * Interfaz IPMI predeterminada

en-us	#### Remove token expiry  Remove expiry date from token.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "token.update",     "params": {         "tokenid": "2",         "expires_at": "0"     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "tokenids": [             "2"         ]     },     "id": 1 } ```
es	#### Eliminar la caducidad del token  Eliminar la fecha de vencimiento del token.  [Solicitud](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "token.update",     "params": {         "tokenid": "2",         "expires_at": "0"     },     "id": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "result": {         "tokenids": [             "2"         ]     },     "id": 1 } ```

en-us	#### Removing hosts from host groups  Remove two hosts from the given host groups.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "hostgroup.massremove",     "params": {         "groupids": [             "5",             "6"         ],         "hostids": [             "30050",             "30001"         ]     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "groupids": [             "5",             "6"         ]     },     "id": 1 } ```
es	#### Eliminar equipos de grupos de equipos  Elimine dos equipos de los grupos de equipos indicados.  [Solicitud](/manual/api#performing-requests):   ```json {     "jsonrpc": "2.0",     "method": "hostgroup.massremove",     "params": {         "groupids": [             "5",             "6"         ],         "hostids": [             "30050",             "30001"         ]     },     "id": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "result": {         "groupids": [             "5",             "6"         ]     },     "id": 1 } ```

en-us	#### Removing interfaces  Remove the "127.0.0.1" SNMP interface from two hosts.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "hostinterface.massremove",     "params": {         "hostids": [             "30050",             "30052"         ],         "interfaces": {             "dns": "",             "ip": "127.0.0.1",             "port": "161"         }     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "interfaceids": [             "30069",             "30070"         ]     },     "id": 1 } ```
es	#### Eliminando interfaces  Elimine la interfaz SNMP "127.0.0.1" de dos equipos.  [Solicitud](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "hostinterface.massremove",     "params": {         "hostids": [             "30050",             "30052"         ],         "interfaces": {             "dns": "",             "ip": "127.0.0.1",             "port": "161"         }     },     "id": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "result": {         "interfaceids": [             "30069",             "30070"         ]     },     "id": 1 } ```

en-us	#### Removing templates from a group  Remove two templates from group "2".  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "template.massremove",     "params": {         "templateids": [             "10085",             "10086"         ],         "groupids": "2"     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "templateids": [             "10085",             "10086"         ]     },     "id": 1 } ```
es	#### Eliminar plantillas de un grupo  Elimine dos plantillas del grupo "2".  [Solicitud](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "template.massremove",     "params": {         "templateids": [             "10085",             "10086"         ],         "groupids": "2"     },     "id": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "result": {         "templateids": [             "10085",             "10086"         ]     },     "id": 1 } ```

en-us	#### Removing templates from template groups  Remove two templates from the given template groups.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "templategroup.massremove",     "params": {         "groupids": [             "5",             "6"         ],         "templateids": [             "30050",             "30001"         ]     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "groupids": [             "5",             "6"         ]     },     "id": 1 } ```
es	#### Eliminar plantillas de grupos de plantillas  Elimine dos plantillas de los grupos de plantillas indicados.  [Solicitud](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "templategroup.massremove",     "params": {         "groupids": [             "5",             "6"         ],         "templateids": [             "30050",             "30001"         ]     },     "id": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "result": {         "groupids": [             "5",             "6"         ]     },     "id": 1 } ```

en-us	#### Removing web server test page  To avoid information exposure, removing the web server test page is recommended.  By default, the Apache web server webroot contains the `index.html` test page:  ![](../../../../assets/en/manual/installation/requirements/test_page.png)  Please refer to the documentation of your web server to find help on how to remove default test pages.
es	#### Eliminar la página de prueba del servidor web  Para evitar la exposición de la información, se recomienda eliminar la página de prueba del servidor web.  De forma predeterminada, el webroot del servidor web Apache contiene la página de prueba `index.html`:  ![](../../../../assets/en/manual/installation/requirements/test_page.png)  Consulte la documentación de su servidor web para encontrar ayuda sobre cómo eliminar páginas de prueba predeterminadas.

en-us	#### Renamed elements  -   Some [dashboard widget](/manual/web_interface/frontend_sections/dashboards/widgets) parameters with the label *Tags* have been renamed for more clarity: *Item tags* (for *Data overview* widget), *Scenario tags* (for *Web monitoring* widget); *Problem tags* (for *Graph*, *Problem hosts*, *Problems*, *Problems by severity*, and *Trigger overview* widget); -   The action link to editing of the map contents, available from the map list in the *Monitoring* → [*Maps*](/manual/web_interface/frontend_sections/monitoring/maps) section, has been renamed from *Constructor* to *Edit*; -   The fields for setting history and trend storage periods in the [item](/manual/config/items/item#configuration) and [item prototype](/manual/discovery/low_level_discovery/item_prototypes) configuration forms have been renamed; -   In *Top hosts* widget [configuration](/manual/web_interface/frontend_sections/dashboards/widgets/top_hosts#configuration), the fields *Order column* and *Host count* have been renamed *Order by* and *Host limit* to better describe their functions. -   In *Graph* widget configuration, the [legend](/manual/web_interface/frontend_sections/dashboards/widgets/graph#legend) field *Display min/max/avg* has been renamed to *Display min/avg/max*, and [data set](/manual/web_interface/frontend_sections/dashboards/widgets/graph#data-set) fields *host pattern* and *item pattern* have been renamed to *host patterns* and *item patterns*. -   In [User profile](/manual/web_interface/user_profile#user-profile) settings, the *Messaging* tab has been renamed to *Frontend notifications*, in which the *Frontend messaging* option has also been renamed to *Frontend notifications*.
es	#### Métricas renombradas  -   Se ha cambiado el nombre de algunos [widget de tablero](/manual/web_interface/frontend_sections/dashboards/widgets) con la etiqueta *Etiquetas* para mayor claridad: *Etiquetas de métricas* (para el widget *Resumen de datos*), *Etiquetas de escenario* (para el widget *Monitoreo web*); *Etiquetas de problemas* (para *Gráfico*, *Equipos con problemas*, *Problemas*, *Problemas por gravedad* y widget *Descripción general de iniciadores*); -   El enlace de acción para editar el contenido del mapa, disponible en la lista de mapas en la sección *Monitoring* → [*Maps*](/manual/web_interface/frontend_sections/monitoring/maps), ha sido renombrado de *Constructor* a * Editar*; -   Se ha cambiado el nombre de los campos para configurar el historial y los períodos de almacenamiento de tendencias en los formularios de configuración de [métrica](/manual/config/items/item#configuration) y [prototipo de métrica](/manual/discovery/low_level_discovery/item_prototypes); -   En la [configuración](/manual/web_interface/frontend_sections/dashboards/widgets/top_hosts#configuration) del widget *Equipos principales*, los campos *Columna de pedido* y *Recuento de equipos* han cambiado de nombre a *Ordenar por* y *Límite de equipos* para describir mejor sus funciones. -   En la configuración del widget *Graph*, el campo [leyenda](/manual/web_interface/frontend_sections/dashboards/widgets/graph#legend) *Mostrar min/max/avg* ha sido renombrado a *Mostrar min/avg/max*, y los campos [conjunto de datos](/manual/web_interface/frontend_sections/dashboards/widgets/graph#data-set) *patrón de equipo* y *patrón de métrica* han sido renombrados a *patrones de equipo* y *patrones de métrica*. -   En la configuración de [Perfil de usuario](/manual/web_interface/user_profile#user-profile), la pestaña *Mensajería* ha cambiado de nombre a *Notificaciones de interfaz*, en la que la opción *Mensajería de interfaz* también ha cambiado de nombre a *Notificaciones de interfaz *.

en-us	#### Rename icon map  Rename an icon map to "OS icons".  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "iconmap.update",     "params": {         "iconmapid": "1",         "name": "OS icons"     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "iconmapids": [             "1"         ]     },     "id": 1 } ```
es	#### Cambiar nombre del mapa de iconos  Cambie el nombre de un mapa de iconos a "iconos del sistema operativo".  [Solicitud](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "iconmap.update",     "params": {         "iconmapid": "1",         "name": "iconos del sistema operativo"     },     "id": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "result": {         "iconmapids": [             "1"         ]     },     "id": 1 } ```

en-us	#### Rename image  Rename image to "Cloud icon".  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "image.update",     "params": {         "imageid": "2",         "name": "Cloud icon"     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "imageids": [             "2"         ]     },     "id": 1 } ```
es	#### Cambiar nombre de imagen  Cambie el nombre de la imagen a "Icono de nube".  [Solicitud](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "image.update",     "params": {         "imageid": "2",         "name": "Icono de nube"     },     "id": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "result": {         "imageids": [             "2"         ]     },     "id": 1 } ```

en-us	#### Renaming a dashboard  Rename a dashboard to "SQL server status".  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "dashboard.update",     "params": {         "dashboardid": "2",         "name": "SQL server status"     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "dashboardids": [             "2"         ]     },     "id": 1 } ```
es	#### Cambiar el nombre de un tablero  Cambie el nombre de un tablero a "estado del servidor SQL".  [Solicitud](/manual/api#performing-requests):  ```json { "jsonrpc": "2.0", "method": "dashboard.update", "params": { "dashboardid": "2", "name": "estado del servidor SQL" }, "id": 1 } ```  Respuesta:  ```json { "jsonrpc": "2.0", "result": { "dashboardids": [ "2" ] }, "id": 1 } ```

en-us	#### Renaming a host group  Rename a host group to "Linux hosts."  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "hostgroup.update",     "params": {         "groupid": "7",         "name": "Linux hosts"     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "groupids": [             "7"         ]     },     "id": 1 } ```
es	#### Cambiar el nombre de un grupo de equipos  Cambiar el nombre de un grupo de equipos a "hosts Linux".  [Solicitud](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "hostgroup.update",     "params": {         "groupid": "7",         "name": "Linux hosts"     },     "id": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "result": {         "groupids": [             "7"         ]     },     "id": 1 } ```

en-us	#### Renaming a template dashboard  Rename a template dashboard to "Performance graphs".  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "templatedashboard.update",     "params": {         "dashboardid": "23",         "name": "Performance graphs"     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "dashboardids": [             "23"         ]     },     "id": 1 } ```
es	#### Cambiar el nombre de una plantilla de tablero  Cambie el nombre de una plantilla de tablero a "Gráficos de rendimiento".  [Solicitud](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "templatedashboard.update",     "params": {         "dashboardid": "23",         "name": "Gráficos de rendimiento"     },     "id": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "result": {         "dashboardids": [             "23"         ]     },     "id": 1 } ```

en-us	#### Renaming a template group  Rename a template group to "Templates/Databases"  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "templategroup.update",     "params": {         "groupid": "7",         "name": "Templates/Databases"     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "groupids": [             "7"         ]     },     "id": 1 } ```
es	#### Cambiar el nombre de un grupo de plantillas  Cambiar el nombre de un grupo de plantillas a "Plantillas/Bases de datos"  [Solicitud](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "templategroup.update",     "params": {         "groupid": "7",         "name": "Plantillas/Bases de datos"     },     "id": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "result": {         "groupids": [             "7"         ]     },     "id": 1 } ```

en-us	#### Renaming a template  Rename the template to "Template OS Linux".  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "template.update",     "params": {         "templateid": "10086",         "name": "Template OS Linux"     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "templateids": [             "10086"         ]     },     "id": 1 } ```
es	#### Cambiar el nombre de una plantilla  Cambie el nombre de la plantilla a "Plantilla OS Linux".  [Solicitud](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "template.update",     "params": {         "templateid": "10086",         "name": "Plantilla OS Linux"     },     "id": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "result": {         "templateids": [             "10086"         ]     },     "id": 1 } ```

en-us	#### Renaming a user  Rename a user to John Doe.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "user.update",     "params": {         "userid": "1",         "name": "John",         "surname": "Doe"     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "userids": [             "1"         ]     },     "id": 1 } ```
es	#### Cambiar el nombre de un usuario  Cambie el nombre de un usuario a John Doe.  [Solicitud](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "user.update",     "params": {         "userid": "1",         "name": "John",         "surname": "Doe"     },     "id": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "result": {         "userids": [             "1"         ]     },     "id": 1 } ```

en-us	 ##### repeat(value,count) {#repeat}  Repeat a string.<br> Supported value types: *String*, *Text*, *Log*.  Parameter:   -   **value** - the value to check;<br> -   **count** - the number of times to repeat.  Example:      repeat(last(/host/key),2) #repeat the value two times
es	 ##### repeat(valor,count) {#repeat}  Repetir una cadena.<br> Tipos de valores admitidos: *Cadena*, *Texto*, *Registro*.  Parámetro:  -   **valor** - el valor a comprobar;<br> -   **count** - el número de veces que se repetirá.  Ejemplo:      repeat(last(/host/key),2) #repetir el valor dos veces

en-us	#### Replace conditions, but keep the evaluation method  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "correlation.update",     "params": {         "correlationid": "1",         "filter": {             "conditions": [                 {                     "type": 3,                     "oldtag": "error",                     "newtag": "ok"                 }             ]         }     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "correlationids": [             "1"         ]     },     "id": 1 } ```
es	#### Reemplazar condiciones, pero mantener el método de evaluación.  [Solicitud](/manual/api#performing-requests):  ```json { "jsonrpc": "2.0", "method": "correlation.update", "params": { "correlationid": "1", "filter": { "conditions": [ { "type": 3, "oldtag": "error", "newtag": "ok" } ] } }, "id": 1 } ```  Respuesta:  ```json { "jsonrpc": "2.0", "result": { "correlationids": [ "1" ] }, "id": 1 } ```

en-us	##### Replace {#replace}  Find the search string and replace it with another (or nothing).  Parameters:  -   **search string** - the string to find and replace, case-sensitive (required);<br> -   **replacement** - the string to replace the search string with. The replacement string may also be empty effectively allowing to delete the search string when found.  Comments:  -   All occurrences of the search string will be replaced; -   It is possible to use escape sequences to search for or replace line breaks, carriage return, tabs and spaces "\\n \\r \\t \\s"; backslash can be escaped as "\\\\" and escape sequences can be escaped as "\\\\n"; -   Escaping of line breaks, carriage return, tabs is automatically done during low-level discovery.
es	##### Reemplazar {#replace}  Busque la cadena de búsqueda y reemplácela por otra (o nada).  Parámetros:  -   **cadena de búsqueda**: la cadena a buscar y reemplazar, distingue entre mayúsculas y minúsculas (obligatorio);<br> -   **reemplazo**: la cadena con la que reemplazar la cadena de búsqueda. La cadena de reemplazo también puede estar vacía, lo que permite eliminar la cadena de búsqueda donde se encuentre.  Comentarios:  -   Se reemplazarán todas las apariciones de la cadena de búsqueda; -   Es posible utilizar secuencias de escape para buscar o reemplazar saltos de línea, retornos de carro, tabulaciones y espacios "\\n \\r \\t \\s"; La barra invertida se puede escapar como "\\\\" y las secuencias de escape se pueden escapar como "\\\\n"; -   El escape de saltos de línea, retorno de carro y tabulaciones se realiza automáticamente durante el descubrimiento de bajo nivel.

en-us	 ##### replace(value,pattern,replacement) {#replace}  Find the pattern in the value and replace with replacement. All occurrences of the pattern will be replaced.<br> Supported value types: *String*, *Text*, *Log*.  Parameter:   -   **value** - the value to check;<br> -   **pattern** - the pattern to find;<br> -   **replacement** - the string to replace the pattern with.  Example:      replace(last(/host/key),"ibb","abb") - replace all 'ibb' with 'abb'
es	 ##### replace(valor, patrón, reemplazo) {#replace}  Encuentre el patrón en el valor y reemplácelo con reemplazo. Se reemplazarán todas las apariciones del patrón.<br> Tipos de valores admitidos: *Cadena*, *Texto*, *Registro*.  Parámetro:  -   **valor** - el valor a comprobar;<br> -   **patrón** - el patrón a encontrar;<br> -   **reemplazo** - la cadena con la que reemplazar el patrón.  Ejemplo:      replace(last(/host/key),"ibb","abb") - reemplaza todo 'ibb' con 'abb'

en-us	#### Replacing dependencies  Replace dependencies for trigger.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "trigger.update",     "params": {         "triggerid": "22713",         "dependencies": [             {                 "triggerid": "22712"             },             {                 "triggerid": "22772"             }         ]     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "triggerids": [             "22713"         ]     },     "id": 1 } ```
es	#### Reemplazo de dependencias  Reemplace las dependencias para el iniciador.  [Solicitud](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "trigger.update",     "params": {         "triggerid": "22713",         "dependencies": [             {                 "triggerid": "22712"             },             {                 "triggerid": "22772"             }         ]     },     "id": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "result": {         "triggerids": [             "22713"         ]     },     "id": 1 } ```

en-us	#### Replacing host interfaces  Replace all host interfaces with a single agent interface.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "hostinterface.replacehostinterfaces",     "params": {         "hostid": "30052",         "interfaces": {             "dns": "",             "ip": "127.0.0.1",             "main": 1,             "port": "10050",             "type": 1,             "useip": 1         }     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "interfaceids": [             "30081"         ]     },     "id": 1 } ```
es	#### Reemplazo de interfaces de equipo  Reemplace todas las interfaces de equipo con una única interfaz de agente.  [Solicitud](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "hostinterface.replacehostinterfaces",     "params": {         "hostid": "30052",         "interfaces": {             "dns": "",             "ip": "127.0.0.1",             "main": 1,             "port": "10050",             "type": 1,             "useip": 1         }     },     "id": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "result": {         "interfaceids": [             "30081"         ]     },     "id": 1 } ```

en-us	#### Replacing hosts in a host group  Replace all hosts in a host group to ones mentioned host.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "hostgroup.massupdate",     "params": {         "groups": [             {                 "groupid": "6"             }         ],         "hosts": [             {                 "hostid": "30050"             }         ]     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "groupids": [             "6",         ]     },     "id": 1 } ```
es	#### Reemplazo de equipos en un grupo de equipos  Reemplace todos los equipos de un grupo de equipos por los equipos mencionados.  [Solicitud](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "hostgroup.massupdate",     "params": {         "groups": [             {                 "groupid": "6"             }         ],         "hosts": [             {                 "hostid": "30050"             }         ]     },     "id": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "result": {         "groupids": [             "6",         ]     },     "id": 1 } ```

en-us	#### Replacing templates in a template group  Replace all templates in a template group to ones mentioned templates.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "templategroup.massupdate",     "params": {         "groups": [             {                 "groupid": "8"             }         ],         "templates": [             {                 "templateid": "40050"             }         ]     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "groupids": [             "8",         ]     },     "id": 1 } ```
es	#### Reemplazo de plantillas en un grupo de plantillas  Reemplace todas las plantillas en un grupo de plantillas por las plantillas mencionadas.  [Solicitud](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "templategroup.massupdate",     "params": {         "groups": [             {                 "groupid": "8"             }         ],         "templates": [             {                 "templateid": "40050"             }         ]     },     "id": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "result": {         "groupids": [             "8",         ]     },     "id": 1 } ```

en-us	#### Replacing trigger prototype tags  Replace tags for one trigger prototype.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "triggerprototype.update",     "params": {         "triggerid": "17373",         "tags": [             {                 "tag": "volume",                 "value": "{#FSNAME}"             },             {                 "tag": "type",                 "value": "{#FSTYPE}"             }         ]     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "triggerids": [             "17373"         ]     },     "id": 1 } ```
es	#### Reemplazo de etiquetas de prototipo de iniciador  Reemplazar etiquetas para un prototipo de iniciador.  [Solicitud](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "triggerprototype.update",     "params": {         "triggerid": "17373",         "tags": [             {                 "tag": "volume",                 "value": "{#FSNAME}"             },             {                 "tag": "type",                 "value": "{#FSTYPE}"             }         ]     },     "id": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "result": {         "triggerids": [             "17373"         ]     },     "id": 1 } ```

en-us	#### Replacing triggers tags  Replace tags for trigger.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "trigger.update",     "params": {         "triggerid": "13938",         "tags": [             {                 "tag": "service",                 "value": "{{ITEM.VALUE}.regsub(\"Service (.*) has stopped\", \"\\1\")}"             },             {                 "tag": "error",                 "value": ""             }         ]     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "triggerids": [             "13938"         ]     },     "id": 1 } ```
es	#### Reemplazo de etiquetas del iniciador  Reemplace las etiquetas del iniciador.  [Solicitud](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "trigger.update",     "params": {         "triggerid": "13938",         "tags": [             {                 "tag": "service",                 "value": "{{ITEM.VALUE}.regsub(\"Service (.*) has stopped\", \"\\1\")}"             },             {                 "tag": "error",                 "value": ""             }         ]     },     "id": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "result": {         "triggerids": [             "13938"         ]     },     "id": 1 } ```

en-us	#### Replacing user macros  Replace all user macros with the given user macro on multiple templates.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "template.massupdate",     "params": {         "templates": [             {                 "templateid": "10074"             },             {                 "templateid": "10075"             },             {                 "templateid": "10076"             },             {                 "templateid": "10077"             }         ],         "macros": [             {                 "macro": "{$AGENT.TIMEOUT}",                 "value": "5m",                 "description": "Timeout after which agent is considered unavailable. Works only for agents reachable from Zabbix server/proxy (passive mode)."             }         ]     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "templateids": [             "10074",             "10075",             "10076",             "10077"         ]     },     "id": 1 } ```
es	#### Reemplazo de macros de usuario  Reemplace todas las macros de usuario con la macro de usuario proporcionada en varias plantillas.  [Solicitud](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "template.massupdate",     "params": {         "templates": [             {                 "templateid": "10074"             },             {                 "templateid": "10075"             },             {                 "templateid": "10076"             },             {                 "templateid": "10077"             }         ],         "macros": [             {                 "macro": "{$AGENT.TIMEOUT}",                 "value": "5m",                 "description": "Timeout after which agent is considered unavailable. Works only for agents reachable from Zabbix server/proxy (passive mode)."             }         ]     },     "id": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "result": {         "templateids": [             "10074",             "10075",             "10076",             "10077"         ]     },     "id": 1 } ```

en-us	# report.create
es	# report.create

en-us	# report.delete
es	# report.delete

en-us	 ### Report details  If you click on the service name in the report, you can access another report  that displays a more detailed view.  ![](../../../../../assets/en/manual/web_interface/sla_report_details.png){width="600"}  Note that [negative problem duration](/manual/web_interface/frontend_sections/monitoring/problems#negative-problem-duration) does not affect SLA calculation or reporting.
es	 ### Detalles del informe  Si hace clic en el nombre del servicio en el informe, podrá acceder a otro informe que muestra una vista más detallada.  ![](../../../../../assets/en/manual/web_interface/sla_report_details.png){width="600"}  Tenga en cuenta que una [duración del problema negativa](/manual/web_interface/frontend_sections/monitoring/problems#negative-problem-duration) no afecta el cálculo o los informes del SLA.

en-us	# report.get
es	# report.get

en-us	# Report object  The following objects are directly related to the `report` API.
es	# Objeto de informe  Los siguientes objetos están directamente relacionados con la API `report`.

en-us	 ### Report  The filter allows to select the report based on the SLA name as well as the  service name. It is also possible to limit the displayed period.  ![](../../../../../assets/en/manual/web_interface/sla_report.png){width="600"}  Each column (period) displays the SLI for that period. SLIs that are in breach of the set  SLO are highlighted in red.  20 periods are displayed in the report. A maximum of 100 periods can be displayed, if  both the *From* date and *To* date are specified. 
es	 ### Informe  El filtro permite seleccionar el informe según el nombre del SLA, así como el nombre del Servicio. También es posible limitar el período mostrado.  ![](../../../../../assets/en/manual/web_interface/sla_report.png){width="600"}  Cada columna (período) muestra el SLI para ese período. Los SLI que incumplen el valor de SLO están resaltados en rojo.  En el informe se muestran 20 períodos. Se puede mostrar un máximo de 100 períodos, si se especifican tanto la fecha *Desde* como la fecha *Hasta*.

en-us	### Report  The report object has the following properties:  |Property|[Type](/manual/api/reference_commentary#data_types)|Description| |--|--|------| |reportid|ID|ID of the report.<br><br>[Property behavior](/manual/api/reference_commentary#property-behavior):<br>- *read-only*<br>- *required* for update operations| |userid|ID|ID of the user who created the report.<br><br>[Property behavior](/manual/api/reference_commentary#property-behavior):<br>- *required* for create operations| |name|string|Unique name of the report.<br><br>[Property behavior](/manual/api/reference_commentary#property-behavior):<br>- *required* for create operations| |dashboardid|ID|ID of the dashboard that the report is based on.<br><br>[Property behavior](/manual/api/reference_commentary#property-behavior):<br>- *required* for create operations| |period|integer|Period for which the report will be prepared.<br><br>Possible values:<br>0 - *(default)* previous day;<br>1 - previous week;<br>2 - previous month;<br>3 - previous year.| |cycle|integer|Period repeating schedule.<br><br>Possible values:<br>0 - *(default)* daily;<br>1 - weekly;<br>2 - monthly;<br>3 - yearly.| |start\_time|integer|Time of the day, in seconds, when the report will be prepared for sending.<br><br>Default: 0.| |weekdays|integer|Days of the week for sending the report.<br><br>Days of the week are stored in binary form with each bit representing the corresponding week day. For example, 12 equals 1100 in binary and means that reports will be sent every Wednesday and Thursday.<br><br>Default: 0.<br><br>[Property behavior](/manual/api/reference_commentary#property-behavior):<br>- *required* if `cycle` is set to "weekly".| |active\_since|string|On which date to start.<br><br>Possible values:<br>empty string - *(default)* not specified (stored as 0);<br>specific date in YYYY-MM-DD format (stored as a timestamp of the beginning of a day (00:00:00)).| |active\_till|string|On which date to end.<br><br>Possible values:<br>empty string - *(default)* not specified (stored as 0);<br>specific date in YYYY-MM-DD format (stored as a timestamp of the end of a day (23:59:59)).| |subject|string|Report message subject.| |message|string|Report message text.| |status|integer|Whether the report is enabled or disabled.<br><br>Possible values:<br>0 - Disabled;<br>1 - *(default)* Enabled.| |description|text|Description of the report.| |state|integer|State of the report.<br><br>Possible values:<br>0 - *(default)* report was not yet processed;<br>1 - report was generated and successfully sent to all recipients;<br>2 - report generating failed; "info" contains error information;<br>3 - report was generated, but sending to some (or all) recipients failed; "info" contains error information.<br><br>[Property behavior](/manual/api/reference_commentary#property-behavior):<br>- *read-only*| |lastsent|timestamp|Unix timestamp of the last successfully sent report.<br><br>[Property behavior](/manual/api/reference_commentary#property-behavior):<br>- *read-only*| |info|string|Error description or additional information.<br><br>[Property behavior](/manual/api/reference_commentary#property-behavior):<br>- *read-only*|
es	### Informe  El objeto de informe tiene las siguientes propiedades:  |Propiedad|[Tipo](/manual/api/reference_commentary#data_types)|Descripción| |--|--|------| |reportid|ID|ID del informe.<br><br>[Comportamiento de la propiedad](/manual/api/reference_commentary#property-behavior):<br>- *solo lectura*<br>- *obligatorio* para operaciones de actualización| |userid|ID|ID del usuario que creó el informe.<br><br>[Comportamiento de la propiedad](/manual/api/reference_commentary#property-behavior):<br>- *obligatorio* para las operaciones de creación| |name|cadena|Nombre único del informe.<br><br>[Comportamiento de la propiedad](/manual/api/reference_commentary#property-behavior):<br>- *obligatorio* para operaciones de creación| |dashboardid|ID|ID del tablero en el que se basa el informe.<br><br>[Comportamiento de la propiedad](/manual/api/reference_commentary#property-behavior):<br>- *obligatorio* para operaciones de creación| |period|entero|Período para el cual se preparará el informe.<br><br>Valores posibles:<br>0 - *(predeterminado)* día anterior;<br>1 - semana anterior;<br>2 - anterior mes;<br>3 - año anterior.| |cycle|entero|Programación de repetición de período.<br><br>Valores posibles:<br>0 - *(predeterminado)* diario;<br>1 - semanal;<br>2 - mensual;<br>3 - anual .| |start\_time|entero|Hora del día, en segundos, en la que se preparará el informe para su envío.<br><br>Valor predeterminado: 0.| |weekdays|entero|Días de la semana para enviar el informe.<br><br>Los días de la semana se almacenan en formato binario y cada bit representa el día de la semana correspondiente. Por ejemplo, 12 equivale a 1100 en binario y significa que los informes se enviarán todos los miércoles y jueves.<br><br>Valor predeterminado: 0.<br><br>[Comportamiento de la propiedad](/manual/api/reference_commentary#property- comportamiento):<br>- *obligatorio* si `ciclo` está configurado en "semanal".| |active\_since|cadena|En qué fecha comenzar.<br><br>Valores posibles:<br>cadena vacía - *(predeterminado)* no especificado (almacenado como 0);<br>fecha específica en AAAA-MM -Formato DD (almacenado como marca de tiempo del comienzo de un día (00:00:00)).| |active\_till|cadena|En qué fecha finalizar.<br><br>Valores posibles:<br>cadena vacía - *(predeterminado)* no especificado (almacenado como 0);<br>fecha específica en AAAA-MM -Formato DD (almacenado como marca de tiempo del final de un día (23:59:59)).| |subject|cadena|Reportar asunto del mensaje.| |message|cadena|Reportar texto del mensaje.| |status|entero|Si el informe está habilitado o deshabilitado.<br><br>Valores posibles:<br>0 - Deshabilitado;<br>1 - *(predeterminado)* Habilitado.| |description|texto|Descripción del informe.| |state|entero|Estado del informe.<br><br>Valores posibles:<br>0 - *(predeterminado)* el informe aún no se procesó;<br>1 - el informe se generó y se envió correctamente a todos los destinatarios; <br>2: error al generar el informe; "info" contiene información de error;<br>3: se generó el informe, pero falló el envío a algunos (o todos) los destinatarios; "info" contiene información de error.<br><br>[Comportamiento de la propiedad](/manual/api/reference_commentary#property-behavior):<br>- *solo lectura*| |lastsent|marca de tiempo|Marca de tiempo Unix del último informe enviado exitosamente.<br><br>[Comportamiento de la propiedad](/manual/api/reference_commentary#property-behavior):<br>- *solo lectura*| |info|cadena|Descripción del error o información adicional.<br><br>[Comportamiento de la propiedad](/manual/api/reference_commentary#property-behavior):<br>- *solo lectura*|

en-us	# Report  This class is designed to work with scheduled reports.  Object references:  -   [Report](/manual/api/reference/report/object#report) -   [Users](/manual/api/reference/report/object#users) -   [User groups](/manual/api/reference/report/object#user_groups)  Available methods:  -   [report.create](/manual/api/reference/report/create) - create new scheduled reports -   [report.delete](/manual/api/reference/report/delete) - delete scheduled reports -   [report.get](/manual/api/reference/report/get) - retrieve scheduled reports -   [report.update](/manual/api/reference/report/update) - update scheduled reports
es	# Informe  Esta clase está diseñada para trabajar con informes programados.  Referencias de objetos:  -   [Informe](/manual/api/reference/report/object#report) -   [Usuarios](/manual/api/reference/report/object#users) -   [Grupos de usuarios](/manual/api/reference/report/object#user_groups)  Métodos disponibles:  -   [report.create](/manual/api/reference/report/create) - crear nuevos informes programados -   [report.delete](/manual/api/reference/report/delete) - eliminar informes programados -   [report.get](/manual/api/reference/report/get) - robtener informes programados -   [report.update](/manual/api/reference/report/update) - actualizar informes programados

en-us	# report.update
es	# report.update

en-us	##### - Repositories  Official Zabbix [repository](/manual/installation/install_from_packages/rhel) has been added to */etc/yum.repos.d*:      [zabbix]     name=Zabbix Official Repository - $basearch     baseurl=http://repo.zabbix.com/zabbix/7.0/rhel/8/$basearch/     enabled=1     gpgcheck=1     gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591
es	##### - Repositorios  El [Repositorio](/manual/installation/install_from_packages/rhel)  Zabbix oficial se ha agregado a */etc/yum.repos.d*:      [zabbix]     name=Zabbix Official Repository - $basearch     baseurl=http://repo.zabbix.com/zabbix/7.0/rhel/8/$basearch/     enabled=1     gpgcheck=1     gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591

en-us	#### Requesting authenticated user's information  Authenticate and return additional information about the user.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "user.login",     "params": {         "username": "Admin",         "password": "zabbix",         "userData": true     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "userid": "1",         "username": "Admin",         "name": "Zabbix",         "surname": "Administrator",         "url": "",         "autologin": "1",         "autologout": "0",         "lang": "ru_RU",         "refresh": "0",         "theme": "default",         "attempt_failed": "0",         "attempt_ip": "127.0.0.1",         "attempt_clock": "1355919038",         "rows_per_page": "50",         "timezone": "Europe/Riga",         "roleid": "3",         "userdirectoryid": "0",         "type": 3,         "userip": "127.0.0.1",         "debug_mode": 0,         "gui_access": "0",         "mfaid": "1",         "deprovisioned": false,         "auth_type": 0,         "sessionid": "5b56eee8be445e98f0bd42b435736e42",         "secret": "cd0ba923319741c6586f3d866423a8f4"     },     "id": 1 } ```
es	#### Solicitando información de usuario autenticado  Autenticar y devolver información adicional sobre el usuario.  [Solicitud](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "método": "usuario.iniciar sesión",     "parámetros": {         "nombre de usuario": "Administrador",         "contraseña": "zabbix",         "datos de usuario": verdadero     },     "identificación": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "resultado": {         "ID de usuario": "1",         "nombre de usuario": "Administrador",         "nombre": "Zabbix",         "apellido": "Administrador",         "URL": "",         "autologin": "1",         "cierre de sesión automático": "0",         "lang": "ru_RU",         "actualizar": "0",         "tema": "predeterminado",         "intento_fallido": "0",         "intento_ip": "127.0.0.1",         "intento_reloj": "1355919038",         "rows_per_page": "50",         "timezone": "Europa/Riga",         "roleid": "3",         "userdirectoryid": "0",         "tipo": 3,         "userip": "127.0.0.1",         "modo_depuración": 0,         "gui_access": "0",         "mfaid": "1",         "desaprovisionado": falso,         "tipo_autenticación": 0,         "sessionid": "5b56eee8be445e98f0bd42b435736e42",         "secreto": "cd0ba923319741c6586f3d866423a8f4"     },     "identificación": 1 } ```

en-us	 [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "sla.create",     "params": [         {             "name": "Database Uptime",             "slo": "99.9995",             "period": "1",             "timezone": "America/Toronto",             "description": "Provide excellent uptime for main database engines.",             "effective_date": 1672444800,             "status": 1,             "schedule": [                 {                     "period_from": 0,                     "period_to": 601200                 }             ],             "service_tags": [                 {                     "tag": "Database",                     "operator": "0",                     "value": "MySQL"                 },                 {                     "tag": "Database",                     "operator": "0",                     "value": "PostgreSQL"                 }             ],             "excluded_downtimes": [                 {                     "name": "Software version upgrade rollout",                     "period_from": "1648760400",                     "period_to": "1648764900"                 }             ]         }     ],     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "slaids": [             "5"         ]     },     "id": 1 } ```
es	 [Solicitud](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "sla.create",     "params": [         {             "name": "Database Uptime",             "slo": "99.9995",             "period": "1",             "timezone": "America/Toronto",             "description": "Provide excellent uptime for main database engines.",             "effective_date": 1672444800,             "status": 1,             "schedule": [                 {                     "period_from": 0,                     "period_to": 601200                 }             ],             "service_tags": [                 {                     "tag": "Database",                     "operator": "0",                     "value": "MySQL"                 },                 {                     "tag": "Database",                     "operator": "0",                     "value": "PostgreSQL"                 }             ],             "excluded_downtimes": [                 {                     "name": "Software version upgrade rollout",                     "period_from": "1648760400",                     "period_to": "1648764900"                 }             ]         }     ],     "id": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "result": {         "slaids": [             "5"         ]     },     "id": 1 } ```

en-us	### Required mode
es	### Modo requerido

en-us	### Required mode
es	### Modo requerido

en-us	#### Required software  Zabbix is built around modern web servers, leading database engines, and PHP scripting language.
es	#### Software necesario  Zabbix se basa en servidores web modernos, motores de bases de datos líderes y lenguaje de programación PHP.

en-us	##### Requirements  The following is required to set up encryption:  -   Developer-supported operating system with OpenSSL >=1.1.X or     alternative.  ::: noteclassic  It is recommended to avoid OS in the end-of-life status, especially in the case of new installations  :::  -   Database engine (RDBMS) installed and maintained from the official     repository provided by developer. Operating systems often shipped     with outdated  database software versions for which encryption     support is not implemented, for example RHEL 7 based systems and     PostgreSQL 9.2, MariaDB 5.5 without encryption support. 
es	##### Requisitos  Se requiere lo siguiente para configurar el cifrado:  - Sistema operativo con OpenSSL >=1.1.X o     alternativas soportado por desarrolladores .  ::: noteclassic  Se recomienda evitar un SO en su fase final de vida, especialmente en el caso de nuevas instalaciones :::  - Motor de base de datos (RDBMS) instalado y mantenido desde el sitio oficial     con repositorio proporcionado por el desarrollador. Los sistemas operativos a menudo se envían     con versiones obsoletas de software de bases de datos para las cuales el soporte de cifrado     no está implementado, por ejemplo, sistemas basados en RHEL 7 y     PostgreSQL 9.2, MariaDB 5.5 sin soporte de cifrado.

en-us	### Reserved ID value "0"  Reserved ID value "0" can be used to filter elements and to remove referenced objects. For example, to remove a referenced proxy from a host, proxyid should be set to 0 ("proxyid": "0") or to filter hosts monitored by server option proxyids should be set to 0 ("proxyids": "0").
es	### Valor de ID reservado "0"  El valor de ID reservado "0" se puede utilizar para filtrar elementos y eliminar objetos referenciados. Por ejemplo, para eliminar un proxy al que se hace referencia de un equipo, proxyid debe establecerse en 0 ("proxyid": "0") o en el filtro de equipos monitoreados por la opción de servidor proxyids deben establecerse en 0 ("proxyids": "0").

en-us	#### Resetting TOTP secrets for multiple users  Reset TOTP secrets for two users.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "user.resettotp",     "params": [         "1",         "5"     ],     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "userids": [             "1",             "5"         ]     },     "id": 1 } ```
es	#### Eliminar múltiples roles de usuario  Eliminar dos roles de usuario.  [Solicitud](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "user.resettotp",     "params": [         "1",         "5"     ],     "id": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "result": {         "userids": [             "1",             "5"         ]     },     "id": 1 } ```

en-us	#### Resize a map  Change the size of the map to 1200x1200 pixels.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "map.update",     "params": {         "sysmapid": "8",         "width": 1200,         "height": 1200     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "sysmapids": [             "8"         ]     },     "id": 1 } ```
es	#### Cambiar el tamaño de un mapa  Cambie el tamaño del mapa a 1200x1200 píxeles.  [Solicitud](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "map.update",     "params": {         "sysmapid": "8",         "width": 1200,         "height": 1200     },     "id": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "result": {         "sysmapids": [             "8"         ]     },     "id": 1 } ```

en-us	#### Restricting allowed certificate Issuer and Subject  When two Zabbix components (e.g. server and agent) establish a TLS connection they both check each others certificates. If a peer certificate is signed by a trusted CA (with pre-configured top-level certificate in `TLSCAFile`), is valid, has not expired and passes some other checks then communication can proceed. Certificate issuer and subject are not checked in this simplest case.  Here is a risk - anybody with a valid certificate can impersonate anybody else (e.g. a host certificate can be used to impersonate server). This may be acceptable in small environments where certificates are signed by a dedicated in-house CA and risk of impersonating is low.  If your top-level CA is used for issuing other certificates which should not be accepted by Zabbix or you want to reduce risk of impersonating you can restrict allowed certificates by specifying their Issuer and Subject strings.  For example, you can write in Zabbix proxy configuration file:      TLSServerCertIssuer=CN=Signing CA,OU=Development group,O=Zabbix SIA,DC=zabbix,DC=com     TLSServerCertSubject=CN=Zabbix server,OU=Development group,O=Zabbix SIA,DC=zabbix,DC=com  With these settings, an active proxy will not talk to Zabbix server with different Issuer or Subject string in certificate, a passive proxy will not accept requests from such server.  A few notes about Issuer or Subject string matching:  1.  Issuer and Subject strings are checked independently. Both are     optional. 2.  UTF-8 characters are allowed. 3.  Unspecified string means any string is accepted. 4.  Strings are compared "as-is", they must be exactly the same to     match. 5.  Wildcards and regexp's are not supported in matching. 6.  Only some requirements from [RFC 4514 Lightweight Directory Access     Protocol (LDAP): String Representation of Distinguished     Names](http://tools.ietf.org/html/rfc4514) are implemented:     1.  escape characters '"' (U+0022), '+' U+002B, ',' U+002C, ';'         U+003B, '<' U+003C, '>' U+003E, '\\' U+005C anywhere in         string.     2.  escape characters space (' ' U+0020) or number sign ('\#'         U+0023) at the beginning of string.     3.  escape character space (' ' U+0020) at the end of string. 7.  Match fails if a null character (U+0000) is encountered ([RFC     4514](http://tools.ietf.org/html/rfc4514) allows it). 8.  Requirements of [RFC 4517 Lightweight Directory Access Protocol     (LDAP): Syntaxes and Matching     Rules](http://tools.ietf.org/html/rfc4517) and [RFC 4518 Lightweight     Directory Access Protocol (LDAP): Internationalized String     Preparation](http://tools.ietf.org/html/rfc4518) are not supported     due to amount of work required.  Order of fields in Issuer and Subject strings and formatting are important! Zabbix follows [RFC 4514](http://tools.ietf.org/html/rfc4514) recommendation and uses "reverse" order of fields.  The reverse order can be illustrated by example:      TLSServerCertIssuer=CN=Signing CA,OU=Development group,O=Zabbix SIA,DC=zabbix,DC=com     TLSServerCertSubject=CN=Zabbix proxy,OU=Development group,O=Zabbix SIA,DC=zabbix,DC=com  Note that it starts with low level (CN), proceeds to mid-level (OU, O) and ends with top-level (DC) fields.  *OpenSSL* by default shows certificate Issuer and Subject fields in "normal" order, depending on additional options used:      $ openssl x509 -noout -in /home/zabbix/zabbix_proxy.crt -issuer -subject     issuer= /DC=com/DC=zabbix/O=Zabbix SIA/OU=Development group/CN=Signing CA     subject= /DC=com/DC=zabbix/O=Zabbix SIA/OU=Development group/CN=Zabbix proxy      $ openssl x509 -noout -text -in /home/zabbix/zabbix_proxy.crt     Certificate:             ...             Issuer: DC=com, DC=zabbix, O=Zabbix SIA, OU=Development group, CN=Signing CA         ...             Subject: DC=com, DC=zabbix, O=Zabbix SIA, OU=Development group, CN=Zabbix proxy  Here Issuer and Subject strings start with top-level (DC) and end with low-level (CN) field, spaces and field separators depend on options used. None of these values will match in Zabbix Issuer and Subject fields!  ::: noteimportant  To get proper Issuer and Subject strings usable in Zabbix invoke OpenSSL with special options\ (`-nameopt esc_2253,esc_ctrl,utf8,dump_nostr,dump_unknown,dump_der,sep_comma_plus,dn_rev,sname`):  :::      $ openssl x509 -noout -issuer -subject \             -nameopt esc_2253,esc_ctrl,utf8,dump_nostr,dump_unknown,dump_der,sep_comma_plus,dn_rev,sname \             -in /home/zabbix/zabbix_proxy.crt     issuer= CN=Signing CA,OU=Development group,O=Zabbix SIA,DC=zabbix,DC=com     subject= CN=Zabbix proxy,OU=Development group,O=Zabbix SIA,DC=zabbix,DC=com  Now string fields are in reverse order, fields are comma-separated, can be used in Zabbix configuration files and frontend.
es	#### Restringir el emisor y el asunto del certificado permitidos  Cuando dos componentes de Zabbix (por ejemplo, servidor y agente) establecen un TLS conexión, ambos verifican los certificados de cada uno. si  el certificado de la contraparte está firmado por una CA confiable (con certificado de nivel superior preconfigurado en `TLSCAFile`), es válido, no ha caducado y pasa algunas otras comprobaciones, entonces la comunicación puede continuar. El emisor del certificado y el asunto no se verifica en este caso más simple.  Aquí existe un riesgo: cualquiera con un certificado válido puede hacerse pasar por cualquier otra persona (por ejemplo, se puede utilizar un certificado de equipo para hacerse pasar por un servidor). Esto puede ser aceptable en entornos pequeños donde los certificados están firmados por una CA interna dedicada y el riesgo de suplantación de identidad es bajo.  Si su CA de nivel superior se utiliza para emitir otros certificados que deberían no ser aceptados por Zabbix o desea reducir el riesgo de suplantación de identidad, puede restringir los certificados permitidos especificando las cadenas de su emisor y de asunto.  Por ejemplo, puede escribir en el archivo de configuración del proxy Zabbix:      TLSServerCertIssuer=CN=CA firmante,OU=Grupo de desarrollo,O=Zabbix SIA,DC=zabbix,DC=com     TLSServerCertSubject=CN=servidor Zabbix,OU=grupo de desarrollo,O=Zabbix SIA,DC=zabbix,DC=com  Con esta configuración, un proxy activo no se comunicará con el servidor Zabbix con una cadena de Emisor o Asunto diferente en el certificado, un proxy pasivo no aceptará solicitudes de dicho servidor.  Algunas notas sobre la coincidencia de cadenas de Emisor o Asunto:  1. Las cadenas de emisor y asunto se verifican de forma independiente. Ambas son     opcionales. 2. Se permiten caracteres UTF-8. 3. Cadena no especificada significa que se acepta cualquier cadena. 4. Las cadenas se comparan "tal cual", deben ser exactamente iguales para coincidir. 5. Los comodines y las expresiones regulares no se admiten en la coincidencia. 6. Solo algunos requisitos de [RFC 4514 Acceso ligero a directorios     Protocolo (LDAP): representación de cadena de distinguido     Se implementan los nombres](http://tools.ietf.org/html/rfc4514):     1. caracteres de escape '"' (U+0022), '+' U+002B, ',' U+002C, ';'         U+003B, '<' U+003C, '>' U+003E, '\\' U+005C en cualquier lugar de         cadena.     2. caracteres de escape, espacio (' ' U+0020) o signo numérico ('\#'         U+0023) al principio de la cadena.     3. espacio de carácter de escape (' ' U+0020) al final de la cadena. 7. La coincidencia falla si se encuentra un carácter nulo (U+0000) ([RFC     4514](http://tools.ietf.org/html/rfc4514) lo permite). 8. Requisitos del [Protocolo ligero de acceso a directorios RFC 4517     (LDAP): sintaxis y coincidencia     Reglas](http://tools.ietf.org/html/rfc4517) y [RFC 4518 Peso ligero     Protocolo de acceso a directorios (LDAP): cadena internacionalizada     Preparación](http://tools.ietf.org/html/rfc4518) no son compatibles     debido a la cantidad de trabajo requerido.  El orden de los campos en las cadenas de Emisor y Asunto y el formato son ¡importantes! Zabbix sigue [RFC 4514](http://tools.ietf.org/html/rfc4514) recomendación y utiliza el orden "inverso" de los campos.  El orden inverso se puede ilustrar con un ejemplo:      TLSServerCertIssuer=CN=CA firmante,OU=Grupo de desarrollo,O=Zabbix SIA,DC=zabbix,DC=com     TLSServerCertSubject=CN=Proxy Zabbix,OU=Grupo de desarrollo,O=Zabbix SIA,DC=zabbix,DC=com  Tenga en cuenta que comienza con el nivel bajo (CN), continúa hasta el nivel medio (OU, O) y termina con campos de nivel superior (DC).  *OpenSSL* muestra de forma predeterminada los campos Emisor y Asunto del certificado en orden "normal", dependiendo de las opciones adicionales utilizadas:      $ openssl x509 -noout -in /home/zabbix/zabbix_proxy.crt -issuer -subject     issuer= /DC=com/DC=zabbix/O=Zabbix SIA/OU=Grupo de desarrollo/CN=CA firmante     subject= /DC=com/DC=zabbix/O=Zabbix SIA/OU=Grupo de desarrollo/CN=Proxy Zabbix      $ openssl x509 -noout -text -in /home/zabbix/zabbix_proxy.crt     Certificate:             ...             Issuer: DC=com, DC=zabbix, O=Zabbix SIA, OU=Grupo de desarrollo, CN=CA firmante         ...             Subject: DC=com, DC=zabbix, O=Zabbix SIA, OU=Grupo de desarrollo, CN=Proxy Zabbix  Aquí las cadenas de Emisor y Asunto comienzan con el nivel superior (DC) y terminan con el campo de bajo nivel (CN), los espacios y los separadores de campo dependen de las opciones. usadas. Ninguno de estos valores coincidirá con los campos Zabbix Emisor y Asunto   ::: noteimportant  Para poder utilizar las cadenas de Emisor y Asunto adecuadas en Zabbix invoca OpenSSL con opciones especiales\ (`-nameopt esc_2253,esc_ctrl,utf8,dump_nostr,dump_unknown,dump_der,sep_comma_plus,dn_rev,sname`):  :::      $ openssl x509 -noout -issuer -subject \             -nameopt esc_2253,esc_ctrl,utf8,dump_nostr,dump_unknown,dump_der,sep_comma_plus,dn_rev,sname \             -in /home/zabbix/zabbix_proxy.crt     issuer = CN = CA firmante, OU = grupo de desarrollo, O = Zabbix SIA, DC = zabbix, DC = com     subject= CN=Proxy Zabbix,OU=Grupo de desarrollo,O=Zabbix SIA,DC=zabbix,DC=com  Ahora los campos de cadena están en orden inverso, los campos están separados por comas, pueden ser utilizados en archivos de configuración y frontend de Zabbix.

en-us	#### Result  The `Result` object contains session statistics and is returned by the [`Browser`](#browser) object `getResult()` method.  Typically, the `Result` object is stringified and returned from the script, and then parsed into dependent item values through preprocessing.  While the `Result` object does not have any methods, it can contain the following properties.  |Property|<|<|Type|Description| |-|-|-|-----|---------------------| |duration|<|<|string|Session duration from session creation to result retrieval.| |error|<|<|object|Error information.| |<|http_status|<|integer|HTTP status returned by the WebDriver (or 0 if there are no WebDriver errors).| |^|error_code|<|string|Error returned by the WebDriver (or empty string if there are no WebDriver errors).| |^|message|<|string|WebDriver error message (or empty string if there are no WebDriver errors).| |performance_data|<|<|object|Performance statistics.| |<|summary|<|object|Performance summary.| |^|<|navigation|object|Navigation summary.| |^|^|resource|object|Resource summary.| |<|details|<|array of objects|Performance statistics after each operation that could have resulted in navigation.| |^|<|mark|string|*(optional)* Performance snapshot mark specified with the [`collectPerfEntries()`](#browser) method.| |^|^|navigation|object|Navigation statistics.| |^|^|resource|object|Resource summary for this step.| |^|^|user|array of objects|Array of mark/measure type statistics.| |<|marks|<|array of objects|Marked performance snapshot indexes.| |^|<|name|string|Performance snapshot mark name.| |^|^|index|integer|Performance snapshot index in details array.|
es	#### Resultado  El objeto `Resultado` contiene estadísticas de sesión y es devuelto por el método `getResult()` del objeto [`Browser`](#browser).  Normalmente, el objeto `Resultado` se codifica y se devuelve desde el script, y luego se analiza en valores de elementos dependientes mediante el preprocesamiento.  Si bien el objeto "Resultado" no tiene ningún método, puede contener las siguientes propiedades.  |Propiedad|<|<|Tipo|Descripción| |-|-|-|-----|---------------------| |duración|<|<|string|Duración de la sesión desde la creación de la sesión hasta la recuperación del resultado.| |error|<|<|objeto|Información de error.| |<|http_status|<|integer|Estado HTTP devuelto por WebDriver (o 0 si no hay errores de WebDriver).| |^|error_code|<|cadena|Error devuelto por WebDriver (o cadena vacía si no hay errores de WebDriver).| |^|mensaje|<|cadena|Mensaje de error de WebDriver (o cadena vacía si no hay errores de WebDriver).| |datos_rendimiento|<|<|objeto|Estadísticas de rendimiento.| |<|summary|<|objeto|Resumen de rendimiento.| |^|<|navegación|objeto|Resumen de navegación.| |^|^|recurso|objeto|Resumen de recursos.| |<|detalles|<|matriz de objetos|Estadísticas de rendimiento después de cada operación que podría haber resultado en la navegación.| |^|<|mark|string|*(opcional)* Marca de instantánea de rendimiento especificada con el método [`collectPerfEntries()`](#browser).| |^|^|navegación|objeto|Estadísticas de navegación.| |^|^|recurso|objeto|Resumen de recursos para este paso.| |^|^|usuario|matriz de objetos|Matriz de estadísticas de tipo de marca/medida.| |<|marcas|<|matriz de objetos|Índices de instantáneas de rendimiento marcados.| |^|<|nombre|cadena|Nombre de la marca de instantánea de rendimiento.| |^|^|index|integer|Índice de instantánea de rendimiento en la matriz de detalles.|

en-us	#### Retrieve alerts by action ID  Retrieve all alerts generated by action "3".  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "alert.get",     "params": {         "output": "extend",         "actionids": "3"     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "alertid": "1",             "actionid": "3",             "eventid": "21243",             "userid": "1",             "clock": "1362128008",             "mediatypeid": "1",             "sendto": "support@company.com",             "subject": "PROBLEM: Zabbix agent on Linux server is unreachable for 5 minutes: ",             "message": "Trigger: Zabbix agent on Linux server is unreachable for 5 minutes: \nTrigger status: PROBLEM\nTrigger severity: Not classified",             "status": "0",             "retries": "3",             "error": "",             "esc_step": "1",             "alerttype": "0",             "p_eventid": "0",             "acknowledgeid": "0"         }     ],     "id": 1 } ```
es	#### Recuperar alertas por ID de acción  Recupera todas las alertas generadas por la acción "3".  [Solicitud](/manual/api#performing-requests):  ```json { "jsonrpc": "2.0", "method": "alert.get", "params": { "output": "extend", "actionids": "3" }, "id": 1 } ```  Response:  ```json { "jsonrpc": "2.0", "result": [ { "alertid": "1", "actionid": "3", "eventid": "21243", "userid": "1", "clock": "1362128008", "mediatypeid": "1", "sendto": "support@company.com", "subject": "PROBLEM: Zabbix agent on Linux server is unreachable for 5 minutes: ", "message": "Trigger: Zabbix agent on Linux server is unreachable for 5 minutes: \nTrigger status: PROBLEM\nTrigger severity: Not classified", "status": "0", "retries": "3", "error": "", "esc_step": "1", "alerttype": "0", "p_eventid": "0", "acknowledgeid": "0" } ], "id": 1 } ```

en-us	#### Retrieve all discovery rules  Retrieve all configured discovery rules and the discovery checks they use.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "drule.get",     "params": {         "output": "extend",         "selectDChecks": "extend"     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "druleid": "2",             "proxyid": "0",             "name": "Local network",             "iprange": "192.168.3.1-255",             "delay": "5s",             "status": "0",             "concurrency_max": "0",             "error": "",             "dchecks": [                 {                     "dcheckid": "7",                     "druleid": "2",                     "type": "3",                     "key_": "",                     "snmp_community": "",                     "ports": "21",                     "snmpv3_securityname": "",                     "snmpv3_securitylevel": "0",                     "snmpv3_authpassphrase": "",                     "snmpv3_privpassphrase": "",                     "uniq": "0",                     "snmpv3_authprotocol": "0",                     "snmpv3_privprotocol": "0",                     "snmpv3_contextname": "",                     "host_source": "1",                     "name_source": "0",                     "allow_redirect": "0"                 },                 {                     "dcheckid": "8",                     "druleid": "2",                     "type": "4",                     "key_": "",                     "snmp_community": "",                     "ports": "80",                     "snmpv3_securityname": "",                     "snmpv3_securitylevel": "0",                     "snmpv3_authpassphrase": "",                     "snmpv3_privpassphrase": "",                     "uniq": "0",                     "snmpv3_authprotocol": "0",                     "snmpv3_privprotocol": "0",                     "snmpv3_contextname": "",                     "host_source": "1",                     "name_source": "0",                     "allow_redirect": "0"                 }             ]         },         {             "druleid": "6",             "proxyid": "0",             "name": "Zabbix agent discovery",             "iprange": "192.168.1.1-255",             "delay": "1h",             "status": "0",             "concurrency_max": "10",             "error": "",             "dchecks": [                 {                     "dcheckid": "10",                     "druleid": "6",                     "type": "9",                     "key_": "system.uname",                     "snmp_community": "",                     "ports": "10050",                     "snmpv3_securityname": "",                     "snmpv3_securitylevel": "0",                     "snmpv3_authpassphrase": "",                     "snmpv3_privpassphrase": "",                     "uniq": "0",                     "snmpv3_authprotocol": "0",                     "snmpv3_privprotocol": "0",                     "snmpv3_contextname": "",                     "host_source": "2",                     "name_source": "3",                     "allow_redirect": "0"                 }             ]         }     ],     "id": 1 } ```
es	#### Recuperar todas las reglas de descubrimiento  Recupere todas las reglas de descubrimiento configuradas y las comprobaciones de descubrimiento que usar.  [Solicitud](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "drule.get",     "params": {         "output": "extend",         "selectDChecks": "extend"     },     "id": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "result": [         {             "druleid": "2",             "proxyid": "0",             "name": "Local network",             "iprange": "192.168.3.1-255",             "delay": "5s",             "status": "0",             "concurrency_max": "0",             "error": "",             "dchecks": [                 {                     "dcheckid": "7",                     "druleid": "2",                     "type": "3",                     "key_": "",                     "snmp_community": "",                     "ports": "21",                     "snmpv3_securityname": "",                     "snmpv3_securitylevel": "0",                     "snmpv3_authpassphrase": "",                     "snmpv3_privpassphrase": "",                     "uniq": "0",                     "snmpv3_authprotocol": "0",                     "snmpv3_privprotocol": "0",                     "snmpv3_contextname": "",                     "host_source": "1",                     "name_source": "0",                     "allow_redirect": "0"                 },                 {                     "dcheckid": "8",                     "druleid": "2",                     "type": "4",                     "key_": "",                     "snmp_community": "",                     "ports": "80",                     "snmpv3_securityname": "",                     "snmpv3_securitylevel": "0",                     "snmpv3_authpassphrase": "",                     "snmpv3_privpassphrase": "",                     "uniq": "0",                     "snmpv3_authprotocol": "0",                     "snmpv3_privprotocol": "0",                     "snmpv3_contextname": "",                     "host_source": "1",                     "name_source": "0",                     "allow_redirect": "0"                 }             ]         },         {             "druleid": "6",             "proxyid": "0",             "name": "Zabbix agent discovery",             "iprange": "192.168.1.1-255",             "delay": "1h",             "status": "0",             "concurrency_max": "10",             "error": "",             "dchecks": [                 {                     "dcheckid": "10",                     "druleid": "6",                     "type": "9",                     "key_": "system.uname",                     "snmp_community": "",                     "ports": "10050",                     "snmpv3_securityname": "",                     "snmpv3_securitylevel": "0",                     "snmpv3_authpassphrase": "",                     "snmpv3_privpassphrase": "",                     "uniq": "0",                     "snmpv3_authprotocol": "0",                     "snmpv3_privprotocol": "0",                     "snmpv3_contextname": "",                     "host_source": "2",                     "name_source": "3",                     "allow_redirect": "0"                 }             ]         }     ],     "id": 1 } ```

en-us	#### Retrieve all proxies  Retrieve all configured proxies and their interfaces.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "proxy.get",     "params": {         "output": "extend"     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "proxyid": "11",             "name": "Active proxy",             "proxy_groupid": "0",             "local_address": "",             "local_port": "10051",             "operating_mode": "0",             "description": "",             "allowed_addresses": "",             "address": "127.0.0.1",             "port": "10051",             "tls_connect": "1",             "tls_accept": "1",             "tls_issuer": "",             "tls_subject": "",             "custom_timeouts": "0",             "timeout_zabbix_agent": "",             "timeout_simple_check": "",             "timeout_snmp_agent": "",             "timeout_external_check": "",             "timeout_db_monitor": "",             "timeout_http_agent": "",             "timeout_ssh_agent": "",             "timeout_telnet_agent": "",             "timeout_script": "",             "last_access": "1693391880",             "version": "70000",             "compatibility": "1",             "state": "1"         },         {             "proxyid": "12",             "name": "Passive proxy",             "proxy_groupid": "1",             "local_address": "127.0.0.1",             "local_port": "10051",             "operating_mode": "1",             "description": "",             "allowed_addresses": "",             "address": "127.0.0.1",             "port": "10051",             "tls_connect": "1",             "tls_accept": "1",             "tls_issuer": "",             "tls_subject": "",             "custom_timeouts": "1",             "timeout_zabbix_agent": "5s",             "timeout_simple_check": "5s",             "timeout_snmp_agent": "5s",             "timeout_external_check": "5s",             "timeout_db_monitor": "5s",             "timeout_http_agent": "5s",             "timeout_ssh_agent": "5s",             "timeout_telnet_agent": "5s",             "timeout_script": "5s",             "lastaccess": "1693391875",             "version": "60400",             "compatibility": "2",             "state": "2"         }     ],     "id": 1 } ```
es	#### Recuperar todos los servidores proxy  Recupere todos los servidores proxy configurados y sus interfaces.  [Solicitud](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "proxy.get",     "params": {         "output": "extend"     },     "id": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "result": [         {             "proxyid": "11",             "name": "Active proxy",             "proxy_groupid": "0",             "local_address": "",             "local_port": "10051",             "operating_mode": "0",             "description": "",             "allowed_addresses": "",             "address": "127.0.0.1",             "port": "10051",             "tls_connect": "1",             "tls_accept": "1",             "tls_issuer": "",             "tls_subject": "",             "custom_timeouts": "0",             "timeout_zabbix_agent": "",             "timeout_simple_check": "",             "timeout_snmp_agent": "",             "timeout_external_check": "",             "timeout_db_monitor": "",             "timeout_http_agent": "",             "timeout_ssh_agent": "",             "timeout_telnet_agent": "",             "timeout_script": "",             "last_access": "1693391880",             "version": "70000",             "compatibility": "1",             "state": "1"         },         {             "proxyid": "12",             "name": "Passive proxy",             "proxy_groupid": "1",             "local_address": "127.0.0.1",             "local_port": "10051",             "operating_mode": "1",             "description": "",             "allowed_addresses": "",             "address": "127.0.0.1",             "port": "10051",             "tls_connect": "1",             "tls_accept": "1",             "tls_issuer": "",             "tls_subject": "",             "custom_timeouts": "1",             "timeout_zabbix_agent": "5s",             "timeout_simple_check": "5s",             "timeout_snmp_agent": "5s",             "timeout_external_check": "5s",             "timeout_db_monitor": "5s",             "timeout_http_agent": "5s",             "timeout_ssh_agent": "5s",             "timeout_telnet_agent": "5s",             "timeout_script": "5s",             "lastaccess": "1693391875",             "version": "60400",             "compatibility": "2",             "state": "2"         }     ],     "id": 1 } ```

en-us	#### Retrieve all proxy groups  Retrieve all configured proxy groups with proxies.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "proxygroup.get",     "params": {         "output": "extend",         "selectProxies": ["proxyid", "name"]     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "proxy_groupid": "1",             "name": "Proxy group 1",             "failover_delay": "1m",             "min_online": "3",             "description": "",             "state": "1",             "proxies": [                 {                     "proxyid": "1",                     "name": "proxy 1"                 },                 {                     "proxyid": "2",                     "name": "proxy 2"                 }             ]         },         {             "proxy_groupid": "2",             "name": "Proxy group 2",             "failover_delay": "10m",             "min_online": "3",             "description": "",             "state": "3",             "proxies": [                 {                     "proxyid": "3",                     "name": "proxy 3"                 },                 {                     "proxyid": "4",                     "name": "proxy 4"                 },                 {                     "proxyid": "5",                     "name": "proxy 5"                 }             ]         }     ],     "id": 1 } ```
es	#### Recuperar todos los grupos de proxy  Recupere todos los grupos de proxy configurados con proxies.  [Solicitud](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "proxygroup.get",     "params": {         "output": "extend",         "selectProxies": ["proxyid", "name"]     },     "id": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "result": [         {             "proxy_groupid": "1",             "name": "Proxy group 1",             "failover_delay": "1m",             "min_online": "3",             "description": "",             "state": "1",             "proxies": [                 {                     "proxyid": "1",                     "name": "proxy 1"                 },                 {                     "proxyid": "2",                     "name": "proxy 2"                 }             ]         },         {             "proxy_groupid": "2",             "name": "Proxy group 2",             "failover_delay": "10m",             "min_online": "3",             "description": "",             "state": "3",             "proxies": [                 {                     "proxyid": "3",                     "name": "proxy 3"                 },                 {                     "proxyid": "4",                     "name": "proxy 4"                 },                 {                     "proxyid": "5",                     "name": "proxy 5"                 }             ]         }     ],     "id": 1 } ```

en-us	#### Retrieve all scripts  Retrieve all configured scripts.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "script.get",     "params": {         "output": "extend"     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "scriptid": "1",             "name": "Ping",             "command": "/bin/ping -c 3 {HOST.CONN} 2>&1",             "host_access": "2",             "usrgrpid": "0",             "groupid": "0",             "description": "",             "confirmation": "",             "type": "0",             "execute_on": "1",             "timeout": "30s",             "scope": "2",             "port": "",             "authtype": "0",             "username": "",             "password": "",             "publickey": "",             "privatekey": "",             "menu_path": "",             "url": "",             "new_window": "1",             "manualinput": "0",             "manualinput_prompt": "",             "manualinput_validator": "",             "manualinput_validator_type": "0",             "manualinput_default_value": "",             "parameters": []         },         {             "scriptid": "2",             "name": "Traceroute",             "command": "/usr/bin/traceroute {HOST.CONN} 2>&1",             "host_access": "2",             "usrgrpid": "0",             "groupid": "0",             "description": "",             "confirmation": "",             "type": "0",             "execute_on": "1",             "timeout": "30s",             "scope": "2",             "port": "",             "authtype": "0",             "username": "",             "password": "",             "publickey": "",             "privatekey": "",             "menu_path": "",             "url": "",             "new_window": "1",             "manualinput": "0",             "manualinput_prompt": "",             "manualinput_validator": "",             "manualinput_validator_type": "0",             "manualinput_default_value": "",             "parameters": []         },         {             "scriptid": "3",             "name": "Detect operating system",             "command": "sudo /usr/bin/nmap -O {HOST.CONN} 2>&1",             "host_access": "2",             "usrgrpid": "7",             "groupid": "0",             "description": "",             "confirmation": "",             "type": "0",             "execute_on": "1",             "timeout": "30s",             "scope": "2",             "port": "",             "authtype": "0",             "username": "",             "password": "",             "publickey": "",             "privatekey": "",             "menu_path": "",             "url": "",             "new_window": "1",             "manualinput": "0",             "manualinput_prompt": "",             "manualinput_validator": "",             "manualinput_validator_type": "0",             "manualinput_default_value": "",             "parameters": []         },         {             "scriptid": "4",             "name": "Webhook",             "command": "try {\n var request = new HttpRequest(),\n response,\n data;\n\n request.addHeader('Content-Type: application/json');\n\n response = request.post('https://localhost/post', value);\n\n try {\n response = JSON.parse(response);\n }\n catch (error) {\n response = null;\n }\n\n if (request.getStatus() !== 200 || !('data' in response)) {\n throw 'Unexpected response.';\n }\n\n data = JSON.stringify(response.data);\n\n Zabbix.log(3, '[Webhook Script] response data: ' + data);\n\n return data;\n}\ncatch (error) {\n Zabbix.log(3, '[Webhook Script] script execution failed: ' + error);\n throw 'Execution failed: ' + error + '.';\n}",             "host_access": "2",             "usrgrpid": "7",             "groupid": "0",             "description": "",             "confirmation": "",             "type": "5",             "execute_on": "1",             "timeout": "30s",             "scope": "2",             "port": "",             "authtype": "0",             "username": "",             "password": "",             "publickey": "",             "privatekey": "",             "menu_path": "",             "url": "",             "new_window": "1",             "manualinput": "0",             "manualinput_prompt": "",             "manualinput_validator": "",             "manualinput_validator_type": "0",             "manualinput_default_value": "",             "parameters": [                 {                     "name": "token",                     "value": "{$WEBHOOK.TOKEN}"                 },                 {                     "name": "host",                     "value": "{HOST.HOST}"                 },                 {                     "name": "v",                     "value": "2.2"                 }             ]         },         {             "scriptid": "5",             "name": "URL",             "command": "",             "host_access": "2",             "usrgrpid": "0",             "groupid": "0",             "description": "",             "confirmation": "Go to {HOST.NAME}?",             "type": "6",             "execute_on": "1",             "timeout": "30s",             "scope": "4",             "port": "",             "authtype": "0",             "username": "",             "password": "",             "publickey": "",             "privatekey": "",             "menu_path": "",             "url": "http://zabbix/ui/zabbix.php?action=latest.view&hostids[]={HOST.ID}",             "new_window": "0",             "manualinput": "0",             "manualinput_prompt": "",             "manualinput_validator": "",             "manualinput_validator_type": "0",             "manualinput_default_value": "",             "parameters": []         },         {             "scriptid": "6",             "name": "URL with user input",             "command": "",             "host_access": "2",             "usrgrpid": "0",             "groupid": "0",             "description": "",             "confirmation": "Open zabbix page {MANUALINPUT}?",             "type": "6",             "execute_on": "1",             "timeout": "30s",             "scope": "2",             "port": "",             "authtype": "0",             "username": "",             "password": "",             "publickey": "",             "privatekey": "",             "menu_path": "",             "url": "http://zabbix/ui/zabbix.php?action={MANUALINPUT}",             "new_window": "0",             "manualinput": "1",             "manualinput_prompt": "Select a page to open:",             "manualinput_validator": "dashboard.view,script.list,actionlog.list",             "manualinput_validator_type": "1",             "parameters": []         }     ],     "id": 1 } ```
es	#### Recuperar todos los scripts  Recupere todos los scripts configurados.  [Solicitudes](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "script.get",     "params": {         "output": "extend"     },     "id": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "result": [         {             "scriptid": "1",             "name": "Ping",             "command": "/bin/ping -c 3 {HOST.CONN} 2>&1",             "host_access": "2",             "usrgrpid": "0",             "groupid": "0",             "description": "",             "confirmation": "",             "type": "0",             "execute_on": "1",             "timeout": "30s",             "scope": "2",             "port": "",             "authtype": "0",             "username": "",             "password": "",             "publickey": "",             "privatekey": "",             "menu_path": "",             "url": "",             "new_window": "1",             "parameters": []         },         {             "scriptid": "2",             "name": "Traceroute",             "command": "/usr/bin/traceroute {HOST.CONN} 2>&1",             "host_access": "2",             "usrgrpid": "0",             "groupid": "0",             "description": "",             "confirmation": "",             "type": "0",             "execute_on": "1",             "timeout": "30s",             "scope": "2",             "port": "",             "authtype": "0",             "username": "",             "password": "",             "publickey": "",             "privatekey": "",             "menu_path": "",             "url": "",             "new_window": "1",             "parameters": []         },         {             "scriptid": "3",             "name": "Detect operating system",             "command": "sudo /usr/bin/nmap -O {HOST.CONN} 2>&1",             "host_access": "2",             "usrgrpid": "7",             "groupid": "0",             "description": "",             "confirmation": "",             "type": "0",             "execute_on": "1",             "timeout": "30s",             "scope": "2",             "port": "",             "authtype": "0",             "username": "",             "password": "",             "publickey": "",             "privatekey": "",             "menu_path": "",             "url": "",             "new_window": "1",             "parameters": []         },         {             "scriptid": "4",             "name": "Webhook",             "command": "try {\n var request = new HttpRequest(),\n response,\n data;\n\n request.addHeader('Content-Type: application/json');\n\n response = request.post('https://localhost/post', value);\n\n try {\n response = JSON.parse(response);\n }\n catch (error) {\n response = null;\n }\n\n if (request.getStatus() !== 200 || !('data' in response)) {\n throw 'Unexpected response.';\n }\n\n data = JSON.stringify(response.data);\n\n Zabbix.log(3, '[Webhook Script] response data: ' + data);\n\n return data;\n}\ncatch (error) {\n Zabbix.log(3, '[Webhook Script] script execution failed: ' + error);\n throw 'Execution failed: ' + error + '.';\n}",             "host_access": "2",             "usrgrpid": "7",             "groupid": "0",             "description": "",             "confirmation": "",             "type": "5",             "execute_on": "1",             "timeout": "30s",             "scope": "2",             "port": "",             "authtype": "0",             "username": "",             "password": "",             "publickey": "",             "privatekey": "",             "menu_path": "",             "url": "",             "new_window": "1",             "parameters": [                 {                     "name": "token",                     "value": "{$WEBHOOK.TOKEN}"                 },                 {                     "name": "host",                     "value": "{HOST.HOST}"                 },                 {                     "name": "v",                     "value": "2.2"                 }             ]         },         {             "scriptid": "5",             "name": "URL",             "command": "",             "host_access": "2",             "usrgrpid": "0",             "groupid": "0",             "description": "",             "confirmation": "Go to {HOST.NAME}?",             "type": "6",             "execute_on": "1",             "timeout": "30s",             "scope": "4",             "port": "",             "authtype": "0",             "username": "",             "password": "",             "publickey": "",             "privatekey": "",             "menu_path": "",             "url": "http://zabbix/ui/zabbix.php?action=latest.view&hostids[]={HOST.ID}",             "new_window": "0",             "parameters": []         }     ],     "id": 1 } ```

en-us	#### Retrieve a map  Retrieve all data about map "3".  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "map.get",     "params": {         "output": "extend",         "selectSelements": "extend",         "selectLinks": "extend",         "selectUsers": "extend",         "selectUserGroups": "extend",         "selectShapes": "extend",         "selectLines": "extend",         "sysmapids": "3"     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "selements": [                 {                     "selementid": "10",                     "sysmapid": "3",                     "elementtype": "4",                     "evaltype": "0",                     "iconid_off": "1",                     "iconid_on": "0",                     "label": "Zabbix server",                     "label_location": "3",                     "x": "11",                     "y": "141",                     "iconid_disabled": "0",                     "iconid_maintenance": "0",                     "elementsubtype": "0",                     "areatype": "0",                     "width": "200",                     "height": "200",                     "tags": [                         {                             "tag": "service",                             "value": "mysqld",                             "operator": "0"                         }                     ],                     "viewtype": "0",                     "use_iconmap": "1",                     "urls": [],                     "elements": []                 },                 {                     "selementid": "11",                     "sysmapid": "3",                     "elementtype": "4",                     "evaltype": "0",                     "iconid_off": "1",                     "iconid_on": "0",                     "label": "Web server",                     "label_location": "3",                     "x": "211",                     "y": "191",                     "iconid_disabled": "0",                     "iconid_maintenance": "0",                     "elementsubtype": "0",                     "areatype": "0",                     "width": "200",                     "height": "200",                     "viewtype": "0",                     "use_iconmap": "1",                     "tags": [],                     "urls": [],                     "elements": []                 },                 {                     "selementid": "12",                     "sysmapid": "3",                     "elementtype": "0",                     "evaltype": "0",                     "iconid_off": "185",                     "iconid_on": "0",                     "label": "{HOST.NAME}\r\n{HOST.CONN}",                     "label_location": "0",                     "x": "111",                     "y": "61",                     "iconid_disabled": "0",                     "iconid_maintenance": "0",                     "elementsubtype": "0",                     "areatype": "0",                     "width": "200",                     "height": "200",                     "viewtype": "0",                     "use_iconmap": "0",                     "tags": [],                     "urls": [],                     "elements": [                         {                             "hostid": "10084"                         }                     ]                 }             ],             "links": [                 {                     "linkid": "23",                     "sysmapid": "3",                     "selementid1": "10",                     "selementid2": "11",                     "drawtype": "0",                     "color": "00CC00",                     "label": "",                     "linktriggers": []                 }             ],             "users": [                 {                     "sysmapuserid": "1",                     "userid": "2",                     "permission": "2"                 }             ],             "userGroups": [                 {                     "sysmapusrgrpid": "1",                     "usrgrpid": "7",                     "permission": "2"                 }             ],             "shapes":[                 {                     "sysmap_shapeid":"1",                     "type":"0",                     "x":"0",                     "y":"0",                     "width":"680",                     "height":"15",                     "text":"{MAP.NAME}",                     "font":"9",                     "font_size":"11",                     "font_color":"000000",                     "text_halign":"0",                     "text_valign":"0",                     "border_type":"0",                     "border_width":"0",                     "border_color":"000000",                     "background_color":"",                     "zindex":"0"                 }             ],             "lines":[                 {                     "sysmap_shapeid":"2",                     "x1": 30,                     "y1": 10,                     "x2": 100,                     "y2": 50,                     "line_type": 1,                     "line_width": 10,                     "line_color": "009900",                     "zindex":"1"                 }             ],             "sysmapid": "3",             "name": "Local network",             "width": "400",             "height": "400",             "backgroundid": "0",             "label_type": "2",             "label_location": "3",             "highlight": "1",             "expandproblem": "1",             "markelements": "0",             "show_unack": "0",             "grid_size": "50",             "grid_show": "1",             "grid_align": "1",             "label_format": "0",             "label_type_host": "2",             "label_type_hostgroup": "2",             "label_type_trigger": "2",             "label_type_map": "2",             "label_type_image": "2",             "label_string_host": "",             "label_string_hostgroup": "",             "label_string_trigger": "",             "label_string_map": "",             "label_string_image": "",             "iconmapid": "0",             "expand_macros": "0",             "severity_min": "0",             "userid": "1",             "private": "1",             "show_suppressed": "1"         }     ],     "id": 1 } ```
es	#### Recuperar un mapa  Recupera todos los datos sobre el mapa "3".  [Solicitud](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "map.get",     "params": {         "output": "extend",         "selectSelements": "extend",         "selectLinks": "extend",         "selectUsers": "extend",         "selectUserGroups": "extend",         "selectShapes": "extend",         "selectLines": "extend",         "sysmapids": "3"     },     "id": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "result": [         {             "selements": [                 {                     "selementid": "10",                     "sysmapid": "3",                     "elementtype": "4",                     "evaltype": "0",                     "iconid_off": "1",                     "iconid_on": "0",                     "label": "Zabbix server",                     "label_location": "3",                     "x": "11",                     "y": "141",                     "iconid_disabled": "0",                     "iconid_maintenance": "0",                     "elementsubtype": "0",                     "areatype": "0",                     "width": "200",                     "height": "200",                     "tags": [                         {                             "tag": "service",                             "value": "mysqld",                             "operator": "0"                         }                     ],                     "viewtype": "0",                     "use_iconmap": "1",                     "urls": [],                     "elements": []                 },                 {                     "selementid": "11",                     "sysmapid": "3",                     "elementtype": "4",                     "evaltype": "0",                     "iconid_off": "1",                     "iconid_on": "0",                     "label": "Web server",                     "label_location": "3",                     "x": "211",                     "y": "191",                     "iconid_disabled": "0",                     "iconid_maintenance": "0",                     "elementsubtype": "0",                     "areatype": "0",                     "width": "200",                     "height": "200",                     "viewtype": "0",                     "use_iconmap": "1",                     "tags": [],                     "urls": [],                     "elements": []                 },                 {                     "selementid": "12",                     "sysmapid": "3",                     "elementtype": "0",                     "evaltype": "0",                     "iconid_off": "185",                     "iconid_on": "0",                     "label": "{HOST.NAME}\r\n{HOST.CONN}",                     "label_location": "0",                     "x": "111",                     "y": "61",                     "iconid_disabled": "0",                     "iconid_maintenance": "0",                     "elementsubtype": "0",                     "areatype": "0",                     "width": "200",                     "height": "200",                     "viewtype": "0",                     "use_iconmap": "0",                     "tags": [],                     "urls": [],                     "elements": [                         {                             "hostid": "10084"                         }                     ]                 }             ],             "links": [                 {                     "linkid": "23",                     "sysmapid": "3",                     "selementid1": "10",                     "selementid2": "11",                     "drawtype": "0",                     "color": "00CC00",                     "label": "",                     "linktriggers": []                 }             ],             "users": [                 {                     "sysmapuserid": "1",                     "userid": "2",                     "permission": "2"                 }             ],             "userGroups": [                 {                     "sysmapusrgrpid": "1",                     "usrgrpid": "7",                     "permission": "2"                 }             ],             "shapes":[                 {                     "sysmap_shapeid":"1",                     "type":"0",                     "x":"0",                     "y":"0",                     "width":"680",                     "height":"15",                     "text":"{MAP.NAME}",                     "font":"9",                     "font_size":"11",                     "font_color":"000000",                     "text_halign":"0",                     "text_valign":"0",                     "border_type":"0",                     "border_width":"0",                     "border_color":"000000",                     "background_color":"",                     "zindex":"0"                 }             ],             "lines":[                 {                     "sysmap_shapeid":"2",                     "x1": 30,                     "y1": 10,                     "x2": 100,                     "y2": 50,                     "line_type": 1,                     "line_width": 10,                     "line_color": "009900",                     "zindex":"1"                 }             ],             "sysmapid": "3",             "name": "Local network",             "width": "400",             "height": "400",             "backgroundid": "0",             "label_type": "2",             "label_location": "3",             "highlight": "1",             "expandproblem": "1",             "markelements": "0",             "show_unack": "0",             "grid_size": "50",             "grid_show": "1",             "grid_align": "1",             "label_format": "0",             "label_type_host": "2",             "label_type_hostgroup": "2",             "label_type_trigger": "2",             "label_type_map": "2",             "label_type_image": "2",             "label_string_host": "",             "label_string_hostgroup": "",             "label_string_trigger": "",             "label_string_map": "",             "label_string_image": "",             "iconmapid": "0",             "expand_macros": "0",             "severity_min": "0",             "userid": "1",             "private": "1",             "show_suppressed": "1"         }     ],     "id": 1 } ```

en-us	#### Retrieve an icon map  Retrieve all data about icon map "3".  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "iconmap.get",     "params": {         "iconmapids": "3",         "output": "extend",         "selectMappings": "extend"     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "mappings": [                 {                     "iconmappingid": "3",                     "iconmapid": "3",                     "iconid": "6",                     "inventory_link": "1",                     "expression": "server",                     "sortorder": "0"                 },                 {                     "iconmappingid": "4",                     "iconmapid": "3",                     "iconid": "10",                     "inventory_link": "1",                     "expression": "switch",                     "sortorder": "1"                 }             ],             "iconmapid": "3",             "name": "Host type icons",             "default_iconid": "2"         }     ],     "id": 1 } ```
es	#### Recuperar un mapa de iconos  Recupera todos los datos sobre el mapa de iconos "3".  [Solicitud](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "iconmap.get",     "params": {         "iconmapids": "3",         "output": "extend",         "selectMappings": "extend"     },     "id": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "result": [         {             "mappings": [                 {                     "iconmappingid": "3",                     "iconmapid": "3",                     "iconid": "6",                     "inventory_link": "1",                     "expression": "server",                     "sortorder": "0"                 },                 {                     "iconmappingid": "4",                     "iconmapid": "3",                     "iconid": "10",                     "inventory_link": "1",                     "expression": "switch",                     "sortorder": "1"                 }             ],             "iconmapid": "3",             "name": "Host type icons",             "default_iconid": "2"         }     ],     "id": 1 } ```

en-us	#### Retrieve an image  Retrieve all data for image with ID "2".  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "image.get",     "params": {         "output": "extend",         "select_image": true,         "imageids": "2"     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "imageid": "2",             "imagetype": "1",             "name": "Cloud_(24)",             "image": "iVBORw0KGgoAAAANSUhEUgAAABgAAAANCAYAAACzbK7QAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAACmAAAApgBNtNH3wAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAIcSURBVDjLrZLbSxRRHMdPKiEiRQ89CD0s+N5j9BIMEf4Hg/jWexD2ZEXQbC9tWUFZimtLhswuZiVujK1UJmYXW9PaCUdtb83enL3P7s6ss5f5dc7EUsmqkPuFH3M4/Ob7+V0OAgC0UyDENFEU03rh1uNOs/lFG75o2i2/rkd9Y3Tgyj3HiaezbukdH9A/rP4E9vWi0u+Y4fuGnMf3DRgYc3Z/84YrQSkD3mgKhFAC+KAEK74Y2Lj3MjPoOokQ3Xyx/1GHeXCifbfO6lRPH/wi+AvZQhGSsgKxdB5CCRkCGPbDgMXBMbukTc4vK5/WRHizsq7fZl2LFuvE4T0BZDTXHtgv4TNUqlUolsqQL2qQwbDEXzBBTIJ7I4y/cfAENmHZF4XrY9Mc+X9HAFmoyXS2ddy1IOg6/KNyBcM0DFP/wFZFCcOy4N9Mw0YkCTOfhdL5AfZQXQBFn2t/ODXHC8FYVcoWjNEQ03qqwTJ5FdI44jg/msoB2Zd5ZKq3q6evA1FUS60bYyyj3AJf3V72HiLZJQxTtRLk1C2IYEg4mTNg63hPd1mOJd7Ict911OMNlWEf0nFxpCt16zcshTuLpGSwDDuPIfv0xzNyQYVGicC0cgUUDLM6Xp02lvvW/V2EBssnxlSGmWsxljw0znV9XfPLjTCW84r+cn7Jc8c2eWrbM6Wbe6/aTJbhJ/TNkWc9/xXW592Xb9iPkKnUfH8BKdLgFy0lDyQAAAAASUVORK5CYII="         }     ],     "id": 1 } ```
es	#### Recuperar una imagen  Recupere todos los datos de la imagen con ID "2".  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "image.get",     "params": {         "output": "extend",         "select_image": true,         "imageids": "2"     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "imageid": "2",             "imagetype": "1",             "name": "Cloud_(24)",             "image": "iVBORw0KGgoAAAANSUhEUgAAABgAAAANCAYAAACzbK7QAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAACmAAAApgBNtNH3wAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAIcSURBVDjLrZLbSxRRHMdPKiEiRQ89CD0s+N5j9BIMEf4Hg/jWexD2ZEXQbC9tWUFZimtLhswuZiVujK1UJmYXW9PaCUdtb83enL3P7s6ss5f5dc7EUsmqkPuFH3M4/Ob7+V0OAgC0UyDENFEU03rh1uNOs/lFG75o2i2/rkd9Y3Tgyj3HiaezbukdH9A/rP4E9vWi0u+Y4fuGnMf3DRgYc3Z/84YrQSkD3mgKhFAC+KAEK74Y2Lj3MjPoOokQ3Xyx/1GHeXCifbfO6lRPH/wi+AvZQhGSsgKxdB5CCRkCGPbDgMXBMbukTc4vK5/WRHizsq7fZl2LFuvE4T0BZDTXHtgv4TNUqlUolsqQL2qQwbDEXzBBTIJ7I4y/cfAENmHZF4XrY9Mc+X9HAFmoyXS2ddy1IOg6/KNyBcM0DFP/wFZFCcOy4N9Mw0YkCTOfhdL5AfZQXQBFn2t/ODXHC8FYVcoWjNEQ03qqwTJ5FdI44jg/msoB2Zd5ZKq3q6evA1FUS60bYyyj3AJf3V72HiLZJQxTtRLk1C2IYEg4mTNg63hPd1mOJd7Ict911OMNlWEf0nFxpCt16zcshTuLpGSwDDuPIfv0xzNyQYVGicC0cgUUDLM6Xp02lvvW/V2EBssnxlSGmWsxljw0znV9XfPLjTCW84r+cn7Jc8c2eWrbM6Wbe6/aTJbhJ/TNkWc9/xXW592Xb9iPkKnUfH8BKdLgFy0lDyQAAAAASUVORK5CYII="         }     ],     "id": 1 } ```

en-us	### Retrieve an item value via API  The widget should show the last value of an item of user's choice. For that, you need to add the ability to select items in the widget configuration.  In this section, you will learn how to add an item selection field to the widget form and how to add the visual part of this field to the configuration view. Then, the widget controller will be able to retrieve item data and its value via an API request. Once received, the value can be displayed in the widget view.  1. Open *includes/WidgetForm.php* and add the *CWidgetFieldMultiSelectItem* field. This will allow selecting an item in the configuration form.  **ui/modules/lesson_gauge_chart/includes/WidgetForm.php**  ```php <?php  namespace Modules\LessonGaugeChart\Includes;  use Zabbix\Widgets\{     CWidgetField,     CWidgetForm };  use Zabbix\Widgets\Fields\{     CWidgetFieldMultiSelectItem,     CWidgetFieldTextBox };  /**  * Gauge chart widget form.  */ class WidgetForm extends CWidgetForm {          public function addFields(): self {         return $this             ->addField(                 (new CWidgetFieldMultiSelectItem('itemid', _('Item')))                     ->setFlags(CWidgetField::FLAG_NOT_EMPTY | CWidgetField::FLAG_LABEL_ASTERISK)                     ->setMultiple(false)             )             ->addField(                 new CWidgetFieldTextBox('description', _('Description'))             );     } } ```  2. Open *views/widget.edit.php* and add the field visual component to the configuration view.  **ui/modules/lesson_gauge_chart/views/widget.edit.php**  ```php <?php  /**  * Gauge chart widget form view.  *  * @var CView $this  * @var array $data  */  (new CWidgetFormView($data))     ->addField(         new CWidgetFieldMultiSelectItemView($data['fields']['itemid'])     )     ->addField(         new CWidgetFieldTextBoxView($data['fields']['description'])     )     ->show(); ```  3. Return to the dashboard and click on the gear icon in the widget to open the widget configuration form.  4. The widget configuration form now contains a new input field *Item*. Select the host "Zabbix server" and the item "Load average (1m avg)".  ![](../../../../assets/en/devel/modules/tutorials/widget/widget_conf_item.png){width=600}  5. Click on *Apply* in the widget configuration form. Then click on *Save changes* in the top right corner to save the dashboard.  6. Open and modify *actions/WidgetView.php*.  From now on, the item ID will be available in the widget controller in *$this->fields\_values\['itemid'\]*. The *doAction()* controller method collects the item data (name, value type, units) using the API method *[item.get](/manual/api/reference/item/get)* and the item last value using the API method *[history.get](/manual/api/reference/history/get)*.  **ui/modules/lesson_gauge_chart/actions/WidgetView.php**  ```php <?php  namespace Modules\LessonGaugeChart\Actions;  use API,     CControllerDashboardWidgetView,     CControllerResponseData;  class WidgetView extends CControllerDashboardWidgetView {      protected function doAction(): void {         $db_items = API::Item()->get([             'output' => ['itemid', 'value_type', 'name', 'units'],             'itemids' => $this->fields_values['itemid'],             'webitems' => true,             'filter' => [                 'value_type' => [ITEM_VALUE_TYPE_UINT64, ITEM_VALUE_TYPE_FLOAT]             ]         ]);          $value = null;          if ($db_items) {             $item = $db_items[0];              $history = API::History()->get([                 'output' => API_OUTPUT_EXTEND,                 'itemids' => $item['itemid'],                 'history' => $item['value_type'],                 'sortfield' => 'clock',                 'sortorder' => ZBX_SORT_DOWN,                 'limit' => 1             ]);              if ($history) {                 $value = convertUnitsRaw([                     'value' => $history[0]['value'],                     'units' => $item['units']                 ]);             }         }          $this->setResponse(new CControllerResponseData([             'name' => $this->getInput('name', $this->widget->getName()),             'value' => $value,             'description' => $this->fields_values['description'],             'user' => [                 'debug_mode' => $this->getDebugMode()             ]         ]));     } } ```  7. Open *views/widget.view.php* and add the item value to the widget view.  **ui/modules/lesson_gauge_chart/views/widget.view.php**  ```php <?php  /**  * Gauge chart widget view.  *  * @var CView $this  * @var array $data  */  (new CWidgetView($data))     ->addItem([         new CTag('h1', true, $data['description']),         new CDiv($data['value'] !== null ? $data['value']['value'] : _('No data'))     ])     ->show(); ```  8. Refresh the dashboard page. The widget will display the latest item value.  ![](../../../../assets/en/devel/modules/tutorials/widget/widget_view_item.png){width="600"}
es	### Recuperar el valor de una métrica a través de API  El widget debe mostrar el último valor de una métrica elegida por el usuario. Para eso, debe agregar la capacidad de seleccionar métricas en la configuración del widget.  En esta sección, aprenderá cómo agregar un campo de selección de métricas al formulario del widget y cómo agregar la parte visual de este campo a la vista de configuración. Luego, el controlador del widget podrá recuperar los datos de la métrica y su valor mediante una solicitud API. Una vez recibido, el valor se puede mostrar en la vista del widget.  1. Abra *includes/WidgetForm.php* y agregue el campo *CWidgetFieldMultiSelectItem*. Esto permitirá seleccionar una métrica en el formulario de configuración.  **ui/modules/lesson_gauge_chart/includes/WidgetForm.php**  ```php <?php  namespace Modules\LessonGaugeChart\Includes;  use Zabbix\Widgets\{     CWidgetField,     CWidgetForm };  use Zabbix\Widgets\Fields\{     CWidgetFieldMultiSelectItem,     CWidgetFieldTextBox };  /**  * Gauge chart widget form.  */ class WidgetForm extends CWidgetForm {          public function addFields(): self {         return $this             ->addField(                 (new CWidgetFieldMultiSelectItem('itemid', _('Item')))                     ->setFlags(CWidgetField::FLAG_NOT_EMPTY | CWidgetField::FLAG_LABEL_ASTERISK)                     ->setMultiple(false)             )             ->addField(                 new CWidgetFieldTextBox('description', _('Description'))             );     } } ```  2. Abra *views/widget.edit.php* y agregue el componente visual de campo a la vista de configuración.  **ui/modules/lesson_gauge_chart/views/widget.edit.php**  ```php <?php  /**  * Gauge chart widget form view.  *  * @var CView $this  * @var array $data  */  (new CWidgetFormView($data))     ->addField(         new CWidgetFieldMultiSelectItemView($data['fields']['itemid'])     )     ->addField(         new CWidgetFieldTextBoxView($data['fields']['description'])     )     ->show(); ```  3. Regrese al tablero y haga clic en el ícono de ajustes en el widget para abrir el formulario de configuración del widget.  4. El formulario de configuración del widget ahora contiene un nuevo campo de entrada *Métrica*. Seleccione el equipo "Servidor Zabbix" y la métrica "Promedio de carga (promedio de 1 m)".  ![](../../../../assets/en/devel/modules/tutorials/widget/widget_conf_item.png){width=600}  5. Haga clic en *Aplicar* en el formulario de configuración del widget. Luego haga clic en *Guardar cambios* en la esquina superior derecha para guardar el tablero.  6. Abra y modifique *actions/WidgetView.php*.  De ahora en adelante, el ID de la métrica estará disponible en el controlador del widget en *$this->fields\_values\['itemid'\]*. El método del controlador *doAction()* recopila los datos de la métrica (nombre, tipo de valor, unidades) usando el método API *[item.get](/manual/api/reference/item/get)* y el último valor de la métrica usando el Método API *[history.get](/manual/api/reference/history/get)*.  **ui/modules/lesson_gauge_chart/actions/WidgetView.php**  ```php <?php  namespace Modules\LessonGaugeChart\Actions;  use API,     CControllerDashboardWidgetView,     CControllerResponseData;  class WidgetView extends CControllerDashboardWidgetView {      protected function doAction(): void {         $db_items = API::Item()->get([             'output' => ['itemid', 'value_type', 'name', 'units'],             'itemids' => $this->fields_values['itemid'],             'webitems' => true,             'filter' => [                 'value_type' => [ITEM_VALUE_TYPE_UINT64, ITEM_VALUE_TYPE_FLOAT]             ]         ]);          $value = null;          if ($db_items) {             $item = $db_items[0];              $history = API::History()->get([                 'output' => API_OUTPUT_EXTEND,                 'itemids' => $item['itemid'],                 'history' => $item['value_type'],                 'sortfield' => 'clock',                 'sortorder' => ZBX_SORT_DOWN,                 'limit' => 1             ]);              if ($history) {                 $value = convertUnitsRaw([                     'value' => $history[0]['value'],                     'units' => $item['units']                 ]);             }         }          $this->setResponse(new CControllerResponseData([             'name' => $this->getInput('name', $this->widget->getName()),             'value' => $value,             'description' => $this->fields_values['description'],             'user' => [                 'debug_mode' => $this->getDebugMode()             ]         ]));     } } ```  7. Abra *views/widget.view.php* y agregue el valor de la métrica a la vista del widget.  **ui/modules/lesson_gauge_chart/views/widget.view.php**  ```php <?php  /**  * Gauge chart widget view.  *  * @var CView $this  * @var array $data  */  (new CWidgetView($data))     ->addItem([         new CTag('h1', true, $data['description']),         new CDiv($data['value'] !== null ? $data['value']['value'] : _('No data'))     ])     ->show(); ```  8. Actualice la página del tablero. El widget mostrará el último valor de la métrica.  ![](../../../../assets/en/devel/modules/tutorials/widget/widget_view_item.png){width="600"}

en-us	#### Retrieve a token  Retrieve all data for the token with ID "2".  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "token.get",     "params": {         "output": "extend",         "tokenids": "2"     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "tokenid": "1",             "name": "The Token",             "description": "",             "userid": "1",             "lastaccess": "0",             "status": "0",             "expires_at": "1609406220",             "created_at": "1611239454",             "creator_userid": "1"         }     ],     "id": 1 } ```
es	#### Recuperar un token  Recupere todos los datos del token con ID "2".  [Solicitud](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "token.get",     "params": {         "output": "extend",         "tokenids": "2"     },     "id": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "result": [         {             "tokenid": "1",             "name": "The Token",             "description": "",             "userid": "1",             "lastaccess": "0",             "status": "0",             "expires_at": "1609406220",             "created_at": "1611239454",             "creator_userid": "1"         }     ],     "id": 1 } ```

en-us	#### Retrieve audit log  Retrieve two latest audit log records.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "auditlog.get",     "params": {         "output": "extend",         "sortfield": "clock",         "sortorder": "DESC",         "limit": 2     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "auditid": "cksstgfam0001yhdcc41y20q2",             "userid": "1",             "username": "Admin",             "clock": "1629975715",             "ip": "127.0.0.1",             "action": "1",             "resourcetype": "0",             "resourceid": "0",             "resourcename": "Jim",             "recordsetid": "cksstgfal0000yhdcso67ondl",             "details": "{\"user.name\":[\"update\",\"Jim\",\"\"],\"user.medias[37]\":[\"add\"],\"user.medias[37].\":[\"add\"],\"user.medias[37].mediatypeid\":[\"add\",\"1\"],\"user.medias[37].sendto\":[\"add\",\"support123@company.com\"]}"         },         {             "auditid": "ckssofl0p0001yhdcqxclsg8r",             "userid": "1",             "username": "Admin",             "clock": "1629967278",             "ip": "127.0.0.1",             "action": "0",             "resourcetype": "0",             "resourceid": "20",             "resourcename": "John",             "recordsetid": "ckssofl0p0000yhdcpxyo1jgo",             "details": "{\"user.username\":[\"add\",\"John\"], \"user.userid:\":[\"add\",\"20\"],\"user.usrgrps[28]\":[\"add\"],\"user.usrgrps[28].usrgrpid\":[\"add\", \"7\"]}"         }     ],     "id": 1 } ```
es	#### Recuperar registro de auditoría  Recupere los dos registros de auditoría más recientes.  [Solicitud](/manual/api#performing-requests):  ```json { "jsonrpc": "2.0", "method": "auditlog.get", "params": { "output": "extend", "sortfield": "clock", "sortorder": "DESC", "limit": 2 }, "id": 1 } ```  Respuesta:  ```json { "jsonrpc": "2.0", "result": [ { "auditid": "cksstgfam0001yhdcc41y20q2", "userid": "1", "username": "Admin", "clock": "1629975715", "ip": "127.0.0.1", "action": "1", "resourcetype": "0", "resourceid": "0", "resourcename": "Jim", "recordsetid": "cksstgfal0000yhdcso67ondl", "details": "{\"user.name\":[\"update\",\"Jim\",\"\"],\"user.medias[37]\":[\"add\"],\"user.medias[37].\":[\"add\"],\"user.medias[37].mediatypeid\":[\"add\",\"1\"],\"user.medias[37].sendto\":[\"add\",\"support123@company.com\"]}" }, { "auditid": "ckssofl0p0001yhdcqxclsg8r", "userid": "1", "username": "Admin", "clock": "1629967278", "ip": "127.0.0.1", "action": "0", "resourcetype": "0", "resourceid": "20", "resourcename": "John", "recordsetid": "ckssofl0p0000yhdcpxyo1jgo", "details": "{\"user.username\":[\"add\",\"John\"], \"user.userid:\":[\"add\",\"20\"],\"user.usrgrps[28]\":[\"add\"],\"user.usrgrps[28].usrgrpid\":[\"add\", \"7\"]}" } ], "id": 1 } ```

en-us	#### Retrieve correlations  Retrieve all configured correlations together with correlation conditions and operations. The filter uses the "and/or" evaluation type, so the `formula` property is empty and `eval_formula` is generated automatically.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "correlation.get",     "params": {         "output": "extend",         "selectOperations": "extend",         "selectFilter": "extend"     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "correlationid": "1",             "name": "Correlation 1",             "description": "",             "status": "0",             "filter": {                 "evaltype": "0",                 "formula": "",                 "conditions": [                     {                         "type": "3",                         "oldtag": "error",                         "newtag": "ok",                         "formulaid": "A"                     }                 ],                 "eval_formula": "A"             },             "operations": [                 {                     "type": "0"                 }             ]         }     ],     "id": 1 } ```
es	#### Recuperar correlaciones  Recuperar todas las correlaciones configuradas junto con las  condiciones y operaciones de la correlación. El filtro utiliza el tipo de evaluación "y/o", entonces la propiedad `fórmula` está vacía y se genera `eval_formula` automáticamente.  [Solicitud](/manual/api#performing-requests):  ```json { "jsonrpc": "2.0", "method": "correlation.get", "params": { "output": "extend", "selectOperations": "extend", "selectFilter": "extend" }, "id": 1 } ```  Respuesta:  ```json { "jsonrpc": "2.0", "result": [ { "correlationid": "1", "name": "Correlation 1", "description": "", "status": "0", "filter": { "evaltype": "0", "formula": "", "conditions": [ { "type": "3", "oldtag": "error", "newtag": "ok", "formulaid": "A" } ], "eval_formula": "A" }, "operations": [ { "type": "0" } ] } ], "id": 1 } ```

en-us	#### Retrieve discovered hosts by discovery rule  Retrieve all hosts and the discovered services they are running that have been detected by discovery rule "4".  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "dhost.get",     "params": {         "output": "extend",         "selectDServices": "extend",         "druleids": "4"     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "dservices": [                 {                     "dserviceid": "1",                     "dhostid": "1",                     "type": "4",                     "key_": "",                     "value": "",                     "port": "80",                     "status": "0",                     "lastup": "1337697227",                     "lastdown": "0",                     "dcheckid": "5",                     "ip": "192.168.1.1",                     "dns": "station.company.lan"                 }             ],             "dhostid": "1",             "druleid": "4",             "status": "0",             "lastup": "1337697227",             "lastdown": "0"         },         {             "dservices": [                 {                     "dserviceid": "2",                     "dhostid": "2",                     "type": "4",                     "key_": "",                     "value": "",                     "port": "80",                     "status": "0",                     "lastup": "1337697234",                     "lastdown": "0",                     "dcheckid": "5",                     "ip": "192.168.1.4",                     "dns": "john.company.lan"                 }             ],             "dhostid": "2",             "druleid": "4",             "status": "0",             "lastup": "1337697234",             "lastdown": "0"         },         {             "dservices": [                 {                     "dserviceid": "3",                     "dhostid": "3",                     "type": "4",                     "key_": "",                     "value": "",                     "port": "80",                     "status": "0",                     "lastup": "1337697234",                     "lastdown": "0",                     "dcheckid": "5",                     "ip": "192.168.1.26",                     "dns": "printer.company.lan"                 }             ],             "dhostid": "3",             "druleid": "4",             "status": "0",             "lastup": "1337697234",             "lastdown": "0"         },         {             "dservices": [                 {                     "dserviceid": "4",                     "dhostid": "4",                     "type": "4",                     "key_": "",                     "value": "",                     "port": "80",                     "status": "0",                     "lastup": "1337697234",                     "lastdown": "0",                     "dcheckid": "5",                     "ip": "192.168.1.7",                     "dns": "mail.company.lan"                 }             ],             "dhostid": "4",             "druleid": "4",             "status": "0",             "lastup": "1337697234",             "lastdown": "0"         }     ],     "id": 1 } ```
es	#### Recuperar equipos descubiertos mediante regla de descubrimiento  Recuperar todos los equipos y los servicios descubiertos que han sido detectados por la regla de descubrimiento "4".  [Solicitud](/manual/api#performing-requests):  ```json { "jsonrpc": "2.0", "method": "dhost.get", "params": { "output": "extend", "selectDServices": "extend", "druleids": "4" }, "id": 1 } ```  Respuesta:  ```json { "jsonrpc": "2.0", "result": [ { "dservices": [ { "dserviceid": "1", "dhostid": "1", "type": "4", "key_": "", "value": "", "port": "80", "status": "0", "lastup": "1337697227", "lastdown": "0", "dcheckid": "5", "ip": "192.168.1.1", "dns": "station.company.lan" } ], "dhostid": "1", "druleid": "4", "status": "0", "lastup": "1337697227", "lastdown": "0" }, { "dservices": [ { "dserviceid": "2", "dhostid": "2", "type": "4", "key_": "", "value": "", "port": "80", "status": "0", "lastup": "1337697234", "lastdown": "0", "dcheckid": "5", "ip": "192.168.1.4", "dns": "john.company.lan" } ], "dhostid": "2", "druleid": "4", "status": "0", "lastup": "1337697234", "lastdown": "0" }, { "dservices": [ { "dserviceid": "3", "dhostid": "3", "type": "4", "key_": "", "value": "", "port": "80", "status": "0", "lastup": "1337697234", "lastdown": "0", "dcheckid": "5", "ip": "192.168.1.26", "dns": "printer.company.lan" } ], "dhostid": "3", "druleid": "4", "status": "0", "lastup": "1337697234", "lastdown": "0" }, { "dservices": [ { "dserviceid": "4", "dhostid": "4", "type": "4", "key_": "", "value": "", "port": "80", "status": "0", "lastup": "1337697234", "lastdown": "0", "dcheckid": "5", "ip": "192.168.1.7", "dns": "mail.company.lan" } ], "dhostid": "4", "druleid": "4", "status": "0", "lastup": "1337697234", "lastdown": "0" } ], "id": 1 } ```

en-us	#### Retrieve discovery actions  Retrieve all configured discovery actions together with action conditions and operations. The filter uses the "and" evaluation type, so the `formula` property is empty and `eval_formula` is generated automatically.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "action.get",     "params": {         "output": "extend",         "selectOperations": "extend",         "selectFilter": "extend",         "filter": {             "eventsource": 1         }     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "actionid": "2",             "name": "Auto discovery. Linux servers.",             "eventsource": "1",             "status": "1",             "esc_period": "0s",             "pause_suppressed": "1",             "filter": {                 "evaltype": "0",                 "formula": "",                 "conditions": [                     {                         "conditiontype": "10",                         "operator": "0",                         "value": "0",                         "value2": "",                         "formulaid": "B"                     },                     {                         "conditiontype": "8",                         "operator": "0",                         "value": "9",                         "value2": "",                         "formulaid": "C"                     },                     {                         "conditiontype": "12",                         "operator": "2",                         "value": "Linux",                         "value2": "",                         "formulaid": "A"                     }                 ],                 "eval_formula": "A and B and C"             },             "operations": [                 {                     "operationid": "1",                     "actionid": "2",                     "operationtype": "6",                     "esc_period": "0s",                     "esc_step_from": "1",                     "esc_step_to": "1",                     "evaltype": "0",                     "opconditions": [],                     "optemplate": [                         {                             "templateid": "10001"                         }                     ]                 },                 {                     "operationid": "2",                     "actionid": "2",                     "operationtype": "4",                     "esc_period": "0s",                     "esc_step_from": "1",                     "esc_step_to": "1",                     "evaltype": "0",                     "opconditions": [],                     "opgroup": [                         {                             "groupid": "2"                         }                     ]                 }             ]         }     ],     "id": 1 } ```
es	#### Recuperar acciones de descubrimiento  Recuperar todas las acciones de descubrimiento configuradas junto con las condiciones y operaciones de la acción. El filtro utiliza el tipo de evaluación "y", por lo que la propiedad `formula` está vacía y se genera `eval_formula` automáticamente.  [Solicitud](/manual/api#performing-requests):  ```json { "jsonrpc": "2.0", "method": "action.get", "params": { "output": "extend", "selectOperations": "extend", "selectFilter": "extend", "filter": { "eventsource": 1 } }, "id": 1 } ```  Respuesta:  ```json { "jsonrpc": "2.0", "result": [ { "actionid": "2", "name": "Auto discovery. Linux servers.", "eventsource": "1", "status": "1", "esc_period": "0s", "pause_suppressed": "1", "filter": { "evaltype": "0", "formula": "", "conditions": [ { "conditiontype": "10", "operator": "0", "value": "0", "value2": "", "formulaid": "B" }, { "conditiontype": "8", "operator": "0", "value": "9", "value2": "", "formulaid": "C" }, { "conditiontype": "12", "operator": "2", "value": "Linux", "value2": "", "formulaid": "A" } ], "eval_formula": "A and B and C" }, "operations": [ { "operationid": "1", "actionid": "2", "operationtype": "6", "esc_period": "0s", "esc_step_from": "1", "esc_step_to": "1", "evaltype": "0", "opconditions": [], "optemplate": [ { "templateid": "10001" } ] }, { "operationid": "2", "actionid": "2", "operationtype": "4", "esc_period": "0s", "esc_step_from": "1", "esc_step_to": "1", "evaltype": "0", "opconditions": [], "opgroup": [ { "groupid": "2" } ] } ] } ], "id": 1 } ```

en-us	#### Retrieve discovery checks for a discovery rule  Retrieve all discovery checks used by discovery rule "6".  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "dcheck.get",     "params": {         "output": "extend",         "dcheckids": "6"     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "dcheckid": "6",             "druleid": "4",             "type": "3",             "key_": "",             "snmp_community": "",             "ports": "21",             "snmpv3_securityname": "",             "snmpv3_securitylevel": "0",             "snmpv3_authpassphrase": "",             "snmpv3_privpassphrase": "",             "uniq": "0",             "snmpv3_authprotocol": "0",             "snmpv3_privprotocol": "0",             "snmpv3_contextname": "",             "host_source": "1",             "name_source": "0",             "allow_redirect": "0"         }     ],     "id": 1 } ```
es	#### Recuperar comprobaciones de descubrimiento para una regla de descubrimiento  Recupere todas las comprobaciones de descubrimiento utilizadas por la regla de descubrimiento "6".  [Solicitud](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "dcheck.get",     "params": {         "output": "extend",         "dcheckids": "6"     },     "id": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "result": [         {             "dcheckid": "6",             "druleid": "4",             "type": "3",             "key_": "",             "snmp_community": "",             "ports": "21",             "snmpv3_securityname": "",             "snmpv3_securitylevel": "0",             "snmpv3_authpassphrase": "",             "snmpv3_privpassphrase": "",             "uniq": "0",             "snmpv3_authprotocol": "0",             "snmpv3_privprotocol": "0",             "snmpv3_contextname": "",             "host_source": "1",             "name_source": "0",             "allow_redirect": "0"         }     ],     "id": 1 } ```

en-us	#### Retrieve host interfaces  Retrieve all data about the interfaces used by host "30057."  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "hostinterface.get",     "params": {         "output": "extend",         "hostids": "30057"     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "interfaceid": "50039",             "hostid": "30057",             "main": "1",             "type": "1",             "useip": "1",             "ip": "::1",             "dns": "",             "port": "10050",             "available": "0",             "error": "",             "errors_from": "0",             "disable_until": "0",             "details": []         },         {             "interfaceid": "55082",             "hostid": "30057",             "main": "0",             "type": "1",             "useip": "1",             "ip": "127.0.0.1",             "dns": "",             "port": "10051",             "available": "0",             "error": "",             "errors_from": "0",             "disable_until": "0",             "details": {                 "version": "2",                 "bulk": "0",                 "community": "{$SNMP_COMMUNITY}"             }         }     ],     "id": 1 } ```
es	#### Recuperar interfaces de equipo  Recupere todos los datos sobre las interfaces utilizadas por el equipo "30057".  [Solicitud](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "hostinterface.get",     "params": {         "output": "extend",         "hostids": "30057"     },     "id": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "result": [         {             "interfaceid": "50039",             "hostid": "30057",             "main": "1",             "type": "1",             "useip": "1",             "ip": "::1",             "dns": "",             "port": "10050",             "available": "0",             "error": "",             "errors_from": "0",             "disable_until": "0",             "details": []         },         {             "interfaceid": "55082",             "hostid": "30057",             "main": "0",             "type": "1",             "useip": "1",             "ip": "127.0.0.1",             "dns": "",             "port": "10051",             "available": "0",             "error": "",             "errors_from": "0",             "disable_until": "0",             "details": {                 "version": "2",                 "bulk": "0",                 "community": "{$SNMP_COMMUNITY}"             }         }     ],     "id": 1 } ```

en-us	#### Retrieve LLD rule by URL  Retrieve LLD rule for host by rule URL field value. Only exact match of URL string defined for LLD rule is supported.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "discoveryrule.get",     "params": {         "hostids": "10257",         "filter": {             "type": 19,             "url": "http://127.0.0.1/discoverer.php"         }     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "itemid": "28336",             "type": "19",             "snmp_oid": "",             "hostid": "10257",             "name": "API HTTP agent",             "key_": "api_discovery_rule",             "delay": "5s",             "status": "0",             "trapper_hosts": "",             "templateid": "0",             "valuemapid": "0",             "params": "",             "ipmi_sensor": "",             "authtype": "0",             "username": "",             "password": "",             "publickey": "",             "privatekey": "",             "interfaceid": "5",             "description": "",             "lifetime": "30d",             "jmx_endpoint": "",             "master_itemid": "0",             "timeout": "",             "url": "http://127.0.0.1/discoverer.php",             "query_fields": [                 {                     "name": "mode",                     "value": "json"                 },                 {                     "name": "elements",                     "value": "2"                 }             ],             "posts": "",             "status_codes": "200",             "follow_redirects": "1",             "post_type": "0",             "http_proxy": "",             "headers": [                 {                     "name" : "X-Type",                     "value": "api"                 },                 {                     "name": "Authorization",                     "value": "Bearer mF_A.B5f-2.1JcM"                 }             ],             "retrieve_mode": "0",             "request_method": "1",             "ssl_cert_file": "",             "ssl_key_file": "",             "ssl_key_password": "",             "verify_peer": "0",             "verify_host": "0",             "allow_traps": "0",             "uuid": "",             "lifetime_type": "0",             "enabled_lifetime_type": "2",             "enabled_lifetime": "0",             "state": "0",             "error": "",             "parameters": []         }     ],     "id": 1 } ```
es	#### Recuperar regla LLD por URL  Recuperar regla LLD para equipo por valor del campo de regla URL. Solo se admite la coincidencia exacta de la cadena URL definida para la regla LLD.  [Solicitud](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "discoveryrule.get",     "params": {         "hostids": "10257",         "filter": {             "type": 19,             "url": "http://127.0.0.1/discoverer.php"         }     },     "id": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "result": [         {             "itemid": "28336",             "type": "19",             "snmp_oid": "",             "hostid": "10257",             "name": "API HTTP agent",             "key_": "api_discovery_rule",             "delay": "5s",             "status": "0",             "trapper_hosts": "",             "templateid": "0",             "valuemapid": "0",             "params": "",             "ipmi_sensor": "",             "authtype": "0",             "username": "",             "password": "",             "publickey": "",             "privatekey": "",             "interfaceid": "5",             "description": "",             "lifetime": "30d",             "jmx_endpoint": "",             "master_itemid": "0",             "timeout": "",             "url": "http://127.0.0.1/discoverer.php",             "query_fields": [                 {                     "name": "mode",                     "value": "json"                 },                 {                     "name": "elements",                     "value": "2"                 }             ],             "posts": "",             "status_codes": "200",             "follow_redirects": "1",             "post_type": "0",             "http_proxy": "",             "headers": [                 {                     "name" : "X-Type",                     "value": "api"                 },                 {                     "name": "Authorization",                     "value": "Bearer mF_A.B5f-2.1JcM"                 }             ],             "retrieve_mode": "0",             "request_method": "1",             "ssl_cert_file": "",             "ssl_key_file": "",             "ssl_key_password": "",             "verify_peer": "0",             "verify_host": "0",             "allow_traps": "0",             "uuid": "",             "lifetime_type": "0",             "enabled_lifetime_type": "2",             "enabled_lifetime": "0",             "state": "0",             "error": "",             "parameters": []         }     ],     "id": 1 } ```

en-us	#### Retrieve LLD rule with overrides  Retrieve one LLD rule that has various override settings.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "discoveryrule.get",     "params": {         "output": ["name"],         "itemids": "30980",         "selectOverrides": ["name", "step", "stop", "filter", "operations"]     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "name": "Discover database host",             "overrides": [                 {                     "name": "Discover MySQL host",                     "step": "1",                     "stop": "1",                     "filter": {                         "evaltype": "2",                         "formula": "",                         "conditions": [                             {                                 "macro": "{#UNIT.NAME}",                                 "operator": "8",                                 "value": "^mysqld\\.service$",                                 "formulaid": "A"                             },                             {                                 "macro": "{#UNIT.NAME}",                                 "operator": "8",                                 "value": "^mariadb\\.service$",                                 "formulaid": "B"                             }                         ],                         "eval_formula": "A or B"                     },                     "operations": [                         {                             "operationobject": "3",                             "operator": "2",                             "value": "Database host",                             "opstatus": {                                 "status": "0"                             },                             "optag": [                                 {                                     "tag": "Database",                                     "value": "MySQL"                                 }                             ],                             "optemplate": [                                 {                                     "templateid": "10170"                                 }                             ]                         }                     ]                 },                 {                     "name": "Discover PostgreSQL host",                     "step": "2",                     "stop": "1",                     "filter": {                         "evaltype": "0",                         "formula": "",                         "conditions": [                             {                                 "macro": "{#UNIT.NAME}",                                 "operator": "8",                                 "value": "^postgresql\\.service$",                                 "formulaid": "A"                             }                         ],                         "eval_formula": "A"                     },                     "operations": [                         {                             "operationobject": "3",                             "operator": "2",                             "value": "Database host",                             "opstatus": {                                 "status": "0"                             },                             "optag": [                                 {                                     "tag": "Database",                                     "value": "PostgreSQL"                                 }                             ],                             "optemplate": [                                 {                                     "templateid": "10263"                                 }                             ]                         }                     ]                 }             ]         }     ],     "id": 1 } ```
es	#### Recuperar regla LLD con anulaciones  Recupere una regla LLD que tenga varias configuraciones de anulación.  [Solicitud](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "discoveryrule.get",     "params": {         "output": ["name"],         "itemids": "30980",         "selectOverrides": ["name", "step", "stop", "filter", "operations"]     },     "id": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "result": [         {             "name": "Discover database host",             "overrides": [                 {                     "name": "Discover MySQL host",                     "step": "1",                     "stop": "1",                     "filter": {                         "evaltype": "2",                         "formula": "",                         "conditions": [                             {                                 "macro": "{#UNIT.NAME}",                                 "operator": "8",                                 "value": "^mysqld\\.service$",                                 "formulaid": "A"                             },                             {                                 "macro": "{#UNIT.NAME}",                                 "operator": "8",                                 "value": "^mariadb\\.service$",                                 "formulaid": "B"                             }                         ],                         "eval_formula": "A or B"                     },                     "operations": [                         {                             "operationobject": "3",                             "operator": "2",                             "value": "Database host",                             "opstatus": {                                 "status": "0"                             },                             "optag": [                                 {                                     "tag": "Database",                                     "value": "MySQL"                                 }                             ],                             "optemplate": [                                 {                                     "templateid": "10170"                                 }                             ]                         }                     ]                 },                 {                     "name": "Discover PostgreSQL host",                     "step": "2",                     "stop": "1",                     "filter": {                         "evaltype": "0",                         "formula": "",                         "conditions": [                             {                                 "macro": "{#UNIT.NAME}",                                 "operator": "8",                                 "value": "^postgresql\\.service$",                                 "formulaid": "A"                             }                         ],                         "eval_formula": "A"                     },                     "operations": [                         {                             "operationobject": "3",                             "operator": "2",                             "value": "Database host",                             "opstatus": {                                 "status": "0"                             },                             "optag": [                                 {                                     "tag": "Database",                                     "value": "PostgreSQL"                                 }                             ],                             "optemplate": [                                 {                                     "templateid": "10263"                                 }                             ]                         }                     ]                 }             ]         }     ],     "id": 1 } ```

en-us	 #### Retrieve script and webhook media types  The following example returns three media types:  -   script media type with parameters; -   script media type without parameters; -   webhook media type with parameters.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "mediatype.get",     "params": {         "output": ["mediatypeid", "name", "parameters"],         "filter": {             "type": [1, 4]         }     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "mediatypeid": "10",             "name": "Script with parameters",             "parameters": [                 {                     "sortorder": "0",                     "value": "{ALERT.SENDTO}"                 },                 {                     "sortorder": "1",                     "value": "{EVENT.NAME}"                 },                 {                     "sortorder": "2",                     "value": "{ALERT.MESSAGE}"                 },                 {                     "sortorder": "3",                     "value": "Zabbix alert"                 }             ]         },         {             "mediatypeid": "13",             "name": "Script without parameters",             "parameters": []         },         {             "mediatypeid": "11",             "name": "Webhook",             "parameters": [                 {                     "name": "alert_message",                     "value": "{ALERT.MESSAGE}"                 },                 {                     "name": "event_update_message",                     "value": "{EVENT.UPDATE.MESSAGE}"                 },                 {                     "name": "host_name",                     "value": "{HOST.NAME}"                 },                 {                     "name": "trigger_description",                     "value": "{TRIGGER.DESCRIPTION}"                 },                 {                     "name": "trigger_id",                     "value": "{TRIGGER.ID}"                 },                 {                     "name": "alert_source",                     "value": "Zabbix"                 }             ]         }     ],     "id": 1 } ```
es	 #### Recuperar tipos de medios de script y webhook  El siguiente ejemplo devuelve tres tipos de medios:  - tipo de medio script con parámetros; - tipo de medio script sin parámetros; - tipo de medio de webhook con parámetros.  [Solicitud](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "mediatype.get",     "params": {         "output": ["mediatypeid", "name", "parameters"],         "filter": {             "type": [1, 4]         }     },     "id": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "result": [         {             "mediatypeid": "10",             "name": "Script with parameters",             "parameters": [                 {                     "sortorder": "0",                     "value": "{ALERT.SENDTO}"                 },                 {                     "sortorder": "1",                     "value": "{EVENT.NAME}"                 },                 {                     "sortorder": "2",                     "value": "{ALERT.MESSAGE}"                 },                 {                     "sortorder": "3",                     "value": "Zabbix alert"                 }             ]         },         {             "mediatypeid": "13",             "name": "Script without parameters",             "parameters": []         },         {             "mediatypeid": "11",             "name": "Webhook",             "parameters": [                 {                     "name": "alert_message",                     "value": "{ALERT.MESSAGE}"                 },                 {                     "name": "event_update_message",                     "value": "{EVENT.UPDATE.MESSAGE}"                 },                 {                     "name": "host_name",                     "value": "{HOST.NAME}"                 },                 {                     "name": "trigger_description",                     "value": "{TRIGGER.DESCRIPTION}"                 },                 {                     "name": "trigger_id",                     "value": "{TRIGGER.ID}"                 },                 {                     "name": "alert_source",                     "value": "Zabbix"                 }             ]         }     ],     "id": 1 } ```

en-us	#### Retrieve scripts by event IDs  Retrieve all scripts available to events "632" and "614".  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "script.getscriptsbyevents",     "params": [       {          "eventid":  "632"       },       {          "eventid":  "614"       }     ],     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "632": [             {                 "scriptid": "3",                 "name": "Detect operating system",                 "command": "sudo /usr/bin/nmap -O {HOST.CONN} 2>&1",                 "host_access": "2",                 "usrgrpid": "7",                 "groupid": "0",                 "description": "",                 "confirmation": "",                 "type": "0",                 "execute_on": "1",                 "timeout": "30s",                 "scope": "4",                 "port": "",                 "authtype": "0",                 "username": "",                 "password": "",                 "publickey": "",                 "privatekey": "",                 "menu_path": "",                 "url": "",                 "new_window": "1",                 "manualinput": "0",                 "manualinput_prompt": "",                 "manualinput_validator_type": "0",                 "manualinput_validator": "",                 "manualinput_default_value": "",                 "parameters": []             },             {                 "scriptid": "1",                 "name": "Ping",                 "command": "/bin/ping -c 3 {HOST.CONN} 2>&1",                 "host_access": "2",                 "usrgrpid": "0",                 "groupid": "0",                 "description": "",                 "confirmation": "",                 "type": "0",                 "execute_on": "1",                 "timeout": "30s",                 "scope": "4",                 "port": "",                 "authtype": "0",                 "username": "",                 "password": "",                 "publickey": "",                 "privatekey": "",                 "menu_path": "",                 "url": "",                 "new_window": "1",                 "manualinput": "0",                 "manualinput_prompt": "",                 "manualinput_validator_type": "0",                 "manualinput_validator": "",                 "manualinput_default_value": "",                 "parameters": []             },             {                 "scriptid": "4",                 "name": "Open Zabbix page",                 "command": "",                 "host_access": "2",                 "usrgrpid": "0",                 "groupid": "0",                 "description": "",                 "confirmation": "Are you sure you want to open page *UNKNOWN*?",                 "type": "6",                 "execute_on": "2",                 "timeout": "30s",                 "scope": "4",                 "port": "",                 "authtype": "0",                 "username": "",                 "password": "",                 "publickey": "",                 "privatekey": "",                 "menu_path": "",                 "url": "http://localhost/ui/zabbix.php?action=*UNKNOWN*",                 "new_window": "1",                 "manualinput": "1",                 "manualinput_prompt": "Zabbix page to open:",                 "manualinput_validator_type": "1",                 "manualinput_validator": "dashboard.view,discovery.view",                 "manualinput_default_value": "",                 "parameters": []             },             {                 "scriptid": "2",                 "name": "Traceroute",                 "command": "/usr/bin/traceroute {HOST.CONN} 2>&1",                 "host_access": "2",                 "usrgrpid": "0",                 "groupid": "0",                 "description": "",                 "confirmation": "",                 "type": "0",                 "execute_on": "1",                 "timeout": "30s",                 "scope": "4",                 "port": "",                 "authtype": "0",                 "username": "",                 "password": "",                 "publickey": "",                 "privatekey": "",                 "menu_path": "",                 "url": "",                 "new_window": "1",                 "manualinput": "0",                 "manualinput_prompt": "",                 "manualinput_validator_type": "0",                 "manualinput_validator": "",                 "manualinput_default_value": "",                 "parameters": []             }         ],         "614": [             {                 "scriptid": "3",                 "name": "Detect operating system",                 "command": "sudo /usr/bin/nmap -O {HOST.CONN} 2>&1",                 "host_access": "2",                 "usrgrpid": "7",                 "groupid": "0",                 "description": "",                 "confirmation": "",                 "type": "0",                 "execute_on": "1",                 "timeout": "30s",                 "scope": "4",                 "port": "",                 "authtype": "0",                 "username": "",                 "password": "",                 "publickey": "",                 "privatekey": "",                 "menu_path": "",                 "url": "",                 "new_window": "1",                 "manualinput": "0",                 "manualinput_prompt": "",                 "manualinput_validator_type": "1",                 "manualinput_validator": "",                 "manualinput_default_value": "",                 "parameters": []             },             {                 "scriptid": "1",                 "name": "Ping",                 "command": "/bin/ping -c 3 {HOST.CONN} 2>&1",                 "host_access": "2",                 "usrgrpid": "0",                 "groupid": "0",                 "description": "",                 "confirmation": "",                 "type": "0",                 "execute_on": "1",                 "timeout": "30s",                 "scope": "4",                 "port": "",                 "authtype": "0",                 "username": "",                 "password": "",                 "publickey": "",                 "privatekey": "",                 "menu_path": "",                 "url": "",                 "new_window": "1",                 "manualinput": "0",                 "manualinput_prompt": "",                 "manualinput_validator_type": "0",                 "manualinput_validator": "",                 "manualinput_default_value": "",                 "parameters": []             },             {                 "scriptid": "4",                 "name": "Open Zabbix page",                 "command": "",                 "host_access": "2",                 "usrgrpid": "0",                 "groupid": "0",                 "description": "",                 "confirmation": "Are you sure you want to open page *UNKNOWN*?",                 "type": "6",                 "execute_on": "2",                 "timeout": "30s",                 "scope": "4",                 "port": "",                 "authtype": "0",                 "username": "",                 "password": "",                 "publickey": "",                 "privatekey": "",                 "menu_path": "",                 "url": "http://localhost/ui/zabbix.php?action=*UNKNOWN*",                 "new_window": "1",                 "manualinput": "1",                 "manualinput_prompt": "Zabbix page to open:",                 "manualinput_validator_type": "1",                 "manualinput_validator": "dashboard.view,discovery.view",                 "manualinput_default_value": "",                 "parameters": []             },             {                 "scriptid": "2",                 "name": "Traceroute",                 "command": "/usr/bin/traceroute {HOST.CONN} 2>&1",                 "host_access": "2",                 "usrgrpid": "0",                 "groupid": "0",                 "description": "",                 "confirmation": "",                 "type": "0",                 "execute_on": "1",                 "timeout": "30s",                 "scope": "4",                 "port": "",                 "authtype": "0",                 "username": "",                 "password": "",                 "publickey": "",                 "privatekey": "",                 "menu_path": "",                 "url": "",                 "new_window": "1",                 "manualinput": "0",                 "manualinput_prompt": "",                 "manualinput_validator_type": "0",                 "manualinput_validator": "",                 "manualinput_default_value": "",                 "parameters": []             }         ]     },     "id": 1 } ```
es	#### Recuperar scripts por ID de evento  Recupere todos los scripts disponibles para los eventos "632" y "614".  [Solicitud](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "script.getscriptsbyevents",     "params": [       {          "eventid":  "632"       },       {          "eventid":  "614"       }     ],     "id": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "result": {         "632": [             {                 "scriptid": "3",                 "name": "Detect operating system",                 "command": "sudo /usr/bin/nmap -O {HOST.CONN} 2>&1",                 "host_access": "2",                 "usrgrpid": "7",                 "groupid": "0",                 "description": "",                 "confirmation": "",                 "type": "0",                 "execute_on": "1",                 "timeout": "30s",                 "scope": "4",                 "port": "",                 "authtype": "0",                 "username": "",                 "password": "",                 "publickey": "",                 "privatekey": "",                 "menu_path": "",                 "url": "",                 "new_window": "1",                 "manualinput": "0",                 "manualinput_prompt": "",                 "manualinput_validator_type": "0",                 "manualinput_validator": "",                 "manualinput_default_value": "",                 "parameters": []             },             {                 "scriptid": "1",                 "name": "Ping",                 "command": "/bin/ping -c 3 {HOST.CONN} 2>&1",                 "host_access": "2",                 "usrgrpid": "0",                 "groupid": "0",                 "description": "",                 "confirmation": "",                 "type": "0",                 "execute_on": "1",                 "timeout": "30s",                 "scope": "4",                 "port": "",                 "authtype": "0",                 "username": "",                 "password": "",                 "publickey": "",                 "privatekey": "",                 "menu_path": "",                 "url": "",                 "new_window": "1",                 "manualinput": "0",                 "manualinput_prompt": "",                 "manualinput_validator_type": "0",                 "manualinput_validator": "",                 "manualinput_default_value": "",                 "parameters": []             },             {                 "scriptid": "4",                 "name": "Open Zabbix page",                 "command": "",                 "host_access": "2",                 "usrgrpid": "0",                 "groupid": "0",                 "description": "",                 "confirmation": "Are you sure you want to open page *UNKNOWN*?",                 "type": "6",                 "execute_on": "2",                 "timeout": "30s",                 "scope": "4",                 "port": "",                 "authtype": "0",                 "username": "",                 "password": "",                 "publickey": "",                 "privatekey": "",                 "menu_path": "",                 "url": "http://localhost/ui/zabbix.php?action=*UNKNOWN*",                 "new_window": "1",                 "manualinput": "1",                 "manualinput_prompt": "Zabbix page to open:",                 "manualinput_validator_type": "1",                 "manualinput_validator": "dashboard.view,discovery.view",                 "manualinput_default_value": "",                 "parameters": []             },             {                 "scriptid": "2",                 "name": "Traceroute",                 "command": "/usr/bin/traceroute {HOST.CONN} 2>&1",                 "host_access": "2",                 "usrgrpid": "0",                 "groupid": "0",                 "description": "",                 "confirmation": "",                 "type": "0",                 "execute_on": "1",                 "timeout": "30s",                 "scope": "4",                 "port": "",                 "authtype": "0",                 "username": "",                 "password": "",                 "publickey": "",                 "privatekey": "",                 "menu_path": "",                 "url": "",                 "new_window": "1",                 "manualinput": "0",                 "manualinput_prompt": "",                 "manualinput_validator_type": "0",                 "manualinput_validator": "",                 "manualinput_default_value": "",                 "parameters": []             }         ],         "614": [             {                 "scriptid": "3",                 "name": "Detect operating system",                 "command": "sudo /usr/bin/nmap -O {HOST.CONN} 2>&1",                 "host_access": "2",                 "usrgrpid": "7",                 "groupid": "0",                 "description": "",                 "confirmation": "",                 "type": "0",                 "execute_on": "1",                 "timeout": "30s",                 "scope": "4",                 "port": "",                 "authtype": "0",                 "username": "",                 "password": "",                 "publickey": "",                 "privatekey": "",                 "menu_path": "",                 "url": "",                 "new_window": "1",                 "manualinput": "0",                 "manualinput_prompt": "",                 "manualinput_validator_type": "1",                 "manualinput_validator": "",                 "manualinput_default_value": "",                 "parameters": []             },             {                 "scriptid": "1",                 "name": "Ping",                 "command": "/bin/ping -c 3 {HOST.CONN} 2>&1",                 "host_access": "2",                 "usrgrpid": "0",                 "groupid": "0",                 "description": "",                 "confirmation": "",                 "type": "0",                 "execute_on": "1",                 "timeout": "30s",                 "scope": "4",                 "port": "",                 "authtype": "0",                 "username": "",                 "password": "",                 "publickey": "",                 "privatekey": "",                 "menu_path": "",                 "url": "",                 "new_window": "1",                 "manualinput": "0",                 "manualinput_prompt": "",                 "manualinput_validator_type": "0",                 "manualinput_validator": "",                 "manualinput_default_value": "",                 "parameters": []             },             {                 "scriptid": "4",                 "name": "Open Zabbix page",                 "command": "",                 "host_access": "2",                 "usrgrpid": "0",                 "groupid": "0",                 "description": "",                 "confirmation": "Are you sure you want to open page *UNKNOWN*?",                 "type": "6",                 "execute_on": "2",                 "timeout": "30s",                 "scope": "4",                 "port": "",                 "authtype": "0",                 "username": "",                 "password": "",                 "publickey": "",                 "privatekey": "",                 "menu_path": "",                 "url": "http://localhost/ui/zabbix.php?action=*UNKNOWN*",                 "new_window": "1",                 "manualinput": "1",                 "manualinput_prompt": "Zabbix page to open:",                 "manualinput_validator_type": "1",                 "manualinput_validator": "dashboard.view,discovery.view",                 "manualinput_default_value": "",                 "parameters": []             },             {                 "scriptid": "2",                 "name": "Traceroute",                 "command": "/usr/bin/traceroute {HOST.CONN} 2>&1",                 "host_access": "2",                 "usrgrpid": "0",                 "groupid": "0",                 "description": "",                 "confirmation": "",                 "type": "0",                 "execute_on": "1",                 "timeout": "30s",                 "scope": "4",                 "port": "",                 "authtype": "0",                 "username": "",                 "password": "",                 "publickey": "",                 "privatekey": "",                 "menu_path": "",                 "url": "",                 "new_window": "1",                 "manualinput": "0",                 "manualinput_prompt": "",                 "manualinput_validator_type": "0",                 "manualinput_validator": "",                 "manualinput_default_value": "",                 "parameters": []             }         ]     },     "id": 1 } ```

en-us	#### Retrieve scripts by host IDs  Retrieve all scripts available on hosts "30079" and "30073".  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "script.getscriptsbyhosts",     "params": [        {           "hostid":  "30079"        },        {           "hostid":  "30073"        }     ],     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "30079": [             {                 "scriptid": "3",                 "name": "Detect operating system",                 "command": "sudo /usr/bin/nmap -O {HOST.CONN} 2>&1",                 "host_access": "2",                 "usrgrpid": "7",                 "groupid": "0",                 "description": "",                 "confirmation": "",                 "type": "0",                 "execute_on": "1",                 "timeout": "30s",                 "scope": "2",                 "port": "",                 "authtype": "0",                 "username": "",                 "password": "",                 "publickey": "",                 "privatekey": "",                 "menu_path": "",                 "url": "",                 "new_window": "1",                 "manualinput": "0",                 "manualinput_prompt": "",                 "manualinput_validator_type": "0",                 "manualinput_validator": "",                 "manualinput_default_value": "",                 "parameters": []             },             {                 "scriptid": "1",                 "name": "Ping",                 "command": "/bin/ping -c 3 {HOST.CONN} 2>&1",                 "host_access": "2",                 "usrgrpid": "0",                 "groupid": "0",                 "description": "",                 "confirmation": "",                 "type": "0",                 "execute_on": "1",                 "timeout": "30s",                 "scope": "2",                 "port": "",                 "authtype": "0",                 "username": "",                 "password": "",                 "publickey": "",                 "privatekey": "",                 "menu_path": "",                 "url": "",                 "new_window": "1",                 "manualinput": "0",                 "manualinput_prompt": "",                 "manualinput_validator_type": "0",                 "manualinput_validator": "",                 "manualinput_default_value": "",                 "parameters": []             },             {                 "scriptid": "4",                 "name": "Open Zabbix page",                 "command": "",                 "host_access": "2",                 "usrgrpid": "0",                 "groupid": "0",                 "description": "",                 "confirmation": "Are you sure you want to open page *UNKNOWN*?",                 "type": "6",                 "execute_on": "2",                 "timeout": "30s",                 "scope": "2",                 "port": "",                 "authtype": "0",                 "username": "",                 "password": "",                 "publickey": "",                 "privatekey": "",                 "menu_path": "",                 "url": "http://localhost/ui/zabbix.php?action=*UNKNOWN*",                 "new_window": "1",                 "manualinput": "0",                 "manualinput_prompt": "Zabbix page to open:",                 "manualinput_validator_type": "0",                 "manualinput_validator": "dashboard.view,discovery.view",                 "manualinput_default_value": "",                 "parameters": []             },             {                 "scriptid": "2",                 "name": "Traceroute",                 "command": "/usr/bin/traceroute {HOST.CONN} 2>&1",                 "host_access": "2",                 "usrgrpid": "0",                 "groupid": "0",                 "description": "",                 "confirmation": "",                 "type": "0",                 "execute_on": "1",                 "timeout": "30s",                 "scope": "2",                 "port": "",                 "authtype": "0",                 "username": "",                 "password": "",                 "publickey": "",                 "privatekey": "",                 "menu_path": "",                 "url": "",                 "new_window": "1",                 "manualinput": "0",                 "manualinput_prompt": "",                 "manualinput_validator_type": "0",                 "manualinput_validator": "",                 "manualinput_default_value": "",                 "parameters": []             }         ],         "30073": [             {                 "scriptid": "3",                 "name": "Detect operating system",                 "command": "sudo /usr/bin/nmap -O {HOST.CONN} 2>&1",                 "host_access": "2",                 "usrgrpid": "7",                 "groupid": "0",                 "description": "",                 "confirmation": "",                 "type": "0",                 "execute_on": "1",                 "timeout": "30s",                 "scope": "2",                 "port": "",                 "authtype": "0",                 "username": "",                 "password": "",                 "publickey": "",                 "privatekey": "",                 "menu_path": "",                 "url": "",                 "new_window": "1",                 "manualinput": "0",                 "manualinput_prompt": "",                 "manualinput_validator_type": "0",                 "manualinput_validator": "",                 "manualinput_default_value": "",                 "parameters": []             },             {                 "scriptid": "1",                 "name": "Ping",                 "command": "/bin/ping -c 3 {HOST.CONN} 2>&1",                 "host_access": "2",                 "usrgrpid": "0",                 "groupid": "0",                 "description": "",                 "confirmation": "",                 "type": "0",                 "execute_on": "1",                 "timeout": "30s",                 "scope": "2",                 "port": "",                 "authtype": "0",                 "username": "",                 "password": "",                 "publickey": "",                 "privatekey": "",                 "menu_path": "",                 "url": "",                 "new_window": "1",                 "manualinput": "0",                 "manualinput_prompt": "",                 "manualinput_validator_type": "0",                 "manualinput_validator": "",                 "manualinput_default_value": "",                 "parameters": []             },             {                 "scriptid": "4",                 "name": "Open Zabbix page",                 "command": "",                 "host_access": "2",                 "usrgrpid": "0",                 "groupid": "0",                 "description": "",                 "confirmation": "Are you sure you want to open page *UNKNOWN*?",                 "type": "6",                 "execute_on": "2",                 "timeout": "30s",                 "scope": "2",                 "port": "",                 "authtype": "0",                 "username": "",                 "password": "",                 "publickey": "",                 "privatekey": "",                 "menu_path": "",                 "url": "http://localhost/ui/zabbix.php?action=*UNKNOWN*",                 "new_window": "1",                 "manualinput": "1",                 "manualinput_prompt": "Zabbix page to open:",                 "manualinput_validator_type": "1",                 "manualinput_validator": "dashboard.view,discovery.view",                 "manualinput_default_value": "",                 "parameters": []             },             {                 "scriptid": "2",                 "name": "Traceroute",                 "command": "/usr/bin/traceroute {HOST.CONN} 2>&1",                 "host_access": "2",                 "usrgrpid": "0",                 "groupid": "0",                 "description": "",                 "confirmation": "",                 "type": "0",                 "execute_on": "1",                 "timeout": "30s",                 "scope": "2",                 "port": "",                 "authtype": "0",                 "username": "",                 "password": "",                 "publickey": "",                 "privatekey": "",                 "menu_path": "",                 "url": "",                 "new_window": "1",                 "manualinput": "0",                 "manualinput_prompt": "",                 "manualinput_validator_type": "0",                 "manualinput_validator": "",                 "manualinput_default_value": "",                 "parameters": []             }         ]     },     "id": 1 } ```
es	#### Recuperar scripts por ID de equipo  Recupere todos los scripts disponibles en los equipos "30079" y "30073".  [Solicitud](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "script.getscriptsbyhosts",     "params": [        {           "hostid":  "30079"        },        {           "hostid":  "30073"        }     ],     "id": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "result": {         "30079": [             {                 "scriptid": "3",                 "name": "Detect operating system",                 "command": "sudo /usr/bin/nmap -O {HOST.CONN} 2>&1",                 "host_access": "2",                 "usrgrpid": "7",                 "groupid": "0",                 "description": "",                 "confirmation": "",                 "type": "0",                 "execute_on": "1",                 "timeout": "30s",                 "scope": "2",                 "port": "",                 "authtype": "0",                 "username": "",                 "password": "",                 "publickey": "",                 "privatekey": "",                 "menu_path": "",                 "url": "",                 "new_window": "1",                 "manualinput": "0",                 "manualinput_prompt": "",                 "manualinput_validator_type": "0",                 "manualinput_validator": "",                 "manualinput_default_value": "",                 "parameters": []             },             {                 "scriptid": "1",                 "name": "Ping",                 "command": "/bin/ping -c 3 {HOST.CONN} 2>&1",                 "host_access": "2",                 "usrgrpid": "0",                 "groupid": "0",                 "description": "",                 "confirmation": "",                 "type": "0",                 "execute_on": "1",                 "timeout": "30s",                 "scope": "2",                 "port": "",                 "authtype": "0",                 "username": "",                 "password": "",                 "publickey": "",                 "privatekey": "",                 "menu_path": "",                 "url": "",                 "new_window": "1",                 "manualinput": "0",                 "manualinput_prompt": "",                 "manualinput_validator_type": "0",                 "manualinput_validator": "",                 "manualinput_default_value": "",                 "parameters": []             },             {                 "scriptid": "4",                 "name": "Open Zabbix page",                 "command": "",                 "host_access": "2",                 "usrgrpid": "0",                 "groupid": "0",                 "description": "",                 "confirmation": "Are you sure you want to open page *UNKNOWN*?",                 "type": "6",                 "execute_on": "2",                 "timeout": "30s",                 "scope": "2",                 "port": "",                 "authtype": "0",                 "username": "",                 "password": "",                 "publickey": "",                 "privatekey": "",                 "menu_path": "",                 "url": "http://localhost/ui/zabbix.php?action=*UNKNOWN*",                 "new_window": "1",                 "manualinput": "0",                 "manualinput_prompt": "Zabbix page to open:",                 "manualinput_validator_type": "0",                 "manualinput_validator": "dashboard.view,discovery.view",                 "manualinput_default_value": "",                 "parameters": []             },             {                 "scriptid": "2",                 "name": "Traceroute",                 "command": "/usr/bin/traceroute {HOST.CONN} 2>&1",                 "host_access": "2",                 "usrgrpid": "0",                 "groupid": "0",                 "description": "",                 "confirmation": "",                 "type": "0",                 "execute_on": "1",                 "timeout": "30s",                 "scope": "2",                 "port": "",                 "authtype": "0",                 "username": "",                 "password": "",                 "publickey": "",                 "privatekey": "",                 "menu_path": "",                 "url": "",                 "new_window": "1",                 "manualinput": "0",                 "manualinput_prompt": "",                 "manualinput_validator_type": "0",                 "manualinput_validator": "",                 "manualinput_default_value": "",                 "parameters": []             }         ],         "30073": [             {                 "scriptid": "3",                 "name": "Detect operating system",                 "command": "sudo /usr/bin/nmap -O {HOST.CONN} 2>&1",                 "host_access": "2",                 "usrgrpid": "7",                 "groupid": "0",                 "description": "",                 "confirmation": "",                 "type": "0",                 "execute_on": "1",                 "timeout": "30s",                 "scope": "2",                 "port": "",                 "authtype": "0",                 "username": "",                 "password": "",                 "publickey": "",                 "privatekey": "",                 "menu_path": "",                 "url": "",                 "new_window": "1",                 "manualinput": "0",                 "manualinput_prompt": "",                 "manualinput_validator_type": "0",                 "manualinput_validator": "",                 "manualinput_default_value": "",                 "parameters": []             },             {                 "scriptid": "1",                 "name": "Ping",                 "command": "/bin/ping -c 3 {HOST.CONN} 2>&1",                 "host_access": "2",                 "usrgrpid": "0",                 "groupid": "0",                 "description": "",                 "confirmation": "",                 "type": "0",                 "execute_on": "1",                 "timeout": "30s",                 "scope": "2",                 "port": "",                 "authtype": "0",                 "username": "",                 "password": "",                 "publickey": "",                 "privatekey": "",                 "menu_path": "",                 "url": "",                 "new_window": "1",                 "manualinput": "0",                 "manualinput_prompt": "",                 "manualinput_validator_type": "0",                 "manualinput_validator": "",                 "manualinput_default_value": "",                 "parameters": []             },             {                 "scriptid": "4",                 "name": "Open Zabbix page",                 "command": "",                 "host_access": "2",                 "usrgrpid": "0",                 "groupid": "0",                 "description": "",                 "confirmation": "Are you sure you want to open page *UNKNOWN*?",                 "type": "6",                 "execute_on": "2",                 "timeout": "30s",                 "scope": "2",                 "port": "",                 "authtype": "0",                 "username": "",                 "password": "",                 "publickey": "",                 "privatekey": "",                 "menu_path": "",                 "url": "http://localhost/ui/zabbix.php?action=*UNKNOWN*",                 "new_window": "1",                 "manualinput": "1",                 "manualinput_prompt": "Zabbix page to open:",                 "manualinput_validator_type": "1",                 "manualinput_validator": "dashboard.view,discovery.view",                 "manualinput_default_value": "",                 "parameters": []             },             {                 "scriptid": "2",                 "name": "Traceroute",                 "command": "/usr/bin/traceroute {HOST.CONN} 2>&1",                 "host_access": "2",                 "usrgrpid": "0",                 "groupid": "0",                 "description": "",                 "confirmation": "",                 "type": "0",                 "execute_on": "1",                 "timeout": "30s",                 "scope": "2",                 "port": "",                 "authtype": "0",                 "username": "",                 "password": "",                 "publickey": "",                 "privatekey": "",                 "menu_path": "",                 "url": "",                 "new_window": "1",                 "manualinput": "0",                 "manualinput_prompt": "",                 "manualinput_validator_type": "0",                 "manualinput_validator": "",                 "manualinput_default_value": "",                 "parameters": []             }         ]     },     "id": 1 } ```

en-us	#### Retrieve services discovered on a host  Retrieve all discovered services detected on discovered host "11".  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "dservice.get",     "params": {         "output": "extend",         "dhostids": "11"     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "dserviceid": "12",             "dhostid": "11",             "value": "",             "port": "80",             "status": "1",             "lastup": "0",             "lastdown": "1348650607",             "dcheckid": "5",             "ip": "192.168.1.134",             "dns": "john.local"         },         {             "dserviceid": "13",             "dhostid": "11",             "value": "",             "port": "21",             "status": "1",             "lastup": "0",             "lastdown": "1348650610",             "dcheckid": "6",             "ip": "192.168.1.134",             "dns": "john.local"         }     ],     "id": 1 } ```
es	#### Recuperar servicios descubiertos en un host  Recupere todos los servicios descubiertos detectados en el equipo descubierto "11" .  [Solicitud](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "dservice.get",     "params": {         "output": "extend",         "dhostids": "11"     },     "id": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "result": [         {             "dserviceid": "12",             "dhostid": "11",             "value": "",             "port": "80",             "status": "1",             "lastup": "0",             "lastdown": "1348650607",             "dcheckid": "5",             "ip": "192.168.1.134",             "dns": "john.local"         },         {             "dserviceid": "13",             "dhostid": "11",             "value": "",             "port": "21",             "status": "1",             "lastup": "0",             "lastdown": "1348650610",             "dcheckid": "6",             "ip": "192.168.1.134",             "dns": "john.local"         }     ],     "id": 1 } ```

en-us	#### Retrieve specific script with manualinput value.  Retrieve script with ID "4" on event "632" with manualinput value "dashboard.view".  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "script.getscriptsbyevents",     "params": [       {         "eventid":  "632",         "scriptid": "4",         "manualinput": "dashboard.view"       }   ],     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {       "632": [         {           "scriptid": "4",           "name": "Open Zabbix page",           "command": "",           "host_access": "2",           "usrgrpid": "0",           "groupid": "0",           "description": "",           "confirmation": "Are you sure you want to open page dashboard.view?",           "type": "6",           "execute_on": "2",           "timeout": "30s",           "scope": "4",           "port": "",           "authtype": "0",           "username": "",           "password": "",           "publickey": "",           "privatekey": "",           "menu_path": "",           "url": "http://localhost/ui/zabbix.php?action=dashboard.view",           "new_window": "1",           "manualinput": "1",           "manualinput_prompt": "Zabbix page to open:",           "manualinput_validator_type": "1",           "manualinput_validator": "dashboard.view,discovery.view",           "manualinput_default_value": "",           "parameters": []         }       ]     },     "id": 1 } ```
es	#### Recuperar un script específico con valor de entrada manual.  Recupere el script con ID "4" en el evento "632" con el valor de entrada manual "dashboard.view".  [Solicitud](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "script.getscriptsbyevents",     "params": [       {         "eventid":  "632",         "scriptid": "4",         "manualinput": "dashboard.view"       }   ],     "id": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "result": {       "632": [         {           "scriptid": "4",           "name": "Open Zabbix page",           "command": "",           "host_access": "2",           "usrgrpid": "0",           "groupid": "0",           "description": "",           "confirmation": "Are you sure you want to open page dashboard.view?",           "type": "6",           "execute_on": "2",           "timeout": "30s",           "scope": "4",           "port": "",           "authtype": "0",           "username": "",           "password": "",           "publickey": "",           "privatekey": "",           "menu_path": "",           "url": "http://localhost/ui/zabbix.php?action=dashboard.view",           "new_window": "1",           "manualinput": "1",           "manualinput_prompt": "Zabbix page to open:",           "manualinput_validator_type": "1",           "manualinput_validator": "dashboard.view,discovery.view",           "manualinput_default_value": "",           "parameters": []         }       ]     },     "id": 1 } ```

en-us	#### Retrieve specific script with manualinput value.  Retrieve script with ID "4" on host "30079" with manualinput value "dashboard.view".  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "script.getscriptsbyhosts",     "params": [       {         "hostid":  "30079",         "scriptid": "4",         "manualinput": "dashboard.view"       }   ],     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {       "30079": [         {           "scriptid": "4",           "name": "Open Zabbix page",           "command": "",           "host_access": "2",           "usrgrpid": "0",           "groupid": "0",           "description": "",           "confirmation": "Are you sure you want to open page dashboard.view?",           "type": "6",           "execute_on": "2",           "timeout": "30s",           "scope": "2",           "port": "",           "authtype": "0",           "username": "",           "password": "",           "publickey": "",           "privatekey": "",           "menu_path": "",           "url": "http://localhost/ui/zabbix.php?action=dashboard.view",           "new_window": "1",           "manualinput": "1",           "manualinput_prompt": "Zabbix page to open:",           "manualinput_validator_type": "1",           "manualinput_validator": "dashboard.view,discovery.view",           "manualinput_default_value": "",           "parameters": []         }       ]     },     "id": 1 } ```
es	#### Recuperar script específico con valor de entrada manual.  Recupere el script con ID "4" en el equipo "30079" con el valor de entrada manual "dashboard.view".  [Solicitud](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "script.getscriptsbyhosts",     "params": [       {         "hostid":  "30079",         "scriptid": "4",         "manualinput": "dashboard.view"       }   ],     "id": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "result": {       "30079": [         {           "scriptid": "4",           "name": "Open Zabbix page",           "command": "",           "host_access": "2",           "usrgrpid": "0",           "groupid": "0",           "description": "",           "confirmation": "Are you sure you want to open page dashboard.view?",           "type": "6",           "execute_on": "2",           "timeout": "30s",           "scope": "2",           "port": "",           "authtype": "0",           "username": "",           "password": "",           "publickey": "",           "privatekey": "",           "menu_path": "",           "url": "http://localhost/ui/zabbix.php?action=dashboard.view",           "new_window": "1",           "manualinput": "1",           "manualinput_prompt": "Zabbix page to open:",           "manualinput_validator_type": "1",           "manualinput_validator": "dashboard.view,discovery.view",           "manualinput_default_value": "",           "parameters": []         }       ]     },     "id": 1 } ```

en-us	#### Retrieve task by ID  Retrieve all the data about the task with the ID "1".  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "task.get",     "params": {         "output": "extend",         "taskids": "1"     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "taskid": "1",             "type": "7",             "status": "3",             "clock": "1601039076",             "ttl": "3600",             "proxyid": null,             "request": {                 "alerting": {                     "stats": [                         "alerts"                     ],                     "top": {                         "media.alerts": 10                     }                 },                 "lld": {                     "stats": "extend",                     "top": {                         "values": 5                     }                 }             },             "result": {                 "data": {                     "alerting": {                         "alerts": 0,                         "top": {                             "media.alerts": []                         },                         "time": 0.000663                     },                     "lld": {                         "rules": 0,                         "values": 0,                         "top": {                             "values": []                         },                         "time": 0.000442                     }                 },                 "status": "0"             }         }     ],     "id": 1 } ```
es	#### Recuperar tarea por ID  Recupera todos los datos sobre la tarea con el ID "1".  [Solicitud](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "método": "tarea.get",     "parámetros": {         "salida": "extender",         "taskids": "1"     },     "identificación": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "resultado": [         {             "taskid": "1",             "tipo": "7",             "estado": "3",             "reloj": "1601039076",             "ttl": "3600",             "proxyid": nulo,             "pedido": {                 "alerta": {                     "estadísticas": [                         "alertas"                     ],                     "arriba": {                         "alertas.media": 10                     }                 },                 "lld": {                     "estadísticas": "extender",                     "arriba": {                         "valores": 5                     }                 }             },             "resultado": {                 "datos": {                     "alerta": {                         "alertas": 0,                         "arriba": {                             "alertas.media": []                         },                         "tiempo": 0,000663                     },                     "lld": {                         "reglas": 0,                         "valores": 0,                         "arriba": {                             "valores": []                         },                         "tiempo": 0,000442                     }                 },                 "estado": "0"             }         }     ],     "identificación": 1 } ```

en-us	#### Retrieve trigger actions  Retrieve all configured trigger actions together with action conditions and operations.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "action.get",     "params": {         "output": "extend",         "selectOperations": "extend",         "selectRecoveryOperations": "extend",         "selectUpdateOperations": "extend",         "selectFilter": "extend",         "filter": {             "eventsource": 0         }     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "actionid": "3",             "name": "Report problems to Zabbix administrators",             "eventsource": "0",             "status": "1",             "esc_period": "1h",             "pause_suppressed": "1",             "filter": {                 "evaltype": "0",                 "formula": "",                 "conditions": [],                 "eval_formula": ""             },             "operations": [                 {                     "operationid": "3",                     "actionid": "3",                     "operationtype": "0",                     "esc_period": "0",                     "esc_step_from": "1",                     "esc_step_to": "1",                     "evaltype": "0",                     "opconditions": [],                     "opmessage": [                         {                             "default_msg": "1",                             "subject": "",                             "message": "",                             "mediatypeid" => "0"                         }                     ],                     "opmessage_grp": [                         {                             "usrgrpid": "7"                         }                     ]                 }             ],             "recovery_operations": [                 {                     "operationid": "7",                     "actionid": "3",                     "operationtype": "11",                     "evaltype": "0",                     "opconditions": [],                     "opmessage": {                         "default_msg": "0",                         "subject": "{TRIGGER.STATUS}: {TRIGGER.NAME}",                         "message": "Trigger: {TRIGGER.NAME}\r\nTrigger status: {TRIGGER.STATUS}\r\nTrigger severity: {TRIGGER.SEVERITY}\r\nTrigger URL: {TRIGGER.URL}\r\n\r\nItem values:\r\n\r\n1. {ITEM.NAME1} ({HOST.NAME1}:{ITEM.KEY1}): {ITEM.VALUE1}\r\n2. {ITEM.NAME2} ({HOST.NAME2}:{ITEM.KEY2}): {ITEM.VALUE2}\r\n3. {ITEM.NAME3} ({HOST.NAME3}:{ITEM.KEY3}): {ITEM.VALUE3}\r\n\r\nOriginal event ID: {EVENT.ID}",                         "mediatypeid": "0"                     }                 }             ],             "update_operations": [                 {                     "operationid": "31",                     "operationtype": "12",                     "evaltype": "0",                     "opmessage": {                         "default_msg": "1",                         "subject": "",                         "message": "",                         "mediatypeid": "0"                     }                 },                 {                     "operationid": "32",                     "operationtype": "0",                     "evaltype": "0",                     "opmessage": {                         "default_msg": "0",                         "subject": "Updated: {TRIGGER.NAME}",                         "message": "{USER.FULLNAME} updated problem at {EVENT.UPDATE.DATE} {EVENT.UPDATE.TIME} with the following message:\r\n{EVENT.UPDATE.MESSAGE}\r\n\r\nCurrent problem status is {EVENT.STATUS}",                         "mediatypeid": "1"                     },                     "opmessage_grp": [                         {                             "usrgrpid": "7"                         }                     ],                     "opmessage_usr": []                 },                 {                     "operationid": "33",                     "operationtype": "1",                     "evaltype": "0",                     "opcommand": {                         "scriptid": "3"                     },                     "opcommand_hst": [                         {                             "hostid": "10084"                         }                     ],                     "opcommand_grp": []                 }             ]         }     ],     "id": 1 } ```
es	#### Recuperar acciones de iniciador  Recuperar todas las acciones de iniciador configuradas junto con las condiciones de acción y operaciones.  [Solicitud](/manual/api#performing-requests):  ```json { "jsonrpc": "2.0", "method": "action.get", "params": { "output": "extend", "selectOperations": "extend", "selectRecoveryOperations": "extend", "selectUpdateOperations": "extend", "selectFilter": "extend", "filter": { "eventsource": 0 } }, "id": 1 } ```  Respuesta:  ```json { "jsonrpc": "2.0", "result": [ { "actionid": "3", "name": "Report problems to Zabbix administrators", "eventsource": "0", "status": "1", "esc_period": "1h", "pause_suppressed": "1", "filter": { "evaltype": "0", "formula": "", "conditions": [], "eval_formula": "" }, "operations": [ { "operationid": "3", "actionid": "3", "operationtype": "0", "esc_period": "0", "esc_step_from": "1", "esc_step_to": "1", "evaltype": "0", "opconditions": [], "opmessage": [ { "default_msg": "1", "subject": "", "message": "", "mediatypeid" => "0" } ], "opmessage_grp": [ { "usrgrpid": "7" } ] } ], "recovery_operations": [ { "operationid": "7", "actionid": "3", "operationtype": "11", "evaltype": "0", "opconditions": [], "opmessage": { "default_msg": "0", "subject": "{TRIGGER.STATUS}: {TRIGGER.NAME}", "message": "Trigger: {TRIGGER.NAME}\r\nTrigger status: {TRIGGER.STATUS}\r\nTrigger severity: {TRIGGER.SEVERITY}\r\nTrigger URL: {TRIGGER.URL}\r\n\r\nItem values:\r\n\r\n1. {ITEM.NAME1} ({HOST.NAME1}:{ITEM.KEY1}): {ITEM.VALUE1}\r\n2. {ITEM.NAME2} ({HOST.NAME2}:{ITEM.KEY2}): {ITEM.VALUE2}\r\n3. {ITEM.NAME3} ({HOST.NAME3}:{ITEM.KEY3}): {ITEM.VALUE3}\r\n\r\nOriginal event ID: {EVENT.ID}", "mediatypeid": "0" } } ], "update_operations": [ { "operationid": "31", "operationtype": "12", "evaltype": "0", "opmessage": { "default_msg": "1", "subject": "", "message": "", "mediatypeid": "0" } }, { "operationid": "32", "operationtype": "0", "evaltype": "0", "opmessage": { "default_msg": "0", "subject": "Updated: {TRIGGER.NAME}", "message": "{USER.FULLNAME} updated problem at {EVENT.UPDATE.DATE} {EVENT.UPDATE.TIME} with the following message:\r\n{EVENT.UPDATE.MESSAGE}\r\n\r\nCurrent problem status is {EVENT.STATUS}", "mediatypeid": "1" }, "opmessage_grp": [ { "usrgrpid": "7" } ], "opmessage_usr": [] }, { "operationid": "33", "operationtype": "1", "evaltype": "0", "opcommand": { "scriptid": "3" }, "opcommand_hst": [ { "hostid": "10084" } ], "opcommand_grp": [] } ] } ], "id": 1 } ```

en-us	#### Retrieve trigger prototypes from an LLD rule  Retrieve all trigger prototypes and their functions from an LLD rule.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "triggerprototype.get",     "params": {         "output": "extend",         "selectFunctions": "extend",         "discoveryids": "22450"     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "triggerid": "13272",             "expression": "{12598}<20",             "description": "Free inodes is less than 20% on volume {#FSNAME}",             "url": "",             "status": "0",             "value": "0",             "priority": "2",             "lastchange": "0",             "comments": "",             "error": "",             "templateid": "0",             "type": "0",             "state": "0",             "flags": "2",             "recovery_mode": "0",             "recovery_expression": "",             "correlation_mode": "0",             "correlation_tag": "",             "manual_close": "0",             "opdata": "",             "discover": "0",             "event_name": "",             "uuid": "6ce467d05e8745409a177799bed34bb3",             "url_name": "",             "functions": [                 {                     "functionid": "12598",                     "itemid": "22454",                     "triggerid": "13272",                     "parameter": "$",                     "function": "last"                 }             ]         },         {             "triggerid": "13266",             "expression": "{13500}<20",             "description": "Free disk space is less than 20% on volume {#FSNAME}",             "url": "",             "status": "0",             "value": "0",             "priority": "2",             "lastchange": "0",             "comments": "",             "error": "",             "templateid": "0",             "type": "0",             "state": "0",             "flags": "2",             "recovery_mode": "0",             "recovery_expression": "",             "correlation_mode": "0",             "correlation_tag": "",             "manual_close": "0",             "opdata": "",             "discover": "0",             "event_name": "",             "uuid": "74a1fc62bfe24b7eabe4e244c70dc384",             "url_name": "",             "functions": [                 {                     "functionid": "13500",                     "itemid": "22686",                     "triggerid": "13266",                     "parameter": "$",                     "function": "last"                 }             ]         }     ],     "id": 1 } ```
es	#### Recuperar prototipos de iniciador de una regla LLD  Recupere todos los prototipos de iniciador y sus funciones de una regla LLD.  [Solicitud](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "triggerprototype.get",     "params": {         "output": "extend",         "selectFunctions": "extend",         "discoveryids": "22450"     },     "id": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "result": [         {             "triggerid": "13272",             "expression": "{12598}<20",             "description": "Free inodes is less than 20% on volume {#FSNAME}",             "url": "",             "status": "0",             "value": "0",             "priority": "2",             "lastchange": "0",             "comments": "",             "error": "",             "templateid": "0",             "type": "0",             "state": "0",             "flags": "2",             "recovery_mode": "0",             "recovery_expression": "",             "correlation_mode": "0",             "correlation_tag": "",             "manual_close": "0",             "opdata": "",             "discover": "0",             "event_name": "",             "uuid": "6ce467d05e8745409a177799bed34bb3",             "url_name": "",             "functions": [                 {                     "functionid": "12598",                     "itemid": "22454",                     "triggerid": "13272",                     "parameter": "$",                     "function": "last"                 }             ]         },         {             "triggerid": "13266",             "expression": "{13500}<20",             "description": "Free disk space is less than 20% on volume {#FSNAME}",             "url": "",             "status": "0",             "value": "0",             "priority": "2",             "lastchange": "0",             "comments": "",             "error": "",             "templateid": "0",             "type": "0",             "state": "0",             "flags": "2",             "recovery_mode": "0",             "recovery_expression": "",             "correlation_mode": "0",             "correlation_tag": "",             "manual_close": "0",             "opdata": "",             "discover": "0",             "event_name": "",             "uuid": "74a1fc62bfe24b7eabe4e244c70dc384",             "url_name": "",             "functions": [                 {                     "functionid": "13500",                     "itemid": "22686",                     "triggerid": "13266",                     "parameter": "$",                     "function": "last"                 }             ]         }     ],     "id": 1 } ```