[{"data":1,"prerenderedAt":468},["ShallowReactive",2],{"blog-/blog/bandwagonhost-hidden-features-amy-api-20250919":3},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"author":10,"date":11,"tags":12,"body":14,"_type":462,"_id":463,"_source":464,"_file":465,"_stem":466,"_extension":467},"/blog/bandwagonhost-hidden-features-amy-api-20250919","blog",false,"","搬瓦工的两个特色功能：KiwiVM API 与智能助手 Amy","深入探讨搬瓦工(Bandwagon Host)的两个特色功能：强大的API接口和24/7待命的AI智能助手Amy，看看它们如何让VPS管理变得更高效、更智能。","VPS Hunter","2025-09-19",[13],"搬瓦工",{"type":15,"children":16,"toc":451},"root",[17,35,40,59,63,70,75,86,114,123,130,135,219,224,232,237,243,248,283,288,291,297,302,307,312,319,325,330,363,368,371,377,395,408,413,416,421,445],{"type":18,"tag":19,"props":20,"children":21},"element","blockquote",{},[22],{"type":18,"tag":23,"props":24,"children":25},"p",{},[26,33],{"type":18,"tag":27,"props":28,"children":29},"strong",{},[30],{"type":31,"value":32},"text","提示",{"type":31,"value":34},"：文中含有推广链接，如果通过链接购买，我可能会获得一些佣金，这也是我持续写作和分享经验的动力，谢谢支持。",{"type":18,"tag":23,"props":36,"children":37},{},[38],{"type":31,"value":39},"说到搬瓦工 (BandwagonHost)，大多数人第一印象可能是：稳定、省心、价格合适，再加上对国内用户友好的几条优化线路。但其实，搬瓦工还有一些“特色技能”，藏在自家的 KiwiVM 控制面板里。",{"type":18,"tag":23,"props":41,"children":42},{},[43,45,50,52,57],{"type":31,"value":44},"今天就带大家看看两个很有意思的功能：一个是能把 VPS 玩出花样的 ",{"type":18,"tag":27,"props":46,"children":47},{},[48],{"type":31,"value":49},"API",{"type":31,"value":51},"，另一个是全天候待命的 ",{"type":18,"tag":27,"props":53,"children":54},{},[55],{"type":31,"value":56},"智能助手 Amy",{"type":31,"value":58},"。这两样东西，让搬瓦工和其他 VPS 服务商拉开了差距。",{"type":18,"tag":60,"props":61,"children":62},"hr",{},[],{"type":18,"tag":64,"props":65,"children":67},"h2",{"id":66},"深入-api-vps-的自动化管家",[68],{"type":31,"value":69},"深入 API —— VPS 的自动化管家",{"type":18,"tag":23,"props":71,"children":72},{},[73],{"type":31,"value":74},"想让服务器每天半夜自动备份？写个小工具实时监控 VPS 状态？甚至自己做一个“简化版 KiwiVM 面板”？",{"type":18,"tag":23,"props":76,"children":77},{},[78,80,84],{"type":31,"value":79},"答案就是 ",{"type":18,"tag":27,"props":81,"children":82},{},[83],{"type":31,"value":49},{"type":31,"value":85},"。",{"type":18,"tag":23,"props":87,"children":88},{},[89,91,95,97,104,106,112],{"type":31,"value":90},"通过 ",{"type":18,"tag":27,"props":92,"children":93},{},[94],{"type":31,"value":49},{"type":31,"value":96},"，你可以直接用代码控制 VPS，省去了每次都得登陆网页后台点来点去的麻烦。在 KiwiVM 面板左侧菜单的 “API” 页面，可以找到属于你自己的 ",{"type":18,"tag":98,"props":99,"children":101},"code",{"className":100},[],[102],{"type":31,"value":103},"VEID",{"type":31,"value":105}," 和 ",{"type":18,"tag":98,"props":107,"children":109},{"className":108},[],[110],{"type":31,"value":111},"API Key",{"type":31,"value":113},"。如果你有多台 VPS，在客户中心还能一键导出所有实例的密钥，非常方便。",{"type":18,"tag":23,"props":115,"children":116},{},[117],{"type":18,"tag":118,"props":119,"children":122},"img",{"alt":120,"src":121},"image","https://ihot.cc/images/reviews/bwg-api.webp",[],{"type":18,"tag":124,"props":125,"children":127},"h3",{"id":126},"api-怎么用来看个例子",[128],{"type":31,"value":129},"API 怎么用？来看个例子",{"type":18,"tag":23,"props":131,"children":132},{},[133],{"type":31,"value":134},"API 请求支持 GET 和 POST。比如下面这个 PHP 小例子，可以直接获取服务器信息：",{"type":18,"tag":136,"props":137,"children":141},"pre",{"code":138,"language":139,"meta":7,"className":140,"style":7},"// 示例: 获取服务器信息\n$veid = '你的_VEID';\n$api_key = '你的_API_密钥';\n\n$request = \"[https://api.64clouds.com/v1/getServiceInfo?veid=](https://api.64clouds.com/v1/getServiceInfo?veid=){$veid}&api_key={$api_key}\";\n$serviceInfo = json_decode(file_get_contents($request));\n\nprint_r($serviceInfo);\n","php","language-php shiki shiki-themes github-dark",[142],{"type":18,"tag":98,"props":143,"children":144},{"__ignoreMap":7},[145,156,165,174,184,193,202,210],{"type":18,"tag":146,"props":147,"children":150},"span",{"class":148,"line":149},"line",1,[151],{"type":18,"tag":146,"props":152,"children":153},{},[154],{"type":31,"value":155},"// 示例: 获取服务器信息\n",{"type":18,"tag":146,"props":157,"children":159},{"class":148,"line":158},2,[160],{"type":18,"tag":146,"props":161,"children":162},{},[163],{"type":31,"value":164},"$veid = '你的_VEID';\n",{"type":18,"tag":146,"props":166,"children":168},{"class":148,"line":167},3,[169],{"type":18,"tag":146,"props":170,"children":171},{},[172],{"type":31,"value":173},"$api_key = '你的_API_密钥';\n",{"type":18,"tag":146,"props":175,"children":177},{"class":148,"line":176},4,[178],{"type":18,"tag":146,"props":179,"children":181},{"emptyLinePlaceholder":180},true,[182],{"type":31,"value":183},"\n",{"type":18,"tag":146,"props":185,"children":187},{"class":148,"line":186},5,[188],{"type":18,"tag":146,"props":189,"children":190},{},[191],{"type":31,"value":192},"$request = \"[https://api.64clouds.com/v1/getServiceInfo?veid=](https://api.64clouds.com/v1/getServiceInfo?veid=){$veid}&api_key={$api_key}\";\n",{"type":18,"tag":146,"props":194,"children":196},{"class":148,"line":195},6,[197],{"type":18,"tag":146,"props":198,"children":199},{},[200],{"type":31,"value":201},"$serviceInfo = json_decode(file_get_contents($request));\n",{"type":18,"tag":146,"props":203,"children":205},{"class":148,"line":204},7,[206],{"type":18,"tag":146,"props":207,"children":208},{"emptyLinePlaceholder":180},[209],{"type":31,"value":183},{"type":18,"tag":146,"props":211,"children":213},{"class":148,"line":212},8,[214],{"type":18,"tag":146,"props":215,"children":216},{},[217],{"type":31,"value":218},"print_r($serviceInfo);\n",{"type":18,"tag":23,"props":220,"children":221},{},[222],{"type":31,"value":223},"返回示例（JSON）：",{"type":18,"tag":136,"props":225,"children":227},{"code":226},"{\n    \"hostname\": \"my.server.com\",\n    \"node_location\": \"US, Florida\",\n    \"plan\": \"micro128\",\n    \"plan_monthly_data\": 322122547200,\n    \"data_counter\": 569810827,\n    \"ip_addresses\": [\n        \"11.22.33.44\"\n    ],\n    \"os\": \"centos-6-x86_64\",\n    \"error\": 0\n}\n",[228],{"type":18,"tag":98,"props":229,"children":230},{"__ignoreMap":7},[231],{"type":31,"value":226},{"type":18,"tag":23,"props":233,"children":234},{},[235],{"type":31,"value":236},"有了这些数据，你就能随心所欲地做各种自动化管理。",{"type":18,"tag":64,"props":238,"children":240},{"id":239},"api-能做什么",[241],{"type":31,"value":242},"API 能做什么？",{"type":18,"tag":23,"props":244,"children":245},{},[246],{"type":31,"value":247},"基本上，网页面板能点的操作，API 都能实现：",{"type":18,"tag":249,"props":250,"children":251},"ul",{},[252,258,263,268,273,278],{"type":18,"tag":253,"props":254,"children":255},"li",{},[256],{"type":31,"value":257},"基础服务器管理：start、stop、restart、kill（强制停止）。",{"type":18,"tag":253,"props":259,"children":260},{},[261],{"type":31,"value":262},"信息获取：getServiceInfo（获取基础信息）、getLiveServiceInfo（获取实时负载等详细信息）、getRawUsageStats（获取原始流量数据）。",{"type":18,"tag":253,"props":264,"children":265},{},[266],{"type":31,"value":267},"系统与软件：reinstallOS（重装系统）、basicShell/exec（在 VPS 内执行 Shell 命令）。",{"type":18,"tag":253,"props":269,"children":270},{},[271],{"type":31,"value":272},"快照与备份：snapshot/create（创建快照）、snapshot/list（列出快照）、backup/list（列出自动备份）。",{"type":18,"tag":253,"props":274,"children":275},{},[276],{"type":31,"value":277},"网络管理：setPTR（设置反向 DNS）、ipv6/add（添加 IPv6 子网）。",{"type":18,"tag":253,"props":279,"children":280},{},[281],{"type":31,"value":282},"服务器迁移：migrate/getLocations（获取可迁移的机房列表）、migrate/start（迁移）。",{"type":18,"tag":23,"props":284,"children":285},{},[286],{"type":31,"value":287},"这只是冰山一角。翻阅官方文档，你会发现它能和脚本、应用与监控体系无缝结合，让 VPS 完全融入你的工作流。",{"type":18,"tag":60,"props":289,"children":290},{},[],{"type":18,"tag":64,"props":292,"children":294},{"id":293},"遇见-amy-你的-247-专属助手",[295],{"type":31,"value":296},"遇见 Amy —— 你的 24/7 专属助手",{"type":18,"tag":23,"props":298,"children":299},{},[300],{"type":31,"value":301},"除了 API，KiwiVM 里还有个更贴心的“宝藏功能”——智能助手 Amy。",{"type":18,"tag":23,"props":303,"children":304},{},[305],{"type":31,"value":306},"你可以把 Amy 理解为一个全天候、精通多国语言的技术顾问。她能实时获取你 VPS 的诊断信息和日志，所以给出的建议往往更有针对性。",{"type":18,"tag":23,"props":308,"children":309},{},[310],{"type":31,"value":311},"服务器连不上？性能有点瓶颈？不确定防火墙是不是配置错了？你可以直接用自己的母语问 Amy，她都能给你清晰的排查思路。",{"type":18,"tag":23,"props":313,"children":314},{},[315],{"type":18,"tag":118,"props":316,"children":318},{"alt":120,"src":317},"https://ihot.cc/images/reviews/bwg-amy.webp",[],{"type":18,"tag":124,"props":320,"children":322},{"id":321},"amy-能帮你做什么",[323],{"type":31,"value":324},"Amy 能帮你做什么",{"type":18,"tag":23,"props":326,"children":327},{},[328],{"type":31,"value":329},"虽然 Amy 不会直接替你点按钮，但她能提供很多实用的支持：",{"type":18,"tag":249,"props":331,"children":332},{},[333,338,343,348,353,358],{"type":18,"tag":253,"props":334,"children":335},{},[336],{"type":31,"value":337},"诊断分析：实时查看 VPS 状态并生成性能与配置报告。",{"type":18,"tag":253,"props":339,"children":340},{},[341],{"type":31,"value":342},"故障排查：定位 SSH 登录、网络连接等常见问题。",{"type":18,"tag":253,"props":344,"children":345},{},[346],{"type":31,"value":347},"操作指导：如何重置 root 密码、配置 IPv6、重装系统。",{"type":18,"tag":253,"props":349,"children":350},{},[351],{"type":31,"value":352},"资源管理：查看流量、CPU、内存等使用情况。",{"type":18,"tag":253,"props":354,"children":355},{},[356],{"type":31,"value":357},"备份恢复：指导使用快照与自动备份进行恢复。",{"type":18,"tag":253,"props":359,"children":360},{},[361],{"type":31,"value":362},"迁移设置：提供数据中心迁移建议与 PTR 配置说明。",{"type":18,"tag":23,"props":364,"children":365},{},[366],{"type":31,"value":367},"等于说，有了 Amy，就算你对服务器不算很熟，也能在关键时刻得到靠谱的建议。更重要的是，在 VPS 管理这个领域，她完全可以替代 ChatGPT。因为 Amy 的建议是基于你当前 VPS 的实际情况生成的，比通用 AI 的回答更精准、更安全，也更省心。",{"type":18,"tag":60,"props":369,"children":370},{},[],{"type":18,"tag":64,"props":372,"children":374},{"id":373},"不止是便宜和稳定",[375],{"type":31,"value":376},"不止是“便宜和稳定”",{"type":18,"tag":23,"props":378,"children":379},{},[380,382,386,388,393],{"type":31,"value":381},"很多人选择搬瓦工，是因为价格和稳定性。但 ",{"type":18,"tag":27,"props":383,"children":384},{},[385],{"type":31,"value":49},{"type":31,"value":387}," 与 ",{"type":18,"tag":27,"props":389,"children":390},{},[391],{"type":31,"value":392},"Amy",{"type":31,"value":394}," 的加持，使它更具竞争力。",{"type":18,"tag":249,"props":396,"children":397},{},[398,403],{"type":18,"tag":253,"props":399,"children":400},{},[401],{"type":31,"value":402},"API：把 VPS 变成可深度定制、可自动化的工具。",{"type":18,"tag":253,"props":404,"children":405},{},[406],{"type":31,"value":407},"Amy：在日常运维与故障排查时，提供随叫随到的技术支持。",{"type":18,"tag":23,"props":409,"children":410},{},[411],{"type":31,"value":412},"So，你可以更自由地折腾和探索，把 VPS 的潜力发挥到极致。",{"type":18,"tag":60,"props":414,"children":415},{},[],{"type":18,"tag":64,"props":417,"children":419},{"id":418},"官方购买链接",[420],{"type":31,"value":418},{"type":18,"tag":23,"props":422,"children":423},{},[424,433,437,439],{"type":18,"tag":425,"props":426,"children":430},"a",{"href":427,"rel":428},"https://bandwagonhost.com/aff.php?aff=76631",[429],"nofollow",[431],{"type":31,"value":432},"点击这里进入搬瓦工官网，体验 KiwiVM 面板",{"type":18,"tag":434,"props":435,"children":436},"br",{},[],{"type":31,"value":438},"\n结账优惠码：",{"type":18,"tag":98,"props":440,"children":442},{"className":441},[],[443],{"type":31,"value":444},"BWHCGLUKKB",{"type":18,"tag":446,"props":447,"children":448},"style",{},[449],{"type":31,"value":450},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}",{"title":7,"searchDepth":158,"depth":158,"links":452},[453,456,457,460,461],{"id":66,"depth":158,"text":69,"children":454},[455],{"id":126,"depth":167,"text":129},{"id":239,"depth":158,"text":242},{"id":293,"depth":158,"text":296,"children":458},[459],{"id":321,"depth":167,"text":324},{"id":373,"depth":158,"text":376},{"id":418,"depth":158,"text":418},"markdown","content:blog:bandwagonhost-hidden-features-amy-api-20250919.md","content","blog/bandwagonhost-hidden-features-amy-api-20250919.md","blog/bandwagonhost-hidden-features-amy-api-20250919","md",1776254383358]