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

createFirewallGroup

Create Firewall Group

Details

  • Method: POST
  • Path: /firewalls
  • Operation ID: create-firewall-group

Parameters

{
  "description": {
    "description": "User-supplied description of this Firewall Group.",
    "required": false,
    "location": "body",
    "type": "string"
  }
}

Response Schema

{
  "type": "object",
  "properties": {
    "firewall_group": {
      "title": "firewall-group",
      "type": "object",
      "x-tags": [
        "firewall"
      ],
      "x-examples": {
        "group": {
          "id": "cb676a46-66fd-4dfb-b839-443f2e6c0b60",
          "description": "Example Firewall Group",
          "date_created": "2020-10-10T01:56:20+00:00",
          "date_modified": "2020-10-10T01:59:20+00:00",
          "instance_count": 2,
          "rule_count": 2,
          "max_rule_count": 50
        }
      },
      "description": "Firewall Group information.",
      "properties": {
        "id": {
          "type": "string",
          "description": "A unique ID for the Firewall Group."
        },
        "description": {
          "type": "string",
          "description": "User-supplied description of this Firewall Group."
        },
        "date_created": {
          "type": "string",
          "description": "Date the Firewall Group was originally created."
        },
        "date_modified": {
          "type": "string",
          "description": "Date of the last modification to this Firewall Group."
        },
        "instance_count": {
          "type": "integer",
          "description": "The number of instances linked to this Firewall Group."
        },
        "rule_count": {
          "type": "integer",
          "description": "The number of rules in this Firewall Group."
        },
        "max_rule_count": {
          "type": "integer",
          "description": "The maximum number of rules allowed for this Firewall Group."
        }
      }
    }
  }
}

Usage

from ocp_agent import OCPAgent

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

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