mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
* feat(create-turbo): apply official-starter transform * refactor: move folder * wip: monorepo * feat: add builf * refactor: add pr * update * add .env * refactor: update build * refactor: update build docker * refactor: add progress plain * refactor: remove node pty * refactor: remove * remove * refactor: update * refacotr: uopdate * refactor: add remix app * add env * refactor: add pnpm start * refactor: remove * refactor: remove folders * refactor: remove .dockerfile * chore: update biome * test * choe: add husky * remove .docker folder * feat: add docs website * refactor: add husky * chore(version): bump version * refactor: add new changes * refactor: update circle path * refactor: update * refactor: update * refactor: update dockerfile * refactor: update dockerfile * refactor: update command * refactor: update * refactor: update dockerfile * refactor: add tsx * refactor: update dockerfile * refactor: add deps * refactor: up[date * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: yuodate * refactor: remove * refactor: uncomment * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: updare * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: imprt * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: remove * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: change path * refactor: update * refactor: update * refactor: upoadte * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: add * refactor: update * refactor: update * refactor: add * refactor: update * refactor: remove * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: removed * refactor: update * refactor: update * refactor: update * refactor: add config * refactor: update * refactor: add * refactor: update * refactor: update * refactor: remove * refactor: update * refactor: remove * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: add docs * refactor: update * refactor: add website * refactor: update * refactor: update * refactor: update * refactor: update * refactor: add ignore builds * refactor: update * refactor: update * refactor: add * refactor: update * refactor: update * refactor: remove needs * refactor: update * refactor: update * refactor: add config * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: remove * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: add * refactor: update * refactor: update * refactor: update * refactor: update * refactor: upodate * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update package json * refactor: add biome * refactor: add sponsors * refactor: update * refactor: update * refactor: remove * refactor: update * refactor: update * refactor: update * refactor: update scripts * refactor: remove * refactor: update * refactor: remove --------- Co-authored-by: Turbobot <turbobot@vercel.com>
383 lines
4.8 KiB
Plaintext
383 lines
4.8 KiB
Plaintext
---
|
|
title: cluster
|
|
full: true
|
|
---
|
|
|
|
import { Root, API, APIInfo, APIExample, Responses, Response, ResponseTypes, ExampleResponse, TypeScriptResponse, Property, ObjectCollapsible, Requests, Request } from "fumadocs-ui/components/api";
|
|
|
|
<Root>
|
|
|
|
<API>
|
|
|
|
<APIInfo method={"GET"} route={"/cluster.getNodes"}>
|
|
|
|
## cluster-getNodes
|
|
|
|
### Authorization
|
|
|
|
<Property name={"Authorization"} type={"Bearer <token>"} required={true}>
|
|
|
|
In: `header`
|
|
|
|
</Property>
|
|
|
|
| Status code | Description |
|
|
| ----------- | ----------- |
|
|
| `200` | Successful response |
|
|
| `default` | Error response |
|
|
|
|
</APIInfo>
|
|
|
|
<APIExample>
|
|
|
|
<Requests items={["cURL","JavaScript"]}>
|
|
|
|
<Request value={"cURL"}>
|
|
|
|
```bash
|
|
curl -X GET "http://localhost:3000/api/cluster.getNodes"
|
|
```
|
|
|
|
</Request>
|
|
|
|
<Request value={"JavaScript"}>
|
|
|
|
```js
|
|
fetch("http://localhost:3000/api/cluster.getNodes", {
|
|
method: "GET"
|
|
});
|
|
```
|
|
|
|
</Request>
|
|
|
|
</Requests>
|
|
|
|
<Responses items={["default"]}>
|
|
|
|
<Response value={"default"}>
|
|
|
|
<ResponseTypes>
|
|
|
|
<ExampleResponse>
|
|
|
|
```json
|
|
{
|
|
"message": "string",
|
|
"code": "string",
|
|
"issues": [
|
|
{
|
|
"message": "string"
|
|
}
|
|
]
|
|
}
|
|
```
|
|
|
|
</ExampleResponse>
|
|
|
|
<TypeScriptResponse>
|
|
|
|
```ts
|
|
export interface Response {
|
|
message: string;
|
|
code: string;
|
|
issues?: {
|
|
message: string;
|
|
}[];
|
|
}
|
|
```
|
|
|
|
</TypeScriptResponse>
|
|
|
|
</ResponseTypes>
|
|
|
|
</Response>
|
|
|
|
</Responses>
|
|
|
|
</APIExample>
|
|
|
|
</API>
|
|
|
|
<API>
|
|
|
|
<APIInfo method={"POST"} route={"/cluster.removeWorker"}>
|
|
|
|
## cluster-removeWorker
|
|
|
|
### Authorization
|
|
|
|
<Property name={"Authorization"} type={"Bearer <token>"} required={true}>
|
|
|
|
In: `header`
|
|
|
|
</Property>
|
|
|
|
### Request Body
|
|
|
|
<Property name={"nodeId"} type={"string"} required={true} deprecated={undefined}>
|
|
|
|
</Property>
|
|
|
|
| Status code | Description |
|
|
| ----------- | ----------- |
|
|
| `200` | Successful response |
|
|
| `default` | Error response |
|
|
|
|
</APIInfo>
|
|
|
|
<APIExample>
|
|
|
|
<Requests items={["cURL","JavaScript"]}>
|
|
|
|
<Request value={"cURL"}>
|
|
|
|
```bash
|
|
curl -X POST "http://localhost:3000/api/cluster.removeWorker" \
|
|
-d '{
|
|
"nodeId": "string"
|
|
}'
|
|
```
|
|
|
|
</Request>
|
|
|
|
<Request value={"JavaScript"}>
|
|
|
|
```js
|
|
fetch("http://localhost:3000/api/cluster.removeWorker", {
|
|
method: "POST"
|
|
});
|
|
```
|
|
|
|
</Request>
|
|
|
|
</Requests>
|
|
|
|
<Responses items={["default"]}>
|
|
|
|
<Response value={"default"}>
|
|
|
|
<ResponseTypes>
|
|
|
|
<ExampleResponse>
|
|
|
|
```json
|
|
{
|
|
"message": "string",
|
|
"code": "string",
|
|
"issues": [
|
|
{
|
|
"message": "string"
|
|
}
|
|
]
|
|
}
|
|
```
|
|
|
|
</ExampleResponse>
|
|
|
|
<TypeScriptResponse>
|
|
|
|
```ts
|
|
export interface Response {
|
|
message: string;
|
|
code: string;
|
|
issues?: {
|
|
message: string;
|
|
}[];
|
|
}
|
|
```
|
|
|
|
</TypeScriptResponse>
|
|
|
|
</ResponseTypes>
|
|
|
|
</Response>
|
|
|
|
</Responses>
|
|
|
|
</APIExample>
|
|
|
|
</API>
|
|
|
|
<API>
|
|
|
|
<APIInfo method={"GET"} route={"/cluster.addWorker"}>
|
|
|
|
## cluster-addWorker
|
|
|
|
### Authorization
|
|
|
|
<Property name={"Authorization"} type={"Bearer <token>"} required={true}>
|
|
|
|
In: `header`
|
|
|
|
</Property>
|
|
|
|
| Status code | Description |
|
|
| ----------- | ----------- |
|
|
| `200` | Successful response |
|
|
| `default` | Error response |
|
|
|
|
</APIInfo>
|
|
|
|
<APIExample>
|
|
|
|
<Requests items={["cURL","JavaScript"]}>
|
|
|
|
<Request value={"cURL"}>
|
|
|
|
```bash
|
|
curl -X GET "http://localhost:3000/api/cluster.addWorker"
|
|
```
|
|
|
|
</Request>
|
|
|
|
<Request value={"JavaScript"}>
|
|
|
|
```js
|
|
fetch("http://localhost:3000/api/cluster.addWorker", {
|
|
method: "GET"
|
|
});
|
|
```
|
|
|
|
</Request>
|
|
|
|
</Requests>
|
|
|
|
<Responses items={["default"]}>
|
|
|
|
<Response value={"default"}>
|
|
|
|
<ResponseTypes>
|
|
|
|
<ExampleResponse>
|
|
|
|
```json
|
|
{
|
|
"message": "string",
|
|
"code": "string",
|
|
"issues": [
|
|
{
|
|
"message": "string"
|
|
}
|
|
]
|
|
}
|
|
```
|
|
|
|
</ExampleResponse>
|
|
|
|
<TypeScriptResponse>
|
|
|
|
```ts
|
|
export interface Response {
|
|
message: string;
|
|
code: string;
|
|
issues?: {
|
|
message: string;
|
|
}[];
|
|
}
|
|
```
|
|
|
|
</TypeScriptResponse>
|
|
|
|
</ResponseTypes>
|
|
|
|
</Response>
|
|
|
|
</Responses>
|
|
|
|
</APIExample>
|
|
|
|
</API>
|
|
|
|
<API>
|
|
|
|
<APIInfo method={"GET"} route={"/cluster.addManager"}>
|
|
|
|
## cluster-addManager
|
|
|
|
### Authorization
|
|
|
|
<Property name={"Authorization"} type={"Bearer <token>"} required={true}>
|
|
|
|
In: `header`
|
|
|
|
</Property>
|
|
|
|
| Status code | Description |
|
|
| ----------- | ----------- |
|
|
| `200` | Successful response |
|
|
| `default` | Error response |
|
|
|
|
</APIInfo>
|
|
|
|
<APIExample>
|
|
|
|
<Requests items={["cURL","JavaScript"]}>
|
|
|
|
<Request value={"cURL"}>
|
|
|
|
```bash
|
|
curl -X GET "http://localhost:3000/api/cluster.addManager"
|
|
```
|
|
|
|
</Request>
|
|
|
|
<Request value={"JavaScript"}>
|
|
|
|
```js
|
|
fetch("http://localhost:3000/api/cluster.addManager", {
|
|
method: "GET"
|
|
});
|
|
```
|
|
|
|
</Request>
|
|
|
|
</Requests>
|
|
|
|
<Responses items={["default"]}>
|
|
|
|
<Response value={"default"}>
|
|
|
|
<ResponseTypes>
|
|
|
|
<ExampleResponse>
|
|
|
|
```json
|
|
{
|
|
"message": "string",
|
|
"code": "string",
|
|
"issues": [
|
|
{
|
|
"message": "string"
|
|
}
|
|
]
|
|
}
|
|
```
|
|
|
|
</ExampleResponse>
|
|
|
|
<TypeScriptResponse>
|
|
|
|
```ts
|
|
export interface Response {
|
|
message: string;
|
|
code: string;
|
|
issues?: {
|
|
message: string;
|
|
}[];
|
|
}
|
|
```
|
|
|
|
</TypeScriptResponse>
|
|
|
|
</ResponseTypes>
|
|
|
|
</Response>
|
|
|
|
</Responses>
|
|
|
|
</APIExample>
|
|
|
|
</API>
|
|
|
|
</Root> |