> ## 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 Router Interfaces for Failover

> Retrieves available physical and logical interfaces from the router at the specified site for WAN failover configuration.



## OpenAPI

````yaml /api/en/wan-failover.yaml get /failover/{site_id}/interfaces
openapi: 3.0.3
info:
  title: Altostrat WAN Failover API
  version: 1.0.0
  description: >-
    Manage SDX WAN failover service state and WAN tunnel configuration through
    the portal-facing `/failover` and `/wan` gateway paths.
servers:
  - url: https://v1.api.altostrat.io
security:
  - BearerAuth: []
tags:
  - name: Failover Service
    description: Activate and manage the WAN Failover service for a specific site.
  - name: WAN Tunnels
    description: >-
      Manage individual WAN connections (tunnels) for a site's failover
      configuration.
  - name: Helper Endpoints
    description: >-
      Utility endpoints for discovering router information to aid in
      configuration.
paths:
  /failover/{site_id}/interfaces:
    get:
      tags:
        - Helper Endpoints
      summary: List Router Interfaces for Failover
      description: >-
        Retrieves available physical and logical interfaces from the router at
        the specified site for WAN failover configuration.
      operationId: getFailoverInterfaces
      parameters:
        - $ref: '#/components/parameters/SiteId'
      responses:
        '200':
          description: A list of available router interfaces.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/RouterInterface'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  parameters:
    SiteId:
      name: site_id
      in: path
      required: true
      description: The unique identifier for the site.
      schema:
        type: string
        format: uuid
        example: 9c69345c-8d39-4786-9f17-8153c988c89a
  schemas:
    RouterInterface:
      type: object
      properties:
        name:
          type: string
          description: The name of the interface.
          example: ether1-wan
        type:
          type: string
          description: The type of the interface.
          example: ether
        comment:
          type: string
          description: A user-defined comment on the interface.
          nullable: true
          example: Primary ISP Connection
        mac_address:
          type: string
          description: The MAC address of the interface.
          example: 00:0C:29:12:34:56
    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_invalid
        message:
          type: string
          description: A human-readable description of what went wrong.
          example: The value for 'type' must be one of the supported connection types.
        doc_url:
          type: string
          description: >-
            A direct link to the documentation page for this specific error
            code.
          example: https://docs.altostrat.io/errors/parameter_invalid
  responses:
    Unauthorized:
      description: Unauthorized - The API key is missing or invalid.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    NotFound:
      description: >-
        Not Found - The requested resource (e.g., site_id, tunnel_id) does not
        exist.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: 'Enter your JWT in the format: Bearer <token>'

````