文档
测试

修改模板触发器原型

PUT
http://172.16.14.11:8069/api/v1/hosts/template/triggerPrototype/3

接口描述

/api/v1/hosts/template/triggerPrototype/<int:template_id>

请求头

参数名
类型
描述
必填
Content-Type
string
application/json
必填

请求参数

参数名
类型
描述
必填
uid
string
示例:6
必填
token
string
示例:339f4bf33b017a3aa0bb2d29cfa1bcca18b23ef6o1609904774
必填
description
string
触发器名称,示例:交换机 {HOST.NAME} 是生成树树根
可选
expression
string
表达式,示例:{Template Name:stp.rootcost.last(#3)}=0
可选
comments
string
描述,示例:修改触发器接口测试
可选
priority
string
严重性,0 - 未分类; 1 - 信息; 2 - 警告; 3 - 一般严重; 4 - 严重; 5 - 灾难
可选
recovery_mode
string
生成模式,0 -表达式; 1 - 恢复表达式; 2 - 无
可选
manual_close
boolean
允许手动关闭,示例:false
可选
type
string
生成多个故障事件,示例:false
可选
recovery_expression
string
恢复表达式,recovery_mode为1时必填,示例:{Template Name:stp.rootcost.last(#3)}=1
可选

响应参数

参数名
类型
描述
必填
jsonrpc
string
示例:2.0
必填
id
object
示例:null
必填
result
object
数据字典
必填
code
string
示例:200
必填
msg
string
示例:修改成功
必填