获取受管代理任务
使用 `agent.read` 权限读取作用域内的 `Agent` 任务进度。重试可用性还需要 `agent.config.write` 权限。成功撤销访问后,可能返回可信软件包的本地卸载命令;不执行远程卸载。仅当 `auth.require_user=true` 时,才执行用户 Bearer 身份认证和所述 ZIAM 权限检查;默认设置为 `false` 时,此操作无需用户身份认证。
/api/v1/lifecycle/managed-agent/tasks/{id}操作 ID
GetManagedAgentTask起始版本
1.3.0执行模式
同步认证信息
无需认证请求参数
application/json路径参数
idString必填资源ID。
响应状态
200 OK请求成功。
Content-Type: application/json
响应体根类型: object
仅返回明确的摘要信息,不序列化原始目标配置、观测配置、载荷、运行日志、操作签名或凭证。
taskIdString任务ID。
示例: value
typeString已保存的操作类型,如 deploy、change_capabilities、enable_capability、disable_capability、upgrade 或 revoke_access。
示例: enable_capability
stateString当前状态。
示例: value
agentIdString代理ID。
示例: value
invitationIdString邀请ID。
示例: value
bindingIdString绑定ID。
示例: value
requestIdString请求ID。
示例: value
createdByString创建该记录的用户UUID。
示例: value
availableActionsList可用动作。
waitingReasonString等待原因。
示例: value
plannedImpactObject已规划影响。
platformAccessRevokedBoolean平台访问已撤销。
示例: true
localBacklogMayNotUploadBoolean该资源的本地积压数据可能无法上传。
示例: true
localAgentUninstalledBoolean本地代理已卸载。
示例: true
metricsContinuityString`buffered`、`unprotected` 或 `unknown`;重启时报告 `unknown`。 撤销访问时为空。
示例: value
resumeCollectionBoolean恢复采集。
示例: true
drainModeString仅用于禁用:`wait` 或 `discard`。
示例: value
drainWaitSecondsInteger`wait` 时固定为 1800;`discard` 时不提供。
示例: 10
{"format":"int32"}cancelledEnableTaskIdString已取消启用任务ID。
示例: value
queueFactsObject队列原始数据。
queueSizeDouble队列大小。
示例: 0
{"format":"double"}queueCapacityDouble队列容量。
示例: 0
{"format":"double"}enqueueFailedMetricPointsDouble入队失败指标点数。
示例: 0
{"format":"double"}sendFailedMetricPointsDouble发送失败指标点数。
示例: 0
{"format":"double"}sentMetricPointsDouble已发送指标点数。
示例: 0
{"format":"double"}serviceInstanceIdString服务实例ID。
示例: value
observedAtString已观察时间。
示例: 2026-01-15T08:00:00Z
{"format":"date-time"}
collectorRestartBoolean收集器重启。
示例: true
agentRestartBoolean仅用于升级:包含 Supervisor 的完整代理软件包。
示例: true
previousAgentVersionString先前代理版本。
示例: value
targetAgentVersionString目标代理版本。
示例: value
previousAgentReleaseString该资源此前的 `Agent` 发布版本。
示例: 10
{"format":"int64"}targetAgentReleaseString该资源的目标 `Agent` 发布版本。
示例: 10
{"format":"int64"}
actualImpactObject实际影响。
platformAccessRevokedBoolean平台访问已撤销。
示例: true
localBacklogMayNotUploadBoolean该资源的本地积压数据可能无法上传。
示例: true
localAgentUninstalledBoolean本地代理已卸载。
示例: true
metricsContinuityString`buffered`、`unprotected` 或 `unknown`;重启时报告 `unknown`。 撤销访问时为空。
示例: value
resumeCollectionBoolean恢复采集。
示例: true
drainModeString仅用于禁用:`wait` 或 `discard`。
示例: value
drainWaitSecondsInteger`wait` 时固定为 1800;`discard` 时不提供。
示例: 10
{"format":"int32"}cancelledEnableTaskIdString已取消启用任务ID。
示例: value
queueFactsObject队列原始数据。
queueSizeDouble队列大小。
示例: 0
{"format":"double"}queueCapacityDouble队列容量。
示例: 0
{"format":"double"}enqueueFailedMetricPointsDouble入队失败指标点数。
示例: 0
{"format":"double"}sendFailedMetricPointsDouble发送失败指标点数。
示例: 0
{"format":"double"}sentMetricPointsDouble已发送指标点数。
示例: 0
{"format":"double"}serviceInstanceIdString服务实例ID。
示例: value
observedAtString已观察时间。
示例: 2026-01-15T08:00:00Z
{"format":"date-time"}
collectorRestartBoolean收集器重启。
示例: true
agentRestartBoolean仅用于升级:包含 Supervisor 的完整代理软件包。
示例: true
previousAgentVersionString先前代理版本。
示例: value
targetAgentVersionString目标代理版本。
示例: value
previousAgentReleaseString该资源此前的 `Agent` 发布版本。
示例: 10
{"format":"int64"}targetAgentReleaseString该资源的目标 `Agent` 发布版本。
示例: 10
{"format":"int64"}
errorCodeStringLDAP错误分类编码。
示例: value
errorReasonString错误原因。
示例: value
errorMessageString错误返回消息。
示例: value
errorDetailsObject错误详情。
deployment_phaseString部署阶段。
示例: value
invitation_consumedBoolean邀请消耗。
示例: true
registered_agent_idObject服务端仅返回字符串或 JSON null,不会返回预留的代理 ID。
recovery_actionString恢复动作。
示例: value
traceIdString链路追踪ID。
示例: value
createdAtString创建时间。
示例: 2026-01-15T08:00:00Z
{"format":"date-time"}startedAtString开始时间。
示例: 2026-01-15T08:00:00Z
{"format":"date-time"}completedAtString完成时间。
示例: 2026-01-15T08:00:00Z
{"format":"date-time"}resultMessageString仅在 revoke_access 任务成功且元数据可信时返回。
示例: value
localUninstallCommandString本地卸载命令。
示例: value
cancelReasonString取消原因。
示例: value
cancelledByTaskIdString已取消任务ID。
示例: value
hostMetricContinuitySummaryObject仅在 `host_metrics` 能力任务中提供;不表示 `Agent` 健康状态。
lastHostMetricAtString最近一次主机指标时间。
示例: 2026-01-15T08:00:00Z
{"format":"date-time"}collectionStateString采集状态。
示例: value
deliveryStateString支持 current、delayed、backfilling 或 unknown,不表示精确的数据缺口。
示例: value
queueSizeDouble上游队列计量单位,不表示指标样本数或字节数。
示例: 0
{"format":"double"}queueCapacityDouble队列容量。
示例: 0
{"format":"double"}enqueueFailedMetricPointsDouble入队失败指标点数。
示例: 0
{"format":"double"}sendFailedMetricPointsDouble发送失败指标点数。
示例: 0
{"format":"double"}sentMetricPointsDouble已发送指标点数。
示例: 0
{"format":"double"}serviceInstanceIdString服务实例ID。
示例: value
observedAtString已观察时间。
示例: 2026-01-15T08:00:00Z
{"format":"date-time"}
configRevisionString本任务负责的当前配置下发修订版本,包括回滚。Runner 生成配置前不返回;不得通过查询 Binding 获取。
示例: 10
{"format":"int64"}observedObject仅在 wait 模式的 Disable 已保存排空窗口时返回。
drainWaitSecondsInteger排空等待秒。
示例: 10
{"format":"int32"}drainStartedAtString排空开始时间。
示例: 2026-01-15T08:00:00Z
{"format":"date-time"}drainDeadlineAtString排空截止时间。
示例: 2026-01-15T08:00:00Z
{"format":"date-time"}queueFactsObject最近一次已保存且有效的队列观测;未保存观测时不返回。
queueSizeDouble队列大小。
示例: 0
{"format":"double"}queueCapacityDouble队列容量。
示例: 0
{"format":"double"}enqueueFailedMetricPointsDouble入队失败指标点数。
示例: 0
{"format":"double"}sendFailedMetricPointsDouble发送失败指标点数。
示例: 0
{"format":"double"}sentMetricPointsDouble已发送指标点数。
示例: 0
{"format":"double"}serviceInstanceIdString服务实例ID。
示例: value
observedAtString已观察时间。
示例: 2026-01-15T08:00:00Z
{"format":"date-time"}
