{
 "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/billing/container-sizes": {
   "get": {
    "operationId": "getContainerSizes",
    "tags": [
     "Billing"
    ],
    "summary": "Serverless container sizes (vCPU / memory pairs) and prices",
    "x-summary-tr": "Sunucusuz kapsayıcı boyutları (vCPU / bellek) ve fiyatları",
    "description": "Gyro Containers Serverless bills each running container copy per hour: `cpu_m/1000` x vCPU-hour + `memory_mi/1024` x GB-hour, from the prepaid balance, no monthly cap. Only the `cpu_m` / `memory_mi` pairs listed here are accepted on `POST /cloud/containers/{id}/services` of a serverless environment (422 `invalid_cpu` / `invalid_memory`). 404 `serverless_not_available` when the product is not offered.",
    "x-description-tr": "Gyro Kapsayıcı Sunucusuz her çalışan kopyayı saatlik ücretlendirir: `cpu_m/1000` x vCPU-saat + `memory_mi/1024` x GB-saat, ön ödemeli bakiyeden, aylık tavan yok. Sunucusuz ortamda `POST /cloud/containers/{id}/services` yalnız burada listelenen `cpu_m` / `memory_mi` çiftlerini kabul eder (422 `invalid_cpu` / `invalid_memory`).",
    "x-scope": "billing_read",
    "x-provided-by": "GyroKredi",
    "x-cli": {
     "command": "container sizes"
    },
    "responses": {
     "200": {
      "description": "Sizes",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "data": {
           "$ref": "#/components/schemas/ContainerSizes"
          }
         }
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "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"
      }
     }
    }
   },
   "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."
       }
      }
     }
    }
   },
   "ContainerSizes": {
    "type": "object",
    "properties": {
     "product_id": {
      "type": "integer"
     },
     "plan": {
      "type": [
       "string",
       "null"
      ],
      "example": "ecs-sunucusuz"
     },
     "billing": {
      "type": "string",
      "example": "prepaid"
     },
     "currency": {
      "type": "string",
      "example": "EUR"
     },
     "vcpu_hour_eur": {
      "type": "number",
      "example": 0.0212
     },
     "gb_hour_eur": {
      "type": "number",
      "example": 0.0017
     },
     "vcpu_hour_list_eur": {
      "type": "number"
     },
     "gb_hour_list_eur": {
      "type": "number"
     },
     "environment_limit": {
      "type": "object",
      "properties": {
       "vcpu": {
        "type": "integer"
       },
       "memory_gb": {
        "type": "integer"
       }
      },
      "description": "Default limit of containers running at once per environment (account limits may differ)"
     },
     "eur_rate": {
      "type": "number"
     },
     "local_currency": {
      "type": "string"
     },
     "sizes": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "cpu_m": {
         "type": "integer"
        },
        "vcpu": {
         "type": "number"
        },
        "memory_mi": {
         "type": "array",
         "items": {
          "type": "integer"
         }
        },
        "hourly_eur_min": {
         "type": "number"
        },
        "hourly_eur_max": {
         "type": "number"
        },
        "hourly_min": {
         "type": "object",
         "properties": {
          "amount": {
           "type": "number"
          },
          "currency": {
           "type": "string"
          }
         }
        },
        "hourly_max": {
         "type": "object",
         "properties": {
          "amount": {
           "type": "number"
          },
          "currency": {
           "type": "string"
          }
         }
        }
       }
      }
     },
     "note": {
      "type": "string"
     }
    }
   }
  }
 },
 "security": [
  {
   "bearerAuth": []
  }
 ]
}