A AuthMS API Wiki API Reference iam.tianv.com →

GET /admin/mfa/ip-whitelist

查询租户配置的所有IP白名单规则。需要管理员权限。

MFA `bearerAuth` application/json

Responses

StatusDescriptionSchema
200IP白名单列表dto.IPWhitelistListResponse
400参数错误gitee_com_linmes_authms_base_dto.SimpleResponse
401未认证gitee_com_linmes_authms_base_dto.SimpleResponse
403权限不足gitee_com_linmes_authms_base_dto.SimpleResponse
500服务器内部错误gitee_com_linmes_authms_base_dto.SimpleResponse

Referenced Schemas

dto.IPWhitelistListResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
items array of

See dto.IPWhitelistResponse

No 统一使用 items
message string No
pagination object No 分页信息(嵌套对象)
timestamp string No
total integer No 总条数(平铺,便于直接读取)

dto.IPWhitelistResponse

FieldTypeRequiredExampleConstraintsDescription
cidr string No 192.168.1.0/24
created_at string No 2026-05-15T08:00:00Z
enabled boolean No True
id string No wl_abc123
label string No office network
tenant_id string No tnt_001

gitee_com_linmes_authms_base_dto.PageInfo

FieldTypeRequiredExampleConstraintsDescription
has_next boolean No HasNext indicates whether there is a next page
has_prev boolean No HasPrev indicates whether there is a previous page
page integer No Page is the current page number (1-based)
page_size integer No PageSize is the number of items per page
total integer No Total is the total number of items across all pages
total_pages integer No TotalPages is the total number of pages

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No