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

getLoadBalancerForwardingRule

Get Forwarding Rule

Details

  • Method: GET
  • Path: /load-balancers/{load-balancer-id}/forwarding-rules/{forwarding-rule-id}
  • Operation ID: get-load-balancer-forwarding-rule

Parameters

{}

Response Schema

{
  "type": "object",
  "properties": {
    "forwarding_rule": {
      "title": "forwarding-rule",
      "type": "object",
      "x-tags": [
        "load-balancer"
      ],
      "description": "Forwarding Rule information.",
      "x-examples": {
        "forwarding rules": {
          "id": "cb676a46-66fd-4dfb-b839-443f2e6c0b60",
          "frontend_protocol": "http",
          "frontend_port": 80,
          "backend_protocol": "http",
          "backend_port": 80
        }
      },
      "properties": {
        "id": {
          "type": "string",
          "description": "A unique ID for the Forwarding Rule."
        },
        "frontend_protocol": {
          "type": "string",
          "description": "The protocol on the Load Balancer to forward to the backend.\n\n* HTTP\n* HTTPS\n* TCP"
        },
        "frontend_port": {
          "type": "integer",
          "description": "The port number on the Load Balancer to forward to the backend."
        },
        "backend_protocol": {
          "type": "string",
          "description": "The protocol destination on the backend server.\n\n* HTTP\n* HTTPS\n* TCP"
        },
        "backend_port": {
          "type": "integer",
          "description": "The port number destination on the backend server."
        }
      }
    }
  }
}

Usage

from ocp_agent import OCPAgent

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

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