This method allows to update existing maintenances.该方法允许更新现有维护。

    Parameters 参数

    Maintenance properties to be updated.要更新的维护属性。

    The property must be defined for each maintenance, all other properties are optional. Only the passed properties will be updated, all others will remain unchanged.必须为每个维护定义“维护ID”属性,所有其他属性都是可选的。 只有通过的属性将被更新,所有其他属性将保持不变。

    Additionally to the standard maintenance properties, the method accepts the following parameters.除了标准维护属性外,该方法接受以下参数。

    At least one host or host group must be defined for each maintenance.

    Returns an object containing the IDs of the updated maintenances under the property.

    Examples 示例

    Assigning different hosts

    Request:

    Response:

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

    Source 来源

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