设置子账号流量上限
sub_account_set_limit_flowSet a periodic traffic cap for a residential proxy sub-account. When usage reaches the limit, the connection disconnects, then resets automatically for the next cycle.
Instructions
设置动态住宅某个子账号在一个周期内的流量上限,达到上限断开连接,下个周期恢复;同一个子账号只允许设置一个周期。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cycle | Yes | 限制周期:0=每天,1=每周,2=每月,3=每季度,4=每年,5=永久(按累计用量,不清零) | |
| account | Yes | 子账号id | |
| product | Yes | 产品:dynamic-no-expiry=动态住宅流量(永久),dynamic-monthly=动态住宅流量(期限) | |
| limit_flow | Yes | 上限流量,单位 GB,0 到 1000000;传 0 表示删除该子账号的流量限制 | |
| confirm_token | No | 确认码。客户端不支持弹窗确认时,第一次调用只返回操作预览和确认码;把预览告诉用户并得到同意后,用相同参数带上确认码再调一次。支持弹窗确认的客户端不需要这个参数 |