get_sites_ftp
查询指定网站是否关联了 FTP 账户及其信息。
- 路由:
POST /site - action:
get_sites_ftp
输入参数
| 参数名称 | 必选 | 类型 | 描述 |
|---|---|---|---|
| action | 是 | String | 固定值 get_sites_ftp |
| siteName | 否 | String | 网站域名 |
| site_id | 否 | Integer | 网站 ID(与 siteName 二选一) |
输出参数
| 参数名称 | 类型 | 描述 |
|---|---|---|
| status | Boolean | true 查询成功 |
| msg | String | 结果消息 |
| info | Object | FTP 账户信息,无关联时 null |
示例
请求
POST /site HTTP/1.1
Host: 192.168.168.213:8888
Content-Type: application/x-www-form-urlencoded
action=get_sites_ftp&siteName=testapi.bt.local
响应
{"status": true, "msg": "没有对应站点的ftp信息", "info": null}