For the complete documentation index, see llms.txt. This page is also available as Markdown.

保存更改(5 分钟冷却期)

通过 API 保存 IP 白名单更改,并遵守 5 分钟冷却期。以编程方式确认对独享数据中心代理白名单的修改。

POST https://api.oxylabs.io/v1/whitelisted_ips/upload_to_servers

响应
描述

202

成功。对您的白名单 IP 列表的更改已确认。响应体为空。

429

错误。更改未被确认,该接口处于 5 分钟冷却期。响应体包含错误消息 "You have exceeded the rate limit for the endpoint. Please try again later"

代码示例

curl -X POST -u username:password "https://api.oxylabs.io/v1/whitelisted_ips/upload_to_servers"
<?php
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, "https://api.oxylabs.io/v1/whitelisted_ips/upload_to_servers");
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_USERPWD, 'username:password');

$result = curl_exec($curl);
?>
import requests
requests.post("https://api.oxylabs.io/v1/whitelisted_ips/upload_to_servers", auth=('username', 'password'))

最后更新于

这有帮助吗?