GET /admin/tenants/{tenant_id}/security-policy
Get the security policy configuration for a specified tenant, including password strength, login restrictions, etc.
Tenant Service `bearerAuth` application/json
Request Parameters
| Name | In | Type | Required | Default | Example | Constraints | Description |
id |
path |
string |
Yes |
|
|
|
Tenant ID |
Referenced Schemas
dto.PasswordPolicyConfig
Password policy detailed configuration
| Field | Type | Required | Example | Constraints | Description |
max_length |
integer |
No |
128 |
|
Maximum length |
min_length |
integer |
No |
8 |
|
Minimum length |
require_digit |
boolean |
No |
True |
|
Require digits |
require_lowercase |
boolean |
No |
True |
|
Require lowercase letters |
require_special |
boolean |
No |
False |
|
Require special characters |
require_uppercase |
boolean |
No |
True |
|
Require uppercase letters |
dto.SecurityPolicyDetailResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
data |
dto.SecurityPolicyResponse |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|
dto.SecurityPolicyResponse
Tenant security policy configuration
| Field | Type | Required | Example | Constraints | Description |
ip_whitelist |
array of
string |
No |
|
|
IP whitelist |
mfa_required |
boolean |
No |
True |
|
Force MFA |
password_policy |
object |
No |
|
|
Password policy |
session_policy |
object |
No |
|
|
Session policy |
tenant_id |
string |
No |
tnt_abc123 |
|
Tenant ID |
dto.SessionPolicyConfig
Session policy detailed configuration
| Field | Type | Required | Example | Constraints | Description |
max_concurrent_sessions |
integer |
No |
10 |
|
Maximum concurrent sessions |
timeout_seconds |
integer |
No |
1800 |
|
Session timeout (seconds) |
gitee_com_linmes_authms_base_dto.SimpleResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|