This method allows to update existing hosts groups.此方法允许更新现有的主机组。

    to be updated. 要更新的主机组属性。

    Returns an object containing the IDs of the updated host groups under the property.返回包含“groupids”属性下更新的主机组的ID的对象。

    Renaming a host group 重命名主机组

    Rename a host group to “Linux hosts.”将主机组命名为“Linux主机”。

    Response:

    1. {
    2. "jsonrpc": "2.0",
    3. "result": {
    4. "7"
    5. ]
    6. },
    7. "id": 1

    CHostGroup::update() in frontends/php/include/classes/api/services/CHostGroup.php.