List MatrixOne destination database names

Reads an external destination from the specified MatrixOne connector, requiring export_task.create and connector.use. This is not the current Workspace’s Catalog database list. Host/password input cannot replace a connector ID.

POST https://api.moi.matrixorigin.cn/v5/connectors/mo/database/list

Before you call this API

Set BASE_URL to the product API prefix https://api.moi.matrixorigin.cn/v5. For private deployments, use the corresponding product API URL.

Prepare the connector and identity in the same environment. Example IDs/databases/results are fixed illustrative values. Current source does not mark these six paths deprecated; public scope and actual deployment still require verification.

Request

curl --request POST \
  "$BASE_URL/connectors/mo/database/list" \
  --header "X-API-Key: $MOI_KEY" \
  --header "X-Workspace-ID: $WORKSPACE_ID" \
  --header "Content-Type: application/json" \
  --data '{"connector_id": "target-connector"}'

Parameter

Type

Required

Description

connector_id

string

Yes

Saved connector ID usable by the current identity.

Successful response

{
  "code": "OK",
  "msg": "OK",
  "data": {
    "databases": [
      "target_db"
    ]
  }
}

Field

Type

Description

code

string

OK on success. Do not check HTTP200 alone.

msg

string

Response description.

data

object

Legacy response objects.

Errors and protocol selection

Choose the call path after Comparing metadata protocols. Parameter locations and response shapes are not interchangeable. See Errors and empty results for error handling.

Last updated on