住宅子包(子用户)
Updated:
子包是您住宅池中为另一个人或项目划出的部分:它拥有独立的密钥、流量配额、有效期和列表。创建子包会预留您已拥有的流量——它并不购买任何东西。
在本小组中
工具 | 功能说明 | |
|---|---|---|
🟢 | 所有包含 | |
🟡 | 从您已拥有的流量中创建一个子包。 | |
🟡 | 将“traffic”改为“流量”、“expiry”改为“过期”、“rotation”改为“轮换”或“pause/resume”改为“暂停/恢复”。 | |
🔴 | 删除一个子包及其列表。 | |
🟢 | 所有列表均包含在一个子包中。 | |
🟡 | 同上add_resident_list,此外 | |
🟡 | 将子包中的一个列表重命名。 | |
🟡 | 更改子包内一个列表的排列顺序。 | |
🔴 | 删除子包内的一个列表。 | |
🟡 | 子包内的API工具列表。 |
list_resident_subpackages
🟢read-only · account:read
所有包含package_key,已分配/已使用/剩余流量(字节)、轮询、过期时间、状态。
create_resident_subpackage
🟡changes account state · account:write
从您已拥有的流量中创建一个子包。
参数 | 类型 | 描述 |
|---|---|---|
| 整数 | 字节(1 GB = 1073741824),取自您的词库 |
| 字符串 |
|
| 布尔值 | 遵循父包的过期规则 |
| 整数 | 列表的默认排序方式 |
update_resident_subpackage
🟡changes account state · account:write
修改流量、有效期、轮换或暂停/恢复。至少发送一个字段。
参数 | 类型 | 描述 |
|---|---|---|
| 字符串 | 子包键 |
| 整数 | 字节 |
| 字符串 |
|
| 布尔值 | 遵循父条目的过期规则 |
| 整数 | 默认循环 |
| 布尔值 |
|
delete_resident_subpackage
🔴destructive · account:write
删除一个子包及其列表。未使用的流量将返还至您的流量池。
参数 | 类型 | 描述 |
|---|---|---|
| 字符串 | 子包键 |
list_resident_subuser_lists
🟢read-only · account:read
所有列表均包含在一个子包中。password 除非您特别要求,否则结果将以匿名形式返回。
参数 | 类型 | 描述 |
|---|---|---|
| 字符串 | 子包键 |
| 布尔值 | 返回 |
add_resident_subuser_list
🟡changes account state · account:write
同上add_resident_list,此外package_key.country 是必填 此处。
rename_resident_subuser_list
🟡changes account state · account:write
将子包中的一个列表重命名。
参数 | 类型 | 描述 |
|---|---|---|
| 字符串 | 子包键 |
| 字符串 | 整数 | 列表 ID |
| 字符串 | 新名称 |
set_resident_subuser_rotation
🟡changes account state · account:write
更改子包内一个列表的排列顺序。
参数 | 类型 | 描述 |
|---|---|---|
| 字符串 | 子包键 |
| 字符串 | 整数 | 列表 ID |
| 整数 |
|
delete_resident_subuser_list
🔴destructive · account:write
删除子包内的一个列表。
参数 | 类型 | 描述 |
|---|---|---|
| 字符串 | 子包键 |
| 字符串 | 整数 | 列表 ID |
create_resident_subuser_tools_list
🟡changes account state · account:write
子包内的API工具列表。
参数 | 类型 | 描述 |
|---|---|---|
| 字符串 | 子包键 |