View browsable connectors¶
View the connectors and capabilities that the current workspace can use to browse the database.
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.
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¶
{
"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 |
|---|---|---|
|
string |
|
|
string |
|
|
array of object |
Browsable connectors. |
|
string |
Connector ID. |
|
string |
Connector name. |
|
string |
Structured source type. |
|
boolean |
Whether the source is currently enabled. To call a specific discovery interface, the corresponding capabilities must be true. |
|
string |
Reason for unavailability. |
|
string |
Capability configuration identifier. |
|
object |
Callable discovery capabilities. |
|
boolean |
Whether the database can be viewed. |
|
boolean |
Whether the Schema can be viewed. |
|
boolean |
Whether the table or collection can be viewed. |
|
boolean |
Whether the field structure can be viewed. |
|
boolean |
Whether source data sampling is supported. |
|
boolean |
Whether the backfill starting point is parsable. |
|
boolean |
Whether to support viewing Hive partitions. |
|
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.
{
"code": "ErrServer",
"msg": "service unavailable"
}
Field |
Type |
Description |
|---|---|---|
|
string |
error code. |
|
string |
error message. |
Common HTTP errors¶
HTTP status |
Error code |
Common cause |
Recommended action |
|---|---|---|---|
200 |
|
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 |
|
Invalid request field, workspace, or operation precondition. |
Fix the request parameters and submit again. |
500 |
|
Internal processing failed; write operations may have been partially applied. |
Retain request and trace details, and verify the current state before retrying. |