[BETA] Retrieve Subnet details

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
GET /vpc/{vpc-id}/subnet/{id}

Path parameters

  • vpc-id string(uuid) Required
  • id string(uuid) Required

Responses

  • 200 application/json

    200

    Hide response attributes Show response attributes object
    • description string

      Subnet description

      Maximum length is 4096.

    • labels object

      Resource labels

      Hide labels attribute Show labels attribute object
      • * string Additional properties
    • name string

      Subnet name

      Minimum length is 1, maximum length is 255.

    • ipv4-block string

      Subnet ipv4 CIDR

    • addressfamily string

      Subnet address family

      Values are inet4 or dual.

    • address-space string

      Subnet address space

      Value is private.

    • instances array[object]

      Instances attached to the subnet

      Hide instances attributes Show instances attributes object

      Subnet attachements

      • id string(uuid)

        Instance uuid

      • ipv4 string(ipv4)

        Instance Ipv4 address

    • id string(uuid)

      Subnet ID

    • created-at string(date-time)

      Subnet creation date

GET /vpc/{vpc-id}/subnet/{id}
curl \
 --request GET 'https://api-ch-gva-2.exoscale.com/v2/vpc/{vpc-id}/subnet/{id}'
Response examples (200)
{
  "description": "string",
  "labels": {
    "additionalProperty1": "string",
    "additionalProperty2": "string"
  },
  "name": "string",
  "ipv4-block": "string",
  "addressfamily": "inet4",
  "address-space": "private",
  "instances": [
    {
      "id": "string",
      "ipv4": "string"
    }
  ],
  "id": "string",
  "created-at": "2026-05-04T09:42:00Z"
}