PUT /admin/agents/{agent_id}

更新指定 Non-Human Identity (NHI) Agent 的配置

Admin/Agents `bearerAuth` application/json

请求参数

名称位置类型必填默认值示例约束描述
agent_id path string 是 Agent ID

请求体

Schema: agent_domain.UpdateAgentRequest

字段类型必填示例约束描述
callback_url string 否
description string 否
jit_ttl integer 否
name string 否
rotation_days integer 否
workload_subtype string 否 enum: `agent`, `service_account`, `automation`

响应

状态描述Schema
200更新后的 Agentservice-core/base/dto.DataResponse-agent_domain_AgentInfo

引用的 Schema

agent_domain.AgentInfo

字段类型必填示例约束描述
callback_url string 否
created_at string 否
description string 否
identity_id string 否
jit_ttl integer 否
last_rotated_at string 否
name string 否
owner_id string 否
owner_principal_id string 否 OwnerPrincipalID additive(json omitempty);保留 OwnerID 字段与值以向后兼容(C-4)。
rotation_days integer 否
status string 否
updated_at string 否
workload_subtype string 否

service-core/base/dto.DataResponse-agent_domain_AgentInfo

字段类型必填示例约束描述
code integer 否
data agent_domain.AgentInfo 否
message string 否
timestamp string 否