View browsable connectors

View the connectors and capabilities that the current workspace can use to browse the database.

HTTP
GET $CLOUDSIGMA_API_BASE/connectors/structured/v1/sources

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. Select only connectors where enabled is true in the response and the target operation corresponding capability is true.

Request parameters

Replace $CLOUDSIGMA_API_KEY and $WORKSPACE_ID with actual values.

Shell
curl "$CLOUDSIGMA_API_BASE/connectors/structured/v1/sources" \
  -H "X-API-Key: $CLOUDSIGMA_API_KEY" \
  -H "X-Workspace-ID: $WORKSPACE_ID"

No request parameters.

Successful response

JSON
{
  "code": "OK",
  "msg": "OK",
  "data": {
    "sources": [
      {
        "connector_id": "conn_01",
        "connector_name": "orders_mysql",
        "source_type": "SOURCE_TYPE_MYSQL",
        "enabled": true,
        "disabled_reason": "",
        "capability_profile_hash": "capability-profile-hash",
        "capabilities": {
          "list_databases": true,
          "list_schemas": false,
          "list_tables": true,
          "describe_schema": true,
          "sample": false,
          "backfill_start_resolve": false,
          "hive_partitions": false,
          "mongodb_flatten": false
        }
      }
    ]
  }
}

Field

Type

Description

code

string

OK on success.

msg

string

OK on success.

data.sources

array of object

Browsable connectors.

data.sources[].connector_id

string

Connector ID.

data.sources[].connector_name

string

Connector name.

data.sources[].source_type

string

Structured source type.

data.sources[].enabled

boolean

Whether the source is currently enabled. To call a specific discovery interface, the corresponding capabilities must be true.

data.sources[].disabled_reason

string

Reason for unavailability.

data.sources[].capability_profile_hash

string

Capability configuration identifier.

data.sources[].capabilities

object

Callable discovery capabilities.

data.sources[].capabilities.list_databases

boolean

Whether the database can be viewed.

data.sources[].capabilities.list_schemas

boolean

Whether the Schema can be viewed.

data.sources[].capabilities.list_tables

boolean

Whether the table or collection can be viewed.

data.sources[].capabilities.describe_schema

boolean

Whether the field structure can be viewed.

data.sources[].capabilities.sample

boolean

Whether source data sampling is supported.

data.sources[].capabilities.backfill_start_resolve

boolean

Whether the backfill starting point is parsable.

data.sources[].capabilities.hive_partitions

boolean

Whether to support viewing Hive partitions.

data.sources[].capabilities.mongodb_flatten

boolean

Whether to support MongoDB flat mapping.

Error response

When the feature is turned off, a business error may be returned via HTTP 200. Parameter errors and source reading failures will return corresponding error codes. Please check both the HTTP status and the business code.

JSON
{
  "code": "ErrServer",
  "msg": "service unavailable"
}

Field

Type

Description

code

string

error code.

msg

string

error message.

Common HTTP errors

HTTP status

Error code

Common cause

Recommended action

200

STRUCTURED_LOAD_FEATURE_DISABLED, STRUCTURED_LOAD_MONGODB_DISABLED

Business processing did not succeed; an HTTP 2xx status does not guarantee business success.

Inspect the business code and feature flags instead of relying on the HTTP status alone.

400

ErrParamInvalid, ErrWorkspaceRequired, SOURCE_READ_FAILED

Invalid request field, workspace, or operation precondition.

Fix the request parameters and submit again.

500

ErrServer

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

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

Last updated on