Open Context Protocol is live! 🚀 Read the launch post

createDnsDomain

Create DNS Domain

Details

  • Method: POST
  • Path: /domains
  • Operation ID: create-dns-domain

Parameters

{
  "domain": {
    "description": "Your registered DNS Domain name.",
    "required": true,
    "location": "body",
    "type": "string"
  },
  "ip": {
    "description": "The default IP address for your DNS Domain. If omitted an empty domain zone will be created.",
    "required": false,
    "location": "body",
    "type": "string"
  },
  "dns_sec": {
    "description": "Enable or disable DNSSEC.\n\n* enabled\n* disabled (default)",
    "required": false,
    "location": "body",
    "type": "string"
  }
}

Response Schema

{
  "type": "object",
  "properties": {
    "domain": {
      "title": "domain",
      "type": "object",
      "description": "DNS Domain information.",
      "x-tags": [
        "dns"
      ],
      "x-examples": {
        "list of domains": {
          "domain": "example.com",
          "date_created": "2020-10-10T01:56:20+00:00"
        }
      },
      "properties": {
        "domain": {
          "type": "string",
          "description": "Your registered domain name."
        },
        "date_created": {
          "type": "string",
          "description": "Date the DNS Domain was created."
        },
        "dns_sec": {
          "type": "string",
          "description": "The domain's DNSSEC status\n\n* enabled\n* disabled"
        }
      }
    }
  }
}

Usage

from ocp_agent import OCPAgent

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

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