Last updated 9 months ago
DELETE https://api.oxylabs.io/v1/whitelisted_ips/{id}
curl -X DELETE -u username:password "https://api.oxylabs.io/v1/whitelisted_ips/{id}"
<?php $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, 'https://api.oxylabs.io/v1/whitelisted_ips/{id}'); curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "DELETE"); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_USERPWD, 'username:password'); $result = curl_exec($curl); ?>
import requests requests.delete('https://api.oxylabs.io/v1/whitelisted_ips/{id}', auth=('username', 'password'))
id
您想删除的 IP 地址的 id(您可以从 GET 白名单的 IP 端点获得)
204
成功。该 IP 地址已从列表中移除。响应正文为空。
403
错误。请求包含无效 id。响应正文包含错误信息“拒绝访问”。