List connectors¶
Lists the connectors in the current workspace that you have read permission for. Find the connector ID through this interface before viewing details, updating, deleting, or creating data tasks.
GET $CLOUDSIGMA_API_BASE/connectors/list
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 personal access token and target workspace ID that can access the target workspace.
Query parameters¶
Replace $CLOUDSIGMA_API_KEY, $WORKSPACE_ID and query parameters with actual values.
Pagination
curl "$CLOUDSIGMA_API_BASE/connectors/list?page=1&page_size=20" \
-H "X-API-Key: $CLOUDSIGMA_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID"
Filter by individual criteria
Replace filter criteria with actual values.
curl '$CLOUDSIGMA_API_BASE/connectors/list?keyword=orders&source_type=5&status=active&usage_type=1&order_by=name&is_desc=false' \
-H "X-API-Key: $CLOUDSIGMA_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID"
Filter by multiple types or statuses
When you need to match multiple data source types or states, use the corresponding list parameters.
curl '$CLOUDSIGMA_API_BASE/connectors/list?source_type_list=5&source_type_list=7&status_list=active&status_list=failed' \
-H "X-API-Key: $CLOUDSIGMA_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID"
Read next page
curl "$CLOUDSIGMA_API_BASE/connectors/list?page=2&page_size=20" \
-H "X-API-Key: $CLOUDSIGMA_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID"
When single value and list filtering are filled in at the same time, the result must satisfy both. Values in the purpose array are combined by bitwise OR to match any purpose, supporting import, export and merging of values 3.
By default, page 1 is read, with 20 items per page. There is currently no limit on the number of pages per page. When the associated task query fails, an empty array may be returned.
name matches the original value exactly. The default order is descending by creation time, is_desc does not change the default order.
You can also specify to sort by id, in which case is_desc determines the ascending and descending order. Unknown sorting field returns HTTP 400/ErrParamInvalid.
Pagination
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
integer |
No |
Which page to read. Starting from 1. When omitted, read page 1. Next page number. Use |
|
integer |
No |
Quantity per page, default 20. There is currently no fixed cap. |
|
string |
No |
Only connectors whose name or creator name contains this text are returned. |
|
integer |
No |
Individual data source type filters. Standard S3 is |
|
string |
No |
Individual connector status filters. |
|
integer (integer array) |
No |
Connector purpose filter. The same parameter can be passed in repeatedly. |
|
string |
No |
Supports id and listed sort fields. Unknown values return 400, which defaults to descending order of creation time. |
|
boolean |
No |
|
|
integer (integer array) |
No |
Filter criteria for multiple data source types. |
|
array of string |
No |
Filter criteria for multiple connector statuses. |
Successful response¶
{
"code": "OK",
"msg": "OK",
"data": {
"connectors": [
{
"id": "conn_01",
"name": "s3-orders-import",
"source_type": 5,
"created_at": 1735632000,
"updated_at": 1735718400,
"status": "active",
"username": "user_01",
"related_task_ids": [
"task_01"
],
"usage_type": [
1
],
"config": {
"s3": {
"endpoint": "https://s3.example.com",
"bucket_name": "orders",
"region": "us-east-1"
}
}
}
],
"total": 1
}
}
Field |
Type |
Description |
|---|---|---|
|
string |
|
|
string |
|
|
array of object |
Connectors under the current filter criteria. |
|
string |
Connector ID. |
|
string |
Connector name. |
|
integer |
Data source type code. |
|
integer |
Unix timestamp of creation time. |
|
integer |
Unix timestamp of the time of update. |
|
string |
The current status of the connector. |
|
string |
The name of the user who created this connector. |
|
array of string |
Associated import task ID list. |
|
integer (integer array) |
Saved connector usage. See Specified Use. |
|
object |
Saved connection information. See Fill in the connection information by data source. |
|
integer |
The total number of connectors matching the criteria. |
Error response¶
{
"code": "ErrForbidden",
"msg": "permission denied"
}
Field |
Type |
Description |
|---|---|---|
|
string |
error code. |
|
string |
Readable error message. |
Common HTTP errors¶
HTTP status |
Error code |
Common cause |
Recommended action |
|---|---|---|---|
400 |
|
Invalid request field, workspace, or operation precondition. |
Fix the request parameters and submit again. |
401 |
|
Missing or invalid authentication credentials. |
Check the credential type, expiration, and authentication header. |
403 |
|
The current identity or active role does not have permission for this operation. |
Use an authorized identity or contact an administrator to grant access. |
404 |
|
The target object or required reference was not found. |
Verify the object identifier, workspace, and current status. |
409 |
|
Conflict in resource state, request payload, or concurrent modification. |
Re-read the current state and version, then handle according to the latest result. |
500 |
|
Internal processing failed; write operations may have been partially applied. |
Retain request and trace details, and verify the current state before retrying. |
503 |
|
A business, runtime, or authorization dependency is temporarily unavailable. |
After the dependency recovers, check existing results first instead of blindly repeating writes. |