Saltar para o conteúdo 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"
}

Autorizações

Authorization
string
header
obrigatório

Cabeçalhos

accept
enum<string>

Specifies the format of the response from the server.

Opções disponíveis:
application/json

Corpo

application/json
ip
string

The IP address to be deleted from the whitelist.

Exemplo:

"123.112.122.131"

action
enum<string>

The action to be performed on the IP address.

Opções disponíveis:
add,
delete
Exemplo:

"add"

Resposta

OK, the request is successful.

success
boolean

The flag indicates the request is successful or not