PUT /admin/mfa/ip-whitelist/{ip_whitelist_id}
更新指定IP白名单规则的标签、CIDR或启用状态。需要管理员权限。
多因素认证 `bearerAuth` application/json
请求参数
| 名称 | 位置 | 类型 | 必填 | 默认值 | 示例 | 约束 | 描述 |
ip_whitelist_id |
path |
string |
是 |
|
|
|
实体ID |
引用的 Schema
service-core/base/dto.SimpleResponse
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
code |
integer |
否 |
|
|
|
message |
string |
否 |
|
|
|
timestamp |
string |
否 |
|
|
|
service-mfa/internal/handler/dto.IPWhitelistDetailResponse
service-mfa/internal/handler/dto.IPWhitelistResponse
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
cidr |
string |
否 |
192.168.1.0/24 |
|
|
created_at |
string |
否 |
2026-05-15T08:00:00Z |
|
|
enabled |
boolean |
否 |
True |
|
|
id |
string |
否 |
wl_abc123 |
|
|
label |
string |
否 |
office network |
|
|
tenant_id |
string |
否 |
tnt_001 |
|
|