跳到主要内容
版本:latest

get_sites_ftp

查询指定网站是否关联了 FTP 账户及其信息。

  • 路由POST /site
  • actionget_sites_ftp

输入参数

参数名称必选类型描述
actionString固定值 get_sites_ftp
siteNameString网站域名
site_idInteger网站 ID(与 siteName 二选一)

输出参数

参数名称类型描述
statusBooleantrue 查询成功
msgString结果消息
infoObjectFTP 账户信息,无关联时 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}