简要描述:
请求URL:
https://api.chuangcache.com/config/setIpInfo请求方式:
请求参数:
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| access_token | 是 | string | 密钥 |
| domain_id | 是 | string | 加速域名ID |
| ip_type | 是 | int | ip访问类型,[ 0(关闭)、1(黑名单)],暂时不支持白名单 |
| ip_str | 是 | string | 多个以英文字符逗号分隔,最多不超过50个,当ip_type为0时,此参数不是必须的 |
请求示例
curl -i -X POST https://api.chuangcache.com/config/setIpInfo -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"access_token": "ACCESS_TOKEN", "domain_id": 2, "ip_type": 1,"ip_str": "127.0.0.1,192.168.11.1"}'
响应示例
{
"status": 1,
"info": "操作成功",
"data": true
}
返回参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| status | int | 接口返回码 [ 0(操作失败)、1(操作成功)] |
| info | string | 接口返回信息 [ 操作失败 / 操作成功 ] |
| data | bool | 接口返回数据 true成功 false失败 |