add ip whitelist
POST
/api/ip_whitelist/addThere is a default limit on the number of ips that can be created, which can be obtained from the 'get user info' API.
The 'whitelist_limit' field in the returned userinfo indicates the limit on the number of ips.
请求参数
Body Params application/json
ip
string
required
ip to add into whitelist
tag
string
optional
some tag
Example
{
"ip": "127.0.0.1",
"tag": "office ip"
}
示例代码
Responses
result(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
Data Schema
meta_message
string
required
success or other error msg
meta_status
integer
required
1 for success, negative for error
record
object
required
new record info
created_unixtime
integer
optional
id
integer
optional
ip
string
optional
tag
string
optional
user_id
integer
optional
Example
{
"meta_message": "string",
"meta_status": 0,
"record": {
"created_unixtime": 0,
"id": 0,
"ip": "string",
"tag": "string",
"user_id": 0
}
}
Modified at 1 年前