Remove
Remove Forwarding Rules from a Load Balancer
/v2/load_balancers/{lb_id}/forwarding_rules
To remove forwarding rules from a load balancer instance, send a DELETE
request to /v2/load_balancers/$LOAD_BALANCER_ID/forwarding_rules. In the
body of the request, there should be a forwarding_rules attribute containing
an array of rules to be removed.
No response body will be sent back, but the response code will indicate success. Specifically, the response code will be a 204, which means that the action was successful with no returned body data.
Path Parameters
lb_id: string
minimum1
Body Parameters
Remove Forwarding Rules from a Load Balancer
curl https://api.digitalocean.com/v2/load_balancers/$LB_ID/forwarding_rules \
-X DELETE \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $DIGITALOCEAN_ACCESS_TOKEN" \
-d '{
"forwarding_rules": [
{
"entry_port": 443,
"entry_protocol": "https",
"target_port": 80,
"target_protocol": "http"
}
]
}'