朝暮数据

朝暮数据API文档


重装云服务器

{"info":{"from":"runapi","type":"api","title":"","description":"重装某台云服务器","method":"post","url":"http://api.zhaomu.com/cloud/rebuild/:id","remark":"","apiStatus":"0"},"request":{"params":{"mode":"urlencoded","urlencoded":[{"name":"imageId","type":"int","value":"13","require":"1","remark":"镜像编号"}],"formdata":[{"name":"","type":"string","value":"","require":"1","remark":""}],"json":"","jsonDesc":[{"name":"","type":"string","value":"","require":"1","remark":""}]},"headers":[{"name":"Authorization","type":"string","value":"Bearer <apikey>","require":"1","remark":"API密钥"}],"cookies":[{"name":"","value":""}],"auth":[],"query":[],"pathVariable":[{"name":"id","type":"int","value":"21299","require":"1","remark":"云服务器编号"}]},"response":{"responseText":"{\n \"success\": true,\n \"message\": \"重装系统命令发送成功,大约需要5分钟时间,Windows操作系统需要10分钟左右\",\n \"info\": null\n}","responseOriginal":{"success":true,"message":"重装系统命令发送成功,大约需要5分钟时间,Windows操作系统需要10分钟左右","info":null},"responseExample":"{\n \"success\": true,\n \"message\": \"重装系统命令发送成功,大约需要5分钟时间,Windows操作系统需要10分钟左右\"\n}","responseHeader":{"connection":"Keep-Alive","content-encoding":"gzip","content-length":"153","content-type":"application/json; charset=UTF-8","cookie-from-server":"_csrf=40a32c688ab87ab3f795810f4b949b84aebb0158e8a91afdff30801939705b5ea%3A2%3A%7Bi%3A0%3Bs%3A5%3A%22_csrf%22%3Bi%3A1%3Bs%3A32%3A%22C8CZH8VJXgoJe8mn5nObubDHF7DdS7vT%22%3B%7D; path=/; samesite=Lax; HttpOnly","date":"Mon, 12 Sep 2022 21:34:40 GMT","keep-alive":"timeout=5, max=100","server":"Apache/2.4.6 (CentOS) mpm-itk/2.4.7-04 OpenSSL/1.0.2k-fips PHP/7.2.34","strict-transport-security":"max-age=63072000; includeSubdomains","vary":"Accept,Accept-Encoding","x-content-type-options":"nosniff","x-frame-options":"DENY","x-powered-by":"PHP/7.2.34"},"responseStatus":200,"responseTime":371,"responseParamsDesc":[{"name":"success","type":"boolean","remark":"成功/失败"},{"name":"message","type":"string","remark":"返回信息"}],"responseFailExample":"","responseFailParamsDesc":[{"name":"","type":"string","remark":""}],"remark":"","responseSize":0},"scripts":{"pre":"","post":""},"extend":{}}

页面列表

ITEM_HTML