{
  "openapi": "3.0.3",
  "info": {
    "title": "Chabokan-OpenAPI",
    "description": "Use Chabokan-API to manage your services and accounts\n\n_To use the api you need an API token, Get your API Token [here](https://hub.chabokan.net/fa/api-token/).\n    This token should be sent as `Authorization` header with all requests to the api endpoints._\n    \n\n_Hint: input token like this:\nToken 4aa88a470b6a32f69f5ffcfdc943ffa95ed30q1_\n\nSome useful links:\n- [Chabokan Documents](https://docs.chabokan.net/)\n- [Chabokan Panel](https://hub.chabokan.net/fa/?)",
    "termsOfService": "http://chabokan.net/terms/",
    "contact": {
      "email": "info@chabokan.net"
    },
    "version": "1.2.2"
  },
  "externalDocs": {
    "description": "Find out more about Chabok-OpenAPI",
    "url": "http://chabokan.net"
  },
  "servers": [
    {
      "url": "https://hub.chabokan.net/fa/api"
    },{
      "url": "https://hub.cloudiva.net/fa/api"
    }
  ],
  "tags": [
    {
      "name": "Service",
      "description": "Manage your service"
    },
    {
      "name": "Account",
      "description": "Manage your account"
    },
    {
      "name": "Wallet",
      "description": "Manage your wallet"
    },
    {
      "name": "Cloudserver",
      "description": "Manage your cloud servers"
    },
    {
      "name": "Coupon",
      "description": "Manage your coupons"
    }
  ],
  "paths": {
    "/v1/cloudservers/cloud/": {
      "get": {
        "tags": [
          "Cloudserver"
        ],
        "summary": "Get Cloud Providers Info",
        "description": "Get Cloud Providers Info",
        "responses": {
          "200": {
            "description": "Successful operation"
          },
          "400": {
            "description": "Invalid request"
          },
          "401": {
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "Authorization": []
          }
        ]
      }
    },
    "/v1/cloudservers/locations/": {
      "post": {
        "tags": [
          "Cloudserver"
        ],
        "summary": "Get Cloudserver Locations",
        "description": "Get the locations for create new cloud server",
        "requestBody": {
          "description": "Cloudserver location data",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetCloudserverLocation"
              }
            },
            "application/xml": {
              "schema": {
                "$ref": "#/components/schemas/SetCloudserverLocation"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/SetCloudserverLocation"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful operation"
          },
          "400": {
            "description": "Invalid input"
          },
          "401": {
            "description": "Unauthorized"
          },
          "422": {
            "description": "Validation exception"
          }
        },
        "security": [
          {
            "Authorization": []
          }
        ]
      }
    },
    "/v1/cloudservers/plans/": {
      "post": {
        "tags": [
          "Cloudserver"
        ],
        "summary": "Get Cloudserver Plan",
        "description": "Get the plans for create new cloud server",
        "requestBody": {
          "description": "Cloudserver plan data",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetCloudserverPlan"
              }
            },
            "application/xml": {
              "schema": {
                "$ref": "#/components/schemas/SetCloudserverPlan"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/SetCloudserverPlan"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful operation"
          },
          "400": {
            "description": "Invalid input"
          },
          "401": {
            "description": "Unauthorized"
          },
          "422": {
            "description": "Validation exception"
          }
        },
        "security": [
          {
            "Authorization": []
          }
        ]
      }
    },
    "/v1/cloudservers/os/": {
      "post": {
        "tags": [
          "Cloudserver"
        ],
        "summary": "Get Cloudserver OS",
        "description": "Get the operating system for create new cloud server",
        "requestBody": {
          "description": "Cloudserver OS data",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetCloudserverOS"
              }
            },
            "application/xml": {
              "schema": {
                "$ref": "#/components/schemas/SetCloudserverOS"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/SetCloudserverOS"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful operation"
          },
          "400": {
            "description": "Invalid input"
          },
          "401": {
            "description": "Unauthorized"
          },
          "422": {
            "description": "Validation exception"
          }
        },
        "security": [
          {
            "Authorization": []
          }
        ]
      }
    },
    "/v1/cloudservers/os/versions/": {
      "post": {
        "tags": [
          "Cloudserver"
        ],
        "summary": "Get Cloudserver OS Version",
        "description": "Get the operating system version for create new cloud server",
        "requestBody": {
          "description": "Cloudserver OS version data",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetCloudserverOSVersion"
              }
            },
            "application/xml": {
              "schema": {
                "$ref": "#/components/schemas/SetCloudserverOSVersion"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/SetCloudserverOSVersion"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful operation"
          },
          "400": {
            "description": "Invalid input"
          },
          "401": {
            "description": "Unauthorized"
          },
          "422": {
            "description": "Validation exception"
          }
        },
        "security": [
          {
            "Authorization": []
          }
        ]
      }
    },
    "/v1/cloudservers/name-check/": {
      "post": {
        "tags": [
          "Cloudserver"
        ],
        "summary": "Check Hostname",
        "description": "Check hostname for create cloudserver",
        "requestBody": {
          "description": "Hostname data",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CheckVPSName"
              }
            },
            "application/xml": {
              "schema": {
                "$ref": "#/components/schemas/CheckVPSName"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/CheckVPSName"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful operation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CheckVPSName"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/CheckVPSName"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input"
          },
          "401": {
            "description": "Unauthorized"
          },
          "422": {
            "description": "Validation exception"
          }
        },
        "security": [
          {
            "Authorization": []
          }
        ]
      }
    },
    "/v1/cloudservers/create/": {
      "post": {
        "tags": [
          "Cloudserver"
        ],
        "summary": "Create Cloudserver",
        "description": "Create a new cloud server",
        "requestBody": {
          "description": "Cloudserver creation data",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCloudserver"
              }
            },
            "application/xml": {
              "schema": {
                "$ref": "#/components/schemas/CreateCloudserver"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/CreateCloudserver"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful operation"
          },
          "400": {
            "description": "Invalid input"
          },
          "401": {
            "description": "Unauthorized"
          },
          "422": {
            "description": "Validation exception"
          }
        },
        "security": [
          {
            "Authorization": []
          }
        ]
      }
    },
    "/v1/cloudservers/": {
      "get": {
        "tags": [
          "Cloudserver"
        ],
        "summary": "List Cloudservers",
        "description": "Get all of your cloudservers",
        "responses": {
          "200": {
            "description": "Successful operation"
          },
          "400": {
            "description": "Invalid request"
          },
          "401": {
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "Authorization": []
          }
        ]
      }
    },
    "/v1/cloudservers/stop/": {
      "post": {
        "tags": [
          "Cloudserver"
        ],
        "summary": "Turn Off Cloudserver",
        "description": "Turn off your cloudserver",
        "requestBody": {
          "description": "cloudserver turn off data",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TurnOffCloudserver"
              }
            },
            "application/xml": {
              "schema": {
                "$ref": "#/components/schemas/TurnOffCloudserver"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/TurnOffCloudserver"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful operation"
          },
          "400": {
            "description": "Invalid input"
          },
          "401": {
            "description": "Unauthorized"
          },
          "422": {
            "description": "Validation exception"
          }
        },
        "security": [
          {
            "Authorization": []
          }
        ]
      }
    },
    "/v1/cloudservers/start/": {
      "post": {
        "tags": [
          "Cloudserver"
        ],
        "summary": "Turn On Cloudserver",
        "description": "Turn on your cloudserver",
        "requestBody": {
          "description": "cloudserver turn on data",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TurnOnCloudserver"
              }
            },
            "application/xml": {
              "schema": {
                "$ref": "#/components/schemas/TurnOnCloudserver"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/TurnOnCloudserver"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful operation"
          },
          "400": {
            "description": "Invalid input"
          },
          "401": {
            "description": "Unauthorized"
          },
          "422": {
            "description": "Validation exception"
          }
        },
        "security": [
          {
            "Authorization": []
          }
        ]
      }
    },
    "/v1/cloudservers/restart/": {
      "post": {
        "tags": [
          "Cloudserver"
        ],
        "summary": "Restart Cloudserver",
        "description": "Restart your cloudserver",
        "requestBody": {
          "description": "Cloudserver restart data",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RestartCloudserver"
              }
            },
            "application/xml": {
              "schema": {
                "$ref": "#/components/schemas/RestartCloudserver"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/RestartCloudserver"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful operation"
          },
          "400": {
            "description": "Invalid input"
          },
          "401": {
            "description": "Unauthorized"
          },
          "422": {
            "description": "Validation exception"
          }
        },
        "security": [
          {
            "Authorization": []
          }
        ]
      }
    },
    "/v1/cloudservers/change-wallet/": {
      "post": {
        "tags": [
          "Cloudserver"
        ],
        "summary": "Change your Cloudserver wallet",
        "description": "Change your Cloudserver wallet",
        "requestBody": {
          "description": "Change wallet data",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChangeWallet"
              }
            },
            "application/xml": {
              "schema": {
                "$ref": "#/components/schemas/ChangeWallet"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/ChangeWallet"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful operation"
          },
          "400": {
            "description": "Invalid input"
          },
          "401": {
            "description": "Unauthorized"
          },
          "422": {
            "description": "Validation exception"
          }
        },
        "security": [
          {
            "Authorization": []
          }
        ]
      }
    },
    "/v1/cloudservers/delete/": {
      "post": {
        "tags": [
          "Cloudserver"
        ],
        "summary": "Delete Cloudserver",
        "description": "Delete your cloudserver",
        "requestBody": {
          "description": "Cloudserver delete data",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeleteCloudserver"
              }
            },
            "application/xml": {
              "schema": {
                "$ref": "#/components/schemas/DeleteCloudserver"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/DeleteCloudserver"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful operation"
          },
          "400": {
            "description": "Invalid input"
          },
          "401": {
            "description": "Unauthorized"
          },
          "422": {
            "description": "Validation exception"
          }
        },
        "security": [
          {
            "Authorization": []
          }
        ]
      }
    },
    "/v1/wallets/": {
      "get": {
        "tags": [
          "Wallet"
        ],
        "summary": "View all your wallets",
        "responses": {
          "200": {
            "description": "Successful operation"
          },
          "400": {
            "description": "Invalid ID supplied"
          },
          "401": {
            "description": "Unauthorized"
          },
          "404": {
            "description": "Wallet not found"
          }
        },
        "security": [
          {
            "Authorization": []
          }
        ]
      }
    },
    "/v1/coupons/check-coupon/": {
      "post": {
        "tags": [
          "Coupon"
        ],
        "summary": "Check Coupon",
        "description": "Check if a coupon is valid",
        "requestBody": {
          "description": "Coupon data",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CheckCoupon"
              }
            },
            "application/xml": {
              "schema": {
                "$ref": "#/components/schemas/CheckCoupon"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/CheckCoupon"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful operation"
          },
          "400": {
            "description": "Invalid input"
          },
          "401": {
            "description": "Unauthorized"
          },
          "422": {
            "description": "Validation exception"
          }
        },
        "security": [
          {
            "Authorization": []
          }
        ]
      }
    },
    "/v1/services/": {
      "get": {
        "tags": [
          "Service"
        ],
        "summary": "View all your services",
        "responses": {
          "200": {
            "description": "successful operation"
          },
          "400": {
            "description": "Invalid ID supplied"
          },
          "401": {
            "description": "unauthorize"
          },
          "404": {
            "description": "Pet not found"
          }
        },
        "security": [
          {
            "Authorization": []
          }
        ]
      }
    },
    "/v1/services/{main_name}/deploy/": {
      "post": {
        "tags": [
          "Service"
        ],
        "summary": "Deploy Service",
        "description": "Deploy your service",
        "parameters": [
          {
            "name": "main_name",
            "in": "path",
            "description": "Name of your service",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/DeployService"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful operation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeployService"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/DeployService"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input"
          },
          "401": {
            "description": "unauthorize"
          },
          "422": {
            "description": "Validation exception"
          }
        },
        "security": [
          {
            "Authorization": []
          }
        ]
      }
    },
    "/v1/services/{main_name}/start/": {
      "get": {
        "tags": [
          "Service"
        ],
        "summary": "Start Service",
        "description": "Start and run your service",
        "parameters": [
          {
            "name": "main_name",
            "in": "path",
            "description": "Name of your service",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation"
          },
          "400": {
            "description": "Invalid input"
          },
          "401": {
            "description": "unauthorize"
          },
          "422": {
            "description": "Validation exception"
          }
        },
        "security": [
          {
            "Authorization": []
          }
        ]
      }
    },
    "/v1/services/{main_name}/stop/": {
      "get": {
        "tags": [
          "Service"
        ],
        "summary": "Stop Service",
        "description": "Stop your service",
        "parameters": [
          {
            "name": "main_name",
            "in": "path",
            "description": "Name of your service",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation"
          },
          "400": {
            "description": "Invalid input"
          },
          "401": {
            "description": "unauthorize"
          },
          "422": {
            "description": "Validation exception"
          }
        },
        "security": [
          {
            "Authorization": []
          }
        ]
      }
    },
    "/v1/services/{main_name}/restart/": {
      "get": {
        "tags": [
          "Service"
        ],
        "summary": "Restart Service",
        "description": "Restart your service",
        "parameters": [
          {
            "name": "main_name",
            "in": "path",
            "description": "Name of your service",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation"
          },
          "400": {
            "description": "Invalid input"
          },
          "401": {
            "description": "unauthorize"
          },
          "422": {
            "description": "Validation exception"
          }
        },
        "security": [
          {
            "Authorization": []
          }
        ]
      }
    },
    "/v1/services/{main_name}/logs/": {
      "get": {
        "tags": [
          "Service"
        ],
        "summary": "Service Logs",
        "description": "Get your service logs",
        "parameters": [
          {
            "name": "main_name",
            "in": "path",
            "description": "Name of your service",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation"
          },
          "400": {
            "description": "Invalid input"
          },
          "401": {
            "description": "unauthorize"
          },
          "422": {
            "description": "Validation exception"
          }
        },
        "security": [
          {
            "Authorization": []
          }
        ]
      }
    },
    "/v1/services/{main_name}/resize/": {
      "post": {
        "tags": [
          "Service"
        ],
        "summary": "Resize service",
        "description": "Resize your service",
        "parameters": [
          {
            "name": "main_name",
            "in": "path",
            "description": "Name of your service",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "send your data for resize",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResizeService"
              }
            },
            "application/xml": {
              "schema": {
                "$ref": "#/components/schemas/ResizeService"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/ResizeService"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful operation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResizeService"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/ResizeService"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input"
          },
          "401": {
            "description": "unauthorize"
          },
          "422": {
            "description": "Validation exception"
          }
        },
        "security": [
          {
            "Authorization": []
          }
        ]
      }
    },
    "/v1/services/{main_name}/domain/": {
      "post": {
        "tags": [
          "Service"
        ],
        "summary": "Connecting domain to service",
        "description": "Connecting domain to service",
        "parameters": [
          {
            "name": "main_name",
            "in": "path",
            "description": "Name of your service",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Connected Domain to service",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DomainConnectToService"
              }
            },
            "application/xml": {
              "schema": {
                "$ref": "#/components/schemas/DomainConnectToService"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/DomainConnectToService"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful operation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DomainConnectToService"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/DomainConnectToService"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input"
          },
          "401": {
            "description": "unauthorize"
          },
          "422": {
            "description": "Validation exception"
          }
        },
        "security": [
          {
            "Authorization": []
          }
        ]
      }
    },
    "/v1/services/{main_name}/domain/{domain_name}/": {
      "delete": {
        "tags": [
          "Service"
        ],
        "summary": "remove domain from service",
        "parameters": [
          {
            "name": "main_name",
            "in": "path",
            "description": "Name of your service",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domain_name",
            "in": "path",
            "description": "Name of your domain for delete",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation"
          },
          "400": {
            "description": "Invalid input"
          },
          "401": {
            "description": "unauthorize"
          },
          "422": {
            "description": "Validation exception"
          }
        },
        "security": [
          {
            "Authorization": []
          }
        ]
      }
    },
    "/v1/accounts/info/": {
      "get": {
        "tags": [
          "Account"
        ],
        "summary": "View information",
        "description": "View all your information",
        "responses": {
          "200": {
            "description": "successful operation"
          },
          "400": {
            "description": "Invalid ID supplied"
          },
          "401": {
            "description": "unauthorize"
          },
          "404": {
            "description": "Pet not found"
          }
        },
        "security": [
          {
            "Authorization": []
          }
        ]
      }
    },
    "/v1/accounts/login/": {
      "post": {
        "tags": [
          "Account"
        ],
        "summary": "Login",
        "description": "Login to your account",
        "requestBody": {
          "description": "Connected Domain to service",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Login"
              }
            },
            "application/xml": {
              "schema": {
                "$ref": "#/components/schemas/Login"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/Login"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful operation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Login"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/Login"
                }
              }
            }
          },
          "400": {
            "description": "Invalid ID supplied"
          },
          "401": {
            "description": "unauthorize"
          },
          "404": {
            "description": "Pet not found"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "CreateCloudserver": {
        "required": [
          "cloud",
          "cloud_location",
          "hostname",
          "cloud_plan",
          "cloud_template",
          "cloud_template_version",
          "wallet"
        ],
        "type": "object",
        "properties": {
          "cloud": {
            "type": "string",
            "example": "<cloud provider ID>"
          },
          "cloud_location": {
            "type": "string",
            "example": "<cloud location ID>"
          },
          "hostname": {
            "type": "string",
            "example": "<hostname>"
          },
          "cloud_plan": {
            "type": "string",
            "example": "<cloud plan ID>"
          },
          "cloud_template": {
            "type": "string",
            "example": "<cloud template ID>"
          },
          "cloud_template_version": {
            "type": "string",
            "example": "<cloud template version ID>"
          },
          "wallet": {
            "type": "string",
            "example": "<wallet ID>"
          }
        }
      },
      "SetCloudserverLocation": {
        "required": [
          "cloud_id"
        ],
        "type": "object",
        "properties": {
          "cloud_id": {
            "type": "string",
            "example": "<cloud provider ID>"
          }
        }
      },
      "SetCloudserverPlan": {
        "required": [
          "cloud_location_id"
        ],
        "type": "object",
        "properties": {
          "cloud_location_id": {
            "type": "string",
            "example": "<cloud location ID>"
          }
        }
      },
      "SetCloudserverOS": {
        "required": [
          "cloud_plan_id"
        ],
        "type": "object",
        "properties": {
          "cloud_plan_id": {
            "type": "string",
            "example": "<cloud plan ID>"
          }
        }
      },
      "SetCloudserverOSVersion": {
        "required": [
          "cloud_template_name",
          "cloud_plan_id"
        ],
        "type": "object",
        "properties": {
          "cloud_template_name": {
            "type": "string",
            "example": "<cloud template name>"
          },
          "cloud_plan_id": {
            "type": "string",
            "example": "<cloud plan ID>"
          }
        }
      },
      "CheckVPSName": {
        "required": [
          "hostname"
        ],
        "type": "object",
        "properties": {
          "hostname": {
            "type": "string",
            "example": "<hostname>"
          }
        }
      },
      "TurnOnCloudserver": {
        "required": [
          "cloud_server_id"
        ],
        "type": "object",
        "properties": {
          "cloud_server_id": {
            "type": "string",
            "example": "<your cloud server id>"
          }
        }
      },
      "TurnOffCloudserver": {
        "required": [
          "cloud_server_id"
        ],
        "type": "object",
        "properties": {
          "cloud_server_id": {
            "type": "string",
            "example": "<your cloud server id>"
          }
        }
      },
      "RestartCloudserver": {
        "required": [
          "cloud_server_id"
        ],
        "type": "object",
        "properties": {
          "cloud_server_id": {
            "type": "string",
            "example": "<your cloud server id>"
          }
        }
      },
      "DeleteCloudserver": {
        "required": [
          "cloud_server_id"
        ],
        "type": "object",
        "properties": {
          "cloud_server_id": {
            "type": "string",
            "example": "<your cloud server id>"
          }
        }
      },
      "ChangeWallet": {
        "required": [
          "cloud_server_id",
          "wallet"
        ],
        "type": "object",
        "properties": {
          "cloud_server_id": {
            "type": "string",
            "example": "<your cloud server id>"
          },
          "wallet": {
            "type": "string",
            "example": "<your wallet id>"
          }
        }
      },
      "CheckCoupon": {
        "required": [
          "code"
        ],
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "example": "<your coupon code>"
          }
        }
      },
      "DomainConnectToService": {
        "required": [
          "domain_name"
        ],
        "type": "object",
        "properties": {
          "domain_name": {
            "type": "string",
            "example": "<your domain name>",
            "xml": {
              "wrapped": true
            }
          }
        }
      },
      "DeployService": {
        "required": [
          "file",
          "options"
        ],
        "type": "object",
        "properties": {
          "file": {
            "type": "string",
            "format": "binary"
          },
          "options": {
            "type": "object"
          }
        }
      },
      "ResizeService": {
        "required": [
          "bandwith",
          "cpu",
          "disk",
          "ram"
        ],
        "type": "object",
        "properties": {
          "ram": {
            "type": "string",
            "example": "<Input your ram>"
          },
          "cpu": {
            "type": "string",
            "example": "<Input your cpu>"
          },
          "disk": {
            "type": "string",
            "example": "<Input your disk>"
          },
          "bandwith": {
            "type": "string",
            "example": "<Input your bandwith>"
          }
        }
      },
      "Login": {
        "required": [
          "password",
          "username"
        ],
        "type": "object",
        "properties": {
          "username": {
            "type": "string",
            "example": "<Input your phone number and use '+98' at first like '+989123456789'>"
          },
          "password": {
            "type": "string",
            "example": "<Input your password>"
          }
        }
      }
    },
    "securitySchemes": {
      "Authorization": {
        "type": "apiKey",
        "name": "Authorization",
        "in": "header"
      }
    }
  }
}