---
title: "获取Ansible任务日志(SSE)"
method: GET
path: "/api/v1/task/ansible/{id}/log/{work_id}"
tags: ["任务作业"]
---

# 获取Ansible任务日志(SSE)

`GET /api/v1/task/ansible/{id}/log/{work_id}`

通过SSE协议实时获取Ansible任务执行日志

## Path parameters

- `id` integer, required
- `work_id` integer, required

## Response `200`

SSE格式的实时日志

---

[API](https://skmtc.dev/opsre/apis/devops.md) · [All operations](https://skmtc.dev/opsre/apis/devops/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/opsre/devops/revisions/25cac8835c4c/schema)
