/admin/tenants/{tenant_id}/security-policyUpdate the security policy configuration for a specified tenant
| Name | In | Type | Required | Default | Example | Constraints | Description |
|---|---|---|---|---|---|---|---|
id |
path |
string |
Yes | Tenant ID |
Schema: dto.UpdateSecurityPolicyRequest
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
allowed_ip_ranges |
array of string |
No | |||
blocked_countries |
array of string |
No | |||
lock_duration |
string |
No | |||
max_attempts_per_user |
integer |
No | |||
max_concurrent_sessions |
integer |
No | |||
mfa_required |
boolean |
No | |||
password_max_length |
integer |
No | |||
password_min_length |
integer |
No | |||
require_digit |
boolean |
No | |||
require_lowercase |
boolean |
No | |||
require_special |
boolean |
No | |||
require_uppercase |
boolean |
No | |||
session_timeout |
string |
No |
| Status | Description | Schema |
|---|---|---|
| 200 | Update successful | dto.SecurityPolicyDetailResponse |
| 400 | Invalid request parameters | gitee_com_linmes_authms_base_dto.SimpleResponse |
| 401 | Unauthenticated | gitee_com_linmes_authms_base_dto.SimpleResponse |
| 403 | Insufficient permissions | gitee_com_linmes_authms_base_dto.SimpleResponse |
| 404 | Resource not found | gitee_com_linmes_authms_base_dto.SimpleResponse |
| 500 | Internal server error | gitee_com_linmes_authms_base_dto.SimpleResponse |
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 |
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
code |
integer |
No | |||
data |
dto.SecurityPolicyResponse |
No | |||
message |
string |
No | |||
timestamp |
string |
No |
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 |
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) |
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
code |
integer |
No | |||
message |
string |
No | |||
timestamp |
string |
No |