移除白名单 IP
使用 DELETE 端点从独享数据中心代理中移除白名单 IP。通过 RESTful API 代码示例管理 IP 授权。
DELETE https://api.oxylabs.io/v1/whitelisted_ips/{id}
参数
描述
ID
该 ID 要删除的 IP 地址的(可从 GET 白名单 IP 接口获取)
响应
描述
204
成功。该 IP 地址已从列表中移除。响应体为空。
403
错误。请求包含无效的 ID。响应体包含错误消息 "Access Denied"。
代码示例
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'))最后更新于
这有帮助吗?

