[BETA] Create a route

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://openapi-v2.exoscale.com/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
"Exoscale APIv2 MCP server": {
  "url": "https://openapi-v2.exoscale.com/mcp"
}
Close
POST /vpc/{vpc-id}/subnet/{subnet-id}/route

Path parameters

  • vpc-id string(uuid) Required
  • subnet-id string(uuid) Required
application/json

Body Required

  • name string

    Route name

    Minimum length is 1, maximum length is 255.

  • description string

    Route description

    Maximum length is 4096.

  • destination string Required

    Route destination CIDR

  • target string Required

    Route target

Responses

  • 200 application/json

    200

    Hide response attributes Show response attributes object
    • id string(uuid)

      Route ID

    • kind string

      Route kind

      Values are Subnet or Vpc.

    • description string

      Route description

      Maximum length is 4096.

    • destination string

      Route destination CIDR

    • target string

      Route target

POST /vpc/{vpc-id}/subnet/{subnet-id}/route
curl \
 --request POST 'https://api-ch-gva-2.exoscale.com/v2/vpc/{vpc-id}/subnet/{subnet-id}/route' \
 --header "Content-Type: application/json" \
 --data '{"name":"string","description":"string","destination":"string","target":"string"}'
Request examples
{
  "name": "string",
  "description": "string",
  "destination": "string",
  "target": "string"
}
Response examples (200)
{
  "id": "string",
  "kind": "Subnet",
  "description": "string",
  "destination": "string",
  "target": "string"
}