跳到主要内容

查看 Storage Integration (V2)

本接口用于查看对象存储集成详情。系统会根据集成 ID 解析所属项目。

GET/v2/storageIntegrations/{integrationId}
连接端点

该 API 的 Base URL 格式如下:

https://api.cloud.zilliz.com

📘说明

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

shell
export BASE_URL="https://api.cloud.zilliz.com"
参数
Authorizationstringheader必填项

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

示例值:Bearer {{TOKEN}}
integrationIdstringpath必填项

Storage Integration ID。

示例值:integ-xxxxxxxxxxxxxxxxxxx
bash
export TOKEN="YOUR_API_KEY"
export integrationId="integ-xxxxxxxxxxxxxxxxxxx"

curl --request GET \
--url "${BASE_URL}/v2/storageIntegrations/${integrationId}" \
--header "Authorization: Bearer ${TOKEN}" \
--header "Request-Timeout: 5" \
--header "Content-Type: application/json"
响应

返回 Storage Integration 详情。

成功响应。

codeinteger<int32>

响应码。

示例值:0
dataobject

返回 Storage Integration 详情。

integrationIdstring

存储集成的 ID。

namestring

存储集成的名称。

descriptionstring

存储集成的描述。

statusstring

存储集成的状态。

messagestring

存储集成的状态信息。

regionIdstring

存储集成所在地域的 ID。

bucketNamestring

集成的存储桶名称。

externalCredobject

存储集成的外部云凭据。

roleArnstring

待代入的 IAM 角色的 ARN。

externalIdstring

代入角色时使用的外部 ID(External ID)。

accountNamestring

云账号的名称。

clientIdstring

Azure 应用的客户端 ID。

tenantIdstring

Azure 目录的租户 ID。

gcpProjectIdstring

Google Cloud 项目的 ID。

serviceAccountEmailstring

Google Cloud 服务账号的邮箱。

createTimestring

存储集成的创建时间。

失败响应。

codeinteger

响应码。

示例值:1800
messagestring

错误信息。

示例值:User hasn't authenticated
json
{
"code": 0,
"data": {
"integrationId": "integ-xxxxxxxxxxxxxxxxxxx",
"name": "analytics-oss",
"description": "OSS bucket for external tables",
"status": "ACTIVE",
"message": "",
"regionId": "ali-cn-hangzhou",
"bucketName": "my-oss-bucket",
"externalCred": {
"roleArn": "acs:ram::1234567890123456:role/zilliz-bucket-role",
"externalId": "zilliz-external-AbCdEf12345678"
},
"createTime": "2024-07-30T16:49:50Z"
}
}
json
{
"code": 1800,
"message": "User hasn't authenticated"
}