pro

设置 IP 白名单(覆盖式)

设置当前 Key 的 IP 白名单(整体替换旧列表)。

参数:ips —— IP 列表(最多 50 个,仅支持精确 IPv4/IPv6,⛔ 不支持网段)。

⚠️ 传空 = 清空(等价 DELETE,但建议用 DELETE 表达清除意图)。 ⚠️ 换网络时请把新旧 IP 一起传(如 1.2.3.4,5.6.7.8),⛔ 只传新 IP 会让旧 IP 立刻失效。 ⚠️ 设置后只能从名单内的 IP 再调用本端点。 ⚠️ 属 Unlimited(¥199) 档能力。

post/v1/ip-whitelist

Request

  • Base URL: https://api.ashareapi.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.ashareapi.com/v1/ip-whitelist
  • Auth: none declared

Query parameters

ipsstring

逗号分隔的 IP 列表,如 1.2.3.4,5.6.7.8

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 2 revisions of this API.