Open Context Protocol is live! 🚀 Read the launch post
createLoadBalancerForwardingRules

createLoadBalancerForwardingRules

Create Forwarding Rule

Details

  • Method: POST
  • Path: /load-balancers/{load-balancer-id}/forwarding-rules
  • Operation ID: create-load-balancer-forwarding-rules

Parameters

{
  "frontend_protocol": {
    "description": "The protocol on the Load Balancer to forward to the backend.\n\n* HTTP\n* HTTPS\n* TCP",
    "required": true,
    "location": "body",
    "type": "string"
  },
  "frontend_port": {
    "description": "The port number on the Load Balancer to forward to the backend.",
    "required": true,
    "location": "body",
    "type": "integer"
  },
  "backend_protocol": {
    "description": "The protocol destination on the backend server.\n\n* HTTP\n* HTTPS\n* TCP",
    "required": true,
    "location": "body",
    "type": "string"
  },
  "backend_port": {
    "description": "The port number destination on the backend server.",
    "required": true,
    "location": "body",
    "type": "integer"
  }
}

Usage

from ocp_agent import OCPAgent

agent = OCPAgent()
await agent.register_api('vultr')

# Call this tool
result = await agent.call_tool('createLoadBalancerForwardingRules', {
    # Add required parameters here
})