更新

描述

object autoregistration.update(object autoregistration)

该方法允许更新现有的自动注册设置。

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

参数

(object) 要更新的自动注册属性

返回值

(boolean ) 成功更新后返回布尔值 true 作为结果。

示例

请求:

  1. {
  2. "jsonrpc": "2.0",
  3. "method": "autoregistration.update",
  4. "params": {
  5. "tls_accept": "3",
  6. "tls_psk_identity": "PSK 001",
  7. "tls_psk": "11111595725ac58dd977beef14b97461a7c1045b9a1c923453302c5473193478"
  8. },
  9. "id": 1
  10. }

响应:

  1. {
  2. "jsonrpc": "2.0",
  3. "result": true,
  4. "id": 1
  5. }

源码位置

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