POST /admin/agents
创建一个新的 Non-Human Identity (NHI) Agent
Admin/Agents `bearerAuth` application/json
Request Body
Schema: domain.CreateAgentRequest
| Field | Type | Required | Example | Constraints | Description |
name |
string |
Yes |
|
|
|
description |
string |
No |
|
|
|
jit_ttl |
integer |
No |
|
|
|
role_code |
string |
No |
|
|
default: agent_executor |
rotation_days |
integer |
No |
|
|
|
workload_subtype |
string |
No |
|
|
default: agent |
Referenced Schemas
domain.AgentInfo
| Field | Type | Required | Example | Constraints | Description |
callback_url |
string |
No |
|
|
|
created_at |
string |
No |
|
|
|
description |
string |
No |
|
|
|
identity_id |
string |
No |
|
|
|
jit_ttl |
integer |
No |
|
|
|
last_rotated_at |
string |
No |
|
|
|
name |
string |
No |
|
|
|
owner_id |
string |
No |
|
|
|
rotation_days |
integer |
No |
|
|
|
status |
string |
No |
|
|
|
updated_at |
string |
No |
|
|
|
workload_subtype |
string |
No |
|
|
|
gitee_com_linmes_authms_base_dto.DataResponse-domain_AgentInfo
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
data |
domain.AgentInfo |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|