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

# Get server logs

> Get provisioning and status logs for a server



## OpenAPI

````yaml api-docs/archived/atlas.json get /v1/regions/{region}/infrastructure/servers/{id}/logs
openapi: 3.1.1
info:
  title: Infrastructure API
  version: 1.0.0
  description: >-
    Infrastructure API for the k0rdent Enterprise platform. Provides bare-metal
    server lifecycle management, inventory tracking, bulk enrollment, persona
    profiles, and network switch management.
  contact:
    name: k0rdent Enterprise API Support
    email: api-support@example.com
    url: https://support.example.com
  license:
    name: Proprietary
    url: https://k0rdent.example.com/license
servers:
  - url: ''
    description: For documentation only
  - url: https://api.internal.example.com
    description: Atlas API Base URL
  - url: https://api.example.com
    description: Arc API Base URL
  - url: http://localhost:{port}
    description: Local Development
    variables:
      port:
        default: '4010'
        description: Infrastructure service port
security: []
paths:
  /v1/regions/{region}/infrastructure/servers/{id}/logs:
    get:
      tags:
        - Servers
      summary: Get server logs
      description: Get provisioning and status logs for a server
      operationId: getServerLogs
      parameters:
        - name: region
          in: path
          required: true
          schema:
            type: string
          description: Region identifier
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Server identifier
        - name: level
          in: query
          schema:
            type: string
            enum:
              - info
              - warning
              - error
          description: Filter by log level
        - name: limit
          in: query
          schema:
            type: number
            default: 100
          description: Maximum results
      responses:
        '200':
          description: Server logs
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - true
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/ServerLog'
components:
  schemas:
    ServerLog:
      type: object
      description: Server provisioning/status log entry
      properties:
        timestamp:
          type: string
          format: date-time
        level:
          type: string
          enum:
            - info
            - warning
            - error
        source:
          type: string
          description: Log source (e.g., provisioner, health-check, bmc)
        message:
          type: string
        metadata:
          type: object
          nullable: true
          additionalProperties: true
      required:
        - timestamp
        - level
        - source
        - message

````