<?php

return ["title" => "Server module类", "item" => ["module" => ["title" => "获取主机支持的server模块接口", "desc" => "该主机支持的server模块接口", "url" => "/v1/hosts/:id/module", "method" => "GET", "auth" => "智简魔方", "version" => "v1", "return" => [["name" => "type", "type" => "string", "require" => "", "max" => "-", "desc" => "default  默认   <br/>custom  自定义   <br/>", "example" => ""], ["name" => "function", "type" => "string", "require" => "", "max" => "-", "desc" => "方法名称", "example" => ""], ["name" => "name", "type" => "string", "require" => "", "max" => "-", "desc" => "中文名", "example" => ""], ["name" => "select", "type" => "array", "require" => "", "max" => "-", "desc" => "选项", "example" => ""]]], "status" => ["title" => "获取状态", "desc" => "", "url" => "/v1/hosts/:id/module/status", "method" => "GET", "auth" => "智简魔方", "version" => "v1", "param" => [["name" => "type", "type" => "string", "require" => "必填", "max" => "-", "desc" => "host 服务器电源状态  <br/>reinstall 获取重装,救援系统,重置密码进度（dcim类型主机才有）   <br/>", "example" => ""]]], "repassword" => ["title" => "重置密码", "desc" => "重置密码", "url" => "/v1/hosts/:id/module/repassword", "method" => "PUT", "auth" => "智简魔方", "version" => "v1", "param" => [["name" => "password", "type" => "string", "require" => "必填", "max" => "-", "desc" => "主机密码", "example" => ""]], "return" => [["name" => "second_verify", "type" => "array", "require" => "", "max" => "-", "desc" => "需要二次验证，会返回二次验证的数据", "example" => "", "child" => [["name" => "type", "type" => "string", "require" => "", "max" => "-", "desc" => "类型", "example" => "email"], ["name" => "name_zh", "type" => "string", "require" => "", "max" => "-", "desc" => "类型名称", "example" => ""], ["name" => "account", "type" => "string", "require" => "", "max" => "-", "desc" => "验证账户信息", "example" => ""]]]]], "getReinstall" => ["title" => "获取重装系统", "desc" => "", "url" => "/v1/hosts/:id/module/reinstall", "method" => "GET", "auth" => "智简魔方", "version" => "v1", "return" => [["name" => "os", "type" => "array", "require" => "", "max" => "-", "desc" => "操作系统", "example" => "", "child" => [["name" => "os_id", "type" => "int", "require" => "", "max" => "-", "desc" => "操作系统ID", "example" => "", "child" => []], ["name" => "name", "type" => "string", "require" => "", "max" => "-", "desc" => "操作系统名称", "example" => "", "child" => []], ["name" => "group_name", "type" => "string", "require" => "", "max" => "-", "desc" => "操作系统组名称", "example" => "", "child" => []]]], ["name" => "os_group", "type" => "array", "require" => "", "max" => "-", "desc" => "操作系统组", "example" => "", "child" => [["name" => "group_name", "type" => "string", "require" => "", "max" => "-", "desc" => "操作系统组名称", "example" => "", "child" => []], ["name" => "img", "type" => "string", "require" => "", "max" => "-", "desc" => "操作系统组图片", "example" => "", "child" => []]]]]], "reinstall" => ["title" => "重装系统", "desc" => "", "url" => "/v1/hosts/:id/module/reinstall", "method" => "PUT", "auth" => "智简魔方", "version" => "v1", "param" => [["name" => "os_id", "type" => "string", "require" => "必填", "max" => "-", "desc" => "操作系统ID", "example" => "", "child" => []], ["name" => "dcim", "type" => "array", "require" => "", "max" => "-", "desc" => "主机类型是dcim时可传参数", "example" => "", "child" => [["name" => "password", "type" => "string", "require" => "必填", "max" => "-", "desc" => "密码", "example" => "", "child" => []], ["name" => "port", "type" => "int", "require" => "", "max" => "-", "desc" => "端口", "example" => "", "child" => []], ["name" => "part_type", "type" => "int", "require" => "", "max" => "-", "desc" => "分区类型，0全盘格式化，1第一分区格式化", "example" => "", "child" => []]]]], "return" => [["name" => "second_verify", "type" => "array", "require" => "", "max" => "-", "desc" => "需要二次验证，会返回二次验证的数据", "example" => "", "child" => [["name" => "type", "type" => "string", "require" => "", "max" => "-", "desc" => "类型", "example" => "email"], ["name" => "name_zh", "type" => "string", "require" => "", "max" => "-", "desc" => "类型名称", "example" => ""], ["name" => "account", "type" => "string", "require" => "", "max" => "-", "desc" => "验证账户信息", "example" => ""]]]]], "reinstallBuy" => ["title" => "购买重装次数", "desc" => "", "url" => "/v1/hosts/:id/module/reinstall_buy", "method" => "POST", "auth" => "智简魔方", "version" => "v1", "return" => [["name" => "invoiceid", "type" => "int", "require" => "", "max" => "-", "desc" => "账单ID", "example" => "", "child" => []]]], "rescue" => ["title" => "救援系统", "desc" => "", "url" => "/v1/hosts/:id/module/rescue", "method" => "PUT", "auth" => "智简魔方", "version" => "v1", "param" => [["name" => "rescue_id", "type" => "string", "require" => "必填", "max" => "-", "desc" => "救援系统ID,这里固定只有linux和windows。linux传1，windows传2", "example" => "2", "child" => []]], "return" => [["name" => "second_verify", "type" => "array", "require" => "", "max" => "-", "desc" => "需要二次验证，会返回二次验证的数据", "example" => "", "child" => [["name" => "type", "type" => "string", "require" => "", "max" => "-", "desc" => "类型", "example" => "email"], ["name" => "name_zh", "type" => "string", "require" => "", "max" => "-", "desc" => "类型名称", "example" => ""], ["name" => "account", "type" => "string", "require" => "", "max" => "-", "desc" => "验证账户信息", "example" => ""]]]]], "on" => ["title" => "开机", "desc" => "", "url" => "/v1/hosts/:id/module/on", "method" => "PUT", "auth" => "智简魔方", "version" => "v1", "return" => [["name" => "second_verify", "type" => "array", "require" => "", "max" => "-", "desc" => "需要二次验证，会返回二次验证的数据", "example" => "", "child" => [["name" => "type", "type" => "string", "require" => "", "max" => "-", "desc" => "类型", "example" => "email"], ["name" => "name_zh", "type" => "string", "require" => "", "max" => "-", "desc" => "类型名称", "example" => ""], ["name" => "account", "type" => "string", "require" => "", "max" => "-", "desc" => "验证账户信息", "example" => ""]]]]], "off" => ["title" => "关机", "desc" => "", "url" => "/v1/hosts/:id/module/off", "method" => "PUT", "auth" => "智简魔方", "version" => "v1", "return" => [["name" => "second_verify", "type" => "array", "require" => "", "max" => "-", "desc" => "需要二次验证，会返回二次验证的数据", "example" => "", "child" => [["name" => "type", "type" => "string", "require" => "", "max" => "-", "desc" => "类型", "example" => "email"], ["name" => "name_zh", "type" => "string", "require" => "", "max" => "-", "desc" => "类型名称", "example" => ""], ["name" => "account", "type" => "string", "require" => "", "max" => "-", "desc" => "验证账户信息", "example" => ""]]]]], "reboot" => ["title" => "重启", "desc" => "", "url" => "/v1/hosts/:id/module/reboot", "method" => "PUT", "auth" => "智简魔方", "version" => "v1", "return" => [["name" => "second_verify", "type" => "array", "require" => "", "max" => "-", "desc" => "需要二次验证，会返回二次验证的数据", "example" => "", "child" => [["name" => "type", "type" => "string", "require" => "", "max" => "-", "desc" => "类型", "example" => "email"], ["name" => "name_zh", "type" => "string", "require" => "", "max" => "-", "desc" => "类型名称", "example" => ""], ["name" => "account", "type" => "string", "require" => "", "max" => "-", "desc" => "验证账户信息", "example" => ""]]]]], "hard_off" => ["title" => "硬关机", "desc" => "", "url" => "/v1/hosts/:id/module/hard_off", "method" => "PUT", "auth" => "智简魔方", "version" => "v1", "return" => [["name" => "second_verify", "type" => "array", "require" => "", "max" => "-", "desc" => "需要二次验证，会返回二次验证的数据", "example" => "", "child" => [["name" => "type", "type" => "string", "require" => "", "max" => "-", "desc" => "类型", "example" => "email"], ["name" => "name_zh", "type" => "string", "require" => "", "max" => "-", "desc" => "类型名称", "example" => ""], ["name" => "account", "type" => "string", "require" => "", "max" => "-", "desc" => "验证账户信息", "example" => ""]]]]], "hard_reboot" => ["title" => "硬重启", "desc" => "", "url" => "/v1/hosts/:id/module/hard_reboot", "method" => "PUT", "auth" => "智简魔方", "version" => "v1", "return" => [["name" => "second_verify", "type" => "array", "require" => "", "max" => "-", "desc" => "需要二次验证，会返回二次验证的数据", "example" => "", "child" => [["name" => "type", "type" => "string", "require" => "", "max" => "-", "desc" => "类型", "example" => "email"], ["name" => "name_zh", "type" => "string", "require" => "", "max" => "-", "desc" => "类型名称", "example" => ""], ["name" => "account", "type" => "string", "require" => "", "max" => "-", "desc" => "验证账户信息", "example" => ""]]]]], "bmc" => ["title" => "重置bmc", "desc" => "", "url" => "/v1/hosts/:id/module/bmc", "method" => "PUT", "auth" => "智简魔方", "version" => "v1", "return" => [["name" => "second_verify", "type" => "array", "require" => "", "max" => "-", "desc" => "需要二次验证，会返回二次验证的数据", "example" => "", "child" => [["name" => "type", "type" => "string", "require" => "", "max" => "-", "desc" => "类型", "example" => "email"], ["name" => "name_zh", "type" => "string", "require" => "", "max" => "-", "desc" => "类型名称", "example" => ""], ["name" => "account", "type" => "string", "require" => "", "max" => "-", "desc" => "验证账户信息", "example" => ""]]]]], "kvm" => ["title" => "kvm", "desc" => "", "url" => "/v1/hosts/:id/module/kvm", "method" => "PUT", "auth" => "智简魔方", "version" => "v1", "return" => [["name" => "second_verify", "type" => "array", "require" => "", "max" => "-", "desc" => "需要二次验证，会返回二次验证的数据", "example" => "", "child" => [["name" => "type", "type" => "string", "require" => "", "max" => "-", "desc" => "类型", "example" => "email"], ["name" => "name_zh", "type" => "string", "require" => "", "max" => "-", "desc" => "类型名称", "example" => ""], ["name" => "account", "type" => "string", "require" => "", "max" => "-", "desc" => "验证账户信息", "example" => ""]]]]], "ikvm" => ["title" => "ikvm", "desc" => "", "url" => "/v1/hosts/:id/module/ikvm", "method" => "PUT", "auth" => "智简魔方", "version" => "v1", "return" => [["name" => "second_verify", "type" => "array", "require" => "", "max" => "-", "desc" => "需要二次验证，会返回二次验证的数据", "example" => "", "child" => [["name" => "type", "type" => "string", "require" => "", "max" => "-", "desc" => "类型", "example" => "email"], ["name" => "name_zh", "type" => "string", "require" => "", "max" => "-", "desc" => "类型名称", "example" => ""], ["name" => "account", "type" => "string", "require" => "", "max" => "-", "desc" => "验证账户信息", "example" => ""]]]]], "vnc" => ["title" => "VNC", "desc" => "", "url" => "/v1/hosts/:id/module/vnc", "method" => "GET", "auth" => "智简魔方", "version" => "v1", "return" => [["name" => "url", "type" => "string", "require" => "", "max" => "-", "desc" => "访问vnc的url地址", "example" => "", "child" => []]]], "charts" => ["title" => "图表", "desc" => "", "url" => "/v1/hosts/:id/module/charts", "method" => "GET", "auth" => "智简魔方", "version" => "v1", "param" => [["name" => "type", "type" => "string", "require" => "必填", "max" => "-", "desc" => "主机支持的server模块中图表的选项对应", "example" => "", "child" => []], ["name" => "start", "type" => "int", "require" => "", "max" => "-", "desc" => "图表的开始时间,精确到毫秒", "example" => "1644401280000", "child" => []], ["name" => "end", "type" => "int", "require" => "", "max" => "-", "desc" => "图表的结束时间,精确到毫秒", "example" => "1645092240000", "child" => []]], "return" => [["name" => "unit", "type" => "string", "require" => "", "max" => "-", "desc" => "单位", "example" => "", "child" => []], ["name" => "chart_type", "type" => "string", "require" => "", "max" => "-", "desc" => "图表类型", "example" => "", "child" => []], ["name" => "label", "type" => "string", "require" => "", "max" => "-", "desc" => "显示标签", "example" => "", "child" => []], ["name" => "list", "type" => "array", "require" => "", "max" => "-", "desc" => "数据", "example" => "", "child" => [["name" => "time", "type" => "string", "require" => "", "max" => "-", "desc" => "时间", "example" => "", "child" => []], ["name" => "value", "type" => "string", "require" => "", "max" => "-", "desc" => "值", "example" => "", "child" => []]]]]], "custom" => ["title" => "自定义函数", "desc" => "", "url" => "/v1/hosts/:id/module/custom", "method" => "GET", "auth" => "智简魔方", "version" => "v1", "param" => [["name" => "key", "type" => "string", "require" => "必填", "max" => "-", "desc" => "在获取的模块接口中类型是custom的方法名称", "example" => "snapshot", "child" => []]]]]];