2022 Zabbix中国峰会
2022 Zabbix中国峰会

更新

描述

object authentication.update(object authentication)

此方法允许更新现有的认证设置。

此方法仅对超级管理员用户类型可用。 可以在用户角色设置中撤销调用此方法的权限。更多信息,请参见 用户角色

参数

(object) 要更新的认证属性

返回值

(array) 返回一个包含已更新参数名称的数组。

示例

请求:

{
           "jsonrpc": "2.0",
           "method": "authentication.update",
           "params": {
               "http_auth_enabled": 1,
               "http_case_sensitive": 0,
               "http_login_form": 1
           },
           "id": 1
       }

响应:

{
           "jsonrpc": "2.0",
           "result": [
               "http_auth_enabled",
               "http_case_sensitive",
               "http_login_form"
           ],
           "id": 1
       }

源码位置

CAuthentication::update() 在 ui/include/classes/api/services/CAuthentication.php 文件中。