Retrieves a list of connections.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
paiworkspace:ListConnections |
list |
*All Resource
|
None | None |
Request syntax
GET /api/v1/connections HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| WorkspaceId |
string |
No |
The workspace ID. For more information about how to obtain a workspace ID, see ListWorkspaces. |
478** |
| NextToken |
string |
No |
The pagination token. It is used to mark the starting position for the next paged query. |
15 |
| MaxResults |
integer |
No |
The maximum number of entries to return on each page. |
10 |
| SortBy |
string |
No |
The field to sort by for a paged query. The default value is GmtCreateTime. Valid values:
|
GmtCreateTime |
| Order |
string |
No |
The sort order for the paged query. Use this parameter with SortBy.
|
DESC |
| ConnectionIds |
array |
No |
A list of connection IDs. |
|
|
string |
No |
The connection ID. |
conn-ljasd***jsx |
|
| ConnectionName |
string |
No |
The name of the connection. |
数据库连接 |
| ConnectionTypes |
array |
No |
A list of connection types. |
|
|
string |
No |
The connection type. Valid values:
|
OpenLLMConnection |
|
| EncryptOption |
string |
No |
The encryption setting. Valid values:
|
PlainText |
| Model |
string |
No |
The model identifier. |
model_001 |
| ModelTypes |
array |
No |
A list of model types. |
|
|
string |
No |
The model type. Valid values:
|
LLM |
|
| ToolCall |
boolean |
No |
Indicates whether tool calling is supported. Valid values:
|
true |
| Creator |
string |
No |
The creator. |
12908*******3242 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| Connections |
array |
The list of connections. |
|
| Connection |
The connection information. |
||
| MaxResults |
integer |
The maximum number of entries returned on each page. |
10 |
| NextToken |
string |
The pagination token. It is used to mark the starting position for the next paged query. |
15 |
| TotalCount |
integer |
The total number of connections that meet the filter conditions. |
27 |
| RequestId |
string |
The unique ID of the request. |
B2C51F93-1C07-5477-9705-5FDB****F19F |
Examples
Success response
JSON format
{
"Connections": [
{
"Description": "This is a description of a database connection.",
"ConnectionType": "ElasticsearchConnection",
"Accessibility": "PRIVATE",
"Secrets": {
"key": "Dsjk***hsl01\n"
},
"WorkspaceId": "228**",
"Creator": "20925961****557803",
"ResourceMeta": {
"InstanceName": "lindorm-xxxxxxx",
"Extra": "{\"vpcId\":\"vpc-xxxx\"}",
"InstanceId": "ld-2vc1***v1zaqgzol"
},
"GmtModifiedTime": "2025-03-07T07:54:56Z\n",
"ConnectionName": "lindorm-connection",
"ConnectionId": "conn-pai9m***mi47",
"Configs": {
"key": "12345"
},
"Models": [
{
"ToolCall": true,
"Model": "model_001",
"DisplayName": "BGE model deploy.",
"ModelType": "LLM"
}
],
"GmtCreateTime": "2025-03-07T07:54:56Z\n"
}
],
"MaxResults": 10,
"NextToken": "15",
"TotalCount": 27,
"RequestId": "B2C51F93-1C07-5477-9705-5FDB****F19F"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.