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

# Get all vms

> get all vms that user owns



## OpenAPI

````yaml /spec/Iaas.yaml get /vm
openapi: 3.0.1
info:
  title: Liara Iaas API Documentaion
  description: |-
    Manage your vms and its resources

    Parameters:
    - `teamID`: To access services in a team
  termsOfService: '#'
  contact:
    email: info@liara.ir
  version: 1.0.0
servers:
  - url: https://iaas-api.liara.ir
security:
  - jwt: []
tags:
  - name: VMs
    description: Manage your VMs
externalDocs:
  description: Find out more about Iaas
  url: http://liara.ir
paths:
  /vm:
    get:
      tags:
        - VMs
      summary: Get all vms
      description: get all vms that user owns
      operationId: getVMs
      responses:
        '200':
          description: Successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetVMsResponse'
        '401':
          description: Missing authentication
          content: {}
components:
  schemas:
    GetVMsResponse:
      type: object
      properties:
        vms:
          type: array
          items:
            type: object
            properties:
              _id:
                type: string
              plan:
                type: string
              OS:
                type: string
              state:
                type: string
                enum:
                  - CREATED
                  - CREATING
                  - FROZEN
                  - DELETED
                  - DELETING
              name:
                type: string
                description: vm name
              createdAt:
                type: string
              power:
                type: string
                enum:
                  - POWERED_ON
                  - POWERED_OFF
                  - SUSPENDED
  securitySchemes:
    jwt:
      type: http
      scheme: bearer
      bearerFormat: JWT

````