---
title: "应用构建"
method: POST
path: "/v2/tenants/{tenant_name}/services/{service_alias}/build"
tags: ["v2"]
---

# 应用构建

`POST /v2/tenants/{tenant_name}/services/{service_alias}/build`

## Request

- The document declares no server URL.
- Auth: none declared

service build

## Path parameters

- `tenant_name` string, required
- `service_alias` string, required

## Request body

- object
  - `action` string: 后续动作, 根据该值进行一键部署，如果不传值，则默认只进行构建 in: body
  - `deploy_version` string, required: 部署的版本号 in: body
  - `envs` object: 变量 in: body
  - `event_id` string, required: the event id in: body
  - `image_url` string: 镜像地址 in: body
  - `kind` string, required: 应用构建类型 in: body
  - `operator` string: 操作人员 in: body
  - `repo_url` string: git地址 in: body
  - `service_alias` string
  - `tenant_name` string

## Response `default`

统一返回格式

- CommandResponse (unresolved $ref)

---

[API](https://skmtc.dev/goodrain/apis/goodrain-cmd-api.md) - [All operations](https://skmtc.dev/goodrain/apis/goodrain-cmd-api/llms.txt) - [OpenAPI document](https://skmtc.dev/goodrain/apis/goodrain-cmd-api/revisions/8c773e222448?raw)
