Get connector details¶
Read a saved connector based on its connector ID. Use this interface to confirm the current name, status, purpose, and associated tasks. Details should also be read before updating or deleting.
POST $CLOUDSIGMA_API_BASE/connectors/get
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. Also prepare a list or create the connector IDs returned by the interface.
Request body¶
The example uses jq to construct the JSON request body. Install jq first and set the required environment variables. Do not JSON encode the variable values again.
Replace $CLOUDSIGMA_API_KEY, $WORKSPACE_ID and $CONNECTOR_ID with actual values.
curl -X POST "$CLOUDSIGMA_API_BASE/connectors/get" \
-H "X-API-Key: $CLOUDSIGMA_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID" \
-H 'Content-Type: application/json' \
--data-binary "$(jq -n --arg CONNECTOR_ID "$CONNECTOR_ID" '
{
"id": $CONNECTOR_ID
}
')"
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Yes |
Connector ID. |
Successful response¶
{
"code": "OK",
"msg": "OK",
"data": {
"id": "conn_01",
"name": "s3-orders-import",
"source_type": 5,
"created_at": 1735632000,
"updated_at": 1735718400,
"status": "active",
"username": "user_01",
"related_task_ids": [],
"usage_type": [
1
],
"config": {
"s3": {
"endpoint": "https://s3.example.com",
"bucket_name": "orders",
"region": "us-east-1"
}
}
}
}
Field |
Type |
Description |
|---|---|---|
|
string |
|
|
string |
|
|
object |
Saved connector. |
|
string |
Connector ID. |
|
string |
Connector name. |
|
integer |
Data source type code. See Selecting data sources and connection configuration. |
|
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 |
Actual associated import task ID. Failure to read will cause the details request to fail. |
|
integer (integer array) |
Saved connector usage. See Specified Use. |
|
object |
Saved connection information. See Fill in the connection information by data source. |
Error response¶
{
"code": "ErrParam",
"msg": "invalid parameter"
}
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. |