跳到主要内容

查看云服务区域

Lists all available cloud regions. You may list only the applicable regions of a specific cloud provider.

GET
/v2/regions
Base URL

该 API 的 Base URL 格式如下:

https://api.cloud.zilliz.com

export BASE_URL="https://api.cloud.zilliz.com"
参数
Authorizationstringheaderrequired

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

示例值:Bearer {{TOKEN}}
Acceptstringheader

使用 application/json

示例值:application/json
cloudIdstringquery

ID of a cloud provider. You can list applicable cloud providers using List Cloud Providers

示例值:ali
export TOKEN="YOUR_API_KEY"

curl --request GET \
--url "${BASE_URL}/v2/regions" \
--header "Authorization: Bearer ${TOKEN}" \
--header "Accept: application/json" \
--header "Content-Type: application/json"
响应200 - application/json
codeinteger

响应码。

dataarray

响应负载。

[]dataobject

List of applicable cloud regions.

cloudIdstring

提供指定云地域的云服务商 ID。

regionIdstring

云地域 ID。

domainstring

控制面 V2 API 服务器的 Base URL。

Returns an error message.

codeinteger

响应码。

messagestring

错误描述。

{
"code": 0,
"data": [
{
"cloudId": "ali",
"regionId": "ali-cn-hangzhou",
"domain": "api.cloud.zilliz.com.cn"
},
{
"cloudId": "tc",
"regionId": "tc-ap-beijing",
"domain": "api.cloud.zilliz.com.cn"
}
]
}