朝暮数据

朝暮数据API文档


获取云服务器产品信息

{"info":{"from":"runapi","type":"api","title":"","description":"获取某款云服务器产品信息","method":"get","url":"http://api.zhaomu.com/product/:id","remark":"","apiStatus":"0"},"request":{"params":{"mode":"urlencoded","urlencoded":[{"name":"","type":"string","value":"","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":[{"name":"","type":"string","value":"","require":"1","remark":""}],"pathVariable":[{"name":"id","type":"int","value":"35","require":"1","remark":"云服务器产品编号"}]},"response":{"responseText":"{\n \"id\": 35,\n \"cpu\": 1,\n \"ram\": 1024,\n \"disk\": 25,\n \"diskMax\": 25,\n \"diskData\": 0,\n \"diskDataMax\": 40000,\n \"diskMedia\": \"SSD\",\n \"bandwidth\": null,\n \"bandwidthMax\": null,\n \"traffic\": 1000,\n \"priceHour\": 0.1,\n \"price\": 49,\n \"priceQuarter\": 147,\n \"priceHalfYear\": 294,\n \"priceYear\": 588,\n \"tags\": \"\",\n \"outOfStock\": 0,\n \"noWindows\": null,\n \"region_id\": 3\n}","responseOriginal":{"id":35,"cpu":1,"ram":1024,"disk":25,"diskMax":25,"diskData":0,"diskDataMax":40000,"diskMedia":"SSD","bandwidth":null,"bandwidthMax":null,"traffic":1000,"priceHour":0.1,"price":49,"priceQuarter":147,"priceHalfYear":294,"priceYear":588,"tags":"","outOfStock":0,"noWindows":null,"region_id":3},"responseExample":"{\n \"id\": 35,\n \"cpu\": 1,\n \"ram\": 1024,\n \"disk\": 25,\n \"diskMax\": 25,\n \"diskData\": 0,\n \"diskDataMax\": 40000,\n \"diskMedia\": \"SSD\",\n \"bandwidth\": null,\n \"bandwidthMax\": null,\n \"traffic\": 1000,\n \"priceHour\": 0.1,\n \"price\": 49,\n \"priceQuarter\": 147,\n \"priceHalfYear\": 294,\n \"priceYear\": 588,\n \"tags\": \"\",\n \"outOfStock\": 0,\n \"noWindows\": null,\n \"region_id\": 3\n}","responseHeader":{"connection":"Keep-Alive","content-encoding":"gzip","content-length":"205","content-type":"application/json; charset=UTF-8","cookie-from-server":"_csrf=50dc2a0e67a136e75ab8ead8cfe9161a68909a5acd4b60eb5bb3ba3027ff4a92a%3A2%3A%7Bi%3A0%3Bs%3A5%3A%22_csrf%22%3Bi%3A1%3Bs%3A32%3A%22wxTwsuGR10YLsri-daA9BaQh3zw76y3k%22%3B%7D; path=/; samesite=Lax; HttpOnly","date":"Mon, 12 Sep 2022 12:33:42 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":264,"responseParamsDesc":[{"name":"id","type":"int","remark":"产品编号"},{"name":"cpu","type":"int","remark":"CPU"},{"name":"ram","type":"int","remark":"内存(MB)"},{"name":"disk","type":"int","remark":"系统盘(GB)"},{"name":"diskMax","type":"int","remark":"系统盘最大值(GB)"},{"name":"diskData","type":"int","remark":"数据盘(GB)"},{"name":"diskDataMax","type":"int","remark":"数据盘最大值(GB)"},{"name":"diskMedia","type":"string","remark":"硬盘截止"},{"name":"bandwidth","type":"object","remark":"带宽(Mbps)"},{"name":"bandwidthMax","type":"object","remark":"带宽最大值(Mbps)"},{"name":"traffic","type":"int","remark":"流量(GB/月)"},{"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":"tags","type":"string","remark":"标签"},{"name":"outOfStock","type":"boolean","remark":"是否缺货"},{"name":"noWindows","type":"boolean","remark":"是否不支持Windows"},{"name":"region_id","type":"int","remark":"可用区编号"}],"responseFailExample":"","responseFailParamsDesc":[{"name":"","type":"string","remark":""}],"remark":"","responseSize":0},"scripts":{"pre":"","post":""},"extend":{}}

页面列表

ITEM_HTML