DeleteRedirect
删除指定网站的某条重定向规则。
- 路由:
POST /site - action:
DeleteRedirect
输入参数
| 参数名称 | 必选 | 类型 | 描述 |
|---|---|---|---|
| action | 是 | String | 固定值 DeleteRedirect |
| sitename | 是 | String | 网站域名(注意小写) |
| redirectname | 是 | String | 要删除的重定向名称 |
输出参数
| 参数名称 | 类型 | 描述 |
|---|---|---|
| status | Boolean | true 删除成功 |
示例
请求
POST /site HTTP/1.1
Host: 192.168.168.213:8888
Content-Type: application/x-www-form-urlencoded
action=DeleteRedirect&sitename=testapi.bt.local&redirectname=old_site
响应
{"status": true, "msg": "删除成功"}
相关接口
- CreateRedirect — 创建重定向
- GetRedirectList — 查询重定向列表