{
 "openapi": "3.1.0",
 "info": {
  "title": "Gyro Public API",
  "version": "2.30.0",
  "summary": "Manage Gyro cloud servers, SSH keys and billing programmatically.",
  "x-summary-tr": "Gyro bulut sunucularınızı, SSH anahtarlarınızı ve faturalarınızı programla yönetin.",
  "contact": {
   "name": "Gyro Hosting",
   "url": "https://www.gyrohosting.com"
  },
  "license": {
   "name": "Proprietary",
   "identifier": "LicenseRef-Gyro-API-Terms"
  }
 },
 "servers": [
  {
   "url": "https://www.gyrohosting.com/api/v1/client",
   "description": "Production"
  }
 ],
 "paths": {
  "/cloud/images": {
   "get": {
    "tags": [
     "Catalog"
    ],
    "operationId": "listImages",
    "summary": "List operating system images",
    "x-summary-tr": "İşletim sistemi imajlarını listele",
    "x-scope": "cloud_read",
    "responses": {
     "200": {
      "description": "Images",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "data": {
           "type": "array",
           "items": {
            "$ref": "#/components/schemas/Image"
           }
          }
         }
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "422": {
      "$ref": "#/components/responses/Validation"
     }
    },
    "parameters": [
     {
      "name": "region",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string",
       "example": "tr-ist-1"
      },
      "description": "Only images offered in this region (e.g. tr-ist-1). Without it: the images of the global cloud catalogue (unchanged).",
      "x-description-tr": "Yalnız bu bölgede sunulan imajlar (ör. tr-ist-1). Verilmezse küresel bulut kataloğunun imajları (değişmedi)."
     },
     {
      "name": "product_id",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer"
      },
      "description": "Only the images offered on this product (implies its region).",
      "x-description-tr": "Yalnız bu üründe sunulan imajlar (ürünün bölgesini de seçer)."
     },
     {
      "name": "plan",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string",
       "example": "standart-2-4"
      },
      "description": "With region: only the images of this plan in that region.",
      "x-description-tr": "region ile: bu bölgedeki bu planın imajları."
     }
    ]
   }
  }
 },
 "components": {
  "responses": {
   "Validation": {
    "description": "Validation or business rule failure (`confirm_required`, `invalid_image`, `tool_action_failed` ...)",
    "content": {
     "application/json": {
      "schema": {
       "$ref": "#/components/schemas/Error"
      }
     }
    }
   },
   "Unauthorized": {
    "description": "Missing, invalid or revoked key",
    "content": {
     "application/json": {
      "schema": {
       "$ref": "#/components/schemas/Error"
      }
     }
    }
   }
  },
  "schemas": {
   "Error": {
    "type": "object",
    "required": [
     "error"
    ],
    "properties": {
     "error": {
      "type": "object",
      "required": [
       "code",
       "message"
      ],
      "properties": {
       "code": {
        "type": "string",
        "example": "server_not_found"
       },
       "message": {
        "type": "string"
       },
       "details": {
        "type": "object",
        "additionalProperties": true,
        "description": "Extra data. Limit refusals add the LimitHint fields (`limit_exceeded: true`, `limit_key`, `limit`, `current`, `how_to_increase`, `support_ticket`, `hint`): account limits are raised with a support ticket. Validation errors (length, format) never carry the limit hint.",
        "x-description-tr": "Ek veri. Sınır retlerinde LimitHint alanları gelir: hesap sınırları destek talebiyle artırılır. Doğrulama hataları (uzunluk, biçim) sınır ipucu taşımaz."
       }
      }
     }
    }
   },
   "Image": {
    "type": "object",
    "properties": {
     "slug": {
      "type": "string",
      "example": "debian-12"
     },
     "name": {
      "type": "string",
      "example": "Debian 12"
     },
     "os_flavor": {
      "type": "string",
      "example": "debian"
     }
    }
   }
  }
 },
 "security": [
  {
   "bearerAuth": []
  }
 ]
}