文档
测试

创建宏原型

POST
http://172.16.14.11:8069/api/v1/hosts/template/3/macroPrototype

接口描述

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

请求头

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

请求参数

参数名
类型
描述
必填
uid
string
示例:6
必填
token
string
示例:339f4bf33b017a3aa0bb2d29cfa1bcca18b23ef6o1609904774
必填
macro
string
宏字符,示例:{$HOST}
必填
value
string
对应值,示例:SZPDC
必填

响应参数

参数名
类型
描述
必填
jsonrpc
string
示例:2.0
必填
id
object
示例:null
必填
result
object
数据字典
必填
code
string
示例:201
必填
msg
string
示例:创建成功
必填
result
int
示例:4
必填