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.

HTTP
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

Shell
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.

Shell
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.

Shell
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"

Shell
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

page

integer

No

Which page to read. Starting from 1. When omitted, read page 1. Next page number. Use 1 for the first request, and add 1 each time thereafter until the number of reads reaches data.total.

page_size

integer

No

Quantity per page, default 20. There is currently no fixed cap.

keyword

string

No

Only connectors whose name or creator name contains this text are returned.

source_type

integer

No

Individual data source type filters. Standard S3 is 5.

status

string

No

Individual connector status filters.

usage_type

integer (integer array)

No

Connector purpose filter. The same parameter can be passed in repeatedly. 1 only imports, 2 only exports.

order_by

string

No

Supports id and listed sort fields. Unknown values ​​return 400, which defaults to descending order of creation time.

is_desc

boolean

No

true in descending order. false in ascending order.

source_type_list

integer (integer array)

No

Filter criteria for multiple data source types.

status_list

array of string

No

Filter criteria for multiple connector statuses.

Successful response

JSON
{
  "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

code

string

OK on success.

msg

string

OK on success.

data.connectors

array of object

Connectors under the current filter criteria.

data.connectors[].id

string

Connector ID.

data.connectors[].name

string

Connector name.

data.connectors[].source_type

integer

Data source type code.

data.connectors[].created_at

integer

Unix timestamp of creation time.

data.connectors[].updated_at

integer

Unix timestamp of the time of update.

data.connectors[].status

string

The current status of the connector.

data.connectors[].username

string

The name of the user who created this connector.

data.connectors[].related_task_ids

array of string

Associated import task ID list.

data.connectors[].usage_type

integer (integer array)

Saved connector usage. See Specified Use.

data.connectors[].config

object

Saved connection information. See Fill in the connection information by data source.

data.total

integer

The total number of connectors matching the criteria.

Error response

JSON
{
  "code": "ErrForbidden",
  "msg": "permission denied"
}

Field

Type

Description

code

string

error code.

msg

string

Readable error message.

Common HTTP errors

HTTP status

Error code

Common cause

Recommended action

400

ErrParamInvalid, ErrWorkspaceRequired

Invalid request field, workspace, or operation precondition.

Fix the request parameters and submit again.

401

Unauthorized, ErrServiceUnavailable, ErrIAMExplicitRoleInvalid

Missing or invalid authentication credentials.

Check the credential type, expiration, and authentication header.

403

ErrForbidden

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

ErrNotFound

The target object or required reference was not found.

Verify the object identifier, workspace, and current status.

409

ErrAlreadyExists, ErrConnectorInUse

Conflict in resource state, request payload, or concurrent modification.

Re-read the current state and version, then handle according to the latest result.

500

ErrServer

Internal processing failed; write operations may have been partially applied.

Retain request and trace details, and verify the current state before retrying.

503

ErrServiceUnavailable

A business, runtime, or authorization dependency is temporarily unavailable.

After the dependency recovers, check existing results first instead of blindly repeating writes.

Last updated on