/admin/abac-policies
创建新的ABAC条件策略
请求体
Schema: service-identity/internal/handler/dto.CreateABACPolicyRequest
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|
condition |
string |
是 | |||
name |
string |
是 | |||
description |
string |
否 | |||
effect |
string |
否 | |||
priority |
integer |
否 |
响应
引用的 Schema
service-core/base/dto.DataResponse-service-identity/internal/handler/dto/ABACPolicyResponse
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|
code |
integer |
否 | |||
data |
service-identity/internal/handler/dto.ABACPolicyResponse |
否 | |||
message |
string |
否 | |||
timestamp |
string |
否 |
service-identity/internal/handler/dto.ABACPolicyResponse
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|
condition |
string |
否 | |||
created_at |
string |
否 | |||
description |
string |
否 | |||
effect |
string |
否 | |||
enabled |
boolean |
否 | |||
id |
string |
否 | |||
name |
string |
否 | |||
priority |
integer |
否 | |||
tenant_id |
string |
否 | |||
updated_at |
string |
否 |