create_forwarding_rule
Configure traffic routing for load balancers by defining frontend and backend protocols and ports to direct incoming requests to appropriate services.
Instructions
Create a forwarding rule for a load balancer.
Args: load_balancer_id: The load balancer ID or label (e.g., "web-lb", "api-load-balancer", or UUID) frontend_protocol: Frontend protocol ('http', 'https', 'tcp') frontend_port: Frontend port number backend_protocol: Backend protocol ('http', 'https', 'tcp') backend_port: Backend port number
Returns: Created forwarding rule information
Input Schema
Name | Required | Description | Default |
---|---|---|---|
backend_port | Yes | ||
backend_protocol | Yes | ||
frontend_port | Yes | ||
frontend_protocol | Yes | ||
load_balancer_id | Yes |
Input Schema (JSON Schema)
{
"properties": {
"backend_port": {
"title": "Backend Port",
"type": "integer"
},
"backend_protocol": {
"title": "Backend Protocol",
"type": "string"
},
"frontend_port": {
"title": "Frontend Port",
"type": "integer"
},
"frontend_protocol": {
"title": "Frontend Protocol",
"type": "string"
},
"load_balancer_id": {
"title": "Load Balancer Id",
"type": "string"
}
},
"required": [
"load_balancer_id",
"frontend_protocol",
"frontend_port",
"backend_protocol",
"backend_port"
],
"type": "object"
}