# 激活边端
curl --location --request POST 'http://10.10.39.251:8083/connectors' \
--header 'Content-Type: application/json' \
--data-raw '{
  "name": "inventory-connector-v3",
  "config": {
    "connector.class": "io.debezium.connector.postgresql.PostgresConnector",
    "tasks.max": "5",
    "database.hostname": "postgres",
    "database.port": "5432",
    "database.user": "postgres",
    "database.password": "huansi.net@v3",
    "database.dbname" : "hsiotdb",
    "database.server.name": "iot-v3",
    "table.whitelist": "public.device,public.ts_kv_latest",
    "plugin.name": "pgoutput",
    "decimal.handling.mode": "string",
    "slot.name" : "slot1007"
  }
}'

# 查询
curl -X GET 'http://10.10.39.251:8083/connectors/inventory-connector-v3' 
curl --location --request GET 'http://10.10.39.251:8083/connectors/inventory-connector-v3/status'

# 删除
curl --location --request DETELE 'http://10.10.39.251:8083/connectors/inventory-connector-v3' 
curl --location --request DELETE 'http://10.10.39.251:8083/connectors/inventory-connector-v3'