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:
- {
- "jsonrpc": "2.0",
- "result": {
- "7"
- ]
- },
- "id": 1
CHostGroup::update() in frontends/php/include/classes/api/services/CHostGroup.php.