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|string|ID of the report.<br><br>[Property behavior](/manual/api/reference_commentary#property-behavior):<br>- *read-only*<br>- *required* for update operations| |userid|string|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|string|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|cadena|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|cadena|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|cadena|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|integer|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) - recuperación de     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/6.4/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/6.4/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",         "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",     "method": "user.login",     "params": {         "username": "Admin",         "password": "zabbix",         "userData": true     },     "id": 1 } ```  Respuesta:  ```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",         "deprovisioned": false,         "auth_type": 0,         "sessionid": "5b56eee8be445e98f0bd42b435736e42",         "secret": "cd0ba923319741c6586f3d866423a8f4"     },     "id": 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, proxy\_hostid should be set to 0 ("proxy\_hostid": "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, proxy\_hostid debe establecerse en 0 ("proxy\_hostid": "0") o para filtrar equipos monitoreados por la opción de servidor proxyids deben establecerse en 0 ("proxyids": "0").

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	#### 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",             "proxy_hostid": "0",             "name": "Local network",             "iprange": "192.168.3.1-255",             "delay": "5s",             "status": "0",             "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",                     "host_source": "1",                     "name_source": "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",                     "host_source": "1",                     "name_source": "0"                 }             ]         },         {             "druleid": "6",             "proxy_hostid": "0",             "name": "Zabbix agent discovery",             "iprange": "192.168.1.1-255",             "delay": "1h",             "status": "0",             "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",                     "host_source": "2",                     "name_source": "3"                 }             ]         }     ],     "id": 1 } ```
es	#### Recuperar todas las reglas de descubrimiento  Recupere todas las reglas de descubrimiento configuradas y las comprobaciones de descubrimiento que usan.  [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",             "proxy_hostid": "0",             "name": "Local network",             "iprange": "192.168.3.1-255",             "delay": "5s",             "status": "0",             "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",                     "host_source": "1",                     "name_source": "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",                     "host_source": "1",                     "name_source": "0"                 }             ]         },         {             "druleid": "6",             "proxy_hostid": "0",             "name": "Zabbix agent discovery",             "iprange": "192.168.1.1-255",             "delay": "1h",             "status": "0",             "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",                     "host_source": "2",                     "name_source": "3"                 }             ]         }     ],     "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",         "selectInterface": "extend"     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "host": "Active proxy",             "status": "5",             "description": "",             "tls_connect": "1",             "tls_accept": "1",             "tls_issuer": "",             "tls_subject": "",             "proxy_address": "",             "auto_compress": "0",             "version": "60400",             "compatibility": "1",             "proxyid": "30091",             "interface": []         },         {             "host": "Passive proxy",             "status": "6",             "description": "",             "tls_connect": "1",             "tls_accept": "1",             "tls_issuer": "",             "tls_subject": "",             "proxy_address": "",             "auto_compress": "0",             "lastaccess": "0",             "version": "0",             "compatibility": "0",             "proxyid": "30092",             "interface": {                 "interfaceid": "30109",                 "hostid": "30092",                 "main": "1",                 "type": "0",                 "useip": "1",                 "ip": "127.0.0.1",                 "dns": "",                 "port": "10051",                 "available": "0",                 "error": "",                 "errors_from": "0",                 "disable_until": "0",                 "details": []             }         }     ],     "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",         "selectInterface": "extend"     },     "id": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "result": [         {             "host": "Active proxy",             "status": "5",             "description": "",             "tls_connect": "1",             "tls_accept": "1",             "tls_issuer": "",             "tls_subject": "",             "proxy_address": "",             "auto_compress": "0",             "version": "60400",             "compatibility": "1",             "proxyid": "30091",             "interface": []         },         {             "host": "Passive proxy",             "status": "6",             "description": "",             "tls_connect": "1",             "tls_accept": "1",             "tls_issuer": "",             "tls_subject": "",             "proxy_address": "",             "auto_compress": "0",             "lastaccess": "0",             "version": "0",             "compatibility": "0",             "proxyid": "30092",             "interface": {                 "interfaceid": "30109",                 "hostid": "30092",                 "main": "1",                 "type": "0",                 "useip": "1",                 "ip": "127.0.0.1",                 "dns": "",                 "port": "10051",                 "available": "0",                 "error": "",                 "errors_from": "0",                 "disable_until": "0",                 "details": []             }         }     ],     "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",             "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 } ```
es	#### Recuperar todos los scripts  Recupere todos los scripts configurados.  [Solicitud](/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'], $data['captions']['items']['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'], $data['captions']['items']['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 el elemento "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 panel.  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 del artículo.  ![](../../../../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",             "host_source": "1",             "name_source": "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", "host_source": "1", "name_source": "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": "3s",             "url": "http://127.0.0.1/discoverer.php",             "query_fields": [                 {                     "mode": "json"                 },                 {                     "elements": "2"                 }             ],             "posts": "",             "status_codes": "200",             "follow_redirects": "1",             "post_type": "0",             "http_proxy": "",             "headers": {                 "X-Type": "api",                 "Authorization": "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": "",             "state": "0",             "error": "",             "parameters": []         }     ],     "id": 1 } ```
es	#### Recuperar regla LLD por URL  Recuperar regla LLD de un equipo por el valor del campo URL de regla. 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": "3s",             "url": "http://127.0.0.1/discoverer.php",             "query_fields": [                 {                     "mode": "json"                 },                 {                     "elements": "2"                 }             ],             "posts": "",             "status_codes": "200",             "follow_redirects": "1",             "post_type": "0",             "http_proxy": "",             "headers": {                 "X-Type": "api",                 "Authorization": "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": "",             "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": [         "632",         "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",                 "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",                 "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",                 "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",                 "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",                 "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",                 "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": [         "632",         "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",                 "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",                 "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",                 "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",                 "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",                 "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",                 "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": [         "30079",         "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",                 "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",                 "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": []             }         ],         "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",                 "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",                 "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": []             }         ]     },     "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": [         "30079",         "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",                 "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",                 "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": []             }         ],         "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",                 "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",                 "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": []             }         ]     },     "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 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",             "proxy_hostid": 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",     "method": "task.get",     "params": {         "output": "extend",         "taskids": "1"     },     "id": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "result": [         {             "taskid": "1",             "type": "7",             "status": "3",             "clock": "1601039076",             "ttl": "3600",             "proxy_hostid": 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 } ```

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 } ```

en-us	#### Retrieving a dashboard by ID  Retrieve all data about dashboards "1" and "2".  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "dashboard.get",     "params": {         "output": "extend",         "selectPages": "extend",         "selectUsers": "extend",         "selectUserGroups": "extend",         "dashboardids": [             "1",             "2"         ]     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "dashboardid": "1",             "name": "Dashboard",             "userid": "1",             "private": "0",             "display_period": "30",             "auto_start": "1",             "users": [],             "userGroups": [],             "pages": [                 {                     "dashboard_pageid": "1",                     "name": "",                     "display_period": "0",                     "widgets": [                         {                             "widgetid": "9",                             "type": "systeminfo",                             "name": "",                             "x": "12",                             "y": "8",                             "width": "12",                             "height": "5",                             "view_mode": "0",                             "fields": []                         },                         {                             "widgetid": "8",                             "type": "problemsbysv",                             "name": "",                             "x": "12",                             "y": "4",                             "width": "12",                             "height": "4",                             "view_mode": "0",                             "fields": []                         },                         {                             "widgetid": "7",                             "type": "problemhosts",                             "name": "",                             "x": "12",                             "y": "0",                             "width": "12",                             "height": "4",                             "view_mode": "0",                             "fields": []                         },                         {                             "widgetid": "6",                             "type": "discovery",                             "name": "",                             "x": "6",                             "y": "9",                             "width": "6",                             "height": "4",                             "view_mode": "0",                             "fields": []                         },                         {                             "widgetid": "5",                             "type": "web",                             "name": "",                             "x": "0",                             "y": "9",                             "width": "6",                             "height": "4",                             "view_mode": "0",                             "fields": []                         },                         {                             "widgetid": "4",                             "type": "problems",                             "name": "",                             "x": "0",                             "y": "3",                             "width": "12",                             "height": "6",                             "view_mode": "0",                             "fields": []                         },                         {                             "widgetid": "3",                             "type": "favmaps",                             "name": "",                             "x": "8",                             "y": "0",                             "width": "4",                             "height": "3",                             "view_mode": "0",                             "fields": []                         },                         {                             "widgetid": "1",                             "type": "favgraphs",                             "name": "",                             "x": "0",                             "y": "0",                             "width": "4",                             "height": "3",                             "view_mode": "0",                             "fields": []                         }                     ]                 },                 {                     "dashboard_pageid": "2",                     "name": "",                     "display_period": "0",                     "widgets": []                 },                 {                     "dashboard_pageid": "3",                     "name": "Custom page name",                     "display_period": "60",                     "widgets": []                 }             ]         },         {             "dashboardid": "2",             "name": "My dashboard",             "userid": "1",             "private": "1",             "display_period": "60",             "auto_start": "1",             "users": [                 {                     "userid": "4",                     "permission": "3"                 }             ],             "userGroups": [                 {                     "usrgrpid": "7",                     "permission": "2"                 }             ],             "pages": [                 {                     "dashboard_pageid": "4",                     "name": "",                     "display_period": "0",                     "widgets": [                         {                             "widgetid": "10",                             "type": "problems",                             "name": "",                             "x": "0",                             "y": "0",                             "width": "12",                             "height": "5",                             "view_mode": "0",                             "fields": [                                 {                                     "type": "2",                                     "name": "groupids",                                     "value": "4"                                 }                             ]                         }                     ]                 }             ]         }     ],     "id": 1 } ```
es	#### Recuperar un panel por ID  Recupere todos los datos sobre los paneles "1" y "2".  [Solicitud](/manual/api#performing-requests):  ```json { "jsonrpc": "2.0", "method": "dashboard.get", "params": { "output": "extend", "selectPages": "extend", "selectUsers": "extend", "selectUserGroups": "extend", "dashboardids": [ "1", "2" ] }, "id": 1 } ```  Respuesta:  ```json { "jsonrpc": "2.0", "result": [ { "dashboardid": "1", "name": "Dashboard", "userid": "1", "private": "0", "display_period": "30", "auto_start": "1", "users": [], "userGroups": [], "pages": [ { "dashboard_pageid": "1", "name": "", "display_period": "0", "widgets": [ { "widgetid": "9", "type": "systeminfo", "name": "", "x": "12", "y": "8", "width": "12", "height": "5", "view_mode": "0", "fields": [] }, { "widgetid": "8", "type": "problemsbysv", "name": "", "x": "12", "y": "4", "width": "12", "height": "4", "view_mode": "0", "fields": [] }, { "widgetid": "7", "type": "problemhosts", "name": "", "x": "12", "y": "0", "width": "12", "height": "4", "view_mode": "0", "fields": [] }, { "widgetid": "6", "type": "discovery", "name": "", "x": "6", "y": "9", "width": "6", "height": "4", "view_mode": "0", "fields": [] }, { "widgetid": "5", "type": "web", "name": "", "x": "0", "y": "9", "width": "6", "height": "4", "view_mode": "0", "fields": [] }, { "widgetid": "4", "type": "problems", "name": "", "x": "0", "y": "3", "width": "12", "height": "6", "view_mode": "0", "fields": [] }, { "widgetid": "3", "type": "favmaps", "name": "", "x": "8", "y": "0", "width": "4", "height": "3", "view_mode": "0", "fields": [] }, { "widgetid": "1", "type": "favgraphs", "name": "", "x": "0", "y": "0", "width": "4", "height": "3", "view_mode": "0", "fields": [] } ] }, { "dashboard_pageid": "2", "name": "", "display_period": "0", "widgets": [] }, { "dashboard_pageid": "3", "name": "Custom page name", "display_period": "60", "widgets": [] } ] }, { "dashboardid": "2", "name": "My dashboard", "userid": "1", "private": "1", "display_period": "60", "auto_start": "1", "users": [ { "userid": "4", "permission": "3" } ], "userGroups": [ { "usrgrpid": "7", "permission": "2" } ], "pages": [ { "dashboard_pageid": "4", "name": "", "display_period": "0", "widgets": [ { "widgetid": "10", "type": "problems", "name": "", "x": "0", "y": "0", "width": "12", "height": "5", "view_mode": "0", "fields": [ { "type": "2", "name": "groupids", "value": "4" } ] } ] } ] } ], "id": 1 } ```

en-us	#### Retrieving all connectors  Retrieve all data about all connectors and their properties.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "connector.get",     "params": {         "output": "extend",         "selectTags": ["tag", "operator", "value"],         "preservekeys": true     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "connectorid": "1",             "name": "Export of item values",             "protocol": "0",             "data_type": "0",             "url": "{$DATA_EXPORT_VALUES_URL}",             "max_records": "0",             "max_senders": "4",             "max_attempts": "2",             "timeout": "10s",             "http_proxy": "{$DATA_EXPORT_VALUES_PROXY}",             "authtype": "4",             "username": "{$DATA_EXPORT_VALUES_USERNAME}",             "password": "{$DATA_EXPORT_VALUES_PASSWORD}",             "token": "",             "verify_peer": "1",             "verify_host": "1",             "ssl_cert_file": "{$DATA_EXPORT_VALUES_SSL_CERT_FILE}",             "ssl_key_file": "{$DATA_EXPORT_VALUES_SSL_KEY_FILE}",             "ssl_key_password": "",             "description": "",             "status": "1",             "tags_evaltype": "0",             "tags": [                 {                     "tag": "component",                     "operator": "0",                     "value": "memory"                 }             ]         },         {             "connectorid": "2",             "name": "Export of events",             "protocol": "0",             "data_type": "1",             "url": "{$DATA_EXPORT_EVENTS_URL}",             "max_records": "0",             "max_senders": "2",             "max_attempts": "2",             "timeout": "5s",             "http_proxy": "",             "authtype": "5",             "username": "",             "password": "",             "token": "{$DATA_EXPORT_EVENTS_BEARER_TOKEN}",             "verify_peer": "1",             "verify_host": "1",             "ssl_cert_file": "",             "ssl_key_file": "",             "ssl_key_password": "",             "description": "",             "status": "1",             "tags_evaltype": "0",             "tags": [                 {                     "tag": "scope",                     "operator": "0",                     "value": "performance"                 }             ]         }     ],     "id": 1 } ```
es	#### Recuperando todos los conectores  Recupere todos los datos sobre todos los conectores y sus propiedades.  [Solicitud](/manual/api#performing-requests):  ```json { "jsonrpc": "2.0", "method": "connector.get", "params": { "output": "extend", "selectTags": ["tag", "operator", "value"], "preservekeys": true }, "id": 1 } ```  Respuesta:  ```json { "jsonrpc": "2.0", "result": [ { "connectorid": "1", "name": "Export of item values", "protocol": "0", "data_type": "0", "url": "{$DATA_EXPORT_VALUES_URL}", "max_records": "0", "max_senders": "4", "max_attempts": "2", "timeout": "10s", "http_proxy": "{$DATA_EXPORT_VALUES_PROXY}", "authtype": "4", "username": "{$DATA_EXPORT_VALUES_USERNAME}", "password": "{$DATA_EXPORT_VALUES_PASSWORD}", "token": "", "verify_peer": "1", "verify_host": "1", "ssl_cert_file": "{$DATA_EXPORT_VALUES_SSL_CERT_FILE}", "ssl_key_file": "{$DATA_EXPORT_VALUES_SSL_KEY_FILE}", "ssl_key_password": "", "description": "", "status": "1", "tags_evaltype": "0", "tags": [ { "tag": "component", "operator": "0", "value": "memory" } ] }, { "connectorid": "2", "name": "Export of events", "protocol": "0", "data_type": "1", "url": "{$DATA_EXPORT_EVENTS_URL}", "max_records": "0", "max_senders": "2", "max_attempts": "2", "timeout": "5s", "http_proxy": "", "authtype": "5", "username": "", "password": "", "token": "{$DATA_EXPORT_EVENTS_BEARER_TOKEN}", "verify_peer": "1", "verify_host": "1", "ssl_cert_file": "", "ssl_key_file": "", "ssl_key_password": "", "description": "", "status": "1", "tags_evaltype": "0", "tags": [ { "tag": "scope", "operator": "0", "value": "performance" } ] } ], "id": 1 } ```

en-us	#### Retrieving all services  Retrieve all data about all services and their dependencies.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "service.get",     "params": {         "output": "extend",         "selectChildren": "extend",         "selectParents": "extend"     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "serviceid": "1",             "name": "My Service - 0001",             "status": "-1",             "algorithm": "2",             "sortorder": "0",             "weight": "0",             "propagation_rule": "0",             "propagation_value": "0",             "description": "My Service Description 0001.",             "uuid": "dfa4daeaea754e3a95c04d6029182681",             "created_at": "946684800",             "readonly": false,             "parents": [],             "children": []         },         {             "serviceid": "2",             "name": "My Service - 0002",             "status": "-1",             "algorithm": "2",             "sortorder": "0",             "weight": "0",             "propagation_rule": "0",             "propagation_value": "0",             "description": "My Service Description 0002.",             "uuid": "20ea0d85212841219130abeaca28c065",             "created_at": "946684800",             "readonly": false,             "parents": [],             "children": []         }     ],     "id": 1 } ```
es	#### Recuperando todos los servicios  Recupere todos los datos sobre todos los servicios y sus dependencias.  [Solicitud](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "service.get",     "params": {         "output": "extend",         "selectChildren": "extend",         "selectParents": "extend"     },     "id": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "result": [         {             "serviceid": "1",             "name": "My Service - 0001",             "status": "-1",             "algorithm": "2",             "sortorder": "0",             "weight": "0",             "propagation_rule": "0",             "propagation_value": "0",             "description": "My Service Description 0001.",             "uuid": "dfa4daeaea754e3a95c04d6029182681",             "created_at": "946684800",             "readonly": false,             "parents": [],             "children": []         },         {             "serviceid": "2",             "name": "My Service - 0002",             "status": "-1",             "algorithm": "2",             "sortorder": "0",             "weight": "0",             "propagation_rule": "0",             "propagation_value": "0",             "description": "My Service Description 0002.",             "uuid": "20ea0d85212841219130abeaca28c065",             "created_at": "946684800",             "readonly": false,             "parents": [],             "children": []         }     ],     "id": 1 } ```

en-us	#### Retrieving all SLAs  Retrieve all data about all SLAs and their properties.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "sla.get",     "params": {         "output": "extend",         "selectSchedule": ["period_from", "period_to"],         "selectExcludedDowntimes": ["name", "period_from", "period_to"],         "selectServiceTags": ["tag", "operator", "value"],         "preservekeys": true     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "1": {             "slaid": "1",             "name": "Database Uptime",             "period": "1",             "slo": "99.9995",             "effective_date": "1672444800",             "timezone": "America/Toronto",             "status": "1",             "description": "Provide excellent uptime for main SQL database engines.",             "service_tags": [                 {                     "tag": "Database",                     "operator": "0",                     "value": "MySQL"                 },                 {                     "tag": "Database",                     "operator": "0",                     "value": "PostgreSQL"                 }             ],             "schedule": [                 {                     "period_from": "0",                     "period_to": "601200"                 }             ],             "excluded_downtimes": [                 {                     "name": "Software version upgrade rollout",                     "period_from": "1648760400",                     "period_to": "1648764900"                 }             ]         }     },     "id": 1 } ```
es	#### Recuperando todos los SLA  Recupere todos los datos sobre todos los SLA y sus propiedades.  [Solicitud](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "sla.get",     "params": {         "output": "extend",         "selectSchedule": ["period_from", "period_to"],         "selectExcludedDowntimes": ["name", "period_from", "period_to"],         "selectServiceTags": ["tag", "operator", "value"],         "preservekeys": true     },     "id": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "result": {         "1": {             "slaid": "1",             "name": "Database Uptime",             "period": "1",             "slo": "99.9995",             "effective_date": "1672444800",             "timezone": "America/Toronto",             "status": "1",             "description": "Provide excellent uptime for main SQL database engines.",             "service_tags": [                 {                     "tag": "Database",                     "operator": "0",                     "value": "MySQL"                 },                 {                     "tag": "Database",                     "operator": "0",                     "value": "PostgreSQL"                 }             ],             "schedule": [                 {                     "period_from": "0",                     "period_to": "601200"                 }             ],             "excluded_downtimes": [                 {                     "name": "Software version upgrade rollout",                     "period_from": "1648760400",                     "period_to": "1648764900"                 }             ]         }     },     "id": 1 } ```

en-us	#### Retrieving a module by ID  Retrieve all data about modules "1", "2", and "25".  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "module.get",     "params": {         "output": "extend",         "moduleids": [             "1",             "2",             "25"         ]     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "moduleid": "1",             "id": "actionlog",             "relative_path": "widgets/actionlog",             "status": "1",             "config": []         },         {             "moduleid": "2",             "id": "clock",             "relative_path": "widgets/clock",             "status": "1",             "config": []         },         {             "moduleid": "25",             "id": "example",             "relative_path": "modules/example_module",             "status": "1",             "config": []         }     ],     "id": 1 } ```
es	#### Recuperar un módulo por ID  Recupere todos los datos sobre los módulos "1", "2" y "25".  [Solicitud](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "module.get",     "params": {         "output": "extend",         "moduleids": [             "1",             "2",             "25"         ]     },     "id": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "result": [         {             "moduleid": "1",             "id": "actionlog",             "relative_path": "widgets/actionlog",             "status": "1",             "config": []         },         {             "moduleid": "2",             "id": "clock",             "relative_path": "widgets/clock",             "status": "1",             "config": []         },         {             "moduleid": "25",             "id": "example",             "relative_path": "modules/example_module",             "status": "1",             "config": []         }     ],     "id": 1 } ```

en-us	#### Retrieving a specific trigger prototype with tags  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "triggerprototype.get",     "params": {         "output": [             "triggerid",             "description"         ],         "selectTags": "extend",         "triggerids": [             "17373"         ]     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "triggerid": "17373",             "description": "Free disk space is less than 20% on volume {#FSNAME}",             "tags": [                 {                     "tag": "volume",                     "value": "{#FSNAME}"                 },                 {                     "tag": "type",                     "value": "{#FSTYPE}"                 }             ]         }     ],     "id": 1 } ```
es	#### Recuperar un prototipo de iniciador específico con etiquetas  [Solicitud](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "triggerprototype.get",     "params": {         "output": [             "triggerid",             "description"         ],         "selectTags": "extend",         "triggerids": [             "17373"         ]     },     "id": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "result": [         {             "triggerid": "17373",             "description": "Free disk space is less than 20% on volume {#FSNAME}",             "tags": [                 {                     "tag": "volume",                     "value": "{#FSNAME}"                 },                 {                     "tag": "type",                     "value": "{#FSTYPE}"                 }             ]         }     ],     "id": 1 } ```

en-us	#### Retrieving a specific trigger with tags  Retrieve a specific trigger with tags.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "trigger.get",     "params": {         "output": [             "triggerid",             "description"         ],         "selectTags": "extend",         "triggerids": [             "17578"         ]     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "triggerid": "17370",             "description": "Service status",             "tags": [                 {                     "tag": "service",                     "value": "{{ITEM.VALUE}.regsub(\"Service (.*) has stopped\", \"\\1\")}"                 },                 {                     "tag": "error",                     "value": ""                 }             ]         }     ],     "id": 1 } ```
es	#### Recuperar un iniciador específico con etiquetas  Recupera un iniciador específico con etiquetas.  [Solicitud](/manual/api#performing-requests):  ```json { "jsonrpc": "2.0", "method": "trigger.get", "params": { "output": [ "triggerid", "description" ], "selectTags": "extend", "triggerids": [ "17578" ] }, "id": 1 } ```  Respuesta:  ```json { "jsonrpc": "2.0", "result": [ { "triggerid": "17370", "description": "Service status", "tags": [ { "tag": "service", "value": "{{ITEM.VALUE}.regsub(\"Service (.*) has stopped\", \"\\1\")}" }, { "tag": "error", "value": "" } ] } ], "id": 1 } ```

en-us	#### Retrieving a web scenario  Retrieve all data about web scenario "4".  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "httptest.get",     "params": {         "output": "extend",         "selectSteps": "extend",         "httptestids": "9"     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "httptestid": "9",             "name": "Homepage check",             "delay": "1m",             "status": "0",             "variables": [],             "agent": "Zabbix",             "authentication": "0",             "http_user": "",             "http_password": "",             "hostid": "10084",             "templateid": "0",             "http_proxy": "",             "retries": "1",             "ssl_cert_file": "",             "ssl_key_file": "",             "ssl_key_password": "",             "verify_peer": "0",             "verify_host": "0",             "headers": [],             "steps": [                 {                     "httpstepid": "36",                     "httptestid": "9",                     "name": "Homepage",                     "no": "1",                     "url": "http://example.com",                     "timeout": "15s",                     "posts": "",                     "required": "",                     "status_codes": "200",                     "variables": [                         {                             "name":"{var}",                             "value":"12"                         }                     ],                     "follow_redirects": "1",                     "retrieve_mode": "0",                     "headers": [],                     "query_fields": []                 },                 {                     "httpstepid": "37",                     "httptestid": "9",                     "name": "Homepage / About",                     "no": "2",                     "url": "http://example.com/about",                     "timeout": "15s",                     "posts": "",                     "required": "",                     "status_codes": "200",                     "variables": [],                     "follow_redirects": "1",                     "retrieve_mode": "0",                     "headers": [],                     "query_fields": []                 }             ]         }     ],     "id": 1 } ```
es	#### Recuperando un escenario web  Recupere todos los datos sobre el escenario web "4".  [Solicitud](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "httptest.get",     "params": {         "output": "extend",         "selectSteps": "extend",         "httptestids": "9"     },     "id": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "result": [         {             "httptestid": "9",             "name": "Homepage check",             "delay": "1m",             "status": "0",             "variables": [],             "agent": "Zabbix",             "authentication": "0",             "http_user": "",             "http_password": "",             "hostid": "10084",             "templateid": "0",             "http_proxy": "",             "retries": "1",             "ssl_cert_file": "",             "ssl_key_file": "",             "ssl_key_password": "",             "verify_peer": "0",             "verify_host": "0",             "headers": [],             "steps": [                 {                     "httpstepid": "36",                     "httptestid": "9",                     "name": "Homepage",                     "no": "1",                     "url": "http://example.com",                     "timeout": "15s",                     "posts": "",                     "required": "",                     "status_codes": "200",                     "variables": [                         {                             "name":"{var}",                             "value":"12"                         }                     ],                     "follow_redirects": "1",                     "retrieve_mode": "0",                     "headers": [],                     "query_fields": []                 },                 {                     "httpstepid": "37",                     "httptestid": "9",                     "name": "Homepage / About",                     "no": "2",                     "url": "http://example.com/about",                     "timeout": "15s",                     "posts": "",                     "required": "",                     "status_codes": "200",                     "variables": [],                     "follow_redirects": "1",                     "retrieve_mode": "0",                     "headers": [],                     "query_fields": []                 }             ]         }     ],     "id": 1 } ```

en-us	#### Retrieving data by name  Retrieve all data about two host groups named "Zabbix servers" and "Linux servers".  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "hostgroup.get",     "params": {         "output": "extend",         "filter": {             "name": [                 "Zabbix servers",                 "Linux servers"             ]         }     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "groupid": "2",             "name": "Linux servers",             "internal": "0"         },         {             "groupid": "4",             "name": "Zabbix servers",             "internal": "0"         }     ],     "id": 1 } ```
es	#### Recuperando datos por nombre  Recupere todos los datos sobre dos grupos de equipos denominados "servidores Zabbix" y "servidores Linux".  [Solicitud](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "hostgroup.get",     "params": {         "output": "extend",         "filter": {             "name": [                 "servidores Zabbix",                 "servidores Linux"             ]         }     },     "id": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "result": [         {             "groupid": "2",             "name": "servidores Linux",             "internal": "0"         },         {             "groupid": "4",             "name": "servidores Zabbix",             "internal": "0"         }     ],     "id": 1 } ```

en-us	#### Retrieving data by name  Retrieve all data about two hosts named "Zabbix server" and "Linux server".  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "host.get",     "params": {         "filter": {             "host": [                 "Zabbix server",                 "Linux server"             ]         }     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "hostid": "10160",             "proxy_hostid": "0",             "host": "Zabbix server",             "status": "0",             "lastaccess": "0",             "ipmi_authtype": "-1",             "ipmi_privilege": "2",             "ipmi_username": "",             "ipmi_password": "",             "maintenanceid": "0",             "maintenance_status": "0",             "maintenance_type": "0",             "maintenance_from": "0",             "name": "Zabbix server",             "flags": "0",             "description": "The Zabbix monitoring server.",             "tls_connect": "1",             "tls_accept": "1",             "tls_issuer": "",             "tls_subject": "",             "inventory_mode": "1",             "active_available": "1"         },         {             "hostid": "10167",             "proxy_hostid": "0",             "host": "Linux server",             "status": "0",             "ipmi_authtype": "-1",             "ipmi_privilege": "2",             "ipmi_username": "",             "ipmi_password": "",             "maintenanceid": "0",             "maintenance_status": "0",             "maintenance_type": "0",             "maintenance_from": "0",             "name": "Linux server",             "flags": "0",             "description": "",             "tls_connect": "1",             "tls_accept": "1",             "tls_issuer": "",             "tls_subject": "",             "inventory_mode": "1",             "active_available": "1"         }     ],     "id": 1 } ```
es	#### Recuperando datos por nombre  Recupere todos los datos sobre dos equipos llamados "servidor Zabbix" y "Linux servidor".  [Solicitud](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "host.get",     "params": {         "filter": {             "host": [                 "Zabbix server",                 "Linux server"             ]         }     },     "id": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "result": [         {             "hostid": "10160",             "proxy_hostid": "0",             "host": "Zabbix server",             "status": "0",             "lastaccess": "0",             "ipmi_authtype": "-1",             "ipmi_privilege": "2",             "ipmi_username": "",             "ipmi_password": "",             "maintenanceid": "0",             "maintenance_status": "0",             "maintenance_type": "0",             "maintenance_from": "0",             "name": "Zabbix server",             "flags": "0",             "description": "The Zabbix monitoring server.",             "tls_connect": "1",             "tls_accept": "1",             "tls_issuer": "",             "tls_subject": "",             "inventory_mode": "1",             "active_available": "1"         },         {             "hostid": "10167",             "proxy_hostid": "0",             "host": "Linux server",             "status": "0",             "ipmi_authtype": "-1",             "ipmi_privilege": "2",             "ipmi_username": "",             "ipmi_password": "",             "maintenanceid": "0",             "maintenance_status": "0",             "maintenance_type": "0",             "maintenance_from": "0",             "name": "Linux server",             "flags": "0",             "description": "",             "tls_connect": "1",             "tls_accept": "1",             "tls_issuer": "",             "tls_subject": "",             "inventory_mode": "1",             "active_available": "1"         }     ],     "id": 1 } ```

en-us	#### Retrieving data by name  Retrieve all data about two template groups named "Templates/Databases" and "Templates/Modules".  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "templategroup.get",     "params": {         "output": "extend",         "filter": {             "name": [                 "Templates/Databases",                 "Templates/Modules"             ]         }     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "groupid": "13",             "name": "Templates/Databases",             "uuid": "748ad4d098d447d492bb935c907f652f"         },         {             "groupid": "8",             "name": "Templates/Modules",             "uuid": "57b7ae836ca64446ba2c296389c009b7"         }     ],     "id": 1 } ```
es	#### Recuperando datos por nombre  Recupere todos los datos sobre dos grupos de plantillas denominados "Templates/Databases" y "Templates/Modules".  [Solicitud](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "templategroup.get",     "params": {         "output": "extend",         "filter": {             "name": [                 "Templates/Databases",                 "Templates/Modules"             ]         }     },     "id": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "result": [         {             "groupid": "13",             "name": "Templates/Databases",             "uuid": "748ad4d098d447d492bb935c907f652f"         },         {             "groupid": "8",             "name": "Templates/Modules",             "uuid": "57b7ae836ca64446ba2c296389c009b7"         }     ],     "id": 1 } ```

en-us	#### Retrieving data by trigger ID  Retrieve all data and the functions used in trigger "14062".  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "trigger.get",     "params": {         "triggerids": "14062",         "output": "extend",         "selectFunctions": "extend"     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "triggerid": "14062",             "expression": "{13513}<10m",             "description": "{HOST.NAME} has been restarted (uptime < 10m)",             "url": "",             "status": "0",             "value": "0",             "priority": "2",             "lastchange": "0",             "comments": "The host uptime is less than 10 minutes",             "error": "",             "templateid": "10016",             "type": "0",             "state": "0",             "flags": "0",             "recovery_mode": "0",             "recovery_expression": "",             "correlation_mode": "0",             "correlation_tag": "",             "manual_close": "0",             "opdata": "",             "event_name": "",             "uuid": "",             "url_name": "",             "functions": [                 {                     "functionid": "13513",                     "itemid": "24350",                     "triggerid": "14062",                     "parameter": "$",                     "function": "last"                 }             ]         }     ],     "id": 1 } ```
es	#### Recuperar datos por ID de iniciador  Recupera todos los datos y las funciones utilizadas en el iniciador "14062".  [Solicitud](/manual/api#performing-requests):  ```json { "jsonrpc": "2.0", "method": "trigger.get", "params": { "triggerids": "14062", "output": "extend", "selectFunctions": "extend" }, "id": 1 } ```  Respuesta:  ```json { "jsonrpc": "2.0", "result": [ { "triggerid": "14062", "expression": "{13513}<10m", "description": "{HOST.NAME} has been restarted (uptime < 10m)", "url": "", "status": "0", "value": "0", "priority": "2", "lastchange": "0", "comments": "The host uptime is less than 10 minutes", "error": "", "templateid": "10016", "type": "0", "state": "0", "flags": "0", "recovery_mode": "0", "recovery_expression": "", "correlation_mode": "0", "correlation_tag": "", "manual_close": "0", "opdata": "", "event_name": "", "uuid": "", "url_name": "", "functions": [ { "functionid": "13513", "itemid": "24350", "triggerid": "14062", "parameter": "$", "function": "last" } ] } ], "id": 1 } ```

en-us	#### Retrieving discovery rules from a host  Retrieve all discovery rules for specific host ID.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "discoveryrule.get",     "params": {         "output": "extend",         "hostids": "10202"     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "itemid": "27425",             "type": "0",             "snmp_oid": "",             "hostid": "10202",             "name": "Network interface discovery",             "key_": "net.if.discovery",             "delay": "1h",             "status": "0",             "trapper_hosts": "",             "templateid": "22444",             "valuemapid": "0",             "params": "",             "ipmi_sensor": "",             "authtype": "0",             "username": "",             "password": "",             "publickey": "",             "privatekey": "",             "interfaceid": "119",             "description": "Discovery of network interfaces as defined in global regular expression \"Network interfaces for discovery\".",             "lifetime": "30d",             "jmx_endpoint": "",             "master_itemid": "0",             "timeout": "3s",             "url": "",             "query_fields": [],             "posts": "",             "status_codes": "200",             "follow_redirects": "1",             "post_type": "0",             "http_proxy": "",             "headers": [],             "retrieve_mode": "0",             "request_method": "0",             "ssl_cert_file": "",             "ssl_key_file": "",             "ssl_key_password": "",             "verify_peer": "0",             "verify_host": "0",             "allow_traps": "0",             "uuid": "",             "state": "0",             "error": "",             "parameters": []         },         {             "itemid": "27426",             "type": "0",             "snmp_oid": "",             "hostid": "10202",             "name": "Mounted filesystem discovery",             "key_": "vfs.fs.discovery",             "delay": "1h",             "status": "0",             "trapper_hosts": "",             "templateid": "22450",             "valuemapid": "0",             "params": "",             "ipmi_sensor": "",             "authtype": "0",             "username": "",             "password": "",             "publickey": "",             "privatekey": "",             "interfaceid": "119",             "description": "Discovery of file systems of different types as defined in global regular expression \"File systems for discovery\".",             "lifetime": "30d",             "jmx_endpoint": "",             "master_itemid": "0",             "timeout": "3s",             "url": "",             "query_fields": [],             "posts": "",             "status_codes": "200",             "follow_redirects": "1",             "post_type": "0",             "http_proxy": "",             "headers": [],             "retrieve_mode": "0",             "request_method": "0",             "ssl_cert_file": "",             "ssl_key_file": "",             "ssl_key_password": "",             "verify_peer": "0",             "verify_host": "0",             "allow_traps": "0",             "uuid": "",             "state": "0",             "error": "",             "parameters": []         }     ],     "id": 1 } ```
es	#### Recuperar reglas de descubrimiento de un host  Recupere todas las reglas de descubrimiento para una ID de host específica.  [Solicitud](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "discoveryrule.get",     "params": {         "output": "extend",         "hostids": "10202"     },     "id": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "result": [         {             "itemid": "27425",             "type": "0",             "snmp_oid": "",             "hostid": "10202",             "name": "Network interface discovery",             "key_": "net.if.discovery",             "delay": "1h",             "status": "0",             "trapper_hosts": "",             "templateid": "22444",             "valuemapid": "0",             "params": "",             "ipmi_sensor": "",             "authtype": "0",             "username": "",             "password": "",             "publickey": "",             "privatekey": "",             "interfaceid": "119",             "description": "Discovery of network interfaces as defined in global regular expression \"Network interfaces for discovery\".",             "lifetime": "30d",             "jmx_endpoint": "",             "master_itemid": "0",             "timeout": "3s",             "url": "",             "query_fields": [],             "posts": "",             "status_codes": "200",             "follow_redirects": "1",             "post_type": "0",             "http_proxy": "",             "headers": [],             "retrieve_mode": "0",             "request_method": "0",             "ssl_cert_file": "",             "ssl_key_file": "",             "ssl_key_password": "",             "verify_peer": "0",             "verify_host": "0",             "allow_traps": "0",             "uuid": "",             "state": "0",             "error": "",             "parameters": []         },         {             "itemid": "27426",             "type": "0",             "snmp_oid": "",             "hostid": "10202",             "name": "Mounted filesystem discovery",             "key_": "vfs.fs.discovery",             "delay": "1h",             "status": "0",             "trapper_hosts": "",             "templateid": "22450",             "valuemapid": "0",             "params": "",             "ipmi_sensor": "",             "authtype": "0",             "username": "",             "password": "",             "publickey": "",             "privatekey": "",             "interfaceid": "119",             "description": "Discovery of file systems of different types as defined in global regular expression \"File systems for discovery\".",             "lifetime": "30d",             "jmx_endpoint": "",             "master_itemid": "0",             "timeout": "3s",             "url": "",             "query_fields": [],             "posts": "",             "status_codes": "200",             "follow_redirects": "1",             "post_type": "0",             "http_proxy": "",             "headers": [],             "retrieve_mode": "0",             "request_method": "0",             "ssl_cert_file": "",             "ssl_key_file": "",             "ssl_key_password": "",             "verify_peer": "0",             "verify_host": "0",             "allow_traps": "0",             "uuid": "",             "state": "0",             "error": "",             "parameters": []         }     ],     "id": 1 } ```

en-us	#### Retrieving enabled user groups  Retrieve all enabled user groups.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "usergroup.get",     "params": {         "output": "extend",         "status": 0     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "usrgrpid": "7",             "name": "Zabbix administrators",             "gui_access": "0",             "users_status": "0",             "debug_mode": "1",             "userdirectoryid": "0"         },         {             "usrgrpid": "8",             "name": "Guests",             "gui_access": "0",             "users_status": "0",             "debug_mode": "0",             "userdirectoryid": "0"         },         {             "usrgrpid": "11",             "name": "Enabled debug mode",             "gui_access": "0",             "users_status": "0",             "debug_mode": "1",             "userdirectoryid": "0"         },         {             "usrgrpid": "12",             "name": "No access to the frontend",             "gui_access": "2",             "users_status": "0",             "debug_mode": "0",             "userdirectoryid": "0"         },         {             "usrgrpid": "14",             "name": "Read only",             "gui_access": "0",             "users_status": "0",             "debug_mode": "0",             "userdirectoryid": "0"         },         {             "usrgrpid": "18",             "name": "Deny",             "gui_access": "0",             "users_status": "0",             "debug_mode": "0",             "userdirectoryid": "0"         }     ],     "id": 1 } ```
es	#### Recuperando grupos de usuarios habilitados  Recupera todos los grupos de usuarios habilitados.  [Solicitud](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "usergroup.get",     "params": {         "output": "extend",         "status": 0     },     "id": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "result": [         {             "usrgrpid": "7",             "name": "Zabbix administrators",             "gui_access": "0",             "users_status": "0",             "debug_mode": "1",             "userdirectoryid": "0"         },         {             "usrgrpid": "8",             "name": "Guests",             "gui_access": "0",             "users_status": "0",             "debug_mode": "0",             "userdirectoryid": "0"         },         {             "usrgrpid": "11",             "name": "Enabled debug mode",             "gui_access": "0",             "users_status": "0",             "debug_mode": "1",             "userdirectoryid": "0"         },         {             "usrgrpid": "12",             "name": "No access to the frontend",             "gui_access": "2",             "users_status": "0",             "debug_mode": "0",             "userdirectoryid": "0"         },         {             "usrgrpid": "14",             "name": "Read only",             "gui_access": "0",             "users_status": "0",             "debug_mode": "0",             "userdirectoryid": "0"         },         {             "usrgrpid": "18",             "name": "Deny",             "gui_access": "0",             "users_status": "0",             "debug_mode": "0",             "userdirectoryid": "0"         }     ],     "id": 1 } ```

en-us	#### Retrieving events by time period  Retrieve all events that have been created between October 9 and 10, 2012, in reverse chronological order.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "event.get",     "params": {         "output": "extend",         "time_from": "1349797228",         "time_till": "1350661228",         "sortfield": ["clock", "eventid"],         "sortorder": "desc"     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "eventid": "20616",             "source": "0",             "object": "0",             "objectid": "14282",             "clock": "1350477814",             "value": "1",             "acknowledged": "0",             "ns": "0",             "name": "Less than 25% free in the history cache",             "severity": "3",             "r_eventid": "0",             "c_eventid": "0",             "correlationid": "0",             "userid": "0",             "cause_eventid": "0",             "opdata": "",             "suppressed": "0"         },         {             "eventid": "20617",             "source": "0",             "object": "0",             "objectid": "14283",             "clock": "1350477814",             "value": "0",             "acknowledged": "0",             "ns": "0",             "name": "Zabbix trapper processes more than 75% busy",             "severity": "3",             "r_eventid": "0",             "c_eventid": "0",             "correlationid": "0",             "userid": "0",             "cause_eventid": "0",             "opdata": "",             "suppressed": "0"         },         {             "eventid": "20618",             "source": "0",             "object": "0",             "objectid": "14284",             "clock": "1350477815",             "value": "1",             "acknowledged": "0",             "ns": "0",             "name": "High ICMP ping loss",             "severity": "3",             "r_eventid": "0",             "c_eventid": "0",             "correlationid": "0",             "userid": "0",             "cause_eventid": "0",             "opdata": "",             "suppressed": "0"         }     ],     "id": 1 } ```
es	#### Recuperar eventos por período de tiempo  Recupera todos los eventos que se han creado entre el 9 y 10 de octubre, 2012, en orden cronológico inverso.  [Solicitud](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "event.get",     "params": {         "output": "extend",         "time_from": "1349797228",         "time_till": "1350661228",         "sortfield": ["clock", "eventid"],         "sortorder": "desc"     },     "id": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "result": [         {             "eventid": "20616",             "source": "0",             "object": "0",             "objectid": "14282",             "clock": "1350477814",             "value": "1",             "acknowledged": "0",             "ns": "0",             "name": "Less than 25% free in the history cache",             "severity": "3",             "r_eventid": "0",             "c_eventid": "0",             "correlationid": "0",             "userid": "0",             "cause_eventid": "0",             "opdata": "",             "suppressed": "0"         },         {             "eventid": "20617",             "source": "0",             "object": "0",             "objectid": "14283",             "clock": "1350477814",             "value": "0",             "acknowledged": "0",             "ns": "0",             "name": "Zabbix trapper processes more than 75% busy",             "severity": "3",             "r_eventid": "0",             "c_eventid": "0",             "correlationid": "0",             "userid": "0",             "cause_eventid": "0",             "opdata": "",             "suppressed": "0"         },         {             "eventid": "20618",             "source": "0",             "object": "0",             "objectid": "14284",             "clock": "1350477815",             "value": "1",             "acknowledged": "0",             "ns": "0",             "name": "High ICMP ping loss",             "severity": "3",             "r_eventid": "0",             "c_eventid": "0",             "correlationid": "0",             "userid": "0",             "cause_eventid": "0",             "opdata": "",             "suppressed": "0"         }     ],     "id": 1 } ```

en-us	#### Retrieving filter conditions  Retrieve the name of the LLD rule "24681" and its filter conditions. 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": "discoveryrule.get",     "params": {         "output": ["name"],         "selectFilter": "extend",         "itemids": ["24681"]     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "itemid": "24681",             "name": "Filtered LLD rule",             "filter": {                 "evaltype": "1",                 "formula": "",                 "conditions": [                     {                         "macro": "{#MACRO1}",                         "value": "@regex1",                         "operator": "8",                         "formulaid": "A"                     },                     {                         "macro": "{#MACRO2}",                         "value": "@regex2",                         "operator": "9",                         "formulaid": "B"                     },                     {                         "macro": "{#MACRO3}",                         "value": "",                         "operator": "12",                         "formulaid": "C"                     },                     {                         "macro": "{#MACRO4}",                         "value": "",                         "operator": "13",                         "formulaid": "D"                     }                 ],                 "eval_formula": "A and B and C and D"             }         }     ],     "id": 1 } ```
es	#### Recuperando condiciones de filtro  Recupere el nombre de la regla LLD "24681" y sus condiciones de filtro. El filtro utiliza el tipo de evaluación "y", por lo que la propiedad `formula` esta vacía y `eval_formula` se genera automáticamente.  [Solicitud](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "discoveryrule.get",     "params": {         "output": ["name"],         "selectFilter": "extend",         "itemids": ["24681"]     },     "id": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "result": [         {             "itemid": "24681",             "name": "Filtered LLD rule",             "filter": {                 "evaltype": "1",                 "formula": "",                 "conditions": [                     {                         "macro": "{#MACRO1}",                         "value": "@regex1",                         "operator": "8",                         "formulaid": "A"                     },                     {                         "macro": "{#MACRO2}",                         "value": "@regex2",                         "operator": "9",                         "formulaid": "B"                     },                     {                         "macro": "{#MACRO3}",                         "value": "",                         "operator": "12",                         "formulaid": "C"                     },                     {                         "macro": "{#MACRO4}",                         "value": "",                         "operator": "13",                         "formulaid": "D"                     }                 ],                 "eval_formula": "A and B and C and D"             }         }     ],     "id": 1 } ```

en-us	#### Retrieving global macros  Retrieve all global macros.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "usermacro.get",     "params": {         "output": "extend",         "globalmacro": true     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "globalmacroid": "6",             "macro": "{$SNMP_COMMUNITY}",             "value": "public",             "description": "",             "type": "0"         }     ],     "id": 1 } ```
es	#### Recuperando macros globales  Recupera todas las macros globales.  [Solicitud](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "usermacro.get",     "params": {         "output": "extend",         "globalmacro": true     },     "id": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "result": [         {             "globalmacroid": "6",             "macro": "{$SNMP_COMMUNITY}",             "value": "public",             "description": "",             "type": "0"         }     ],     "id": 1 } ```

en-us	#### Retrieving global regular expressions.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "regexp.get",     "params": {         "output": ["regexpid", "name"],         "selectExpressions": ["expression", "expression_type"],         "regexpids": [1, 2],         "preservekeys": true     },     "id": 1 } ```  Response:  ```json {   "jsonrpc": "2.0",   "result": {     "1": {       "regexpid": "1",       "name": "File systems for discovery",       "expressions": [         {           "expression": "^(btrfs|ext2|ext3|ext4|reiser|xfs|ffs|ufs|jfs|jfs2|vxfs|hfs|apfs|refs|ntfs|fat32|zfs)$",           "expression_type": "3"         }       ]     },     "2": {       "regexpid": "2",       "name": "Network interfaces for discovery",       "expressions": [         {           "expression": "^Software Loopback Interface",           "expression_type": "4"         },         {           "expression": "^(In)?[Ll]oop[Bb]ack[0-9._]*$",           "expression_type": "4"         },         {           "expression": "^NULL[0-9.]*$",           "expression_type": "4"         },         {           "expression": "^[Ll]o[0-9.]*$",           "expression_type": "4"         },         {           "expression": "^[Ss]ystem$",           "expression_type": "4"         },         {           "expression": "^Nu[0-9.]*$",           "expression_type": "4"         }       ]     }   },   "id": 1 } ```
es	#### Recuperando expresiones regulares globales.  [Solicitud](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "regexp.get",     "params": {         "output": ["regexpid", "name"],         "selectExpressions": ["expression", "expression_type"],         "regexpids": [1, 2],         "preservekeys": true     },     "id": 1 } ```  Respuesta:  ```json {   "jsonrpc": "2.0",   "result": {     "1": {       "regexpid": "1",       "name": "File systems for discovery",       "expressions": [         {           "expression": "^(btrfs|ext2|ext3|ext4|reiser|xfs|ffs|ufs|jfs|jfs2|vxfs|hfs|apfs|refs|ntfs|fat32|zfs)$",           "expression_type": "3"         }       ]     },     "2": {       "regexpid": "2",       "name": "Network interfaces for discovery",       "expressions": [         {           "expression": "^Software Loopback Interface",           "expression_type": "4"         },         {           "expression": "^(In)?[Ll]oop[Bb]ack[0-9._]*$",           "expression_type": "4"         },         {           "expression": "^NULL[0-9.]*$",           "expression_type": "4"         },         {           "expression": "^[Ll]o[0-9.]*$",           "expression_type": "4"         },         {           "expression": "^[Ss]ystem$",           "expression_type": "4"         },         {           "expression": "^Nu[0-9.]*$",           "expression_type": "4"         }       ]     }   },   "id": 1 } ```

en-us	#### Retrieving graph items from a graph  Retrieve all graph items used in a graph with additional information about the item and the host.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "graphitem.get",     "params": {         "output": "extend",         "graphids": "387"     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "gitemid": "1242",             "graphid": "387",             "itemid": "22665",             "drawtype": "1",             "sortorder": "1",             "color": "FF5555",             "yaxisside": "0",             "calc_fnc": "2",             "type": "0"         },         {             "gitemid": "1243",             "graphid": "387",             "itemid": "22668",             "drawtype": "1",             "sortorder": "2",             "color": "55FF55",             "yaxisside": "0",             "calc_fnc": "2",             "type": "0"         },         {             "gitemid": "1244",             "graphid": "387",             "itemid": "22671",             "drawtype": "1",             "sortorder": "3",             "color": "009999",             "yaxisside": "0",             "calc_fnc": "2",             "type": "0"         }     ],     "id": 1 } ```
es	#### Recuperar métricas de gráfico de un gráfico  Recuperar todas las métricas de gráfico utilizadas en un gráfico con información adicional sobre la métrica y el equipo.  [Solicitud](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "graphitem.get",     "params": {         "output": "extend",         "graphids": "387"     },     "id": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "result": [         {             "gitemid": "1242",             "graphid": "387",             "itemid": "22665",             "drawtype": "1",             "sortorder": "1",             "color": "FF5555",             "yaxisside": "0",             "calc_fnc": "2",             "type": "0"         },         {             "gitemid": "1243",             "graphid": "387",             "itemid": "22668",             "drawtype": "1",             "sortorder": "2",             "color": "55FF55",             "yaxisside": "0",             "calc_fnc": "2",             "type": "0"         },         {             "gitemid": "1244",             "graphid": "387",             "itemid": "22671",             "drawtype": "1",             "sortorder": "3",             "color": "009999",             "yaxisside": "0",             "calc_fnc": "2",             "type": "0"         }     ],     "id": 1 } ```

en-us	#### Retrieving graph prototypes from a LLD rule  Retrieve all graph prototypes from an LLD rule.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "graphprototype.get",     "params": {         "output": "extend",         "discoveryids": "27426"     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "graphid": "1017",             "parent_itemid": "27426",             "name": "Disk space usage {#FSNAME}",             "width": "600",             "height": "340",             "yaxismin": "0.0000",             "yaxismax": "0.0000",             "templateid": "442",             "show_work_period": "0",             "show_triggers": "0",             "graphtype": "2",             "show_legend": "1",             "show_3d": "1",             "percent_left": "0.0000",             "percent_right": "0.0000",             "ymin_type": "0",             "ymax_type": "0",             "ymin_itemid": "0",             "ymax_itemid": "0",             "discover": "0"         }     ],     "id": 1 } ```
es	#### Recuperar prototipos de gráficos de una regla LLD  Recupere todos los prototipos de gráficos de una regla LLD.  [Solicitud](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "graphprototype.get",     "params": {         "output": "extend",         "discoveryids": "27426"     },     "id": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "result": [         {             "graphid": "1017",             "parent_itemid": "27426",             "name": "Disk space usage {#FSNAME}",             "width": "600",             "height": "340",             "yaxismin": "0.0000",             "yaxismax": "0.0000",             "templateid": "442",             "show_work_period": "0",             "show_triggers": "0",             "graphtype": "2",             "show_legend": "1",             "show_3d": "1",             "percent_left": "0.0000",             "percent_right": "0.0000",             "ymin_type": "0",             "ymax_type": "0",             "ymin_itemid": "0",             "ymax_itemid": "0",             "discover": "0"         }     ],     "id": 1 } ```

en-us	#### Retrieving graphs from hosts  Retrieve all graphs from host "10107" and sort them by name.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "graph.get",     "params": {         "output": "extend",         "hostids": 10107,         "sortfield": "name"     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "graphid": "612",             "name": "CPU jumps",             "width": "900",             "height": "200",             "yaxismin": "0",             "yaxismax": "100",             "templateid": "439",             "show_work_period": "1",             "show_triggers": "1",             "graphtype": "0",             "show_legend": "1",             "show_3d": "0",             "percent_left": "0",             "percent_right": "0",             "ymin_type": "0",             "ymax_type": "0",             "ymin_itemid": "0",             "ymax_itemid": "0",             "flags": "0"         },         {             "graphid": "613",             "name": "CPU load",             "width": "900",             "height": "200",             "yaxismin": "0",             "yaxismax": "100",             "templateid": "433",             "show_work_period": "1",             "show_triggers": "1",             "graphtype": "0",             "show_legend": "1",             "show_3d": "0",             "percent_left": "0",             "percent_right": "0",             "ymin_type": "1",             "ymax_type": "0",             "ymin_itemid": "0",             "ymax_itemid": "0",             "flags": "0"         },         {             "graphid": "614",             "name": "CPU utilization",             "width": "900",             "height": "200",             "yaxismin": "0",             "yaxismax": "100",             "templateid": "387",             "show_work_period": "1",             "show_triggers": "0",             "graphtype": "1",             "show_legend": "1",             "show_3d": "0",             "percent_left": "0",             "percent_right": "0",             "ymin_type": "1",             "ymax_type": "1",             "ymin_itemid": "0",             "ymax_itemid": "0",             "flags": "0"         },         {             "graphid": "645",             "name": "Disk space usage /",             "width": "600",             "height": "340",             "yaxismin": "0",             "yaxismax": "0",             "templateid": "0",             "show_work_period": "0",             "show_triggers": "0",             "graphtype": "2",             "show_legend": "1",             "show_3d": "1",             "percent_left": "0",             "percent_right": "0",             "ymin_type": "0",             "ymax_type": "0",             "ymin_itemid": "0",             "ymax_itemid": "0",             "flags": "4"         }     ],     "id": 1 } ```
es	#### Recuperando gráficos de equipos  Recupere todos los gráficos del equipo "10107" y ordénelos por nombre.  [Solicitud](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "graph.get",     "params": {         "output": "extend",         "hostids": 10107,         "sortfield": "name"     },     "id": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "result": [         {             "graphid": "612",             "name": "CPU jumps",             "width": "900",             "height": "200",             "yaxismin": "0",             "yaxismax": "100",             "templateid": "439",             "show_work_period": "1",             "show_triggers": "1",             "graphtype": "0",             "show_legend": "1",             "show_3d": "0",             "percent_left": "0",             "percent_right": "0",             "ymin_type": "0",             "ymax_type": "0",             "ymin_itemid": "0",             "ymax_itemid": "0",             "flags": "0"         },         {             "graphid": "613",             "name": "CPU load",             "width": "900",             "height": "200",             "yaxismin": "0",             "yaxismax": "100",             "templateid": "433",             "show_work_period": "1",             "show_triggers": "1",             "graphtype": "0",             "show_legend": "1",             "show_3d": "0",             "percent_left": "0",             "percent_right": "0",             "ymin_type": "1",             "ymax_type": "0",             "ymin_itemid": "0",             "ymax_itemid": "0",             "flags": "0"         },         {             "graphid": "614",             "name": "CPU utilization",             "width": "900",             "height": "200",             "yaxismin": "0",             "yaxismax": "100",             "templateid": "387",             "show_work_period": "1",             "show_triggers": "0",             "graphtype": "1",             "show_legend": "1",             "show_3d": "0",             "percent_left": "0",             "percent_right": "0",             "ymin_type": "1",             "ymax_type": "1",             "ymin_itemid": "0",             "ymax_itemid": "0",             "flags": "0"         },         {             "graphid": "645",             "name": "Disk space usage /",             "width": "600",             "height": "340",             "yaxismin": "0",             "yaxismax": "0",             "templateid": "0",             "show_work_period": "0",             "show_triggers": "0",             "graphtype": "2",             "show_legend": "1",             "show_3d": "1",             "percent_left": "0",             "percent_right": "0",             "ymin_type": "0",             "ymax_type": "0",             "ymin_itemid": "0",             "ymax_itemid": "0",             "flags": "4"         }     ],     "id": 1 } ```

en-us	#### Retrieving host groups  Retrieve host groups that the host "Zabbix server" is a member of.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "host.get",     "params": {         "output": ["hostid"],         "selectHostGroups": "extend",         "filter": {             "host": [                 "Zabbix server"             ]         }     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "hostid": "10085",             "hostgroups": [                 {                     "groupid": "2",                     "name": "Linux servers",                     "flags": "0",                     "uuid": "dc579cd7a1a34222933f24f52a68bcd8"                 },                 {                     "groupid": "4",                     "name": "Zabbix servers",                     "flags": "0",                     "uuid": "6f6799aa69e844b4b3918f779f2abf08"                 }             ]         }     ],     "id": 1 } ```
es	#### Recuperando grupos de equipos  Recupere los grupos de equipos de los que el equipo "servidor Zabbix"  es miembro.  [Solicitud](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "host.get",     "params": {         "output": ["hostid"],         "selectHostGroups": "extend",         "filter": {             "host": [                 "Zabbix server"             ]         }     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "hostid": "10085",             "hostgroups": [                 {                     "groupid": "2",                     "name": "Linux servers",                     "flags": "0",                     "uuid": "dc579cd7a1a34222933f24f52a68bcd8"                 },                 {                     "groupid": "4",                     "name": "Zabbix servers",                     "flags": "0",                     "uuid": "6f6799aa69e844b4b3918f779f2abf08"                 }             ]         }     ],     "id": 1 } ```

en-us	#### Retrieving host macros for a host  Retrieve all host macros defined for host "10198".  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "usermacro.get",     "params": {         "output": "extend",         "hostids": "10198"     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "hostmacroid": "9",             "hostid": "10198",             "macro": "{$INTERFACE}",             "value": "eth0",             "description": "",             "type": "0",             "automatic": "0"         },         {             "hostmacroid": "11",             "hostid": "10198",             "macro": "{$SNMP_COMMUNITY}",             "value": "public",             "description": "",             "type": "0",             "automatic": "0"         }     ],     "id": 1 } ```
es	#### Recuperar macros de equipo para un equipo  Recupere todas las macros de equipo definidas para el equipo "10198".  [Solicitud](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "usermacro.get",     "params": {         "output": "extend",         "hostids": "10198"     },     "id": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "result": [         {             "hostmacroid": "9",             "hostid": "10198",             "macro": "{$INTERFACE}",             "value": "eth0",             "description": "",             "type": "0",             "automatic": "0"         },         {             "hostmacroid": "11",             "hostid": "10198",             "macro": "{$SNMP_COMMUNITY}",             "value": "public",             "description": "",             "type": "0",             "automatic": "0"         }     ],     "id": 1 } ```

en-us	#### Retrieving host prototypes from an LLD rule  Retrieve all host prototypes, their group links, group prototypes and tags from an LLD rule.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "hostprototype.get",     "params": {         "output": "extend",         "selectInterfaces": "extend",         "selectGroupLinks": "extend",         "selectGroupPrototypes": "extend",         "selectTags": "extend",         "discoveryids": "23554"     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "hostid": "10092",             "host": "{#HV.UUID}",             "name": "{#HV.UUID}",             "status": "0",             "templateid": "0",             "discover": "0",             "custom_interfaces": "1",             "inventory_mode": "-1",             "groupLinks": [                 {                     "group_prototypeid": "4",                     "hostid": "10092",                     "groupid": "7",                     "templateid": "0"                 }             ],             "groupPrototypes": [                 {                     "group_prototypeid": "7",                     "hostid": "10092",                     "name": "{#CLUSTER.NAME}",                     "templateid": "0"                 }             ],             "tags": [                 {                     "tag": "Datacenter",                     "value": "{#DATACENTER.NAME}"                 },                 {                     "tag": "Instance type",                     "value": "{#INSTANCE_TYPE}"                 }             ],             "interfaces": [                 {                     "main": "1",                     "type": "2",                     "useip": "1",                     "ip": "127.0.0.1",                     "dns": "",                     "port": "161",                     "details": {                         "version": "2",                         "bulk": "1",                         "community": "{$SNMP_COMMUNITY}"                     }                 }             ]         }     ],     "id": 1 } ```
es	#### Recuperar prototipos de equipo de una regla LLD  Recuperar todos los prototipos de equipo, sus enlaces de grupo, prototipos de grupo y etiquetas de una regla LLD.  [Solicitud](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "hostprototype.get",     "params": {         "output": "extend",         "selectInterfaces": "extend",         "selectGroupLinks": "extend",         "selectGroupPrototypes": "extend",         "selectTags": "extend",         "discoveryids": "23554"     },     "id": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "result": [         {             "hostid": "10092",             "host": "{#HV.UUID}",             "name": "{#HV.UUID}",             "status": "0",             "templateid": "0",             "discover": "0",             "custom_interfaces": "1",             "inventory_mode": "-1",             "groupLinks": [                 {                     "group_prototypeid": "4",                     "hostid": "10092",                     "groupid": "7",                     "templateid": "0"                 }             ],             "groupPrototypes": [                 {                     "group_prototypeid": "7",                     "hostid": "10092",                     "name": "{#CLUSTER.NAME}",                     "templateid": "0"                 }             ],             "tags": [                 {                     "tag": "Datacenter",                     "value": "{#DATACENTER.NAME}"                 },                 {                     "tag": "Instance type",                     "value": "{#INSTANCE_TYPE}"                 }             ],             "interfaces": [                 {                     "main": "1",                     "type": "2",                     "useip": "1",                     "ip": "127.0.0.1",                     "dns": "",                     "port": "161",                     "details": {                         "version": "2",                         "bulk": "1",                         "community": "{$SNMP_COMMUNITY}"                     }                 }             ]         }     ],     "id": 1 } ```

en-us	#### Retrieving hosts by template  Retrieve hosts that have the "10001" (*Linux by Zabbix agent*) template linked to them.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "host.get",     "params": {         "output": ["hostid", "name"],         "templateids": "10001"     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "templateid": "10001",             "hosts": [                 {                     "hostid": "10084",                     "name": "Zabbix server"                 },                 {                     "hostid": "10603",                     "name": "Host 1"                 },                 {                     "hostid": "10604",                     "name": "Host 2"                 }             ]         }     ],     "id": 1 } ```
es	#### Recuperando hosts por plantilla  Recupere equipos que tengan la plantilla "10001" (*Linux by Zabbix agent*) vinculada a ellos.  [Solicitud](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "host.get",     "params": {         "output": ["hostid", "name"],         "templateids": "10001"     },     "id": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "result": [         {             "templateid": "10001",             "hosts": [                 {                     "hostid": "10084",                     "name": "Zabbix server"                 },                 {                     "hostid": "10603",                     "name": "Host 1"                 },                 {                     "hostid": "10604",                     "name": "Host 2"                 }             ]         }     ],     "id": 1 } ```

en-us	#### Retrieving hosts by template  Retrieve hosts that have the "10001" (*Linux by Zabbix agent*) template linked to them.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "template.get",     "params": {         "output": "templateid",         "templateids": "10001",         "selectHosts": ["hostid", "name"]     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "templateid": "10001",             "hosts": [                 {                     "hostid": "10084",                     "name": "Zabbix server"                 },                 {                     "hostid": "10603",                     "name": "Host 1"                 },                 {                     "hostid": "10604",                     "name": "Host 2"                 }             ]         }     ],     "id": 1 } ```
es	#### Recuperando equipos por plantilla  Recupere equipos que tengan la plantilla "10001" (*Linux by Zabbix agent*) vinculada a ellos.  [Solicitud](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "template.get",     "params": {         "output": "templateid",         "templateids": "10001",         "selectHosts": ["hostid", "name"]     },     "id": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "result": [         {             "templateid": "10001",             "hosts": [                 {                     "hostid": "10084",                     "name": "Zabbix server"                 },                 {                     "hostid": "10603",                     "name": "Host 1"                 },                 {                     "hostid": "10604",                     "name": "Host 2"                 }             ]         }     ],     "id": 1 } ```

en-us	#### Retrieving hosts  Now you have a valid user authentication token that can be used to access the data in Zabbix. For example, you can use the [host.get](/manual/api/reference/host/get) method to retrieve the IDs, host names and interfaces of all the configured [hosts](/manual/api/reference/host/object):  Request:  ```bash curl --request POST \   --url 'https://example.com/zabbix/api_jsonrpc.php' \   --header 'Authorization: Bearer ${AUTHORIZATION_TOKEN}' \   --header 'Content-Type: application/json-rpc' \   --data @data.json ```  ::: notetip `data.json` is a file that contains a JSON query. Instead of a file, you can pass the query in the `--data` argument. :::  data.json  ```json {     "jsonrpc": "2.0",     "method": "host.get",     "params": {         "output": [             "hostid",             "host"         ],         "selectInterfaces": [             "interfaceid",             "ip"         ]     },     "id": 2 } ```  The response object will contain the requested data about the hosts:  ```json {     "jsonrpc": "2.0",     "result": [         {             "hostid": "10084",             "host": "Zabbix server",             "interfaces": [                 {                     "interfaceid": "1",                     "ip": "127.0.0.1"                 }             ]         }     ],     "id": 2 } ```  ::: notetip For performance reasons it is always recommended to list the object properties you want to retrieve. Thus, you will avoid retrieving everything. :::
es	#### Recuperando equipos  Ahora tiene un token de autenticación de usuario válido que puede usar para acceder a los datos en Zabbix. Por ejemplo, puede utilizar el Método [host.get](/manual/api/reference/host/get) para recuperar los ID, nombres de equipo e interfaces de todos los [equipos](/manual/api/referencia/host/object) configurados:  Solicitud:  ```bash curl --request POST \ --url 'https://example.com/zabbix/api_jsonrpc.php' \ --header 'Authorization: Bearer ${AUTHORIZATION_TOKEN}' \ --header 'Content-Type: application/json-rpc' \ --data @data.json ```  ::: notetip `data.json` es un archivo que contiene una consulta JSON. En lugar de un archivo, puede pasar la consulta en el argumento `--data`. :::  datos.json  ```json {"jsonrpc": "2.0","method": "host.get","params": {"output": ["hostid","host"],"selectInterfaces": ["interfaceid","ip"]},"id": 2 } ```  El objeto de respuesta contendrá los datos solicitados sobre los equipos:  ```json { "jsonrpc": "2.0", "result": [ { "hostid": "10084", "host": "Zabbix server", "interfaces": [ { "interfaceid": "1", "ip": "127.0.0.1" } ] } ], "id": 2 } ```  ::: notetip Por motivos de rendimiento, siempre se recomienda enumerar las propiedades del objeto que desea recuperar. Así, evitará recuperarlo todo. :::

en-us	#### Retrieving item history data  Return 10 latest values received from a numeric(float) item.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "history.get",     "params": {         "output": "extend",         "history": 0,         "itemids": "23296",         "sortfield": "clock",         "sortorder": "DESC",         "limit": 10     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "itemid": "23296",             "clock": "1351090996",             "value": "0.085",             "ns": "563157632"         },         {             "itemid": "23296",             "clock": "1351090936",             "value": "0.16",             "ns": "549216402"         },         {             "itemid": "23296",             "clock": "1351090876",             "value": "0.18",             "ns": "537418114"         },         {             "itemid": "23296",             "clock": "1351090816",             "value": "0.21",             "ns": "522659528"         },         {             "itemid": "23296",             "clock": "1351090756",             "value": "0.215",             "ns": "507809457"         },         {             "itemid": "23296",             "clock": "1351090696",             "value": "0.255",             "ns": "495509699"         },         {             "itemid": "23296",             "clock": "1351090636",             "value": "0.36",             "ns": "477708209"         },         {             "itemid": "23296",             "clock": "1351090576",             "value": "0.375",             "ns": "463251343"         },         {             "itemid": "23296",             "clock": "1351090516",             "value": "0.315",             "ns": "447947017"         },         {             "itemid": "23296",             "clock": "1351090456",             "value": "0.275",             "ns": "435307141"         }     ],     "id": 1 } ```
es	#### Recuperando datos del historial de métricas  Devuelve los 10 últimos valores recibidos de una métrica numérica (flotante).  [Solicitud](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "history.get",     "params": {         "output": "extend",         "history": 0,         "itemids": "23296",         "sortfield": "clock",         "sortorder": "DESC",         "limit": 10     },     "id": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "result": [         {             "itemid": "23296",             "clock": "1351090996",             "value": "0.085",             "ns": "563157632"         },         {             "itemid": "23296",             "clock": "1351090936",             "value": "0.16",             "ns": "549216402"         },         {             "itemid": "23296",             "clock": "1351090876",             "value": "0.18",             "ns": "537418114"         },         {             "itemid": "23296",             "clock": "1351090816",             "value": "0.21",             "ns": "522659528"         },         {             "itemid": "23296",             "clock": "1351090756",             "value": "0.215",             "ns": "507809457"         },         {             "itemid": "23296",             "clock": "1351090696",             "value": "0.255",             "ns": "495509699"         },         {             "itemid": "23296",             "clock": "1351090636",             "value": "0.36",             "ns": "477708209"         },         {             "itemid": "23296",             "clock": "1351090576",             "value": "0.375",             "ns": "463251343"         },         {             "itemid": "23296",             "clock": "1351090516",             "value": "0.315",             "ns": "447947017"         },         {             "itemid": "23296",             "clock": "1351090456",             "value": "0.275",             "ns": "435307141"         }     ],     "id": 1 } ```

en-us	#### Retrieving item prototypes from an LLD rule  Retrieve all item prototypes for specific LLD rule ID.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "itemprototype.get",     "params": {         "output": "extend",         "discoveryids": "27426"     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "itemid": "23077",             "type": "0",             "snmp_oid": "",             "hostid": "10079",             "name": "Incoming network traffic on en0",             "key_": "net.if.in[en0]",             "delay": "1m",             "history": "1w",             "trends": "365d",             "status": "0",             "value_type": "3",             "trapper_hosts": "",             "units": "bps",             "logtimefmt": "",             "templateid": "0",             "valuemapid": "0",             "params": "",             "ipmi_sensor": "",             "authtype": "0",             "username": "",             "password": "",             "publickey": "",             "privatekey": "",             "interfaceid": "0",             "description": "",             "evaltype": "0",             "jmx_endpoint": "",             "master_itemid": "0",             "timeout": "3s",             "url": "",             "query_fields": [],             "posts": "",             "status_codes": "200",             "follow_redirects": "1",             "post_type": "0",             "http_proxy": "",             "headers": [],             "retrieve_mode": "0",             "request_method": "0",             "output_format": "0",             "ssl_cert_file": "",             "ssl_key_file": "",             "ssl_key_password": "",             "verify_peer": "0",             "verify_host": "0",             "allow_traps": "0",             "discover": "0",             "uuid": "",             "parameters": []         },         {             "itemid": "10010",             "type": "0",             "snmp_oid": "",             "hostid": "10001",             "name": "Processor load (1 min average per core)",             "key_": "system.cpu.load[percpu,avg1]",             "delay": "1m",             "history": "1w",             "trends": "365d",             "status": "0",             "value_type": "0",             "trapper_hosts": "",             "units": "",             "logtimefmt": "",             "templateid": "0",             "valuemapid": "0",             "params": "",             "ipmi_sensor": "",             "authtype": "0",             "username": "",             "password": "",             "publickey": "",             "privatekey": "",             "interfaceid": "0",             "description": "The processor load is calculated as system CPU load divided by number of CPU cores.",             "evaltype": "0",             "jmx_endpoint": "",             "master_itemid": "0",             "timeout": "3s",             "url": "",             "query_fields": [],             "posts": "",             "status_codes": "200",             "follow_redirects": "1",             "post_type": "0",             "http_proxy": "",             "headers": [],             "retrieve_mode": "0",             "request_method": "0",             "output_format": "0",             "ssl_cert_file": "",             "ssl_key_file": "",             "ssl_key_password": "",             "verify_peer": "0",             "verify_host": "0",             "allow_traps": "0",             "discover": "0",             "uuid": "",             "parameters": []         }     ],     "id": 1 } ```
es	#### Recuperar prototipos de métrica de una regla LLD  Recupere todos los prototipos de métrica para un ID de regla LLD específica.  [Solicitud](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "itemprototype.get",     "params": {         "output": "extend",         "discoveryids": "27426"     },     "id": 1 } ```  Respuesta:  ```json {     "jsonrpc": "2.0",     "result": [         {             "itemid": "23077",             "type": "0",             "snmp_oid": "",             "hostid": "10079",             "name": "Incoming network traffic on en0",             "key_": "net.if.in[en0]",             "delay": "1m",             "history": "1w",             "trends": "365d",             "status": "0",             "value_type": "3",             "trapper_hosts": "",             "units": "bps",             "logtimefmt": "",             "templateid": "0",             "valuemapid": "0",             "params": "",             "ipmi_sensor": "",             "authtype": "0",             "username": "",             "password": "",             "publickey": "",             "privatekey": "",             "interfaceid": "0",             "description": "",             "evaltype": "0",             "jmx_endpoint": "",             "master_itemid": "0",             "timeout": "3s",             "url": "",             "query_fields": [],             "posts": "",             "status_codes": "200",             "follow_redirects": "1",             "post_type": "0",             "http_proxy": "",             "headers": [],             "retrieve_mode": "0",             "request_method": "0",             "output_format": "0",             "ssl_cert_file": "",             "ssl_key_file": "",             "ssl_key_password": "",             "verify_peer": "0",             "verify_host": "0",             "allow_traps": "0",             "discover": "0",             "uuid": "",             "parameters": []         },         {             "itemid": "10010",             "type": "0",             "snmp_oid": "",             "hostid": "10001",             "name": "Processor load (1 min average per core)",             "key_": "system.cpu.load[percpu,avg1]",             "delay": "1m",             "history": "1w",             "trends": "365d",             "status": "0",             "value_type": "0",             "trapper_hosts": "",             "units": "",             "logtimefmt": "",             "templateid": "0",             "valuemapid": "0",             "params": "",             "ipmi_sensor": "",             "authtype": "0",             "username": "",             "password": "",             "publickey": "",             "privatekey": "",             "interfaceid": "0",             "description": "The processor load is calculated as system CPU load divided by number of CPU cores.",             "evaltype": "0",             "jmx_endpoint": "",             "master_itemid": "0",             "timeout": "3s",             "url": "",             "query_fields": [],             "posts": "",             "status_codes": "200",             "follow_redirects": "1",             "post_type": "0",             "http_proxy": "",             "headers": [],             "retrieve_mode": "0",             "request_method": "0",             "output_format": "0",             "ssl_cert_file": "",             "ssl_key_file": "",             "ssl_key_password": "",             "verify_peer": "0",             "verify_host": "0",             "allow_traps": "0",             "discover": "0",             "uuid": "",             "parameters": []         }     ],     "id": 1 } ```