跳转到主要内容
POST
/
adsl
/
whitelist
Operate the whitelist of ADSL Proxy.
curl --request POST \
  --url https://api.acedata.cloud/adsl/whitelist \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "ip": "123.112.122.131",
  "action": "add"
}
'
{
  "success": true,
  "trace_id": "932f81e9-f78e-4321-9985-c3eeefd832e0"
}

授权

Authorization
string
header
必填

请求头

accept
enum<string>

Specifies the format of the response from the server.

可用选项:
application/json

请求体

application/json
ip
string

The IP address to be deleted from the whitelist.

示例:

"123.112.122.131"

action
enum<string>

The action to be performed on the IP address.

可用选项:
add,
delete
示例:

"add"

响应

OK, the request is successful.

success
boolean

The flag indicates the request is successful or not