朝暮数据

朝暮数据API文档


获取云服务器信息

{"info":{"from":"runapi","type":"api","title":"","description":"获取某台云服务器信息","method":"get","url":"http://api.zhaomu.com/cloud/:id","remark":"","apiStatus":"0"},"request":{"params":{"mode":"urlencoded","urlencoded":[],"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 \"id\": 21299,\n \"ip\": \"155.138.139.237\",\n \"root\": \"root\",\n \"password\": \"?8aFw]1xZZ)w4Dw)\",\n \"cpu\": 1,\n \"ram\": 1024,\n \"disk\": 25,\n \"diskData\": 0,\n \"diskMedia\": \"SSD\",\n \"bandwidth\": null,\n \"traffic\": 1000,\n \"image\": \"CentOS 7 64位\",\n \"imageIdentity\": \"167\",\n \"renewPrice\": 49,\n \"paymentCycle\": 1,\n \"priceHour\": null,\n \"price\": 49,\n \"priceQuarter\": 147,\n \"priceHalfYear\": 294,\n \"priceYear\": 588,\n \"startTime\": \"2022-09-12 20:53:44\",\n \"endTime\": \"2022-11-12 20:53:44\",\n \"status\": 2,\n \"note\": null,\n \"noteUser\": null,\n \"whiteList\": null,\n \"isAutoRenew\": 0,\n \"region_id\": 18,\n \"backupEnable\": 0,\n \"backupCycle\": null,\n \"backupDayOfWeek\": null,\n \"backupHour\": null,\n \"backupPolicyIdentity\": null\n}","responseOriginal":{"id":21299,"ip":"155.138.139.237","root":"root","password":"?8aFw]1xZZ)w4Dw)","cpu":1,"ram":1024,"disk":25,"diskData":0,"diskMedia":"SSD","bandwidth":null,"traffic":1000,"image":"CentOS 7 64位","imageIdentity":"167","renewPrice":49,"paymentCycle":1,"priceHour":null,"price":49,"priceQuarter":147,"priceHalfYear":294,"priceYear":588,"startTime":"2022-09-12 20:53:44","endTime":"2022-11-12 20:53:44","status":2,"note":null,"noteUser":null,"whiteList":null,"isAutoRenew":0,"region_id":18,"backupEnable":0,"backupCycle":null,"backupDayOfWeek":null,"backupHour":null,"backupPolicyIdentity":null},"responseExample":"{\n \"id\": 21299,\n \"ip\": \"155.138.139.237\",\n \"root\": \"root\",\n \"password\": \"xxxxxx\",\n \"cpu\": 1,\n \"ram\": 1024,\n \"disk\": 25,\n \"diskData\": 0,\n \"diskMedia\": \"SSD\",\n \"bandwidth\": null,\n \"traffic\": 1000,\n \"image\": \"CentOS 7 64位\",\n \"renewPrice\": 49,\n \"paymentCycle\": 1,\n \"priceHour\": null,\n \"price\": 49,\n \"priceQuarter\": 147,\n \"priceHalfYear\": 294,\n \"priceYear\": 588,\n \"startTime\": \"2022-09-12 20:53:44\",\n \"endTime\": \"2022-11-12 20:53:44\",\n \"status\": 2,\n \"note\": null,\n \"noteUser\": null,\n \"isAutoRenew\": 0,\n \"region_id\": 18,\n}","responseHeader":{"connection":"Keep-Alive","content-encoding":"gzip","content-length":"377","content-type":"application/json; charset=UTF-8","cookie-from-server":"_csrf=89112fe3c2b817031c41de9ae758ee47055f875bc4930dbdfbe9a529ce0d4c51a%3A2%3A%7Bi%3A0%3Bs%3A5%3A%22_csrf%22%3Bi%3A1%3Bs%3A32%3A%22eoMTvQyYioesgYly1EhKr7i4F5afb6H4%22%3B%7D; path=/; samesite=Lax; HttpOnly","date":"Mon, 12 Sep 2022 13:06:22 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":154,"responseParamsDesc":[{"name":"id","type":"int","remark":"云服务器编号"},{"name":"ip","type":"string","remark":"IP地址"},{"name":"root","type":"string","remark":"用户名"},{"name":"password","type":"string","remark":"密码"},{"name":"cpu","type":"int","remark":"CPU"},{"name":"ram","type":"int","remark":"内存(MB)"},{"name":"disk","type":"int","remark":"系统盘(GB)"},{"name":"diskData","type":"int","remark":"数据盘(GB)"},{"name":"diskMedia","type":"string","remark":"硬盘截止"},{"name":"bandwidth","type":"object","remark":"带宽(Mbps)"},{"name":"traffic","type":"int","remark":"流量(GB/月)"},{"name":"image","type":"string","remark":"镜像名称"},{"name":"renewPrice","type":"string","remark":"续费价格"},{"name":"paymentCycle","type":"string","remark":"付款周期"},{"name":"priceHour","type":"number","remark":"小时付价格"},{"name":"price","type":"int","remark":"月付价格"},{"name":"priceQuarter","type":"int","remark":"季付价格"},{"name":"priceHalfYear","type":"int","remark":"半年付价格"},{"name":"priceYear","type":"int","remark":"年付价格"},{"name":"startTime","type":"string","remark":"开通时间"},{"name":"endTime","type":"string","remark":"到期时间"},{"name":"status","type":"string","remark":"状态"},{"name":"note","type":"object","remark":"管理员备注"},{"name":"noteUser","type":"object","remark":"用户备注"},{"name":"isAutoRenew","type":"string","remark":"是否自动续费"},{"name":"region_id","type":"int","remark":"可用区编号"}],"responseFailExample":"","responseFailParamsDesc":[{"name":"","type":"string","remark":""}],"remark":"","responseSize":1},"scripts":{"pre":"","post":""},"extend":{}}

页面列表

ITEM_HTML