linode VPCs API

Create and manage Virtual Private Clouds for isolated network environments and subnets for Linode instances.

Operations 7

GET /vpcs List VPCs #
POST /vpcs Create a VPC #
GET /vpcs/{vpcId} Get a VPC #
PUT /vpcs/{vpcId} Update a VPC #
DELETE /vpcs/{vpcId} Delete a VPC #
GET /vpcs/{vpcId}/subnets List VPC subnets #
POST /vpcs/{vpcId}/subnets Create a VPC subnet #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/linode-vpcs-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

linode-vpcs-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Linode API v4 VP Cs API
  description: The Linode API v4 provides programmatic access to the full range of Akamai Connected Cloud (formerly Linode) products and services.
  version: 4.189.0
  contact:
    name: Linode Support
    url: https://www.linode.com/support/
  termsOfService: https://www.linode.com/legal-tos/
servers:
- url: https://api.linode.com/v4
  description: Production Server
security:
- personalAccessToken: []
- oauth: []
tags:
- name: VPCs
  description: Create and manage Virtual Private Clouds for isolated network environments and subnets for Linode instances.
paths:
  /vpcs:
    get:
      operationId: getVPCs
      summary: List VPCs
      description: Returns a paginated list of VPCs on your account.
      tags:
      - VPCs
      parameters:
      - $ref: '#/components/parameters/pageParam'
      - $ref: '#/components/parameters/pageSizeParam'
      responses:
        '200':
          description: VPCs retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedVPCList'
        '401':
          description: Unauthorized - invalid or missing authentication
    post:
      operationId: createVPC
      summary: Create a VPC
      description: Creates a new VPC in the specified region with optional subnets.
      tags:
      - VPCs
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/VPCRequest'
      responses:
        '200':
          description: VPC created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VPC'
        '400':
          description: Bad request - invalid parameters
        '401':
          description: Unauthorized - invalid or missing authentication
  /vpcs/{vpcId}:
    get:
      operationId: getVPC
      summary: Get a VPC
      description: Returns the details for a single VPC.
      tags:
      - VPCs
      parameters:
      - $ref: '#/components/parameters/vpcIdParam'
      responses:
        '200':
          description: VPC retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VPC'
        '401':
          description: Unauthorized - invalid or missing authentication
        '404':
          description: VPC not found
    put:
      operationId: updateVPC
      summary: Update a VPC
      description: Updates the label and description for a VPC.
      tags:
      - VPCs
      parameters:
      - $ref: '#/components/parameters/vpcIdParam'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/VPCUpdateRequest'
      responses:
        '200':
          description: VPC updated successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VPC'
        '400':
          description: Bad request - invalid parameters
        '401':
          description: Unauthorized - invalid or missing authentication
        '404':
          description: VPC not found
    delete:
      operationId: deleteVPC
      summary: Delete a VPC
      description: Deletes a VPC. The VPC must not have any active subnets with assigned Linode instances.
      tags:
      - VPCs
      parameters:
      - $ref: '#/components/parameters/vpcIdParam'
      responses:
        '200':
          description: VPC deleted successfully
        '401':
          description: Unauthorized - invalid or missing authentication
        '404':
          description: VPC not found
  /vpcs/{vpcId}/subnets:
    get:
      operationId: getVPCSubnets
      summary: List VPC subnets
      description: Returns a paginated list of subnets for a VPC.
      tags:
      - VPCs
      parameters:
      - $ref: '#/components/parameters/vpcIdParam'
      - $ref: '#/components/parameters/pageParam'
      - $ref: '#/components/parameters/pageSizeParam'
      responses:
        '200':
          description: VPC subnets retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedSubnetList'
        '401':
          description: Unauthorized - invalid or missing authentication
        '404':
          description: VPC not found
    post:
      operationId: createVPCSubnet
      summary: Create a VPC subnet
      description: Creates a new subnet in the specified VPC.
      tags:
      - VPCs
      parameters:
      - $ref: '#/components/parameters/vpcIdParam'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubnetRequest'
      responses:
        '200':
          description: VPC subnet created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Subnet'
        '400':
          description: Bad request - invalid parameters
        '401':
          description: Unauthorized - invalid or missing authentication
        '404':
          description: VPC not found
components:
  schemas:
    Subnet:
      type: object
      properties:
        id:
          type: integer
          description: The unique ID of this subnet.
        label:
          type: string
          description: The label for this subnet.
        ipv4:
          type: string
          description: The IPv4 CIDR range for this subnet.
        linodes:
          type: array
          items:
            type: object
            properties:
              id:
                type: integer
                description: The Linode ID.
              interfaces:
                type: array
                items:
                  type: object
                  properties:
                    id:
                      type: integer
                    active:
                      type: boolean
          description: Linodes assigned to this subnet.
        created:
          type: string
          format: date-time
          description: When this subnet was created.
        updated:
          type: string
          format: date-time
          description: When this subnet was last updated.
    VPCRequest:
      type: object
      required:
      - label
      - region
      properties:
        label:
          type: string
          minLength: 1
          maxLength: 64
          description: The label for the new VPC.
        description:
          type: string
          maxLength: 255
          description: A description for the new VPC.
        region:
          type: string
          description: The region for the new VPC.
        subnets:
          type: array
          items:
            $ref: '#/components/schemas/SubnetRequest'
          description: Initial subnets to create.
    PaginatedVPCList:
      allOf:
      - $ref: '#/components/schemas/Pagination'
      - type: object
        properties:
          data:
            type: array
            items:
              $ref: '#/components/schemas/VPC'
    VPCUpdateRequest:
      type: object
      properties:
        label:
          type: string
          minLength: 1
          maxLength: 64
          description: The new label for the VPC.
        description:
          type: string
          maxLength: 255
          description: The new description for the VPC.
    VPC:
      type: object
      properties:
        id:
          type: integer
          description: The unique ID of this VPC.
        label:
          type: string
          description: The label for this VPC.
        description:
          type: string
          description: A description for this VPC.
        region:
          type: string
          description: The region where this VPC is located.
        subnets:
          type: array
          items:
            $ref: '#/components/schemas/Subnet'
          description: The subnets in this VPC.
        created:
          type: string
          format: date-time
          description: When this VPC was created.
        updated:
          type: string
          format: date-time
          description: When this VPC was last updated.
    Pagination:
      type: object
      properties:
        page:
          type: integer
          description: The current page number.
        pages:
          type: integer
          description: The total number of pages.
        results:
          type: integer
          description: The total number of results.
    PaginatedSubnetList:
      allOf:
      - $ref: '#/components/schemas/Pagination'
      - type: object
        properties:
          data:
            type: array
            items:
              $ref: '#/components/schemas/Subnet'
    SubnetRequest:
      type: object
      required:
      - label
      - ipv4
      properties:
        label:
          type: string
          minLength: 1
          maxLength: 64
          description: The label for the subnet.
        ipv4:
          type: string
          description: The IPv4 CIDR range for the subnet.
  parameters:
    pageParam:
      name: page
      in: query
      schema:
        type: integer
        minimum: 1
        default: 1
      description: The page number to return.
    vpcIdParam:
      name: vpcId
      in: path
      required: true
      schema:
        type: integer
      description: The ID of the VPC.
    pageSizeParam:
      name: page_size
      in: query
      schema:
        type: integer
        minimum: 25
        maximum: 500
        default: 100
      description: The number of items per page.
  securitySchemes:
    personalAccessToken:
      type: http
      scheme: bearer
      description: A personal access token generated from the Linode Cloud Manager that grants access to the API based on the token's scopes.
    oauth:
      type: oauth2
      description: OAuth 2.0 authentication for third-party applications.
      flows:
        authorizationCode:
          authorizationUrl: https://login.linode.com/oauth/authorize
          tokenUrl: https://login.linode.com/oauth/token
          scopes:
            account:read_only: Read access to account information
            account:read_write: Read and write access to account information
            domains:read_only: Read access to domains
            domains:read_write: Read and write access to domains
            events:read_only: Read access to events
            events:read_write: Read and write access to events
            firewall:read_only: Read access to firewalls
            firewall:read_write: Read and write access to firewalls
            images:read_only: Read access to images
            images:read_write: Read and write access to images
            ips:read_only: Read access to IP addresses
            ips:read_write: Read and write access to IP addresses
            linodes:read_only: Read access to Linodes
            linodes:read_write: Read and write access to Linodes
            lke:read_only: Read access to LKE
            lke:read_write: Read and write access to LKE
            longview:read_only: Read access to Longview
            longview:read_write: Read and write access to Longview
            nodebalancers:read_only: Read access to NodeBalancers
            nodebalancers:read_write: Read and write access to NodeBalancers
            object_storage:read_only: Read access to Object Storage
            object_storage:read_write: Read and write access to Object Storage
            stackscripts:read_only: Read access to StackScripts
            stackscripts:read_write: Read and write access to StackScripts
            volumes:read_only: Read access to Volumes
            volumes:read_write: Read and write access to Volumes
            vpc:read_only: Read access to VPCs
            vpc:read_write: Read and write access to VPCs
externalDocs:
  description: Linode API v4 Documentation
  url: https://techdocs.akamai.com/linode-api/reference/api