This method allows to create new maintenances.这种方法允许创建新的维护。
Parameters 参数
Maintenances to create.要创建的Maintenances。
At least one host or host group must be defined for each maintenance.
Returns an object containing the IDs of the created maintenances under the property. The order of the returned IDs matches the order of the passed maintenances.返回一个包含“维护”属性下的创建维护ID的对象。 返回的ID的顺序与通过的维护的顺序相匹配。
Examples 示例
Creating a maintenance
Request:
Response:
- {
- "jsonrpc": "2.0",
- "result": {
- "maintenanceids": [
- ]
- },
- "id": 1
- }