?validate_only=true
as an optional query parameter to only run validation without persisting changes.customer_gre_endpoint address
.reply
.{
"cloudflare_gre_endpoint": "203.0.113.1",
"customer_gre_endpoint": "203.0.113.1",
"description": "Tunnel for ISP X",
"health_check": {
"enabled": true,
"target": "203.0.113.1",
"type": "request"
},
"interface_address": "192.0.2.0/31",
"mtu": 1476,
"name": "GRE_1",
"ttl": 64
}
curl --location --request PUT 'https://api.cloudflare.com/client/v4/accounts//magic/gre_tunnels/' \
--header 'Content-Type: application/json' \
--data-raw '{
"cloudflare_gre_endpoint": "203.0.113.1",
"customer_gre_endpoint": "203.0.113.1",
"description": "Tunnel for ISP X",
"health_check": {
"enabled": true,
"target": "203.0.113.1",
"type": "request"
},
"interface_address": "192.0.2.0/31",
"mtu": 1476,
"name": "GRE_1",
"ttl": 64
}'
{
"errors": [],
"messages": [],
"result": {
"modified": true,
"modified_gre_tunnel": {}
},
"success": true
}