1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
$ curl -X POST -H "Content-Type: application/json" -d '{
"name": "db_db1_sync_job",
"src": {
"host": "192.168.212.11",
"port": "9030",
"thrift_port": "9020",
"user": "root",
"password": "P@55wD111",
"database": "db1"
},
"dest": {
"host": "192.168.212.12",
"port": "9030",
"thrift_port": "9020",
"user": "root",
"password": "P@55wD111",
"database": "db1"
}' http://127.0.0.1:9190/create_ccr
$ curl -X POST -H "Content-Type: application/json" -d '{
"name": "db_db2_sync_job",
"src": {
"host": "192.168.212.11",
"port": "9030",
"thrift_port": "9020",
"user": "root",
"password": "P@55wD111",
"database": "db2"
},
"dest": {
"host": "192.168.212.12",
"port": "9030",
"thrift_port": "9020",
"user": "root",
"password": "P@55wD111",
"database": "db2"
}' http://127.0.0.1:9190/create_ccr
$ curl -X POST -H "Content-Type: application/json" -d '{
"name": "db_db3_sync_job",
"src": {
"host": "192.168.212.11",
"port": "9030",
"thrift_port": "9020",
"user": "root",
"password": "P@55wD111",
"database": "db3"
},
"dest": {
"host": "192.168.212.12",
"port": "9030",
"thrift_port": "9020",
"user": "root",
"password": "P@55wD111",
"database": "db3"
}' http://127.0.0.1:9190/create_ccr
|