---
title: "获取快速发布详情"
method: GET
path: "/apps/deployment/{id}"
tags: ["QuickDeployment"]
---

# 获取快速发布详情

`GET /apps/deployment/{id}`

获取快速发布详情，包含所有任务信息

## Path parameters

- `id` integer, required

## Response `200`

OK

- object
  - `code` integer — 状态码
  - `data` object — 返回的数据
    - `business_dept_id` integer — 业务部门ID
    - `business_group_id` integer — 业务组ID
    - `created_at` string
    - `creator_id` integer — 创建人ID
    - `creator_name` string — 创建人姓名
    - `description` string — 发布描述
    - `duration` integer — 发布耗时(秒)
    - `end_time` string — 结束发布时间
    - `execution_mode` integer — 执行模式: 1=并行 2=串行
    - `id` integer
    - `start_time` string — 开始发布时间
    - `status` integer — 发布状态: 1=待发布 2=发布中 3=发布成功 4=发布失败 5=已取消
    - `task_count` integer — 任务数量，记录用户提交的发布任务数量
    - `tasks` ModelQuickDeploymentTask[] — 关联的发布任务
      - `app_code` string — 应用编码
      - `app_id` integer — 应用ID
      - `app_name` string — 应用名称
      - `application` ModelApplication
        - `business_dept_id` integer — 业务部门ID(关联sys_dept)
        - `business_group_id` integer — 基本信息
        - `code` string — 应用编码
        - `created_at` string
        - `databases` integer[] — 关联数据库(cmdb_sql表ID)
        - `description` string — 应用介绍
        - `dev_owners` integer[] — 负责人信息 (多个用户ID，关联sys_admin表)
        - `domains` string[] — 关联资源 (存储资源ID)
        - `health_api` string — 健康检查接口
        - `hosts` integer[] — 关联主机(cmdb_host表ID)
        - `id` integer
        - `jenkins_envs` ModelJenkinsEnv[] — 关联的Jenkins环境配置（级联删除）
          - `app_id` integer — 应用ID
          - `application` ModelApplication — recursive
          - `created_at` string
          - `env_name` string — 环境名称
          - `id` integer
          - `jenkins_server_id` integer — Jenkins服务器ID(关联account_auth)
          - `job_name` string — Jenkins任务名称
          - `updated_at` string
        - `name` string — 应用名称
        - `ops_owners` integer[] — 运维负责人
        - `other_res` ModelOtherResources
          - `kafka` string[]
          - `other` string[]
          - `rabbitmq` string[]
          - `redis` string[]
          - `zookeeper` string[]
        - `programming_lang` string — 技术信息
        - `repo_url` string — 仓库地址
        - `start_command` string — 启动命令
        - `status` integer — 状态
        - `stop_command` string — 停止命令
        - `test_owners` integer[] — 测试负责人
        - `updated_at` string
      - `build_number` integer — 构建编号
      - `created_at` string
      - `deployment_id` integer — 发布ID
      - `duration` integer — 任务耗时(秒)
      - `end_time` string — 任务结束时间
      - `environment` string — 环境名称
      - `error_message` string — 错误信息
      - `execute_order` integer — 执行顺序
      - `id` integer
      - `jenkins_env` ModelJenkinsEnv
        - `app_id` integer — 应用ID
        - `application` ModelApplication
          - `business_dept_id` integer — 业务部门ID(关联sys_dept)
          - `business_group_id` integer — 基本信息
          - `code` string — 应用编码
          - `created_at` string
          - `databases` integer[] — 关联数据库(cmdb_sql表ID)
          - `description` string — 应用介绍
          - `dev_owners` integer[] — 负责人信息 (多个用户ID，关联sys_admin表)
          - `domains` string[] — 关联资源 (存储资源ID)
          - `health_api` string — 健康检查接口
          - `hosts` integer[] — 关联主机(cmdb_host表ID)
          - `id` integer
          - `jenkins_envs` ModelJenkinsEnv[] — 关联的Jenkins环境配置（级联删除）
          - `name` string — 应用名称
          - `ops_owners` integer[] — 运维负责人
          - `other_res` ModelOtherResources
            - `kafka` string[]
            - `other` string[]
            - `rabbitmq` string[]
            - `redis` string[]
            - `zookeeper` string[]
          - `programming_lang` string — 技术信息
          - `repo_url` string — 仓库地址
          - `start_command` string — 启动命令
          - `status` integer — 状态
          - `stop_command` string — 停止命令
          - `test_owners` integer[] — 测试负责人
          - `updated_at` string
        - `created_at` string
        - `env_name` string — 环境名称
        - `id` integer
        - `jenkins_server_id` integer — Jenkins服务器ID(关联account_auth)
        - `job_name` string — Jenkins任务名称
        - `updated_at` string
      - `jenkins_env_id` integer — Jenkins环境配置ID
      - `jenkins_job_url` string — Jenkins任务URL
      - `log_url` string — 日志URL
      - `start_time` string — 任务开始时间
      - `status` integer — 任务状态: 1=未部署 2=部署中 3=成功 4=异常
      - `updated_at` string
    - `title` string — 发布标题
    - `updated_at` string
  - `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)
