列出 Storage Integration (V2)
本接口用于列出指定项目中的对象存储集成,仅返回可公开展示的集成状态。
GET/v2/storageIntegrations
该 API 的 Base URL 格式如下:
https://api.cloud.zilliz.com
📘说明
控制面接口速率限制为单用户单接口每秒最多 20 个请求。
shell
export BASE_URL="https://api.cloud.zilliz.com"
参数
Authorizationstringheader必填项
认证令牌,应为具备适当权限的 API 密钥。
示例值:Bearer {{TOKEN}}
projectIdstringquery必填项
项目 ID。
示例值:proj-xxxxxxxxxxxxxxxxxxxxxx
currentPageintegerquery
当前页码。
示例值:1
pageSizeintegerquery
每次返回的记录数。
示例值:10
bash
export TOKEN="YOUR_API_KEY"
curl --request GET \
--url "${BASE_URL}/v2/storageIntegrations?projectId=proj-xxxxxxxxxxxxxxxxxxxxxx" \
--header "Authorization: Bearer ${TOKEN}" \
--header "Request-Timeout: 5" \
--header "Content-Type: application/json"
响应200 OK - application/json
返回 Storage Integration 列表。
成功响应。
codeinteger<int32>
响应码。
示例值:0
dataobject
返回 Storage Integration 列表。
storageIntegrationsarray
当前页的 Storage Integration 概览。
[]storageIntegrationsobject
存储集成的概要信息。
integrationIdstring
Storage Integration ID。
namestring
Storage Integration 名称。
statusstring
Storage Integration 的公开状态。
messagestring
状态信息。没有状态信息时为空字符串。
regionIdstring
地域 ID。
bucketNamestring
Bucket、容器或存储名称。
countinteger<int32>
过滤后的可见 Storage Integration 总数。
currentPageinteger<int32>
当前页码。
pageSizeinteger<int32>
每页数量。
失败响应。
codeinteger
响应码。
示例值:1800
messagestring
错误信息。
示例值:User hasn't authenticated
json
{
"code": 0,
"data": {
"storageIntegrations": [
{
"integrationId": "integ-xxxxxxxxxxxxxxxxxxx",
"name": "analytics-oss",
"status": "ACTIVE",
"message": "",
"regionId": "ali-cn-hangzhou",
"bucketName": "my-oss-bucket"
}
],
"count": 1,
"currentPage": 1,
"pageSize": 10
}
}
json
{
"code": 1800,
"message": "User hasn't authenticated"
}