[BETA] Update a Subnet

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

Path parameters

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

Body Required

  • name string | null

    Subnet name

    Minimum length is 1, maximum length is 255.

  • description string | null

    Subnet description

    Maximum length is 4096.

  • labels object
    Hide labels attribute Show labels attribute object
    • * string Additional properties
  • ipv4-block string | null

    Subnet CIDR

Responses

  • 200 application/json

    200

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

      Subnet ID

    • name string

      Subnet name

      Minimum length is 1, maximum length is 255.

    • description string

      Subnet description

      Maximum length is 4096.

    • created-at string(date-time)

      Subnet creation date

    • addressfamily string

      Subnet address family

      Values are inet4 or dual.

    • address-space string

      Subnet address space

      Value is private.

    • ipv4-block string

      Subnet ipv4 CIDR

    • labels object
      Hide labels attribute Show labels attribute object
      • * string Additional properties
PUT /vpc/{vpc-id}/subnet/{id}
curl \
 --request PUT 'https://api-ch-gva-2.exoscale.com/v2/vpc/{vpc-id}/subnet/{id}' \
 --header "Content-Type: application/json" \
 --data '{"name":"string","description":"string","labels":{"additionalProperty1":"string","additionalProperty2":"string"},"ipv4-block":"string"}'
Request examples
{
  "name": "string",
  "description": "string",
  "labels": {
    "additionalProperty1": "string",
    "additionalProperty2": "string"
  },
  "ipv4-block": "string"
}
Response examples (200)
{
  "id": "string",
  "name": "string",
  "description": "string",
  "created-at": "2026-05-04T09:42:00Z",
  "addressfamily": "inet4",
  "address-space": "private",
  "ipv4-block": "string",
  "labels": {
    "additionalProperty1": "string",
    "additionalProperty2": "string"
  }
}