跳到主要内容

查看项目列表

List all projects scoped to API-Key.

GET
/v2/projects
Base URL

该 API 的 Base URL 格式如下:

https://api.cloud.zilliz.com

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

认证令牌,应为具备适当权限的 API 密钥。

示例值:Bearer {{TOKEN}}
Acceptstringheader

使用 application/json

示例值:application/json
export TOKEN="YOUR_API_KEY"

curl --request GET \
--url "${BASE_URL}/v2/projects" \
--header "Authorization: Bearer ${TOKEN}" \
--header "Accept: application/json" \
--header "Content-Type: application/json"
响应200 - application/json
codenumber

响应码。

dataarray

响应负载,是一个项目详情列表。

[]dataobject

List of projects in detail.

projectIdstring

项目 ID。

projectNamestring

项目名称。

instanceCountstring

项目中已创建的集群数量。

createTimestring

项目创建时间。

A failure response.

codeinteger

响应码。

messagestring

错误描述。

{
"code": 0,
"data": [
{
"projectName": "Default Project",
"projectId": "proj-xxxxxxxxxxxxxxxxxxxxxxx",
"instanceCount": 2,
"createTime": "2023-08-16T07:34:06Z"
}
]
}