跳到主要内容

更新 Volume (V2)

更新指定 Volume 的描述。

PATCH/v2/volumes/{VOLUME_NAME}
连接端点

该 API 的 Base URL 格式如下:

https://api.cloud.zilliz.com

📘说明

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

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

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

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

Volume所属的组织 ID。

示例值:org-xxxxxxxxxxxxxxxxxxx
VOLUME_NAMEstringpath必填项

待更新的 Volume 名称。

示例值:my_volume
请求体
descriptionstring必填项

Volume 的新描述。值可以为空字符串。

Descriptionbash
export TOKEN="YOUR_API_KEY"
export VOLUME_NAME="my_volume"

curl --request PATCH \
--url "${BASE_URL}/v2/volumes/${VOLUME_NAME}" \
--header "Authorization: Bearer ${TOKEN}" \
--header "OrgId: org-xxxxxxxxxxxxxxxxxxx" \
--header "Request-Timeout: 5" \
--header "Content-Type: application/json" \
-d '{
"description": "This is the new description of the volume."
}'
响应

返回指定 Volume 的详细信息。

codeinteger

响应码。

dataobject

响应载荷,包含 Volume 详情。

volumeNamestring

Volume 名称。

typestring

Volume 的类别。

regionIdstring

Volume 所属区域的 ID。

storageIntegrationIdstring

存储集成 ID。仅对外部 Volume 返回。

pathstring

存储卷内的路径前缀。仅对外部 Volume 返回。

statusstring

Volume 的当前状态。

createTimestring

Volume 的创建时间,ISO 8601 格式。

失败响应。

codeinteger

响应码。

messagestring

错误描述。

json
{
"code": 0,
"data": {
"volumeName": "my_volume",
"type": "MANAGED",
"regionId": "ali-cn-hangzhou",
"status": "RUNNING",
"createTime": "2026-05-06T03:50:35Z"
}
}
json
{
"code": 0,
"data": {
"volumeName": "my_external_volume",
"type": "EXTERNAL",
"regionId": "ali-cn-hangzhou",
"storageIntegrationId": "integ-xxxxxxxxxxxxxxxxxxx",
"path": "data/",
"status": "RUNNING",
"createTime": "2026-05-06T03:50:35Z"
}
}
Ctrl I