---
title: "获取任务模板及状态"
method: GET
path: "/api/v1/task/templates"
tags: ["任务中心"]
---

# 获取任务模板及状态

`GET /api/v1/task/templates`

根据任务ID获取关联模板信息及状态

## Query parameters

- `id` integer, required

## Response `200`

OK

- ResultResult
  - `code` integer — 状态码
  - `data` unknown
  - `message` string — 提示信息

---

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