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.

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

Shell
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

id

string

Yes

Connector ID.

Successful response

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

code

string

OK on success.

msg

string

OK on success.

data

object

Saved connector.

data.id

string

Connector ID.

data.name

string

Connector name.

data.source_type

integer

Data source type code. See Selecting data sources and connection configuration.

data.created_at

integer

Unix timestamp of creation time.

data.updated_at

integer

Unix timestamp of the time of update.

data.status

string

The current status of the connector.

data.username

string

The name of the user who created this connector.

data.related_task_ids

array of string

Actual associated import task ID. Failure to read will cause the details request to fail.

data.usage_type

integer (integer array)

Saved connector usage. See Specified Use.

data.config

object

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

Error response

JSON
{
  "code": "ErrParam",
  "msg": "invalid parameter"
}

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