可信智能计算服务 TICS-测试连接器创建参数:请求示例

时间:2023-11-01 16:15:54

请求示例

  • 测试连接器( MRS )

    post https://100.1.1.1:31000/v1/agents/connectorsdata_connector: {"connector_type":"MRS","name":"hive","ext_info":"{"master_node_ip":"192.168.0.1","cluster_id":"cee282ae-fcaf-46ad-a145-9e5198f710a9","user_name":"***","password":"***"}","auth_type":"PWD"}
  • 测试连接器(RDS)

    post https://100.1.1.1:31000/v1/agents/connectorsdata_connector: {"connector_type":"RDS_MYSQL","name":"rds2","ext_info":"{"rds":"ea20335038f54ecaafb83e6c26a4d856in01","jdbc_url":"jdbc:mysql://192.168.0.*:3306","driver_name":"mysql-connector-java-8.0.20.jar","properties":"","user_name":"***","password":"***"}","auth_type":"PWD"}
  • 测试连接器(MySql)

    post https://100.1.1.1:31000/v1/agents/connectorsdata_connector: {"connector_type":"MYSQL","name":"mysql2","ext_info":"{"user_name":"***","password":"***","jdbc_url":"jdbc:mysql://100.*.*.*:3306","driver_name":"mysql-connector-java-8.0.20.jar","properties":""}","auth_type":"PWD"}
  • 测试连接器(ModelArts)

    post https://100.1.1.1:31000/v1/agents/connectorsdata_connector: {"connector_type":"MODEL_ARTS","name":"modelarts","models":"{"core":"8","cpu":"8","storeage":"","engine_type":"TENSORFLOW","worker_server_num":1,"gpu_num":1,"gpu_type":"nvidia-v100-smx2","spec_code":"modelarts.bm.gpu.v100NV32","max_num":2,"unit_num":1,"engine_id":"132","spec_id":"6"}","ext_info":"{"modelarts_pid":"098593b07680d2a32f62c004a482da10","engine_name":"TensorFlow","engine_version":"Kungfu-0.2.2-TF-1.13.1-python3.6","engine_id":132,"spec_id":6}","auth_type":"PWD"}
  • 测试连接器(DWS)

    post https://100.1.1.1:31000/v1/agents/connectorsdata_connector: {"connector_type":"DWS","name":"dws","ext_info":"{"dws":"c07f71b6-f004-482f-b414-4124eca1f82c","jdbc_url":"jdbc:postgresql://100.0.0.0:8000/postgres","driver_name":"huaweicloud-dws-jdbc-1.7.1.jar","properties":"","user_name":"postgres","password":"***"}","auth_type":"PWD"}
  • 测试连接器(ORACLE)

    post https://100.1.1.1:31000/v1/agents/connectorsdata_connector: {"connector_type":"ORACLE","name":"oracle","ext_info":"{"database_name":"test","database_ip":"100.0.0.0","database_port":"8080","user_name":"tics","password":"***"}","auth_type":"PWD"}
support.huaweicloud.com/devg-tics/testConnector.html