{
 "openapi": "3.1.0",
 "info": {
  "title": "Gyro Public API",
  "version": "2.44.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/backup-spaces/plans": {
   "get": {
    "tags": [
     "Backup space"
    ],
    "operationId": "listBackupSpacePlans",
    "summary": "List backup space plans",
    "x-summary-tr": "Yedekleme alanı paketlerini listele",
    "x-scope": "cloud_read",
    "x-cli": {
     "command": "backup-space plans",
     "confirm": false
    },
    "description": "Orderable sizes (50 GB to 1 TB) with prices per billing cycle (fixed EUR, VAT excluded; `list_amount` = strike-through list price) and `servers`: the servers of the account a space can be bound to. Empty `plans` = not orderable for this account yet. `available: false` = no capacity right now.",
    "x-description-tr": "Sipariş edilebilir boyutlar (50 GB - 1 TB), dönem başına fiyat (sabit EUR, KDV hariç; `list_amount` = üstü çizili liste fiyatı) ve `servers`: alanın bağlanabileceği hesap sunucuları. `plans` boşsa bu hesap henüz sipariş veremez. `available: false` = şu an kapasite yok.",
    "parameters": [],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "data": {
           "type": "object",
           "properties": {
            "plans": {
             "type": "array",
             "items": {
              "$ref": "#/components/schemas/BackupSpacePlan"
             }
            },
            "servers": {
             "type": "array",
             "items": {
              "type": "object",
              "properties": {
               "server_id": {
                "type": "integer"
               },
               "name": {
                "type": "string"
               },
               "ip": {
                "type": "string",
                "example": "203.0.113.10"
               }
              }
             }
            }
           }
          }
         }
        }
       }
      }
     },
     "403": {
      "$ref": "#/components/responses/Forbidden"
     },
     "404": {
      "$ref": "#/components/responses/NotFound"
     }
    }
   }
  }
 },
 "components": {
  "responses": {
   "NotFound": {
    "description": "Not found — also returned for objects owned by someone else",
    "content": {
     "application/json": {
      "schema": {
       "$ref": "#/components/schemas/Error"
      }
     }
    }
   },
   "Forbidden": {
    "description": "Key lacks the scope, IP not allowed, or feature disabled",
    "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."
       }
      }
     }
    }
   },
   "BackupSpacePlan": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "description": "product id"
     },
     "plan": {
      "type": "string",
      "example": "100gb",
      "description": "plan name for POST /cloud/backup-spaces: 50gb | 100gb | 250gb | 500gb | 1tb"
     },
     "name": {
      "type": "string",
      "example": "Gyro Yedekleme Alanı 100 GB"
     },
     "region": {
      "type": "string",
      "example": "tr-ist-1"
     },
     "protocol": {
      "type": "string",
      "const": "sftp"
     },
     "size_gb": {
      "type": "integer",
      "description": "hard quota in GB (writes are refused when full)"
     },
     "available": {
      "type": "boolean",
      "description": "false = not orderable right now (capacity)"
     },
     "prices": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "cycle": {
         "type": "string",
         "enum": [
          "monthly",
          "quarterly",
          "semiannually",
          "annually"
         ]
        },
        "amount": {
         "type": "number"
        },
        "list_amount": {
         "type": [
          "number",
          "null"
         ],
         "description": "list price before the discount (strike-through)"
        },
        "currency": {
         "type": "string",
         "example": "EUR"
        }
       }
      }
     },
     "tax_included": {
      "type": "boolean",
      "const": false
     }
    }
   }
  }
 },
 "security": [
  {
   "bearerAuth": []
  }
 ]
}