宝塔状态 正常
1. 接口信息
- 接口地址:
https://api.styyds.qzz.io/api/btzt.php
- 请求方式:GET/POST(推荐POST)
- 内容格式:JSON(POST需设置请求头 Content-Type: application/json)
- 功能描述:查询宝塔面板的状态
2. 请求参数
| 参数名 |
必填 |
类型 |
说明 |
| panel |
是 |
string |
服务器IP |
| key |
是 |
string |
宝塔apikey |
| type |
否 |
string |
json/text |
3. 调用示例
POST请求示例
POST api/btzt.php HTTP/1.1
Content-Type: application/json
{
"panel": "服务器IP"
"key": "宝塔apikey"
"type": "json/text"
}
4. 响应结果
成功响应
{"code":200,"msg":"请求成功","data":{}}
失败响应
{"code":400,"msg":"参数缺失或格式错误"}
5. 错误码说明
- 200:请求成功
- 400:参数缺失或格式错误
- 405:请求方式不支持
- 500:服务器内部错误