-
Notifications
You must be signed in to change notification settings - Fork 19
/
identity.sh
31 lines (24 loc) · 940 Bytes
/
identity.sh
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
#!/bin/bash
## configure debezium connector for identity database
create_connector () {
curl -X POST http://localhost:8083/connectors -d @configs/identity_config.json \
--header "Content-Type: application/json"
}
# update_connector () {
# curl -X PUT http://localhost:8083/connectors/identity_outbox_connector/config --data "$(jq '.config' configs/identity_config.json)" \
# --header "Content-Type: application/json"
# }
delete_connector () {
curl -X DELETE http://localhost:8083/connectors/identity_outbox_connector \
--header "Content-Type: application/json"
}
stop_connector () {
curl -X PUT http://localhost:8083/connectors/identity_outbox_connector/pause \
--header "Content-Type: application/json"
}
start_connector () {
curl -X PUT http://localhost:8083/connectors/identity_outbox_connector/resume \
--header "Content-Type: application/json"
}
"$@"
read