木偶仪表板API
用法
节点
列出所有节点
@nodes = Node . all
查找特定节点
@node = Node . find ( "example.com" )
删除节点
@node = Node . find ( "example.com" )
@node . destroy
获取节点参数
@node = Node . find ( "example.com" )
@node [ "role" ]
更新节点
@node = Node . find ( "example.com" )
@node . description = "Replacement server"
@node . save
节点组
列出所有节点组
@node_groups = NodeGroup . all
查找特定节点组
@node_group = NodeGroup . find
评论0
最新资源