diff --git a/src/content/docs/spectrum/about/load-balancer.mdx b/src/content/docs/spectrum/about/load-balancer.mdx index bf9ce0295227c8a..04f2acf42b99563 100644 --- a/src/content/docs/spectrum/about/load-balancer.mdx +++ b/src/content/docs/spectrum/about/load-balancer.mdx @@ -5,7 +5,7 @@ weight: 0 --- -import { Details, Render } from "~/components" +import { Details, Render, APIRequest } from "~/components" You can configure Spectrum with Cloudflare [Load Balancing](/load-balancing/) to provide TCP healthchecks, failover, and traffic steering, bringing resiliency to your Spectrum applications. @@ -41,22 +41,43 @@ Under **Advanced health check settings**:
-```bash -curl 'https://api.cloudflare.com/client/v4/organizations/{organization_id}/load_balancers/monitors' \ ---header "Authorization: Bearer " \ ---header "Content-Type: application/json" \ ---data '{"description":"Spectrum Health Check","type":"tcp","port":2048,"interval":30,"retries":2,"timeout":5,"method":"connection_established"}' -``` + ```json { - "description": "Spectrum Health Check", - "type": "tcp", - "port": 2048, - "interval": 30, - "retries": 2, - "timeout": 5, - "method": "connection_established" + "result": { + "description": "TCP Monitor for Spectrum", + "created_on": "2025-07-17T14:55:04.830009Z", + "modified_on": "2025-07-17T14:55:04.830009Z", + "id": "1d404721c660a8a7aaa28d68ed6d48d9", + "type": "tcp", + "port": 2048, + "interval": 60, + "retries": 2, + "timeout": 5, + "expected_body": "", + "expected_codes": "", + "follow_redirects": false, + "allow_insecure": false, + "probe_zone": "", + "path": "", + "method": "connection_established" + }, + "success": true, + "errors": [], + "messages": [] } ```