> ## 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.

# Server action

> Perform an action on a single server: provision, validate, start, stop, restart, or decommission



## OpenAPI

````yaml api-docs/archived/atlas.json post /v1/regions/{region}/infrastructure/servers/{id}/actions
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}/actions:
    post:
      tags:
        - Servers
      summary: Server action
      description: >-
        Perform an action on a single server: provision, validate, start, stop,
        restart, or decommission
      operationId: serverAction
      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
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ServerAction'
      responses:
        '200':
          description: Action initiated
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - true
                  data:
                    type: object
                    properties:
                      action:
                        type: string
                      serverId:
                        type: string
                      status:
                        type: string
                        enum:
                          - accepted
                          - rejected
                      reason:
                        type: string
                        nullable: true
components:
  schemas:
    ServerAction:
      type: object
      description: Action to perform on a server
      properties:
        action:
          type: string
          enum:
            - provision
            - validate
            - start
            - stop
            - restart
            - decommission
          description: Action to perform
        params:
          type: object
          nullable: true
          additionalProperties: true
          description: Action-specific parameters
      required:
        - action

````