---
title: "增加应用持久化依赖(V2.1支持多种类型存储)"
method: POST
path: "/v2/tenants/{tenant_name}/services/{service_alias}/depvolumes"
tags: ["v2"]
---

# 增加应用持久化依赖(V2.1支持多种类型存储)

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

add volume dependency

## Path parameters

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

## Request body

- object
  - `depend_service_id` string, required — 依赖的服务id in: body
  - `volume_name` string, required — 依赖存储名称 in: body
  - `volume_path` string, required — 容器挂载目录 in: body

## Response `default`

统一返回格式

- CommandResponse — unresolved $ref

---

[API](https://skmtc.net/goodrain/apis/untitled-api.md) · [All operations](https://skmtc.net/goodrain/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/goodrain/untitled-api/revisions/8c773e222448/schema)
