{
 "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/load-balancers/{id}": {
   "get": {
    "tags": [
     "Load balancers"
    ],
    "operationId": "getLoadBalancer",
    "summary": "Get a load balancer",
    "x-summary-tr": "Yük dengeleyiciyi getir",
    "x-scope": "cloud_read",
    "x-cli": {
     "command": "lb get"
    },
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Load balancer",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "data": {
           "$ref": "#/components/schemas/LoadBalancer"
          }
         }
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "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"
      }
     }
    }
   },
   "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."
       }
      }
     }
    }
   },
   "LoadBalancer": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer"
     },
     "name": {
      "type": "string"
     },
     "status": {
      "type": "string"
     },
     "product_id": {
      "type": "integer"
     },
     "cycle": {
      "type": "string"
     },
     "price": {
      "type": "object",
      "properties": {
       "amount": {
        "type": "number"
       },
       "currency": {
        "type": [
         "string",
         "null"
        ]
       }
      }
     },
     "due_date": {
      "type": [
       "string",
       "null"
      ]
     },
     "nickname": {
      "type": [
       "string",
       "null"
      ]
     },
     "load_balancer": {
      "type": [
       "object",
       "null"
      ],
      "description": "Live state (detail only)",
      "properties": {
       "name": {
        "type": "string"
       },
       "status": {
        "type": "string",
        "enum": [
         "running",
         "stopped",
         "suspended",
         "deleting"
        ]
       },
       "size": {
        "type": [
         "string",
         "null"
        ],
        "enum": [
         "small",
         "medium",
         "large",
         null
        ]
       },
       "region": {
        "type": "string"
       },
       "location": {
        "type": "string"
       },
       "ipv4": {
        "type": [
         "string",
         "null"
        ]
       },
       "ipv6": {
        "type": [
         "string",
         "null"
        ]
       },
       "algorithm": {
        "type": "string"
       },
       "limits": {
        "type": "object",
        "additionalProperties": true
       },
       "traffic": {
        "type": "object",
        "additionalProperties": true
       },
       "services": {
        "type": "array",
        "items": {
         "type": "object",
         "additionalProperties": true
        }
       },
       "targets": {
        "type": "array",
        "items": {
         "type": "object",
         "additionalProperties": true
        }
       },
       "certificates": {
        "type": "array",
        "items": {
         "type": "object",
         "additionalProperties": true
        }
       },
       "private_network": {
        "type": "boolean"
       }
      }
     }
    }
   }
  }
 },
 "security": [
  {
   "bearerAuth": []
  }
 ]
}