查看 Stage 列表内测版
本接口将列出指定项目下的所有 Stage。
GET
/v2/stages该 API 的 Base URL 格式如下:
https://api.cloud.zilliz.com.cn
📘说明
控制面接口速率限制为单用户单接口每秒最多 20 个请求。
当前接口为公测版。如果您在使用该接口过程中遇到任何问题,欢迎您联系 Zilliz Cloud 技术支持。
export BASE_URL="https://api.cloud.zilliz.com.cn"
参数
Authorizationstringheaderrequired
认证令牌,应为具备适当权限的 API 密钥或用冒号分隔的用户名和密码,如 username:password
。
示例值:Bearer {{TOKEN}}
projectIdstringqueryrequired
The target project of this operation.
示例值:proj-xxxxxxxxxxxxxxxxx
pageSizeintegerquery
The number of records to include in each response.
示例值:10
currentPageintegerquery
The current page number.
示例值:1
export TOKEN="YOUR_API_KEY"
curl --request GET \
--url "${BASE_URL}/v2/stages?projectId=proj-xxxxxxxxxxxxxxxxx" \
--header "Authorization: Bearer ${TOKEN}" \
--header "Content-Type: application/json"
响应200 - application/json
Returns a list of stages.
codeinteger
响应码。
dataobject
countinteger
Stage 总数。
currentPageinteger
当前页码。
pageSizeinteger
每页记录数。
stagesarray
Stage 列表。
[]stagesobject
stageNamestring
Stage 名称。
Returns an error message.
codeinteger
响应码。
messagestring
错误描述。
{
"code": 200,
"data": [
{
"stageName": "my_stage_1"
},
{
"stageName": "my_stage_2"
},
{
"stageName": "my_stage_3"
}
]
}