---
title: "创建凭据"
method: POST
path: "/api/v1/config/ecsauthadd"
tags: ["Config配置中心"]
---

# 创建凭据

`POST /api/v1/config/ecsauthadd`

## Request body

- ModelCreateEcsPasswordAuthDto
  - `name` string, required — 凭证名称
  - `password` string, required — 密码
  - `port` integer, required — 端口号
  - `publicKey` string — 公钥
  - `remark` string — 备注
  - `type` integer, required — 认证类型:1->密码
  - `username` string, required — 用户名

## Response `200`

OK

---

[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/versions/25cac8835c4c/schema)
