跳到主要内容

创建项目 (V2)

This operation creates a new project with a specified name and subscription plan.

POST
/v2/projects
Base URL

该 API 的 Base URL 格式如下:

https://api.cloud.zilliz.com.cn

📘说明

控制面接口速率限制为单用户单接口每秒最多 20 个请求。

export BASE_URL="https://api.cloud.zilliz.com.cn"
参数
Authorizationstringheaderrequired

认证令牌,应为具备适当权限的 API 密钥或用冒号分隔的用户名和密码,如 username:password

示例值:Bearer {{TOKEN}}
请求体application/json
projectNamestring

待创建项目的名称。

planstring

项目的订阅计划。当前仅支持 Enterprise 一种。

export TOKEN="YOUR_API_KEY"

curl --request POST \
--url "${BASE_URL}/v2/projects" \
--header "Authorization: Bearer ${TOKEN}" \
--header "Content-Type: application/json" \
-d '{
"projectName": "My Project",
"plan": "Enterprise"
}'
响应200 - application/json

成功响应。

codeinteger

响应码。

示例值:0
dataobject

响应载荷,包含创建的项目 ID。

projectIdstring

ID of the created project.

失败响应。

codeinteger

响应码。

messagestring

错误描述。

{
"code": 0,
"data": {
"projectId": "proj-x"
}
}