-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathseed-database-kind
More file actions
executable file
·5 lines (5 loc) · 885 Bytes
/
seed-database-kind
File metadata and controls
executable file
·5 lines (5 loc) · 885 Bytes
1
2
3
4
5
#!/bin/bash
curl http://api.localhost/api/systemstatus -d '{"name":"status-checker-api/", "callUrl": "http://api.localhost/api/healthz", "httpMethod": "GET", "ResponseMatch": "Healthy", "alertBody": "shit went south", "alertUrl": "https://hooks.slack.com/services/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", "alertEmail": "erik.j.svensson@gmail.com"}'
curl http://api.localhost/api/systemstatus -d '{"name":"google", "callUrl": "https://google.com", "httpMethod": "GET", "ResponseMatch": "google.kEI", "alertBody": "Google went down", "alertUrl": "https://hooks.slack.com/services/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", "alertEmail": "erik.j.svensson@gmail.com", "certExpirationDays":10, "clientCertID": 1}'
curl -XPOST http://localhost/api/clientcert -H 'Content-Type: multipart/form-data' -F 'file=@testcert.p12' -F 'name=testcert.p12' -F 'password=default' -v
exit 0