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

# Power virtual machine

> PowerVirtualMachine issues a power command against a VirtualMachine by reconciling it into a PowerOperation CR (created with generateName, since that CR's spec is immutable too).



## OpenAPI

````yaml /api-reference/compute-public.v1.openapi.json post /compute/v1/virtualmachines/{name}/power
openapi: 3.0.3
info:
  title: Mount Thor Compute — friendly public compute API
  description: >-
    ComputeService is the friendly public compute API: lifecycle (create / get /
    list / delete / power) for VirtualMachines and BareMetalMachines expressed
    in high-level terms, plus the catalog/discovery surface that supplies the
    valid images and machine classes a caller may pick from. There is
    deliberately no Update RPC: the CR spec is whole-spec CEL-immutable, so an
    "edit" is delete + recreate.
  version: 0.1.0
servers: []
security: []
tags:
  - name: ComputeService
paths:
  /compute/v1/virtualmachines/{name}/power:
    post:
      tags:
        - ComputeService
      summary: Power virtual machine
      description: >-
        PowerVirtualMachine issues a power command against a VirtualMachine by
        reconciling it into a PowerOperation CR (created with generateName,
        since that CR's spec is immutable too).
      operationId: ComputeService_PowerVirtualMachine
      parameters:
        - name: name
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PowerVirtualMachineRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PowerVirtualMachineResponse'
components:
  schemas:
    PowerVirtualMachineRequest:
      type: object
      properties:
        operation:
          enum:
            - POWER_OPERATION_UNSPECIFIED
            - POWER_OPERATION_ON
            - POWER_OPERATION_OFF
            - POWER_OPERATION_REBOOT
            - POWER_OPERATION_SUSPEND
            - POWER_OPERATION_RESUME
            - POWER_OPERATION_KILL
          type: string
          format: enum
    PowerVirtualMachineResponse:
      type: object
      properties:
        powerOperationId:
          type: string
          description: power_operation_id is the generated name of the PowerOperation CR.

````