Перейти к основному содержанию
POST
/
customer
/
v1
/
licenses
/
{license}
/
whitelist-ip
Whitelist an IP (v1)
curl --request POST \
  --url https://orbitflare.com/api/customer/v1/licenses/{license}/whitelist-ip \
  --header 'Content-Type: application/json' \
  --header 'X-ORBIT-KEY: <api-key>' \
  --data '
{
  "ip_address": "127.0.0.1",
  "location_id": 123,
  "expires_at": "2023-11-07T05:31:56Z"
}
'
{
  "message": "<string>"
}
Устарело. Этот эндпоинт относится к Customer API v1. Используйте Customer API v2 вместо него.

Авторизации

X-ORBIT-KEY
string
header
обязательно

API key for v1 and v2 (when not using Bearer token)

Параметры пути

license
string
обязательно

The license identifier.

Тело

application/json

IP address and location ID to whitelist.

ip_address
string<ipv4>
обязательно
location_id
integer
обязательно
expires_at
string<date-time>

Optional expiration

Ответ

IP whitelisted successfully.

message
string