> ## Documentation Index
> Fetch the complete documentation index at: https://altostrat.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# List subnets for a site

> Retrieves a list of available subnets for a specific site, which is useful when configuring site-to-site peers.



## OpenAPI

````yaml /api/en/managed-vpn.yaml get /vpn/site/{siteId}/subnets
openapi: 3.0.3
info:
  title: Altostrat Managed VPN API
  version: 1.0.0
  description: >-
    Manage SDX managed VPN instances, peers, site subnets, regions, and
    user-facing client configuration through the public `/vpn` gateway path.
servers:
  - url: https://v1.api.altostrat.io
    description: Altostrat Production API
security: []
tags:
  - name: Instances
    description: Manage VPN instances, which are the core server deployments.
  - name: Peers
    description: Manage peers, which are the clients and sites connecting to an instance.
  - name: Utilities
    description: Helper endpoints for retrieving supplementary data like server regions.
  - name: Client Configuration
    description: Retrieve user-facing VPN client configuration bundles.
paths:
  /vpn/site/{siteId}/subnets:
    get:
      tags:
        - Utilities
      summary: List subnets for a site
      description: >-
        Retrieves a list of available subnets for a specific site, which is
        useful when configuring site-to-site peers.
      operationId: listSiteSubnets
      parameters:
        - name: siteId
          in: path
          required: true
          description: The unique identifier (UUID) for the site.
          schema:
            type: string
            format: uuid
            example: c3d5e2a0-88c9-4f7f-9f7b-6a1e2b4c5d6e
      responses:
        '200':
          description: A list of available subnets for the site.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/SiteSubnet'
        '401':
          description: Unauthorized.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: The specified site was not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - BearerAuth:
            - vpn:view
components:
  schemas:
    SiteSubnet:
      type: object
      properties:
        route:
          type: string
          description: The subnet in CIDR notation.
          example: 192.168.50.0/24
        type:
          type: string
          description: The type of IP address range.
          example: rfc1918
        interface:
          type: string
          description: >-
            The network interface on the site's router associated with this
            subnet.
          example: bridge
    ErrorResponse:
      type: object
      properties:
        type:
          type: string
          description: A broad category for the error (e.g., 'invalid_request_error').
          example: invalid_request_error
        code:
          type: string
          description: A short, unique string identifying the specific error.
          example: parameter_missing
        message:
          type: string
          description: A human-readable description of what went wrong.
          example: The 'name' parameter is required for this request.
        doc_url:
          type: string
          description: >-
            A direct link to the documentation page for this specific error
            code.
          example: https://docs.altostrat.io/errors/parameter_missing
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: 'Enter your bearer token in the format: Bearer {token}'

````