{
"allow_insecure": true,
"expected_body": "alive",
"expected_codes": "2xx",
"follow_redirects": true,
"header": {
"Host": [
"example.com"
],
"X-App-ID": [
"abc123"
]
},
"method": "GET",
"path": "/health",
"port": 0,
"probe_zone": "example.com",
"retries": 2,
"timeout": 5,
"type": "https"
}
curl --location --request POST 'https://api.cloudflare.com/client/v4/accounts//load_balancers/pools//preview' \
--header 'Content-Type: application/json' \
--data-raw '{
"allow_insecure": true,
"expected_body": "alive",
"expected_codes": "2xx",
"follow_redirects": true,
"header": {
"Host": [
"example.com"
],
"X-App-ID": [
"abc123"
]
},
"method": "GET",
"path": "/health",
"port": 0,
"probe_zone": "example.com",
"retries": 2,
"timeout": 5,
"type": "https"
}'
{
"errors": [],
"messages": [],
"result": {
"pools": {
"abwlnp5jbqn45ecgxd03erbgtxtqai0d": "WNAM Datacenter",
"ve8h9lrcip5n5bbga9yqmdws28ay5d0l": "EEU Datacenter"
},
"preview_id": "f1aba936b94213e5b8dca0c0dbf1f9cc"
},
"success": true
}