{
 "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/servers/{id}/disks": {
   "get": {
    "tags": [
     "Servers"
    ],
    "operationId": "listServerDisks",
    "summary": "List the server's additional disks",
    "x-summary-tr": "Sunucunun ek diskleri",
    "x-scope": "cloud_read",
    "x-cli": {
     "command": "server disk list"
    },
    "description": "Two classes: `ssd` (fast) and `hdd` (large storage for backups, archives and media; do not run databases on it). Additional disks are billed per GB hourly from the prepaid balance (`classes.<class>.per_gb_monthly_eur`, monthly / 672), from the hour they are added until they are removed; each disk at least `pricing.minimum_hours`. Up to 4 disks per server and `classes.<class>.max_gb` GB per class; sizes are multiples of `step_gb`. A new disk is empty (partition, format and mount it inside the server). Reinstalling the server removes the additional disks. ",
    "x-description-tr": "İki sınıf: `ssd` (hızlı) ve `hdd` (yedek, arşiv, medya için büyük depolama; veritabanı için kullanmayın). Ek diskler GB başına ön ödemeli bakiyeden saatlik ücretlendirilir (`classes.<sınıf>.per_gb_monthly_eur`, aylık / 672); eklendiği saatten silindiği saate kadar, her disk en az `pricing.minimum_hours` saat. Sunucu başına en çok 4 disk ve sınıf başına `classes.<sınıf>.max_gb` GB; boyutlar `step_gb` katları. Yeni disk boştur (sunucu içinde bölümlendirip biçimlendirin ve bağlayın). Yeniden kurulum ek diskleri siler. ",
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer"
      },
      "description": "Server id (tr-ist-1)"
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "data": {
           "$ref": "#/components/schemas/ServerDisks"
          }
         }
        }
       }
      }
     },
     "404": {
      "$ref": "#/components/responses/NotFound"
     },
     "409": {
      "description": "not_actionable (suspended / busy / snapshots exist)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "422": {
      "$ref": "#/components/responses/Validation"
     },
     "501": {
      "description": "not_supported (not a tr-ist-1 Gyro Compute server)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  }
 },
 "components": {
  "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."
       }
      }
     }
    }
   },
   "ServerDisks": {
    "type": "object",
    "properties": {
     "server_id": {
      "type": "integer"
     },
     "disks": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "id": {
         "type": "integer",
         "description": "disk id (stable while the disk exists)"
        },
        "name": {
         "type": "string"
        },
        "class": {
         "type": "string",
         "enum": [
          "ssd",
          "hdd"
         ],
         "description": "ssd = fast SSD, hdd = large storage (backups, archives, media)"
        },
        "size_gb": {
         "type": "integer"
        },
        "monthly_eur": {
         "type": "number"
        }
       }
      }
     },
     "count": {
      "type": "integer"
     },
     "max_disks": {
      "type": "integer",
      "description": "at most 4 additional disks per server"
     },
     "used_gb": {
      "type": "integer"
     },
     "max_gb": {
      "type": "integer",
      "description": "per-server allowance (GB)"
     },
     "available_gb": {
      "type": "integer"
     },
     "step_gb": {
      "type": "integer",
      "description": "sizes are multiples of this (default 10)"
     },
     "on_sale": {
      "type": "boolean",
      "description": "SSD class on sale"
     },
     "classes": {
      "type": "object",
      "description": "per class allowance and price",
      "additionalProperties": {
       "type": "object",
       "properties": {
        "used_gb": {
         "type": "integer"
        },
        "max_gb": {
         "type": "integer"
        },
        "available_gb": {
         "type": "integer"
        },
        "on_sale": {
         "type": "boolean"
        },
        "per_gb_monthly_eur": {
         "type": "number"
        },
        "per_gb_hourly_eur": {
         "type": "number"
        }
       }
      }
     },
     "pricing": {
      "type": "object",
      "properties": {
       "billing": {
        "type": "string"
       },
       "per_gb_monthly_eur": {
        "type": "number"
       },
       "per_gb_hourly_eur": {
        "type": "number"
       },
       "hdd_per_gb_monthly_eur": {
        "type": "number"
       },
       "minimum_hours": {
        "type": "integer"
       }
      }
     },
     "removed": {
      "type": "integer"
     }
    }
   }
  },
  "responses": {
   "Validation": {
    "description": "Validation or business rule failure (`confirm_required`, `invalid_image`, `tool_action_failed` ...)",
    "content": {
     "application/json": {
      "schema": {
       "$ref": "#/components/schemas/Error"
      }
     }
    }
   },
   "NotFound": {
    "description": "Not found — also returned for objects owned by someone else",
    "content": {
     "application/json": {
      "schema": {
       "$ref": "#/components/schemas/Error"
      }
     }
    }
   }
  }
 },
 "security": [
  {
   "bearerAuth": []
  }
 ]
}