Saltar al contenido principal
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"
}

Autorizaciones

Authorization
string
header
requerido

Encabezados

accept
enum<string>

Specifies the format of the response from the server.

Opciones disponibles:
application/json

Cuerpo

application/json
ip
string

The IP address to be deleted from the whitelist.

Ejemplo:

"123.112.122.131"

action
enum<string>

The action to be performed on the IP address.

Opciones disponibles:
add,
delete
Ejemplo:

"add"

Respuesta

OK, the request is successful.

success
boolean

The flag indicates the request is successful or not