fkeles

create-health-checks.sh

Jan 18th, 2026
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.35 KB | Software | 0 0
  1. source .env
  2. MONITOR_ID=$(oci health-checks http-monitor create \
  3.   --compartment-id $COMPARTMENT_ID \
  4.   --display-name "DNS-Failover-Http-Health-Check" \
  5.   --interval-in-seconds 30 \
  6.   --protocol HTTP \
  7.   --port 80 \
  8.   --targets "[\"$PRIMARY\",\"$SECONDARY\"]" \
  9.   --query 'data.id' \
  10.   --raw-output
  11.   )
  12.  
  13. echo "Health Check OCID: $MONITOR_ID"
Advertisement
Add Comment
Please, Sign In to add comment