[comment]: # translation:outdated

[comment]: # ({ac348501-af8c0900})
# Zabbix API 在 6.0 版本中的变更

[comment]: # ({/ac348501-af8c0900})

[comment]: # ({0720c3a5-797f930e})
### 6.0.39

[comment]: # ({/0720c3a5-797f930e})

[comment]: # ({484ab62f-5cb910d9})
#### 告警

变更:\
[ZBX-26023](https://support.zabbix.com/browse/ZBX-26023) `alert.get`: *管理员*和*用户*类型的用户现在可以获取其用户组内用户的"消息"(0)类型告警数据。

[comment]: # ({/484ab62f-5cb910d9})

[comment]: # ({830acf1c-0e331c2c})
### 6.0.38

[comment]: # ({/830acf1c-0e331c2c})

[comment]: # ({788cf762-b994ab27})
#### 告警

变更:\
[ZBX-26258](https://support.zabbix.com/browse/ZBX-26258) `alert.get`: 参数 `selectUsers` 现在会根据 `user.get` 方法添加的限制返回数据.\
[ZBX-26258](https://support.zabbix.com/browse/ZBX-26258) `alert.get`: *管理员*和*用户*类型的用户现在只能检索关于其自身用户的"消息"(0)类型警报数据.

[comment]: # ({/788cf762-b994ab27})

[comment]: # ({a3fa5af3-120a3895})
#### 媒介类型

变更:\
[ZBX-26258](https://support.zabbix.com/browse/ZBX-26258) `mediatype.get`: 参数 `selectUsers` 现在根据添加到 `user.get` 方法的限制返回数据。

[comment]: # ({/a3fa5af3-120a3895})

[comment]: # ({a1e13ba6-80bd4609})
#### 角色

变更:\
[ZBX-26258](https://support.zabbix.com/browse/ZBX-26258) `role.get`: 参数 `selectUsers` 现在会根据添加到 `user.get` 方法的限制返回数据.\

[comment]: # ({/a1e13ba6-80bd4609})

[comment]: # ({806bd7b5-f4239f8a})
#### 用户

变更:\
[ZBX-26258](https://support.zabbix.com/browse/ZBX-26258) `user.get`: 当请求用户媒体、权限或角色信息时，*管理员*和*用户*类型用户只能获取自身用户的数据。\
[ZBX-26258](https://support.zabbix.com/browse/ZBX-26258) `user.get`: *管理员*和*用户*类型用户现在仅能获取以下[User object](/manual/api/reference/user/object)属性中关于自身用户的信息: `userid`, `attempt_clock`, `attempt_failed`, `attempt_ip`, `autologin`, `autologout`, `lang`, `name`, `refresh`, `roleid`, `rows_per_page`, `surname`, `theme`, `timezone`, `url`, `username`。对于其用户组中的其他用户，仅能获取: `userid`, `name`, `surname`, `username`。

[comment]: # ({/806bd7b5-f4239f8a})

[comment]: # ({c344d772-def6a4bf})
#### 用户组

变更:\
[ZBX-26258](https://support.zabbix.com/browse/ZBX-26258) `usergroup.get`: 参数 `selectUsers` 现在会根据添加到 `user.get` 方法的限制返回数据。

[comment]: # ({/c344d772-def6a4bf})

[comment]: # ({7a7b2e9b-01491d33})
### 6.0.34

[comment]: # ({/7a7b2e9b-01491d33})

[comment]: # ({7e0b8273-b20a0763})
#### 媒介类型

变更:\
[ZBX-25385](https://support.zabbix.com/browse/ZBX-25385) `mediatype.get`: 参数 `selectMessageTemplates` 现在仅支持 *超级管理员* 类型的用户.\
[ZBX-25385](https://support.zabbix.com/browse/ZBX-25385) `mediatype.get`: *管理员* 类型的用户现在只能检索以下 [Media type object](/manual/api/reference/mediatype/object) 属性: `mediatypeid`, `name`, `type`, `status`, `maxattempts`.\
[ZBX-25385](https://support.zabbix.com/browse/ZBX-25385) `mediatype.get`: 当请求媒体类型的用户相关信息时, *管理员* 类型的用户现在只能检索其自身用户的数据.

[comment]: # ({/7e0b8273-b20a0763})

[comment]: # ({b34a098f-413d5018})
### 6.0.22

[comment]: # ({/b34a098f-413d5018})

[comment]: # ({9c1f13c2-da46e412})
#### 主机原型

变更：\
[ZBX-23284](https://support.zabbix.com/browse/ZBX-23284) `hostprototype.get`、`hostprototype.update`：恢复了对组原型objects的`group_prototypeid`属性的支持。\

[comment]: # ({/9c1f13c2-da46e412})

[comment]: # ({90545926-ceb857ec})
### 6.0.19

[comment]: # ({/90545926-ceb857ec})

[comment]: # ({d9b77cda-0dde3b95})
#### 动作

变更:\
[ZBX-21804](https://support.zabbix.com/browse/ZBX-21804) `action.create`, `action.get`, `action.update`, `action.delete`: 移除了对主机, 主机组、模板、触发器、proxy的写权限要求。

[comment]: # ({/d9b77cda-0dde3b95})

[comment]: # ({f682aebe-185bb1a3})
### 6.0.15

[comment]: # ({/f682aebe-185bb1a3})

[comment]: # ({9e776e8d-e8973996})
#### 脚本

变更:\
[ZBX-19466](https://support.zabbix.com/browse/ZBX-19466) 修改了 `script` object 的验证规则，现在要求其通过两个属性的组合保持唯一性：`name` 和 `menu_path`。

[comment]: # ({/9e776e8d-e8973996})

[comment]: # ({1d414323-32ab3dfb})
### 6.0.14

[comment]: # ({/1d414323-32ab3dfb})

[comment]: # ({84f94d9b-02105445})
#### 用户

变更:\
[ZBXNEXT-8012](https://support.zabbix.com/browse/ZBXNEXT-8012) `user.checkAuthentication`: 新增参数 `token`.\

[comment]: # ({/84f94d9b-02105445})

[comment]: # ({183a2872-0fcabb87})
### 6.0.13

[comment]: # ({/183a2872-0fcabb87})

[comment]: # ({e1f6725c-6090d41c})
#### 配置

变更:\
[ZBXNEXT-7951](https://support.zabbix.com/browse/ZBXNEXT-7951) `configuration.import`、`configuration.importcompare`: 针对 `templateLinkage` 的 `deleteMissing: true` 选项现在将解除缺失模板的关联（而非解除关联并 clear）。\

[comment]: # ({/e1f6725c-6090d41c})

[comment]: # ({41b7857b-b00ed0e4})
#### 发现规则

变更:\
[ZBXNEXT-7951](https://support.zabbix.com/browse/ZBXNEXT-7951) `discoveryrule.update`: 参数 `uuid` 现在支持更新.\

[comment]: # ({/41b7857b-b00ed0e4})

[comment]: # ({e741c5d8-001a0466})
#### 图形

变更:\
[ZBXNEXT-7951](https://support.zabbix.com/browse/ZBXNEXT-7951) `graph.update`: 参数 `uuid` 现在可以更新。

[comment]: # ({/e741c5d8-001a0466})

[comment]: # ({a32dafde-87854bfc})
#### 图形原型

变更:\
[ZBXNEXT-7951](https://support.zabbix.com/browse/ZBXNEXT-7951) `graphprototype.update`: 参数 `uuid` 现在可以更新。\

[comment]: # ({/a32dafde-87854bfc})

[comment]: # ({58456aa4-484809f3})
#### 主机组

变更:\
[ZBXNEXT-7951](https://support.zabbix.com/browse/ZBXNEXT-7951) `hostgroup.update`: 参数 `uuid` 现在可以更新。

[comment]: # ({/58456aa4-484809f3})

[comment]: # ({16ccbf19-0f65414a})
#### 主机原型

变更：\
[ZBXNEXT-7951](https://support.zabbix.com/browse/ZBXNEXT-7951) `hostprototype.update`：参数 `uuid` 现在可以更新。\

[comment]: # ({/16ccbf19-0f65414a})

[comment]: # ({5210c799-e1d3e00f})
#### httptest

变更:\
[ZBXNEXT-7951](https://support.zabbix.com/browse/ZBXNEXT-7951) `httptest.update`: 参数 `uuid` 现在可以更新。

[comment]: # ({/5210c799-e1d3e00f})

[comment]: # ({1cae8f74-d3f87b2a})
#### 监控项

变更:\
[ZBXNEXT-7951](https://support.zabbix.com/browse/ZBXNEXT-7951) `item.update`: 参数 `uuid` 现在可被更新.\

[comment]: # ({/1cae8f74-d3f87b2a})

[comment]: # ({29d7dea4-6516d71a})
#### 监控项原型

变更：\
[ZBXNEXT-7951](https://support.zabbix.com/browse/ZBXNEXT-7951) `itemprototype.update`：参数 `uuid` 现在可以更新。\

[comment]: # ({/29d7dea4-6516d71a})

[comment]: # ({71039239-233e48df})
#### 模板

变更:\
[ZBXNEXT-7951](https://support.zabbix.com/browse/ZBXNEXT-7951) `template.update`: 参数 `uuid` 现在可被更新.\

[comment]: # ({/71039239-233e48df})

[comment]: # ({e61f1421-959f7245})
#### 模板仪表盘

变更:\
[ZBXNEXT-7951](https://support.zabbix.com/browse/ZBXNEXT-7951) `templatedashboard.update`: 参数 `uuid` 现在可以更新。

[comment]: # ({/e61f1421-959f7245})

[comment]: # ({eed944d0-ade7fced})
#### 触发器

变更:\
[ZBXNEXT-7951](https://support.zabbix.com/browse/ZBXNEXT-7951) `trigger.update`: 参数 `uuid` 现在可以更新。

[comment]: # ({/eed944d0-ade7fced})

[comment]: # ({eeb339fa-be0ab3dc})
#### 触发器原型

变更:\
[ZBXNEXT-7951](https://support.zabbix.com/browse/ZBXNEXT-7951) `triggerprototype.update`: 参数 `uuid` 现在支持更新.\

[comment]: # ({/eeb339fa-be0ab3dc})

[comment]: # ({a91381f3-368e4ea8})
#### 值映射

变更：\
[ZBXNEXT-7951](https://support.zabbix.com/browse/ZBXNEXT-7951) `valuemap.update`：参数 `uuid` 现在可以更新。\

[comment]: # ({/a91381f3-368e4ea8})

[comment]: # ({89dd8159-8876b725})
### 6.0.9

[comment]: # ({/89dd8159-8876b725})

[comment]: # ({98c822cd-a4d0ad6e})
#### 用户

变更:\
[ZBXNEXT-7971](https://support.zabbix.com/browse/ZBXNEXT-7971) `user.create`, `user.update`: 将"url"字段的最大长度增加至2048个字符。

[comment]: # ({/98c822cd-a4d0ad6e})

[comment]: # ({17adece9-5a5d507b})
### 6.0.7

[comment]: # ({/17adece9-5a5d507b})

[comment]: # ({abf0753a-6975f645})
#### 图形

变更:\
[ZBX-7706](https://support.zabbix.com/browse/ZBX-7706) `graph.get`: 图表可用性不再依赖于对图表"ymin_itemid"和"ymax_itemid"字段中指定的监控项的权限.\
即使图表的最小或最大Y轴链接到不可访问的监控项,该图表仍然可访问,但MIN/MAX Y轴的工作方式与指定计算方法为"Calculated"时相同.\

[comment]: # ({/abf0753a-6975f645})

[comment]: # ({6791b539-90e6a45f})
#### 图形原型

变更:\
[ZBX-7706](https://support.zabbix.com/browse/ZBX-7706) `graphprototype.get`: 图形原型可用性不再取决于对图形原型"ymin_itemid"和"ymax_itemid"字段中指定的监控项的权限。

[comment]: # ({/6791b539-90e6a45f})

[comment]: # ({3d491c78-77fb2dc2})
### 6.0.3

[comment]: # ({/3d491c78-77fb2dc2})

[comment]: # ({b52f17da-393b8e2b})
#### 发现规则

错误修复:\
[ZBX-19118](https://support.zabbix.com/browse/ZBX-19118) `discoveryrule.create`, `discoveryrule.update`: 属性 `interfaceid` 不再需要create/update HTTP agent 类型的LLD规则.\

[comment]: # ({/b52f17da-393b8e2b})

[comment]: # ({f13b8a57-561bd769})
#### 监控项

错误修复:\
[ZBX-19118](https://support.zabbix.com/browse/ZBX-19118) `item.create`, `item.update`: 属性 `interfaceid` 不再需要create/update HTTP agent类型监控项.\

[comment]: # ({/f13b8a57-561bd769})

[comment]: # ({a2067594-f558b3bf})
#### 监控项原型

错误修复:\
[ZBX-19118](https://support.zabbix.com/browse/ZBX-19118) `itemprototype.create`, `itemprototype.update`: 属性 `interfaceid` 不再需要create/update HTTP agent 类型 监控项 原型.\

[comment]: # ({/a2067594-f558b3bf})
