Query the connection list¶
Query the agent connections saved in the current workspace.
GET $CLOUDSIGMA_API_BASE/workspaces/{workspace_id}/connections
Before you call¶
Configure the CloudSigma regional endpoint and authentication before calling. The endpoint, credentials, workspace, and resource IDs must belong to the same region. Prepare a personal access token and target workspace ID that can access the target workspace.
Request parameters¶
curl "$CLOUDSIGMA_API_BASE/workspaces/$WORKSPACE_ID/connections" -H "X-API-Key: $CLOUDSIGMA_API_KEY" -H "X-Workspace-ID: $WORKSPACE_ID"
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
No |
Connection type. |
|
string |
No |
Connection status. |
|
string |
No |
Authentication method. |
|
string |
No |
Visible range, as an explicit filter. |
|
string |
No |
Search by name and description. |
|
string |
No |
Owning user ID as an explicit filter. |
|
integer |
No |
The maximum number of records returned, default 50, maximum 200. |
|
integer |
No |
Query the offset, and negative values are treated as 0. |
Successful response¶
{
"code": 0,
"data": {
"items": [],
"total": 0,
"limit": 0,
"offset": 0
}
}
Field |
Type |
Description |
|---|---|---|
|
integer |
|
|
object |
response data. |
|
array of object |
Current page link. The service may return |
|
string |
Object ID. |
|
string |
The workspace ID to which it belongs. |
|
string |
Name. |
|
string |
Description. Can be omitted if not set. |
|
string |
Current status. Values: |
|
string |
Connection type. Values: |
|
string |
Service endpoint address. |
|
string |
Authentication method. Values: |
|
string |
A reference to a saved credential, not a clear-text key. Can be omitted if not set. |
|
array of string |
List of available capabilities. Can be omitted if not set. |
|
string |
The user ID of the connection owner. Can be omitted if not set. |
|
string |
Visible range. Value: |
|
object |
Non-sensitive configuration, fields vary with connection or channel type. Can be omitted if not set. |
|
string |
The most recent test status, either succeeded or failed. Can be omitted if not set. Value: |
|
string |
The most recent test time, in RFC 3339 format. Can be omitted if not set. |
|
string |
Error description for recent tests. Can be omitted if not set. |
|
integer |
Current version number. |
|
object |
Tag key-value pairs. Can be omitted if not set. |
|
object |
Extended annotations. Can be omitted if not set. |
|
object |
Extended metadata. Can be omitted if not set. |
|
string |
Creator ID. Can be omitted if not set. |
|
string |
Last updated by identifier. Can be omitted if not set. |
|
string |
Creation time, in RFC 3339 format. |
|
string |
Last updated in RFC 3339 format. |
|
integer |
Total number of matches. |
|
integer |
The upper limit of the number of records used in this query. |
|
integer |
The offset used in this query. |
Error response¶
{
"code": 6,
"message": "unauthenticated"
}
Field |
Type |
Description |
|---|---|---|
|
integer |
error code. |
|
string |
Error message for the caller. |