附录 2. 从 7.2 到 7.4 的变更

向后不兼容的更改

map

ZBXNEXT-8784 已从 map link trigger 对象中移除属性 linktriggeridlinkid

媒体类型

ZBX-26258 mediatype.get:新增了对 selectUsers 参数的严格校验。

user

ZBX-26258 user.get:新增了对方法参数的严格校验。
ZBX-26258 user.get:属性 userid 现在仅在显式请求时,或当 output 设置为 "extend" 时才会返回。

用户组

ZBX-26258 usergroup.get:新增对 mfaidsselectUsers 参数的严格校验。

其他更改和错误修复

仪表板

ZBXNEXT-8919svggraphpiechart 小部件新增了仪表板小部件字段 ds.0.color_palette
ZBXNEXT-9087 新增了仪表板小部件类型 itemcard

发现规则原型

ZBXNEXT-1527 新增了 LLD 规则原型 API,包含方法 discoveryruleprototype.creatediscoveryruleprototype.updatediscoveryruleprototype.getdiscoveryruleprototype.delete

图形

ZBXNEXT-1527graph.get 方法新增了参数 selectDiscoveryData;已弃用参数 selectGraphDiscovery

图形原型

ZBXNEXT-1527graphprototype.get 方法中新增了参数 selectDiscoveryRulePrototypeselectDiscoveryData

主机

ZBXNEXT-1527host.get 方法新增了参数 selectDiscoveryDataselectDiscoveryRules;已弃用参数 selectHostDiscoveryselectDiscoveries

主机组

ZBXNEXT-1527hostgroup.get 方法新增了参数 selectDiscoveryData;已弃用参数 selectGroupDiscoveries

主机原型

ZBXNEXT-1527hostprototype.get 方法新增了参数 selectDiscoveryRulePrototypeselectDiscoveryData

监控项

ZBXNEXT-1527item.get 方法新增了参数 selectDiscoveryData;已弃用参数 selectItemDiscovery

监控项原型

ZBXNEXT-1527itemprototype.get 方法中新增了参数 selectDiscoveryRulePrototypeselectDiscoveryData

map

ZBXNEXT-875map element 对象新增了 zindex 属性。
ZBXNEXT-2122 为角色 API 的 action 对象新增了 edit_own_mediaedit_user_media 属性。
ZBXNEXT-8784map 对象新增了 background_scaleshow_element_labelshow_link_label 属性。
ZBXNEXT-8784map element 对象新增了 show_label 属性。
ZBXNEXT-8784map link 对象新增了 show_labelindicator_typeitemidthresholdshighlights 属性。
ZBXNEXT-8784 新增了 map link indicators 对象。

mediatype

ZBXNEXT-9805mediatype 对象的 smtp_authentication 属性新增了选项 2("OAuth token")。
ZBXNEXT-9805mediatype 对象新增了属性 redirection_urlclient_idclient_secretauthorization_urltoken_urltokens_statusaccess_tokenaccess_token_updatedaccess_expires_inrefresh_token

模板

ZBXNEXT-9872 新增了 readmewizard_ready 属性。
ZBXNEXT-1527template.get 方法新增了 selectDiscoveryRules 参数;selectDiscoveries 参数已弃用。

模板仪表板

ZBXNEXT-9087 新增了新的模板仪表板小部件类型 itemcard

触发器

ZBXNEXT-1527trigger.get 方法新增了参数 selectDiscoveryData;已弃用参数 selectTriggerDiscovery

触发器原型

ZBXNEXT-1527triggerprototype.get 方法新增了参数 selectDiscoveryRulePrototypeselectDiscoveryData

用户宏

ZBXNEXT-9872 为主机宏对象新增了 config 属性。