创建 Storage Integration (V2)
This operation creates a bucket storage integration after validating that the supplied credential can access the target bucket or container.
该 API 的 Base URL 格式如下:
https://${CLUSTER_ENDPOINT}
- 你需要填入您的 Zilliz Cloud 集群的
${CLUSTER_ENDPOINT}。 - 您可以使用 查看集群详情 V2 来获取集群的 Endpoint.
export CLUSTER_ENDPOINT=""
认证令牌,应为具备适当权限的 API 密钥。
项目 ID。
Storage Integration 名称。
Storage Integration 描述。
地域 ID。服务器会根据该字段推断云厂商。
Bucket、容器或存储名称。对于 Azure Blob Storage,该字段表示容器名称。
云厂商相关的凭证字段。
AWS IAM 角色 ARN。
AWS 角色扮演使用的 external ID。
项目 ID。
Storage Integration 名称。
Storage Integration 描述。
地域 ID。服务器会根据该字段推断云厂商。
Bucket、容器或存储名称。对于 Azure Blob Storage,该字段表示容器名称。
云厂商相关的凭证字段。
用户侧 GCP 项目 ID。
用户创建的 GCP 服务账号邮箱,用于授予 bucket 访问权限。
项目 ID。
Storage Integration 名称。
Storage Integration 描述。
地域 ID。服务器会根据该字段推断云厂商。
Bucket、容器或存储名称。对于 Azure Blob Storage,该字段表示容器名称。
云厂商相关的凭证字段。
Azure 存储账号名称。
Azure 联合身份客户端 ID。
Azure 联合身份租户 ID。
项目 ID。
Storage Integration 名称。
Storage Integration 描述。
地域 ID。服务器会根据该字段推断云厂商。
Bucket、容器或存储名称。对于 Azure Blob Storage,该字段表示容器名称。
云厂商相关的凭证字段。
AWS IAM 角色 ARN。
AWS 角色扮演使用的 external ID。
export TOKEN="db_admin:xxxxxxxxxxxxx"
curl --request POST \
--url "${CLUSTER_ENDPOINT}/v2/storageIntegrations" \
--header "Authorization: Bearer ${TOKEN}" \
--header "Request-Timeout: 5" \
--header "Content-Type: application/json" \
-d '{
"projectId": "proj-xxxxxxxxxxxxxxxxxxxxxx",
"name": "analytics-s3",
"description": "S3 bucket for external tables",
"regionId": "aws-cn-northwest-1",
"bucketName": "my-bucket",
"externalCred": {
"roleArn": "arn:aws:iam::123456789012:role/zilliz-bucket-role",
"externalId": "zilliz-external-AbCdEf12345678"
}
}'
成功响应。
响应码。
Storage Integration ID。
Storage Integration 名称。
失败响应。
响应码。
错误信息。
{
"code": 0,
"data": {
"integrationId": "integ-xxxxxxxxxxxxxxxxxxx",
"name": "analytics-oss"
}
}
{
"code": 1800,
"message": "User hasn't authenticated"
}