文档
测试

获取模板列表

GET
http://172.16.14.11:8069/api/v1/hosts/template/

请求头

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

请求参数

参数名
类型
描述
必填
uid
string
示例:2
必填
token
string
示例:b510a23700e5d7e5eeb2c648aa534e9edee465f2o1609729430
必填
name
string
名称
可选
creator
string
创建人名字
可选
create_time
dict
创建时间
可选
start
string
开始时间,格式为:%Y-%m-%d %H:%M:%S
必填
end
string
结束时间,格式为:%Y-%m-%d %H:%M:%S
必填
offset
int
跳过数据数量
可选
limit
int
限制数据数量
可选

响应参数

参数名
类型
描述
必填
code
string
示例:200
必填
msg
string
示例:请求成功
必填
result
array
数据列表
必填
id
int
模板id,示例:3
必填
name
string
模板名字,示例:Template OS Linux
必填
type
boolean
模板类型,net:网络模板;host:主机模板,示例:net(false则是没填)
必填
description
string
模板描述,示例:
必填
item_count
int
监控项数量
必填
trigger_count
int
触发器数量
必填
application_count
int
应用集数量
必填
macro_count
int
宏数量
必填
rule_count
int
规则数量
必填
graph_count
int
图形数量
必填
dashboard_count
int
聚合图形数量
必填
total
int
数据总量,示例:129
必填