ListConnectorModels - 查询 Connector 模型列表
查询已启用 QoderCLI Connector 可用的官方模型和企业模型。服务使用已保存的 API Key 和组织 ID 实时获取模型,并按模型 ID 去重。
接口说明
查询指定 Connector 可用的模型列表,支持分页。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
agentcore:ListConnectorModels |
list |
*Workspace
|
无 | 无 |
请求语法
GET /workspaces/{workspaceId}/connectors/{connectorName}/models HTTP/1.1
路径参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| workspaceId |
string |
是 |
工作空间 ID |
ws-xxxx |
| connectorName |
string |
是 |
Connector 名称,当前仅支持 qodercli。 枚举值:
|
qodercli |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| connectorKeyId |
string |
否 |
Connector Key ID。当前版本暂不支持该参数。 |
ckey-xxxx |
| maxResults |
integer |
否 |
分页大小。当前版本暂不支持该参数。 |
10 |
| nextToken |
string |
否 |
下一页令牌。当前版本暂不支持该参数。 |
dGVzdA== |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Connector 模型列表响应 |
||
| requestId |
string |
请求 ID |
request-123456 |
| message |
string |
响应消息 |
success |
| httpStatusCode |
integer |
HTTP 状态码 |
200 |
| code |
string |
业务状态码 |
SUCCESS |
| success |
boolean |
请求是否成功 |
true |
| maxResults |
integer |
本次返回的模型数量。 |
10 |
| nextToken |
string |
下一页令牌。当前版本不返回该字段。 |
dGVzdA== |
| totalCount |
integer |
返回的模型总数。 |
100 |
| items |
array<object> |
可用模型列表 |
|
|
object |
|||
| modelId |
string |
模型稳定标识 |
qwen3-max |
| displayName |
string |
模型展示名称 |
Qwen3 Max |
| source |
string |
模型来源。 枚举值:
|
official |
| description |
string |
模型说明 |
通义千问旗舰模型 |
| keyId |
string |
关联的 Connector Key ID。当前版本不返回该字段。 |
ckey-xxxx |
| keyName |
string |
关联的 Connector Key 名称。当前版本不返回该字段。 |
default |
示例
正常返回示例
JSON格式
{
"requestId": "request-123456",
"message": "success",
"httpStatusCode": 200,
"code": "SUCCESS",
"success": true,
"maxResults": 10,
"nextToken": "dGVzdA==",
"totalCount": 100,
"items": [
{
"modelId": "qwen3-max",
"displayName": "Qwen3 Max",
"source": "official",
"description": "通义千问旗舰模型",
"keyId": "ckey-xxxx",
"keyName": "default"
}
]
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | InvalidParameter | The specified request parameter is invalid. | |
| 404 | Resource.NotFound | The specified AgentCore workspace does not exist. | |
| 404 | Connector.NotFound | The specified connector does not exist. | |
| 404 | Connector.KeyNotFound | The specified connector key does not exist. | |
| 503 | Connector.CredentialUnavailable | The connector credential service is temporarily unavailable. | |
| 409 | Connector.NotEnabled | The connector is not enabled. |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。