Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- source .env
- MONITOR_ID=$(oci health-checks http-monitor create \
- --compartment-id $COMPARTMENT_ID \
- --display-name "DNS-Failover-Http-Health-Check" \
- --interval-in-seconds 30 \
- --protocol HTTP \
- --port 80 \
- --targets "[\"$PRIMARY\",\"$SECONDARY\"]" \
- --query 'data.id' \
- --raw-output
- )
- echo "Health Check OCID: $MONITOR_ID"
Advertisement
Add Comment
Please, Sign In to add comment