查询模型服务列表
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
polardb:DescribeModelServices |
get |
*全部资源
|
无 | 无 |
请求语法
POST HTTP/1.1
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| GwClusterId |
string |
是 |
网关实例 ID。 |
pg-xxxxxxxxxx |
| Name |
string |
否 |
模型服务名称 |
testName |
| ModelServiceIds |
string |
否 |
模型服务 ID。 |
ms-xxx,ms-xxxx |
| ModelCategory |
string |
否 |
模型类别 |
text |
| Protocol |
string |
否 |
协议类型,枚举值:
|
openai |
| Status |
string |
否 |
状态 |
Enable |
| PageSize |
integer |
否 |
页码数 |
30 |
| PageNumber |
integer |
否 |
页码 |
1 |
| RegionId |
string |
否 |
地域 ID。 |
cn-beijing |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| Items |
array<object> |
模型服务列表 |
|
|
object |
模型服务对象 |
||
| ApiKey |
string |
模型服务的 API 密钥 |
6c4b1f0317cd4fd7a5b446d3503d** |
| BaseUrl |
string |
上游服务地址 |
https://xxxxxx |
| GmtCreated |
string |
模型创建日期 |
2026-03-31T14:40:48Z |
| InputCostPointsPerMillion |
string |
输入点数 |
10 |
| ModelCategory |
string |
类别 |
text |
| ModelServiceId |
string |
模型服务 ID。 |
ms-xxxxxx |
| Name |
string |
模型服务名称 |
test |
| OutputCostPointsPerMillion |
string |
输出点数 |
10 |
| Protocol |
string |
协议类型,枚举值:
|
openai |
| RequestCostPoints |
string |
请求数 |
10 |
| Status |
string |
状态 |
Enable |
| Vendor |
string |
模型服务商 |
bailian |
| PageNumber |
integer |
当前页码 |
1 |
| PageRecordCount |
integer |
本页记录数。 |
30 |
| PageSize |
integer |
每页记录数,取值范围如下:
默认值为 30。 |
30 |
| RequestId |
string |
请求 ID。 |
24A1990B-4F6E-482B-B8CB-75C612****** |
| TotalRecordCount |
integer |
总的记录数量 |
2 |
示例
正常返回示例
JSON格式
{
"Items": [
{
"ApiKey": "6c4b1f0317cd4fd7a5b446d3503d**",
"BaseUrl": "https://xxxxxx",
"GmtCreated": "2026-03-31T14:40:48Z",
"InputCostPointsPerMillion": "10",
"ModelCategory": "text",
"ModelServiceId": "ms-xxxxxx",
"Name": "test",
"OutputCostPointsPerMillion": "10",
"Protocol": "openai",
"RequestCostPoints": "10",
"Status": "Enable",
"Vendor": "bailian"
}
],
"PageNumber": 1,
"PageRecordCount": 30,
"PageSize": 30,
"RequestId": "24A1990B-4F6E-482B-B8CB-75C612******",
"TotalRecordCount": 2
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 404 | InvalidPolarGatewayInstanceId.NotFound | The gateway instance id provided does not exist in our records. |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。