跳转到主要内容
POST
/
zone
/
whitelist
cURL
curl --request POST \
  --url https://api.brightdata.com/zone/whitelist \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "zone": "<string>",
  "ip": "<string>"
}'
Warning: This API can modify your account settings, damage your operations or incur charges.
将您的 API 令牌粘贴到身份验证字段。要获得令牌,创建账户并了解如何生成令牌Create an account, generate an API key

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
ip
required

string or array of strings

Single IP, IP Array, IP range, IP subnet or IP mask

Example

  • Single IP: 10.20.30.40

  • IP Array: ["10.20.30.40", "50.60.70.80",...]

  • Range: 10.20.30.40-10.20.30.50

  • Subnet: 10.20.30.0/24

  • Netmask: 10.20.30.0/255.255.252.0

Note IP array syntax requires quotes " for each IP string in array

zone
string

Zone name. Can be skipped to affect all your zones

Response

201

OK