GET /admin/compliance/retention-policies
Paginated query of all data retention policy configurations
Compliance Management - Data Retention `bearerAuth` application/json
Request Parameters
| Name | In | Type | Required | Default | Example | Constraints | Description |
page |
query |
integer |
No |
|
|
|
page number |
page_size |
query |
integer |
No |
|
|
|
page size |
Referenced Schemas
dto.ErrorResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
400 |
|
|
message |
string |
No |
invalid request |
|
|
dto.RetentionPolicyItem
Data Retention Policy
| Field | Type | Required | Example | Constraints | Description |
data_type |
string |
No |
user_activity_logs |
|
Data Type |
legal_basis |
string |
No |
Contractual Obligation |
|
Legal Basis |
policy_id |
string |
No |
ret_001 |
|
Policy ID |
purpose |
string |
No |
Security Audit |
|
Retention Purpose |
retention_period_days |
integer |
No |
365 |
|
Retention Days |
status |
string |
No |
active |
|
Status |
dto.RetentionPolicyListResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
items |
array of
See dto.RetentionPolicyItem |
No |
|
|
Use items uniformly |
message |
string |
No |
|
|
|
pagination |
object |
No |
|
|
Pagination information (nested object) |
timestamp |
string |
No |
|
|
|
total |
integer |
No |
|
|
Total count (flattened for direct reading) |
gitee_com_linmes_authms_base_dto.PageInfo
| Field | Type | Required | Example | Constraints | Description |
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 |