mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-20 02:11:36 +00:00
Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
fb651ab5ce | ||
|
c2625a7352 | ||
|
b72a2ddb1c | ||
|
0e8e6ef56f | ||
|
39fa25aee7 | ||
|
945c2e75c0 |
@ -7,7 +7,6 @@ indent_size = 4
|
|||||||
indent_style = space
|
indent_style = space
|
||||||
insert_final_newline = true
|
insert_final_newline = true
|
||||||
trim_trailing_whitespace = true
|
trim_trailing_whitespace = true
|
||||||
ij_any_block_comment_at_first_column = false
|
|
||||||
|
|
||||||
[*.md]
|
[*.md]
|
||||||
trim_trailing_whitespace = false
|
trim_trailing_whitespace = false
|
||||||
|
@ -14,7 +14,3 @@ MAIL_PASSWORD=null
|
|||||||
MAIL_ENCRYPTION=null
|
MAIL_ENCRYPTION=null
|
||||||
MAIL_FROM_ADDRESS="noreply@${APP_NAME}"
|
MAIL_FROM_ADDRESS="noreply@${APP_NAME}"
|
||||||
MAIL_FROM_NAME="${APP_NAME}"
|
MAIL_FROM_NAME="${APP_NAME}"
|
||||||
|
|
||||||
APP_PORT=8000
|
|
||||||
|
|
||||||
SCRIBE_AUTH_KEY="YOUR-API-KEY"
|
|
||||||
|
42
.github/workflows/code-quality.yml
vendored
42
.github/workflows/code-quality.yml
vendored
@ -1,42 +0,0 @@
|
|||||||
name: code-quality
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- 2.x
|
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- 2.x
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
tests:
|
|
||||||
runs-on: ubuntu-22.04
|
|
||||||
|
|
||||||
strategy:
|
|
||||||
fail-fast: true
|
|
||||||
matrix:
|
|
||||||
php: [ 8.2 ]
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Setup PHP
|
|
||||||
uses: shivammathur/setup-php@v2
|
|
||||||
with:
|
|
||||||
php-version: ${{ matrix.php }}
|
|
||||||
|
|
||||||
- name: Cache Composer packages
|
|
||||||
id: composer-cache
|
|
||||||
uses: actions/cache@v4
|
|
||||||
with:
|
|
||||||
path: vendor
|
|
||||||
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-php-
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
if: steps.composer-cache.outputs.cache-hit != 'true'
|
|
||||||
run: composer install --prefer-dist --no-progress --no-suggest
|
|
||||||
|
|
||||||
- name: Run PHPStan
|
|
||||||
run: ./vendor/bin/phpstan analyse
|
|
12
.github/workflows/code-style.yml
vendored
12
.github/workflows/code-style.yml
vendored
@ -3,9 +3,7 @@ name: code-style
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
|
||||||
- 1.x
|
- 1.x
|
||||||
- 2.x
|
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@ -15,11 +13,11 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: true
|
fail-fast: true
|
||||||
matrix:
|
matrix:
|
||||||
php: [ 8.2 ]
|
php: [8.2]
|
||||||
node-version: [ "20.x" ]
|
node-version: ["20.x"]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Setup PHP
|
- name: Setup PHP
|
||||||
uses: shivammathur/setup-php@v2
|
uses: shivammathur/setup-php@v2
|
||||||
@ -28,7 +26,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Cache Composer packages
|
- name: Cache Composer packages
|
||||||
id: composer-cache
|
id: composer-cache
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: vendor
|
path: vendor
|
||||||
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
|
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
|
||||||
@ -43,7 +41,7 @@ jobs:
|
|||||||
run: ./vendor/bin/pint --test
|
run: ./vendor/bin/pint --test
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: "20.x"
|
node-version: "20.x"
|
||||||
|
|
||||||
|
@ -1,34 +1,35 @@
|
|||||||
name: Docker Latest
|
name: Build and push Docker image
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
push:
|
||||||
# push:
|
branches:
|
||||||
# branches:
|
- 1.x
|
||||||
# - 2.x
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push:
|
build-and-push:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v2
|
uses: docker/setup-qemu-action@v1
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v1
|
||||||
|
|
||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
|
||||||
- name: Build and push to the latest tag
|
- name: Build and push Docker image
|
||||||
run: |
|
run: |
|
||||||
docker buildx build . \
|
docker buildx build . \
|
||||||
-f docker/Dockerfile \
|
-f docker/Dockerfile \
|
||||||
-t vitodeploy/vito:latest \
|
-t vitodeploy/vito:1.x \
|
||||||
|
--build-arg="RELEASE=0" \
|
||||||
--platform linux/amd64,linux/arm64 \
|
--platform linux/amd64,linux/arm64 \
|
||||||
|
--no-cache \
|
||||||
--push
|
--push
|
37
.github/workflows/docker-release.yml
vendored
37
.github/workflows/docker-release.yml
vendored
@ -1,52 +1,35 @@
|
|||||||
name: Docker Release
|
name: Build and push Docker image
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
release:
|
||||||
# release:
|
types: [created]
|
||||||
# types: [ created ]
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push:
|
build-and-push:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v2
|
uses: docker/setup-qemu-action@v1
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v1
|
||||||
|
|
||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
|
||||||
- name: Build and push to the release tag
|
- name: Build and push Docker image
|
||||||
run: |
|
run: |
|
||||||
docker buildx build . \
|
docker buildx build . \
|
||||||
-f docker/Dockerfile \
|
-f docker/Dockerfile \
|
||||||
-t vitodeploy/vito:${{ github.event.release.tag_name }} \
|
-t vitodeploy/vito:${{ github.event.release.tag_name }} \
|
||||||
|
-t vitodeploy/vito:latest \
|
||||||
|
--build-arg="RELEASE=0" \
|
||||||
--platform linux/amd64,linux/arm64 \
|
--platform linux/amd64,linux/arm64 \
|
||||||
--no-cache \
|
--no-cache \
|
||||||
--push
|
--push
|
||||||
|
|
||||||
- name: Build and push to the 1.x tag
|
|
||||||
if: startsWith(github.event.release.target_commitish, '1.x')
|
|
||||||
run: |
|
|
||||||
docker buildx build . \
|
|
||||||
-f docker/Dockerfile \
|
|
||||||
-t vitodeploy/vito:1.x \
|
|
||||||
--platform linux/amd64,linux/arm64 \
|
|
||||||
--push
|
|
||||||
|
|
||||||
- name: Build and push to the 2.x tag
|
|
||||||
if: startsWith(github.event.release.target_commitish, '2.x')
|
|
||||||
run: |
|
|
||||||
docker buildx build . \
|
|
||||||
-f docker/Dockerfile \
|
|
||||||
-t vitodeploy/vito:2.x \
|
|
||||||
--platform linux/amd64,linux/arm64 \
|
|
||||||
--push
|
|
||||||
|
77
.github/workflows/releases.yml
vendored
77
.github/workflows/releases.yml
vendored
@ -1,77 +0,0 @@
|
|||||||
name: manual release
|
|
||||||
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
inputs:
|
|
||||||
version:
|
|
||||||
description: 'Version to release'
|
|
||||||
required: true
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
release:
|
|
||||||
runs-on: ubuntu-24.04
|
|
||||||
|
|
||||||
name: Release ${{ inputs.version }}
|
|
||||||
|
|
||||||
outputs:
|
|
||||||
version: ${{ steps.version.outputs.version }}
|
|
||||||
notes: ${{ steps.cleaned-notes.outputs.notes }}
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Remove optional "v" prefix
|
|
||||||
id: version
|
|
||||||
run: |
|
|
||||||
echo "version=${VERSION#v}" >> "$GITHUB_OUTPUT"
|
|
||||||
env:
|
|
||||||
VERSION: ${{ inputs.version }}
|
|
||||||
|
|
||||||
- name: Check if branch and version match
|
|
||||||
id: guard
|
|
||||||
run: |
|
|
||||||
MAJOR_VERSION="${NUMERIC_VERSION%%.*}"
|
|
||||||
BRANCH_MAJOR_VERSION="${BRANCH%%.*}"
|
|
||||||
|
|
||||||
if [ "$MAJOR_VERSION" != "$BRANCH_MAJOR_VERSION" ]; then
|
|
||||||
echo "Mismatched versions! Aborting."
|
|
||||||
VERSION_MISMATCH='true';
|
|
||||||
else
|
|
||||||
echo "Versions match! Proceeding."
|
|
||||||
VERSION_MISMATCH='false';
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "VERSION_MISMATCH=$(echo $VERSION_MISMATCH)" >> "$GITHUB_OUTPUT";
|
|
||||||
env:
|
|
||||||
BRANCH: ${{ github.ref_name }}
|
|
||||||
NUMERIC_VERSION: ${{ steps.version.outputs.version }}
|
|
||||||
|
|
||||||
- name: Fail if branch and release tag do not match
|
|
||||||
if: ${{ steps.guard.outputs.VERSION_MISMATCH == 'true' }}
|
|
||||||
uses: actions/github-script@v7
|
|
||||||
with:
|
|
||||||
script: |
|
|
||||||
core.setFailed('Workflow failed. Release version does not match with selected target branch. Did you select the correct branch?')
|
|
||||||
|
|
||||||
- name: Update config/app.php
|
|
||||||
run: sed -i "s/'version' => '[^']*'/'version' => '${{ steps.version.outputs.version }}'/" config/app.php
|
|
||||||
|
|
||||||
- name: Commit version change
|
|
||||||
uses: stefanzweifel/git-auto-commit-action@v5
|
|
||||||
with:
|
|
||||||
commit_message: "Update version to ${{ steps.version.outputs.version }}"
|
|
||||||
|
|
||||||
- name: Create release
|
|
||||||
uses: softprops/action-gh-release@v2
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
|
||||||
tag_name: ${{ steps.version.outputs.version }}
|
|
||||||
name: ${{ steps.version.outputs.version }}
|
|
||||||
body: ${{ steps.cleaned-notes.outputs.notes }}
|
|
||||||
target_commitish: ${{ github.ref_name }}
|
|
||||||
make_latest: "${{ github.ref_name == github.event.repository.default_branch }}"
|
|
12
.github/workflows/tests.yml
vendored
12
.github/workflows/tests.yml
vendored
@ -3,9 +3,7 @@ name: tests
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
|
||||||
- 1.x
|
- 1.x
|
||||||
- 2.x
|
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@ -15,10 +13,10 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: true
|
fail-fast: true
|
||||||
matrix:
|
matrix:
|
||||||
php: [ 8.2 ]
|
php: [8.2]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Setup PHP
|
- name: Setup PHP
|
||||||
uses: shivammathur/setup-php@v2
|
uses: shivammathur/setup-php@v2
|
||||||
@ -27,13 +25,12 @@ jobs:
|
|||||||
|
|
||||||
- name: Cache Composer packages
|
- name: Cache Composer packages
|
||||||
id: composer-cache
|
id: composer-cache
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: vendor
|
path: vendor
|
||||||
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
|
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-php-
|
${{ runner.os }}-php-
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
if: steps.composer-cache.outputs.cache-hit != 'true'
|
if: steps.composer-cache.outputs.cache-hit != 'true'
|
||||||
run: composer install --prefer-dist --no-progress --no-suggest
|
run: composer install --prefer-dist --no-progress --no-suggest
|
||||||
@ -41,8 +38,5 @@ jobs:
|
|||||||
- name: Create sqlite database
|
- name: Create sqlite database
|
||||||
run: touch storage/database-test.sqlite
|
run: touch storage/database-test.sqlite
|
||||||
|
|
||||||
- name: Set up the .env file
|
|
||||||
run: touch .env
|
|
||||||
|
|
||||||
- name: Run test suite
|
- name: Run test suite
|
||||||
run: php artisan test
|
run: php artisan test
|
||||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -21,4 +21,3 @@ yarn-error.log
|
|||||||
/.fleet
|
/.fleet
|
||||||
/.idea
|
/.idea
|
||||||
/.vscode
|
/.vscode
|
||||||
laradumps.yaml
|
|
||||||
|
@ -1,15 +0,0 @@
|
|||||||
.git/
|
|
||||||
.scribe/
|
|
||||||
node_modules/
|
|
||||||
public/
|
|
||||||
storage/
|
|
||||||
vendor/
|
|
||||||
composer.lock
|
|
||||||
.env
|
|
||||||
.env.example
|
|
||||||
sail
|
|
||||||
*.md
|
|
||||||
*.yml
|
|
||||||
!*.blade.php
|
|
||||||
!*.sh
|
|
||||||
resources/views/ssh/
|
|
12
.prettierrc
12
.prettierrc
@ -1,9 +1,5 @@
|
|||||||
{
|
{
|
||||||
"plugins": [
|
"plugins": ["prettier-plugin-blade", "prettier-plugin-tailwindcss"],
|
||||||
"prettier-plugin-blade",
|
|
||||||
"prettier-plugin-tailwindcss",
|
|
||||||
"prettier-plugin-sh"
|
|
||||||
],
|
|
||||||
"overrides": [
|
"overrides": [
|
||||||
{
|
{
|
||||||
"files": ["*.blade.php"],
|
"files": ["*.blade.php"],
|
||||||
@ -15,12 +11,6 @@
|
|||||||
"quoteProps": "consistent",
|
"quoteProps": "consistent",
|
||||||
"trailingComma": "none"
|
"trailingComma": "none"
|
||||||
}
|
}
|
||||||
},
|
|
||||||
{
|
|
||||||
"files": ["*.sh"],
|
|
||||||
"options": {
|
|
||||||
"parser": "sh"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -1,4 +0,0 @@
|
|||||||
# GENERATED. YOU SHOULDN'T MODIFY OR DELETE THIS FILE.
|
|
||||||
# Scribe uses this file to know when you change something manually in your docs.
|
|
||||||
.scribe/intro.md=98adb6862b118c06e02e4e22390feb6f
|
|
||||||
.scribe/auth.md=7fcc12b2e5a86fa9c49f509d348f3cc2
|
|
@ -1,7 +0,0 @@
|
|||||||
# Authenticating requests
|
|
||||||
|
|
||||||
To authenticate requests, include an **`Authorization`** header with the value **`"Bearer YOUR-API-KEY"`**.
|
|
||||||
|
|
||||||
All authenticated endpoints are marked with a `requires authentication` badge in the documentation below.
|
|
||||||
|
|
||||||
You can retrieve your token by visiting <a href="/settings/api-keys" target="_blank">here</a>
|
|
@ -1,310 +0,0 @@
|
|||||||
## Autogenerated by Scribe. DO NOT MODIFY.
|
|
||||||
|
|
||||||
name: cron-jobs
|
|
||||||
description: ''
|
|
||||||
endpoints:
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- GET
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/cron-jobs'
|
|
||||||
metadata:
|
|
||||||
groupName: cron-jobs
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: list
|
|
||||||
description: 'Get all cron jobs.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"data":[{"id":null,"server_id":null,"command":"ls -la","user":"root","frequency":"* * * * *","status":"ready","created_at":null,"updated_at":null},{"id":null,"server_id":null,"command":"ls -la","user":"root","frequency":"* * * * *","status":"ready","created_at":null,"updated_at":null}],"links":{"first":"\/?page=1","last":"\/?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":1,"last_page":1,"links":[{"url":null,"label":"« Previous","active":false},{"url":"\/?page=1","label":"1","active":true},{"url":null,"label":"Next »","active":false}],"path":"\/","per_page":25,"to":2,"total":2}}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer eDa6Vdh1Z4vc35bP8E6gafk'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- POST
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/cron-jobs'
|
|
||||||
metadata:
|
|
||||||
groupName: cron-jobs
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: create
|
|
||||||
description: 'Create a new cron job.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters:
|
|
||||||
command:
|
|
||||||
name: command
|
|
||||||
description: ''
|
|
||||||
required: true
|
|
||||||
example: quia
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
user:
|
|
||||||
name: user
|
|
||||||
description: ''
|
|
||||||
required: true
|
|
||||||
example: root
|
|
||||||
type: string
|
|
||||||
enumValues:
|
|
||||||
- root
|
|
||||||
- vito
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
frequency:
|
|
||||||
name: frequency
|
|
||||||
description: 'Frequency of the cron job.'
|
|
||||||
required: true
|
|
||||||
example: '* * * * *'
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanBodyParameters:
|
|
||||||
command: quia
|
|
||||||
user: root
|
|
||||||
frequency: '* * * * *'
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"id":null,"server_id":null,"command":"ls -la","user":"root","frequency":"* * * * *","status":"ready","created_at":null,"updated_at":null}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer 66EeZvdh3kVaDP8f4ga5c1b'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- GET
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/cron-jobs/{cronJob_id}'
|
|
||||||
metadata:
|
|
||||||
groupName: cron-jobs
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: show
|
|
||||||
description: 'Get a cron job by ID.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cronJob_id:
|
|
||||||
name: cronJob_id
|
|
||||||
description: 'The ID of the cronJob.'
|
|
||||||
required: true
|
|
||||||
example: 6
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
cronJob_id: 6
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"id":null,"server_id":null,"command":"ls -la","user":"root","frequency":"* * * * *","status":"ready","created_at":null,"updated_at":null}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer D4c3Z65ebv8E16fahaVgPdk'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- DELETE
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/cron-jobs/{cronJob_id}'
|
|
||||||
metadata:
|
|
||||||
groupName: cron-jobs
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: delete
|
|
||||||
description: 'Delete cron job.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cronJob_id:
|
|
||||||
name: cronJob_id
|
|
||||||
description: 'The ID of the cronJob.'
|
|
||||||
required: true
|
|
||||||
example: 13
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
cronJob_id: 13
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 204
|
|
||||||
content: null
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer h3cP4aZa1v8feDdEg5b6k6V'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
@ -1,308 +0,0 @@
|
|||||||
## Autogenerated by Scribe. DO NOT MODIFY.
|
|
||||||
|
|
||||||
name: databases
|
|
||||||
description: ''
|
|
||||||
endpoints:
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- GET
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/databases'
|
|
||||||
metadata:
|
|
||||||
groupName: databases
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: list
|
|
||||||
description: 'Get all databases.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"data":[{"id":null,"server_id":null,"name":"leffler.esther","status":"ready","created_at":null,"updated_at":null},{"id":null,"server_id":null,"name":"rhoda.rutherford","status":"ready","created_at":null,"updated_at":null}],"links":{"first":"\/?page=1","last":"\/?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":1,"last_page":1,"links":[{"url":null,"label":"« Previous","active":false},{"url":"\/?page=1","label":"1","active":true},{"url":null,"label":"Next »","active":false}],"path":"\/","per_page":25,"to":2,"total":2}}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer E1VdfegZah4k86b53Dc6Pva'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- POST
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/databases'
|
|
||||||
metadata:
|
|
||||||
groupName: databases
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: create
|
|
||||||
description: 'Create a new database.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters:
|
|
||||||
name:
|
|
||||||
name: name
|
|
||||||
description: ''
|
|
||||||
required: true
|
|
||||||
example: quisquam
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
charset:
|
|
||||||
name: charset
|
|
||||||
description: ''
|
|
||||||
required: true
|
|
||||||
example: omnis
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
collation:
|
|
||||||
name: collation
|
|
||||||
description: ''
|
|
||||||
required: true
|
|
||||||
example: at
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanBodyParameters:
|
|
||||||
name: quisquam
|
|
||||||
charset: omnis
|
|
||||||
collation: at
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"id":null,"server_id":null,"name":"csawayn","status":"ready","created_at":null,"updated_at":null}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer PVgkZ35ca4afd1EbD8ehv66'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- GET
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/databases/{id}'
|
|
||||||
metadata:
|
|
||||||
groupName: databases
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: show
|
|
||||||
description: 'Get a database by ID.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
id:
|
|
||||||
name: id
|
|
||||||
description: 'The ID of the database.'
|
|
||||||
required: true
|
|
||||||
example: 8
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
id: 8
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"id":null,"server_id":null,"name":"sandrine43","status":"ready","created_at":null,"updated_at":null}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer EP64D8g51adf6hbceavVZ3k'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- DELETE
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/databases/{database_id}'
|
|
||||||
metadata:
|
|
||||||
groupName: databases
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: delete
|
|
||||||
description: 'Delete database.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
database_id:
|
|
||||||
name: database_id
|
|
||||||
description: 'The ID of the database.'
|
|
||||||
required: true
|
|
||||||
example: 8
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
database_id: 8
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 204
|
|
||||||
content: null
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer 8dgEk3Zv1eaVP66bDhf4ac5'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
@ -1,392 +0,0 @@
|
|||||||
## Autogenerated by Scribe. DO NOT MODIFY.
|
|
||||||
|
|
||||||
name: database-users
|
|
||||||
description: ''
|
|
||||||
endpoints:
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- GET
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/database-users'
|
|
||||||
metadata:
|
|
||||||
groupName: database-users
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: list
|
|
||||||
description: 'Get all database users.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"data":[{"id":null,"server_id":null,"username":"letha64","databases":[],"host":"%","status":null,"created_at":null,"updated_at":null},{"id":null,"server_id":null,"username":"hagenes.lurline","databases":[],"host":"%","status":null,"created_at":null,"updated_at":null}],"links":{"first":"\/?page=1","last":"\/?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":1,"last_page":1,"links":[{"url":null,"label":"« Previous","active":false},{"url":"\/?page=1","label":"1","active":true},{"url":null,"label":"Next »","active":false}],"path":"\/","per_page":25,"to":2,"total":2}}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer d4g15bV3Pa6hDvck6eaEf8Z'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- POST
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/database-users'
|
|
||||||
metadata:
|
|
||||||
groupName: database-users
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: create
|
|
||||||
description: 'Create a new database user.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters:
|
|
||||||
username:
|
|
||||||
name: username
|
|
||||||
description: ''
|
|
||||||
required: true
|
|
||||||
example: qui
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
password:
|
|
||||||
name: password
|
|
||||||
description: ''
|
|
||||||
required: true
|
|
||||||
example: 'xYv*3,#HQ=5<w!'
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
host:
|
|
||||||
name: host
|
|
||||||
description: 'Host, if it is a remote user.'
|
|
||||||
required: true
|
|
||||||
example: '%'
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanBodyParameters:
|
|
||||||
username: qui
|
|
||||||
password: 'xYv*3,#HQ=5<w!'
|
|
||||||
host: '%'
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"id":null,"server_id":null,"username":"marcelle95","databases":[],"host":"%","status":null,"created_at":null,"updated_at":null}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer 3vZ6f6kagacDEhV1Pde5b84'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- GET
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/database-users/{databaseUser_id}'
|
|
||||||
metadata:
|
|
||||||
groupName: database-users
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: show
|
|
||||||
description: 'Get a database user by ID.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
databaseUser_id:
|
|
||||||
name: databaseUser_id
|
|
||||||
description: 'The ID of the databaseUser.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
databaseUser_id: 1
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"id":null,"server_id":null,"username":"brandi53","databases":[],"host":"%","status":null,"created_at":null,"updated_at":null}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer af3b5ac6dP8ZV4vE1hk6eDg'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- POST
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/database-users/{databaseUser_id}/link'
|
|
||||||
metadata:
|
|
||||||
groupName: database-users
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: link
|
|
||||||
description: 'Link to databases'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
databaseUser_id:
|
|
||||||
name: databaseUser_id
|
|
||||||
description: 'The ID of the databaseUser.'
|
|
||||||
required: true
|
|
||||||
example: 4
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
databaseUser_id: 4
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters:
|
|
||||||
databases:
|
|
||||||
name: databases
|
|
||||||
description: 'Array of database names to link to the user.'
|
|
||||||
required: true
|
|
||||||
example: maiores
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanBodyParameters:
|
|
||||||
databases: maiores
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"id":null,"server_id":null,"username":"kschmidt","databases":[],"host":"%","status":null,"created_at":null,"updated_at":null}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer b6f3Ed641gaZDcVa5k8vePh'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- DELETE
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/database-users/{databaseUser_id}'
|
|
||||||
metadata:
|
|
||||||
groupName: database-users
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: delete
|
|
||||||
description: 'Delete database user.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
databaseUser_id:
|
|
||||||
name: databaseUser_id
|
|
||||||
description: 'The ID of the databaseUser.'
|
|
||||||
required: true
|
|
||||||
example: 20
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
databaseUser_id: 20
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 204
|
|
||||||
content: null
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer Zka6fh15g6eaV8vE34cDPdb'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
@ -1,488 +0,0 @@
|
|||||||
## Autogenerated by Scribe. DO NOT MODIFY.
|
|
||||||
|
|
||||||
name: firewall-rules
|
|
||||||
description: ''
|
|
||||||
endpoints:
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- GET
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/firewall-rules'
|
|
||||||
metadata:
|
|
||||||
groupName: firewall-rules
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: list
|
|
||||||
description: 'Get all firewall rules.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"data":[{"id":null,"name":"ut","server_id":null,"type":"allow","protocol":"tcp","port":35499,"source":"177.130.54.250","mask":24,"note":"test","status":null,"created_at":null,"updated_at":null},{"id":null,"name":"totam","server_id":null,"type":"allow","protocol":"tcp","port":29448,"source":"181.194.26.13","mask":24,"note":"test","status":null,"created_at":null,"updated_at":null}],"links":{"first":"\/?page=1","last":"\/?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":1,"last_page":1,"links":[{"url":null,"label":"« Previous","active":false},{"url":"\/?page=1","label":"1","active":true},{"url":null,"label":"Next »","active":false}],"path":"\/","per_page":25,"to":2,"total":2}}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer eD368kaZfVEab4v61ghdP5c'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- POST
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/firewall-rules'
|
|
||||||
metadata:
|
|
||||||
groupName: firewall-rules
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: create
|
|
||||||
description: 'Create a new firewall rule.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters:
|
|
||||||
name:
|
|
||||||
name: name
|
|
||||||
description: ''
|
|
||||||
required: true
|
|
||||||
example: sapiente
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
type:
|
|
||||||
name: type
|
|
||||||
description: ''
|
|
||||||
required: true
|
|
||||||
example: allow
|
|
||||||
type: string
|
|
||||||
enumValues:
|
|
||||||
- allow
|
|
||||||
- deny
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
protocol:
|
|
||||||
name: protocol
|
|
||||||
description: ''
|
|
||||||
required: true
|
|
||||||
example: tcp
|
|
||||||
type: string
|
|
||||||
enumValues:
|
|
||||||
- tcp
|
|
||||||
- udp
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
port:
|
|
||||||
name: port
|
|
||||||
description: ''
|
|
||||||
required: true
|
|
||||||
example: et
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
source:
|
|
||||||
name: source
|
|
||||||
description: ''
|
|
||||||
required: false
|
|
||||||
example: doloribus
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
mask:
|
|
||||||
name: mask
|
|
||||||
description: 'Mask for source IP.'
|
|
||||||
required: true
|
|
||||||
example: '0'
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanBodyParameters:
|
|
||||||
name: sapiente
|
|
||||||
type: allow
|
|
||||||
protocol: tcp
|
|
||||||
port: et
|
|
||||||
source: doloribus
|
|
||||||
mask: '0'
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"id":null,"name":"omnis","server_id":null,"type":"allow","protocol":"tcp","port":54634,"source":"246.242.9.65","mask":24,"note":"test","status":null,"created_at":null,"updated_at":null}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer 3184PbED6aacZveV6hf5dgk'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- PUT
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/firewall-rules/{firewallRule_id}'
|
|
||||||
metadata:
|
|
||||||
groupName: firewall-rules
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: edit
|
|
||||||
description: 'Update an existing firewall rule.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
firewallRule_id:
|
|
||||||
name: firewallRule_id
|
|
||||||
description: 'The ID of the firewallRule.'
|
|
||||||
required: true
|
|
||||||
example: 85
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
firewallRule_id: 85
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters:
|
|
||||||
name:
|
|
||||||
name: name
|
|
||||||
description: ''
|
|
||||||
required: true
|
|
||||||
example: et
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
type:
|
|
||||||
name: type
|
|
||||||
description: ''
|
|
||||||
required: true
|
|
||||||
example: allow
|
|
||||||
type: string
|
|
||||||
enumValues:
|
|
||||||
- allow
|
|
||||||
- deny
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
protocol:
|
|
||||||
name: protocol
|
|
||||||
description: ''
|
|
||||||
required: true
|
|
||||||
example: tcp
|
|
||||||
type: string
|
|
||||||
enumValues:
|
|
||||||
- tcp
|
|
||||||
- udp
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
port:
|
|
||||||
name: port
|
|
||||||
description: ''
|
|
||||||
required: true
|
|
||||||
example: aut
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
source:
|
|
||||||
name: source
|
|
||||||
description: ''
|
|
||||||
required: false
|
|
||||||
example: et
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
mask:
|
|
||||||
name: mask
|
|
||||||
description: 'Mask for source IP.'
|
|
||||||
required: true
|
|
||||||
example: '0'
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanBodyParameters:
|
|
||||||
name: et
|
|
||||||
type: allow
|
|
||||||
protocol: tcp
|
|
||||||
port: aut
|
|
||||||
source: et
|
|
||||||
mask: '0'
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"id":null,"name":"consequatur","server_id":null,"type":"allow","protocol":"tcp","port":879,"source":"206.106.27.116","mask":24,"note":"test","status":null,"created_at":null,"updated_at":null}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer ad46E3egPDc51aV6hb8vkZf'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- GET
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/firewall-rules/{firewallRule_id}'
|
|
||||||
metadata:
|
|
||||||
groupName: firewall-rules
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: show
|
|
||||||
description: 'Get a firewall rule by ID.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
firewallRule_id:
|
|
||||||
name: firewallRule_id
|
|
||||||
description: 'The ID of the firewallRule.'
|
|
||||||
required: true
|
|
||||||
example: 85
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
firewallRule_id: 85
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"id":null,"name":"dolores","server_id":null,"type":"allow","protocol":"tcp","port":4691,"source":"147.108.28.144","mask":24,"note":"test","status":null,"created_at":null,"updated_at":null}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer 6gkvbDae15a6f43EVPdZh8c'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- DELETE
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/firewall-rules/{firewallRule_id}'
|
|
||||||
metadata:
|
|
||||||
groupName: firewall-rules
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: delete
|
|
||||||
description: 'Delete firewall rule.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
firewallRule_id:
|
|
||||||
name: firewallRule_id
|
|
||||||
description: 'The ID of the firewallRule.'
|
|
||||||
required: true
|
|
||||||
example: 85
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
firewallRule_id: 85
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 204
|
|
||||||
content: null
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer ZVd1fk5E3e48hDvaa6g6cPb'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
@ -1,46 +0,0 @@
|
|||||||
## Autogenerated by Scribe. DO NOT MODIFY.
|
|
||||||
|
|
||||||
name: general
|
|
||||||
description: ''
|
|
||||||
endpoints:
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- GET
|
|
||||||
uri: api/health
|
|
||||||
metadata:
|
|
||||||
groupName: general
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: health-check
|
|
||||||
description: ''
|
|
||||||
authenticated: false
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters: []
|
|
||||||
cleanUrlParameters: []
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"success":true,"version":"2.4.0"}'
|
|
||||||
headers:
|
|
||||||
cache-control: 'no-cache, private'
|
|
||||||
content-type: application/json
|
|
||||||
x-ratelimit-limit: '60'
|
|
||||||
x-ratelimit-remaining: '59'
|
|
||||||
access-control-allow-origin: '*'
|
|
||||||
description: null
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth: []
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
@ -1,260 +0,0 @@
|
|||||||
## Autogenerated by Scribe. DO NOT MODIFY.
|
|
||||||
|
|
||||||
name: projects
|
|
||||||
description: ''
|
|
||||||
endpoints:
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- GET
|
|
||||||
uri: api/projects
|
|
||||||
metadata:
|
|
||||||
groupName: projects
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: list
|
|
||||||
description: 'Get all projects.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters: []
|
|
||||||
cleanUrlParameters: []
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"data":[{"id":3,"name":"Mr. Drake Nader","created_at":"2025-04-05T17:48:03.000000Z","updated_at":"2025-04-05T17:48:03.000000Z"},{"id":4,"name":"Wilhelmine Jacobson","created_at":"2025-04-05T17:48:03.000000Z","updated_at":"2025-04-05T17:48:03.000000Z"}],"links":{"first":"\/?page=1","last":"\/?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":1,"last_page":1,"links":[{"url":null,"label":"« Previous","active":false},{"url":"\/?page=1","label":"1","active":true},{"url":null,"label":"Next »","active":false}],"path":"\/","per_page":25,"to":2,"total":2}}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer fbPE6haeDZ8v1gV5ak463dc'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- POST
|
|
||||||
uri: api/projects
|
|
||||||
metadata:
|
|
||||||
groupName: projects
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: create
|
|
||||||
description: 'Create a new project.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters: []
|
|
||||||
cleanUrlParameters: []
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters:
|
|
||||||
name:
|
|
||||||
name: name
|
|
||||||
description: 'The name of the project.'
|
|
||||||
required: true
|
|
||||||
example: dignissimos
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanBodyParameters:
|
|
||||||
name: dignissimos
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"id":3,"name":"Pattie Cole","created_at":"2025-04-05T17:48:03.000000Z","updated_at":"2025-04-05T17:48:03.000000Z"}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer 6ZkedcEfa5V6Dv4ab8P3g1h'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- GET
|
|
||||||
uri: 'api/projects/{id}'
|
|
||||||
metadata:
|
|
||||||
groupName: projects
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: show
|
|
||||||
description: 'Get a project by ID.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
id:
|
|
||||||
name: id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
id: 1
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"id":3,"name":"Mr. Elias Bauch","created_at":"2025-04-05T17:48:03.000000Z","updated_at":"2025-04-05T17:48:03.000000Z"}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer P6ka4Zaefgh8Ec3dV15v6bD'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- PUT
|
|
||||||
uri: 'api/projects/{id}'
|
|
||||||
metadata:
|
|
||||||
groupName: projects
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: update
|
|
||||||
description: 'Update project.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
id:
|
|
||||||
name: id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
id: 1
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters:
|
|
||||||
name:
|
|
||||||
name: name
|
|
||||||
description: 'The name of the project.'
|
|
||||||
required: true
|
|
||||||
example: sunt
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanBodyParameters:
|
|
||||||
name: sunt
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"id":3,"name":"Elfrieda Jakubowski","created_at":"2025-04-05T17:48:03.000000Z","updated_at":"2025-04-05T17:48:03.000000Z"}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer ecaDZkf5E4vgP1V86d6hb3a'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- DELETE
|
|
||||||
uri: 'api/projects/{project_id}'
|
|
||||||
metadata:
|
|
||||||
groupName: projects
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: delete
|
|
||||||
description: 'Delete project.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 204
|
|
||||||
content: null
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer h5gZ63DPVbcevE4faka86d1'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
@ -1,272 +0,0 @@
|
|||||||
## Autogenerated by Scribe. DO NOT MODIFY.
|
|
||||||
|
|
||||||
name: redirects
|
|
||||||
description: ''
|
|
||||||
endpoints:
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- GET
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/sites/{site_id}/redirects'
|
|
||||||
metadata:
|
|
||||||
groupName: redirects
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: index
|
|
||||||
description: 'Get all redirects.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
site_id:
|
|
||||||
name: site_id
|
|
||||||
description: 'The ID of the site.'
|
|
||||||
required: true
|
|
||||||
example: 44
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
site_id: 44
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"data":[{"id":null,"site_id":null,"mode":307,"from":"ipsum","to":"http:\/\/fritsch.biz\/","status":"ready","created_at":null,"updated_at":null},{"id":null,"site_id":null,"mode":302,"from":"culpa","to":"http:\/\/www.huels.net\/aut-ut-ut-porro-non-rerum-voluptatum.html","status":"ready","created_at":null,"updated_at":null}],"links":{"first":"\/?page=1","last":"\/?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":1,"last_page":1,"links":[{"url":null,"label":"« Previous","active":false},{"url":"\/?page=1","label":"1","active":true},{"url":null,"label":"Next »","active":false}],"path":"\/","per_page":25,"to":2,"total":2}}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer cV16fevgEZhPadD43685akb'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- POST
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/sites/{site_id}/redirects'
|
|
||||||
metadata:
|
|
||||||
groupName: redirects
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: create
|
|
||||||
description: 'Create a new redirect.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
site_id:
|
|
||||||
name: site_id
|
|
||||||
description: 'The ID of the site.'
|
|
||||||
required: true
|
|
||||||
example: 44
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
site_id: 44
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters:
|
|
||||||
from:
|
|
||||||
name: from
|
|
||||||
description: ''
|
|
||||||
required: true
|
|
||||||
example: odit
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
to:
|
|
||||||
name: to
|
|
||||||
description: ''
|
|
||||||
required: true
|
|
||||||
example: incidunt
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
mode:
|
|
||||||
name: mode
|
|
||||||
description: ''
|
|
||||||
required: true
|
|
||||||
example: 301
|
|
||||||
type: string
|
|
||||||
enumValues:
|
|
||||||
- 301
|
|
||||||
- 302
|
|
||||||
- 307
|
|
||||||
- 308
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanBodyParameters:
|
|
||||||
from: odit
|
|
||||||
to: incidunt
|
|
||||||
mode: 301
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: null
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer ZD45hPk638abev61EVcagdf'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- DELETE
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/sites/{site_id}/redirects/{redirect_id}'
|
|
||||||
metadata:
|
|
||||||
groupName: redirects
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: delete
|
|
||||||
description: 'Delete a redirect.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
site_id:
|
|
||||||
name: site_id
|
|
||||||
description: 'The ID of the site.'
|
|
||||||
required: true
|
|
||||||
example: 44
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
redirect_id:
|
|
||||||
name: redirect_id
|
|
||||||
description: 'The ID of the redirect.'
|
|
||||||
required: true
|
|
||||||
example: 9
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
site_id: 44
|
|
||||||
redirect_id: 9
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 204
|
|
||||||
content: null
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer Ec3fDgdbae615aPh8k6vV4Z'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
@ -1,503 +0,0 @@
|
|||||||
## Autogenerated by Scribe. DO NOT MODIFY.
|
|
||||||
|
|
||||||
name: servers
|
|
||||||
description: ''
|
|
||||||
endpoints:
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- GET
|
|
||||||
uri: 'api/projects/{project_id}/servers'
|
|
||||||
metadata:
|
|
||||||
groupName: servers
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: list
|
|
||||||
description: 'Get all servers in a project.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"data":[{"id":null,"project_id":null,"user_id":null,"provider_id":null,"name":"Miss Bonita Vandervort IV","ssh_user":"vito","ip":"120.222.195.212","local_ip":"138.119.37.248","port":22,"os":"ubuntu_22","type":"regular","type_data":null,"provider":"custom","provider_data":null,"public_key":"test","status":"ready","auto_update":null,"available_updates":0,"security_updates":null,"progress":100,"progress_step":null,"updates":null,"last_update_check":null,"created_at":null,"updated_at":null},{"id":null,"project_id":null,"user_id":null,"provider_id":null,"name":"Dr. Shanie Batz IV","ssh_user":"vito","ip":"241.88.138.163","local_ip":"138.226.232.93","port":22,"os":"ubuntu_22","type":"regular","type_data":null,"provider":"custom","provider_data":null,"public_key":"test","status":"ready","auto_update":null,"available_updates":0,"security_updates":null,"progress":100,"progress_step":null,"updates":null,"last_update_check":null,"created_at":null,"updated_at":null}],"links":{"first":"\/?page=1","last":"\/?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":1,"last_page":1,"links":[{"url":null,"label":"« Previous","active":false},{"url":"\/?page=1","label":"1","active":true},{"url":null,"label":"Next »","active":false}],"path":"\/","per_page":25,"to":2,"total":2}}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer Pg1Vk6cvadD8eb3ZhaEf564'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- POST
|
|
||||||
uri: 'api/projects/{project_id}/servers'
|
|
||||||
metadata:
|
|
||||||
groupName: servers
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: create
|
|
||||||
description: 'Create a new server.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters:
|
|
||||||
provider:
|
|
||||||
name: provider
|
|
||||||
description: 'The server provider type'
|
|
||||||
required: true
|
|
||||||
example: fugiat
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_provider:
|
|
||||||
name: server_provider
|
|
||||||
description: 'If the provider is not custom, the ID of the server provider profile'
|
|
||||||
required: true
|
|
||||||
example: digitalocean
|
|
||||||
type: string
|
|
||||||
enumValues:
|
|
||||||
- custom
|
|
||||||
- hetzner
|
|
||||||
- digitalocean
|
|
||||||
- linode
|
|
||||||
- vultr
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
region:
|
|
||||||
name: region
|
|
||||||
description: 'Provider region if the provider is not custom'
|
|
||||||
required: true
|
|
||||||
example: itaque
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
plan:
|
|
||||||
name: plan
|
|
||||||
description: 'Provider plan if the provider is not custom'
|
|
||||||
required: true
|
|
||||||
example: voluptatum
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
ip:
|
|
||||||
name: ip
|
|
||||||
description: 'SSH IP address if the provider is custom'
|
|
||||||
required: true
|
|
||||||
example: ut
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
port:
|
|
||||||
name: port
|
|
||||||
description: 'SSH Port if the provider is custom'
|
|
||||||
required: true
|
|
||||||
example: reiciendis
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
name:
|
|
||||||
name: name
|
|
||||||
description: 'The name of the server.'
|
|
||||||
required: true
|
|
||||||
example: et
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
os:
|
|
||||||
name: os
|
|
||||||
description: 'The os of the server'
|
|
||||||
required: true
|
|
||||||
example: vel
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
webserver:
|
|
||||||
name: webserver
|
|
||||||
description: 'Web server'
|
|
||||||
required: true
|
|
||||||
example: nginx
|
|
||||||
type: string
|
|
||||||
enumValues:
|
|
||||||
- none
|
|
||||||
- nginx
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
database:
|
|
||||||
name: database
|
|
||||||
description: Database
|
|
||||||
required: true
|
|
||||||
example: mysql80
|
|
||||||
type: string
|
|
||||||
enumValues:
|
|
||||||
- none
|
|
||||||
- mysql57
|
|
||||||
- mysql80
|
|
||||||
- mariadb103
|
|
||||||
- mariadb104
|
|
||||||
- mariadb103
|
|
||||||
- postgresql12
|
|
||||||
- postgresql13
|
|
||||||
- postgresql14
|
|
||||||
- postgresql15
|
|
||||||
- postgresql16
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
php:
|
|
||||||
name: php
|
|
||||||
description: 'PHP version'
|
|
||||||
required: true
|
|
||||||
example: '7.2'
|
|
||||||
type: string
|
|
||||||
enumValues:
|
|
||||||
- '7.0'
|
|
||||||
- '7.1'
|
|
||||||
- '7.2'
|
|
||||||
- '7.3'
|
|
||||||
- '7.4'
|
|
||||||
- '8.0'
|
|
||||||
- '8.1'
|
|
||||||
- '8.2'
|
|
||||||
- '8.3'
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanBodyParameters:
|
|
||||||
provider: fugiat
|
|
||||||
server_provider: digitalocean
|
|
||||||
region: itaque
|
|
||||||
plan: voluptatum
|
|
||||||
ip: ut
|
|
||||||
port: reiciendis
|
|
||||||
name: et
|
|
||||||
os: vel
|
|
||||||
webserver: nginx
|
|
||||||
database: mysql80
|
|
||||||
php: '7.2'
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"id":null,"project_id":null,"user_id":null,"provider_id":null,"name":"Jeromy Mann","ssh_user":"vito","ip":"128.70.209.89","local_ip":"150.217.250.187","port":22,"os":"ubuntu_22","type":"regular","type_data":null,"provider":"custom","provider_data":null,"public_key":"test","status":"ready","auto_update":null,"available_updates":0,"security_updates":null,"progress":100,"progress_step":null,"updates":null,"last_update_check":null,"created_at":null,"updated_at":null}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer 5E61e4vfcgDbVkZd68aah3P'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- GET
|
|
||||||
uri: 'api/projects/{project_id}/servers/{id}'
|
|
||||||
metadata:
|
|
||||||
groupName: servers
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: show
|
|
||||||
description: 'Get a server by ID.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
id:
|
|
||||||
name: id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
id: 29
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"id":null,"project_id":null,"user_id":null,"provider_id":null,"name":"Miss Maya Schaden I","ssh_user":"vito","ip":"44.57.83.39","local_ip":"46.22.92.58","port":22,"os":"ubuntu_22","type":"regular","type_data":null,"provider":"custom","provider_data":null,"public_key":"test","status":"ready","auto_update":null,"available_updates":0,"security_updates":null,"progress":100,"progress_step":null,"updates":null,"last_update_check":null,"created_at":null,"updated_at":null}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer hV3debf65aPD4E1ckag8Z6v'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- POST
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/reboot'
|
|
||||||
metadata:
|
|
||||||
groupName: servers
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: reboot
|
|
||||||
description: 'Reboot a server.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 204
|
|
||||||
content: null
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer b61aD6538PacZEkeghfvV4d'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- POST
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/upgrade'
|
|
||||||
metadata:
|
|
||||||
groupName: servers
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: upgrade
|
|
||||||
description: 'Upgrade server.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 204
|
|
||||||
content: null
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer dEZaa6cePVf3k86g45vbD1h'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- DELETE
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}'
|
|
||||||
metadata:
|
|
||||||
groupName: servers
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: delete
|
|
||||||
description: 'Delete server.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 204
|
|
||||||
content: null
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer 6aDkZEfdP16V58gb43avhec'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
@ -1,372 +0,0 @@
|
|||||||
## Autogenerated by Scribe. DO NOT MODIFY.
|
|
||||||
|
|
||||||
name: server-providers
|
|
||||||
description: ''
|
|
||||||
endpoints:
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- GET
|
|
||||||
uri: 'api/projects/{project_id}/server-providers'
|
|
||||||
metadata:
|
|
||||||
groupName: server-providers
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: list
|
|
||||||
description: ''
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"data":[{"id":3,"project_id":null,"global":true,"name":"aut","provider":"hetzner","created_at":"2025-04-05T17:48:03.000000Z","updated_at":"2025-04-05T17:48:03.000000Z"},{"id":4,"project_id":null,"global":true,"name":"qui","provider":"aws","created_at":"2025-04-05T17:48:03.000000Z","updated_at":"2025-04-05T17:48:03.000000Z"}],"links":{"first":"\/?page=1","last":"\/?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":1,"last_page":1,"links":[{"url":null,"label":"« Previous","active":false},{"url":"\/?page=1","label":"1","active":true},{"url":null,"label":"Next »","active":false}],"path":"\/","per_page":25,"to":2,"total":2}}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer 3evaP8h6VEZkbfgaD6d1c45'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- POST
|
|
||||||
uri: 'api/projects/{project_id}/server-providers'
|
|
||||||
metadata:
|
|
||||||
groupName: server-providers
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: create
|
|
||||||
description: ''
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters:
|
|
||||||
provider:
|
|
||||||
name: provider
|
|
||||||
description: 'The provider (aws, linode, hetzner, digitalocean, vultr, ...)'
|
|
||||||
required: true
|
|
||||||
example: corrupti
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
name:
|
|
||||||
name: name
|
|
||||||
description: 'The name of the server provider.'
|
|
||||||
required: true
|
|
||||||
example: est
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
token:
|
|
||||||
name: token
|
|
||||||
description: 'The token if provider requires api token'
|
|
||||||
required: true
|
|
||||||
example: rerum
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
key:
|
|
||||||
name: key
|
|
||||||
description: 'The key if provider requires key'
|
|
||||||
required: true
|
|
||||||
example: ut
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
secret:
|
|
||||||
name: secret
|
|
||||||
description: 'The secret if provider requires key'
|
|
||||||
required: true
|
|
||||||
example: sed
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanBodyParameters:
|
|
||||||
provider: corrupti
|
|
||||||
name: est
|
|
||||||
token: rerum
|
|
||||||
key: ut
|
|
||||||
secret: sed
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"id":3,"project_id":null,"global":true,"name":"voluptas","provider":"vultr","created_at":"2025-04-05T17:48:03.000000Z","updated_at":"2025-04-05T17:48:03.000000Z"}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer 6g6vfEck83VaPhd5Zabe1D4'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- GET
|
|
||||||
uri: 'api/projects/{project_id}/server-providers/{serverProvider_id}'
|
|
||||||
metadata:
|
|
||||||
groupName: server-providers
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: show
|
|
||||||
description: ''
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
serverProvider_id:
|
|
||||||
name: serverProvider_id
|
|
||||||
description: 'The ID of the serverProvider.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
serverProvider_id: 1
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"id":3,"project_id":null,"global":true,"name":"et","provider":"digitalocean","created_at":"2025-04-05T17:48:03.000000Z","updated_at":"2025-04-05T17:48:03.000000Z"}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer va63cDe8dPf5Z4Vahb1E6kg'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- PUT
|
|
||||||
uri: 'api/projects/{project_id}/server-providers/{serverProvider_id}'
|
|
||||||
metadata:
|
|
||||||
groupName: server-providers
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: update
|
|
||||||
description: ''
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
serverProvider_id:
|
|
||||||
name: serverProvider_id
|
|
||||||
description: 'The ID of the serverProvider.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
serverProvider_id: 1
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters:
|
|
||||||
name:
|
|
||||||
name: name
|
|
||||||
description: 'The name of the server provider.'
|
|
||||||
required: true
|
|
||||||
example: earum
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
global:
|
|
||||||
name: global
|
|
||||||
description: 'Accessible in all projects'
|
|
||||||
required: true
|
|
||||||
example: false
|
|
||||||
type: string
|
|
||||||
enumValues:
|
|
||||||
- true
|
|
||||||
- false
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanBodyParameters:
|
|
||||||
name: earum
|
|
||||||
global: false
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"id":3,"project_id":null,"global":true,"name":"architecto","provider":"digitalocean","created_at":"2025-04-05T17:48:03.000000Z","updated_at":"2025-04-05T17:48:03.000000Z"}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer 4e1dghaV6D856P3ZbfkcEva'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- DELETE
|
|
||||||
uri: 'api/projects/{project_id}/server-providers/{serverProvider_id}'
|
|
||||||
metadata:
|
|
||||||
groupName: server-providers
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: delete
|
|
||||||
description: ''
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
serverProvider_id:
|
|
||||||
name: serverProvider_id
|
|
||||||
description: 'The ID of the serverProvider.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
serverProvider_id: 1
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 204
|
|
||||||
content: null
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer fcVa8ev63gP5DaZbkdhE461'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
@ -1,235 +0,0 @@
|
|||||||
## Autogenerated by Scribe. DO NOT MODIFY.
|
|
||||||
|
|
||||||
name: ssh-keys
|
|
||||||
description: ''
|
|
||||||
endpoints:
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- GET
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/ssh-keys'
|
|
||||||
metadata:
|
|
||||||
groupName: ssh-keys
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: list
|
|
||||||
description: 'Get all ssh keys.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"data":[{"id":null,"user":null,"name":"Santa Goyette","created_at":null,"updated_at":null},{"id":null,"user":null,"name":"Cecil Cummings","created_at":null,"updated_at":null}],"links":{"first":"\/?page=1","last":"\/?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":1,"last_page":1,"links":[{"url":null,"label":"« Previous","active":false},{"url":"\/?page=1","label":"1","active":true},{"url":null,"label":"Next »","active":false}],"path":"\/","per_page":25,"to":2,"total":2}}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer 165aZvb46PhacEfke83dVgD'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- POST
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/ssh-keys'
|
|
||||||
metadata:
|
|
||||||
groupName: ssh-keys
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: create
|
|
||||||
description: 'Deploy ssh key to server.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters:
|
|
||||||
key_id:
|
|
||||||
name: key_id
|
|
||||||
description: 'The ID of the key.'
|
|
||||||
required: true
|
|
||||||
example: explicabo
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
name:
|
|
||||||
name: name
|
|
||||||
description: 'Key name, required if key_id is not provided.'
|
|
||||||
required: true
|
|
||||||
example: deleniti
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
public_key:
|
|
||||||
name: public_key
|
|
||||||
description: 'Public Key, required if key_id is not provided.'
|
|
||||||
required: true
|
|
||||||
example: sapiente
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanBodyParameters:
|
|
||||||
key_id: explicabo
|
|
||||||
name: deleniti
|
|
||||||
public_key: sapiente
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"id":null,"user":null,"name":"Mr. Reagan Jacobson V","created_at":null,"updated_at":null}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer deDkf4E13PZb6cgaV58ha6v'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- DELETE
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/ssh-keys/{sshKey_id}'
|
|
||||||
metadata:
|
|
||||||
groupName: ssh-keys
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: delete
|
|
||||||
description: 'Delete ssh key from server.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
sshKey_id:
|
|
||||||
name: sshKey_id
|
|
||||||
description: 'The ID of the sshKey.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
sshKey_id: 1
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 204
|
|
||||||
content: null
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer ec48fgVdZ6ah3kvPD16E5ab'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
@ -1,578 +0,0 @@
|
|||||||
## Autogenerated by Scribe. DO NOT MODIFY.
|
|
||||||
|
|
||||||
name: services
|
|
||||||
description: ''
|
|
||||||
endpoints:
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- GET
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/services'
|
|
||||||
metadata:
|
|
||||||
groupName: services
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: list
|
|
||||||
description: 'Get all services.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"data":[{"id":null,"server_id":null,"type":null,"type_data":null,"name":null,"version":null,"unit":null,"status":null,"is_default":null,"created_at":null,"updated_at":null},{"id":null,"server_id":null,"type":null,"type_data":null,"name":null,"version":null,"unit":null,"status":null,"is_default":null,"created_at":null,"updated_at":null}],"links":{"first":"\/?page=1","last":"\/?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":1,"last_page":1,"links":[{"url":null,"label":"« Previous","active":false},{"url":"\/?page=1","label":"1","active":true},{"url":null,"label":"Next »","active":false}],"path":"\/","per_page":25,"to":2,"total":2}}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer gVEce46k8aZfaP3d15vbhD6'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- GET
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/services/{id}'
|
|
||||||
metadata:
|
|
||||||
groupName: services
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: show
|
|
||||||
description: 'Get a service by ID.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
id:
|
|
||||||
name: id
|
|
||||||
description: 'The ID of the service.'
|
|
||||||
required: true
|
|
||||||
example: 169
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
id: 169
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"id":null,"server_id":null,"type":null,"type_data":null,"name":null,"version":null,"unit":null,"status":null,"is_default":null,"created_at":null,"updated_at":null}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer Ef8D5gbV6cadk3Zh1vP46ea'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- POST
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/services/{service_id}/start'
|
|
||||||
metadata:
|
|
||||||
groupName: services
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: start
|
|
||||||
description: 'Start service.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
service_id:
|
|
||||||
name: service_id
|
|
||||||
description: 'The ID of the service.'
|
|
||||||
required: true
|
|
||||||
example: 169
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
service_id: 169
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 204
|
|
||||||
content: null
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer b3DckZ8g6ha6aPe4f5V1vdE'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- POST
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/services/{service_id}/stop'
|
|
||||||
metadata:
|
|
||||||
groupName: services
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: stop
|
|
||||||
description: 'Stop service.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
service_id:
|
|
||||||
name: service_id
|
|
||||||
description: 'The ID of the service.'
|
|
||||||
required: true
|
|
||||||
example: 169
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
service_id: 169
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 204
|
|
||||||
content: null
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer 1e8aZbfvE5643DacgkPhdV6'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- POST
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/services/{service_id}/restart'
|
|
||||||
metadata:
|
|
||||||
groupName: services
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: restart
|
|
||||||
description: 'Restart service.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
service_id:
|
|
||||||
name: service_id
|
|
||||||
description: 'The ID of the service.'
|
|
||||||
required: true
|
|
||||||
example: 169
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
service_id: 169
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 204
|
|
||||||
content: null
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer c46baVZEg5dv1Pfe8Dha6k3'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- POST
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/services/{service_id}/enable'
|
|
||||||
metadata:
|
|
||||||
groupName: services
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: enable
|
|
||||||
description: 'Enable service.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
service_id:
|
|
||||||
name: service_id
|
|
||||||
description: 'The ID of the service.'
|
|
||||||
required: true
|
|
||||||
example: 169
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
service_id: 169
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 204
|
|
||||||
content: null
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer EvcehkDbdV43f61P86Za5ga'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- POST
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/services/{service_id}/disable'
|
|
||||||
metadata:
|
|
||||||
groupName: services
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: disable
|
|
||||||
description: 'Disable service.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
service_id:
|
|
||||||
name: service_id
|
|
||||||
description: 'The ID of the service.'
|
|
||||||
required: true
|
|
||||||
example: 169
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
service_id: 169
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 204
|
|
||||||
content: null
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer k8E5gf6d4h31bevaa6cVPZD'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- DELETE
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/services/{service_id}'
|
|
||||||
metadata:
|
|
||||||
groupName: services
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: delete
|
|
||||||
description: 'Delete service.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
service_id:
|
|
||||||
name: service_id
|
|
||||||
description: 'The ID of the service.'
|
|
||||||
required: true
|
|
||||||
example: 169
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
service_id: 169
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 204
|
|
||||||
content: null
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer Pekav16cd5ag486ZfD3EVbh'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
@ -1,991 +0,0 @@
|
|||||||
## Autogenerated by Scribe. DO NOT MODIFY.
|
|
||||||
|
|
||||||
name: sites
|
|
||||||
description: ''
|
|
||||||
endpoints:
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- GET
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/sites'
|
|
||||||
metadata:
|
|
||||||
groupName: sites
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: list
|
|
||||||
description: 'Get all sites.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"data":[{"id":null,"server_id":null,"source_control_id":null,"type":"laravel","type_data":null,"domain":"test.com","aliases":null,"web_directory":"\/","path":"\/home","php_version":"8.2","repository":null,"branch":"main","status":"ready","port":null,"user":"vito","progress":100,"created_at":null,"updated_at":null},{"id":null,"server_id":null,"source_control_id":null,"type":"laravel","type_data":null,"domain":"test.com","aliases":null,"web_directory":"\/","path":"\/home","php_version":"8.2","repository":null,"branch":"main","status":"ready","port":null,"user":"vito","progress":100,"created_at":null,"updated_at":null}],"links":{"first":"\/?page=1","last":"\/?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":1,"last_page":1,"links":[{"url":null,"label":"« Previous","active":false},{"url":"\/?page=1","label":"1","active":true},{"url":null,"label":"Next »","active":false}],"path":"\/","per_page":25,"to":2,"total":2}}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer aD138EgdPf4Vhav5c6bke6Z'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- POST
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/sites'
|
|
||||||
metadata:
|
|
||||||
groupName: sites
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: create
|
|
||||||
description: 'Create a new site.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters:
|
|
||||||
type:
|
|
||||||
name: type
|
|
||||||
description: ''
|
|
||||||
required: true
|
|
||||||
example: php-blank
|
|
||||||
type: string
|
|
||||||
enumValues:
|
|
||||||
- php
|
|
||||||
- php-blank
|
|
||||||
- phpmyadmin
|
|
||||||
- laravel
|
|
||||||
- wordpress
|
|
||||||
- load-balancer
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
domain:
|
|
||||||
name: domain
|
|
||||||
description: ''
|
|
||||||
required: true
|
|
||||||
example: impedit
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
aliases:
|
|
||||||
name: aliases
|
|
||||||
description: ''
|
|
||||||
required: true
|
|
||||||
example:
|
|
||||||
- cum
|
|
||||||
type: 'string[]'
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
php_version:
|
|
||||||
name: php_version
|
|
||||||
description: 'One of the installed PHP Versions'
|
|
||||||
required: true
|
|
||||||
example: '7.4'
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
web_directory:
|
|
||||||
name: web_directory
|
|
||||||
description: 'Required for PHP and Laravel sites'
|
|
||||||
required: true
|
|
||||||
example: public
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
source_control:
|
|
||||||
name: source_control
|
|
||||||
description: 'Source control ID, Required for Sites which support source control'
|
|
||||||
required: true
|
|
||||||
example: non
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
repository:
|
|
||||||
name: repository
|
|
||||||
description: 'Repository, Required for Sites which support source control'
|
|
||||||
required: true
|
|
||||||
example: organization/repository
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
branch:
|
|
||||||
name: branch
|
|
||||||
description: 'Branch, Required for Sites which support source control'
|
|
||||||
required: true
|
|
||||||
example: main
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
composer:
|
|
||||||
name: composer
|
|
||||||
description: 'Run composer if site supports composer'
|
|
||||||
required: true
|
|
||||||
example: true
|
|
||||||
type: boolean
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
version:
|
|
||||||
name: version
|
|
||||||
description: 'Version, if the site type requires a version like PHPMyAdmin'
|
|
||||||
required: true
|
|
||||||
example: 5.2.1
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
user:
|
|
||||||
name: user
|
|
||||||
description: 'user, to isolate the website under a new user'
|
|
||||||
required: true
|
|
||||||
example: voluptate
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
method:
|
|
||||||
name: method
|
|
||||||
description: 'Load balancer method, Required if the site type is Load balancer'
|
|
||||||
required: true
|
|
||||||
example: ip-hash
|
|
||||||
type: string
|
|
||||||
enumValues:
|
|
||||||
- round-robin
|
|
||||||
- least-connections
|
|
||||||
- ip-hash
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanBodyParameters:
|
|
||||||
type: php-blank
|
|
||||||
domain: impedit
|
|
||||||
aliases:
|
|
||||||
- cum
|
|
||||||
php_version: '7.4'
|
|
||||||
web_directory: public
|
|
||||||
source_control: non
|
|
||||||
repository: organization/repository
|
|
||||||
branch: main
|
|
||||||
composer: true
|
|
||||||
version: 5.2.1
|
|
||||||
user: voluptate
|
|
||||||
method: ip-hash
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"id":null,"server_id":null,"source_control_id":null,"type":"laravel","type_data":null,"domain":"test.com","aliases":null,"web_directory":"\/","path":"\/home","php_version":"8.2","repository":null,"branch":"main","status":"ready","port":null,"user":"vito","progress":100,"created_at":null,"updated_at":null}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer 6V3D5c4g6hZaEfb81evPadk'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- GET
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/sites/{id}'
|
|
||||||
metadata:
|
|
||||||
groupName: sites
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: show
|
|
||||||
description: 'Get a site by ID.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
id:
|
|
||||||
name: id
|
|
||||||
description: 'The ID of the site.'
|
|
||||||
required: true
|
|
||||||
example: 44
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
id: 44
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"id":null,"server_id":null,"source_control_id":null,"type":"laravel","type_data":null,"domain":"test.com","aliases":null,"web_directory":"\/","path":"\/home","php_version":"8.2","repository":null,"branch":"main","status":"ready","port":null,"user":"vito","progress":100,"created_at":null,"updated_at":null}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer gE86bZ6vfcd3hVP15ka4Dea'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- DELETE
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/sites/{site_id}'
|
|
||||||
metadata:
|
|
||||||
groupName: sites
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: delete
|
|
||||||
description: 'Delete site.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
site_id:
|
|
||||||
name: site_id
|
|
||||||
description: 'The ID of the site.'
|
|
||||||
required: true
|
|
||||||
example: 44
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
site_id: 44
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 204
|
|
||||||
content: null
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer 8kEb6Dd613a5afZhcg4VvPe'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- POST
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/sites/{site_id}/load-balancer'
|
|
||||||
metadata:
|
|
||||||
groupName: sites
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: load-balancer
|
|
||||||
description: 'Update load balancer.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
site_id:
|
|
||||||
name: site_id
|
|
||||||
description: 'The ID of the site.'
|
|
||||||
required: true
|
|
||||||
example: 44
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
site_id: 44
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters:
|
|
||||||
method:
|
|
||||||
name: method
|
|
||||||
description: 'Load balancer method, Required if the site type is Load balancer'
|
|
||||||
required: true
|
|
||||||
example: round-robin
|
|
||||||
type: string
|
|
||||||
enumValues:
|
|
||||||
- round-robin
|
|
||||||
- least-connections
|
|
||||||
- ip-hash
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
servers:
|
|
||||||
name: servers
|
|
||||||
description: 'Array of servers including server, port, weight, backup. (server is the local IP of the server)'
|
|
||||||
required: true
|
|
||||||
example:
|
|
||||||
- omnis
|
|
||||||
type: 'string[]'
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanBodyParameters:
|
|
||||||
method: round-robin
|
|
||||||
servers:
|
|
||||||
- omnis
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: null
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer 8Da4P1c6d6gfbhZvaE3k5Ve'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- PUT
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/sites/{site_id}/aliases'
|
|
||||||
metadata:
|
|
||||||
groupName: sites
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: aliases
|
|
||||||
description: 'Update aliases.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
site_id:
|
|
||||||
name: site_id
|
|
||||||
description: 'The ID of the site.'
|
|
||||||
required: true
|
|
||||||
example: 44
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
site_id: 44
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters:
|
|
||||||
aliases:
|
|
||||||
name: aliases
|
|
||||||
description: 'Array of aliases'
|
|
||||||
required: true
|
|
||||||
example:
|
|
||||||
- doloremque
|
|
||||||
type: 'string[]'
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanBodyParameters:
|
|
||||||
aliases:
|
|
||||||
- doloremque
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: null
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer d4EVa8Zkfvg1Dcbe53P6a6h'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- POST
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/sites/{site_id}/deploy'
|
|
||||||
metadata:
|
|
||||||
groupName: sites
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: deploy
|
|
||||||
description: 'Run site deployment script'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
site_id:
|
|
||||||
name: site_id
|
|
||||||
description: 'The ID of the site.'
|
|
||||||
required: true
|
|
||||||
example: 44
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
site_id: 44
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: null
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer dkcV5EZa8fD6vgaP1b36e4h'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- PUT
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/sites/{site_id}/deployment-script'
|
|
||||||
metadata:
|
|
||||||
groupName: sites
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: deployment-script
|
|
||||||
description: 'Update site deployment script'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
site_id:
|
|
||||||
name: site_id
|
|
||||||
description: 'The ID of the site.'
|
|
||||||
required: true
|
|
||||||
example: 44
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
site_id: 44
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters:
|
|
||||||
script:
|
|
||||||
name: script
|
|
||||||
description: 'Content of the deployment script'
|
|
||||||
required: true
|
|
||||||
example: voluptatem
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanBodyParameters:
|
|
||||||
script: voluptatem
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 204
|
|
||||||
content: null
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer hevV81bfZE6cdkaa453gDP6'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- GET
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/sites/{site_id}/deployment-script'
|
|
||||||
metadata:
|
|
||||||
groupName: sites
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: deployment-script
|
|
||||||
description: 'Get site deployment script content'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
site_id:
|
|
||||||
name: site_id
|
|
||||||
description: 'The ID of the site.'
|
|
||||||
required: true
|
|
||||||
example: 44
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
site_id: 44
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: null
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer a1EbvhePag4f5dk6ZV368Dc'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- GET
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/sites/{site_id}/env'
|
|
||||||
metadata:
|
|
||||||
groupName: sites
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: env
|
|
||||||
description: 'Get site .env file content'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
site_id:
|
|
||||||
name: site_id
|
|
||||||
description: 'The ID of the site.'
|
|
||||||
required: true
|
|
||||||
example: 44
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
site_id: 44
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"data":{"env":"APP_NAME=Laravel\\nAPP_ENV=production"}}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer P8Zvch3DgV654abeaE6f1kd'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- PUT
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/sites/{site_id}/env'
|
|
||||||
metadata:
|
|
||||||
groupName: sites
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: env
|
|
||||||
description: 'Update site .env file'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
site_id:
|
|
||||||
name: site_id
|
|
||||||
description: 'The ID of the site.'
|
|
||||||
required: true
|
|
||||||
example: 44
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
site_id: 44
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters:
|
|
||||||
env:
|
|
||||||
name: env
|
|
||||||
description: 'Content of the .env file'
|
|
||||||
required: true
|
|
||||||
example: quam
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanBodyParameters:
|
|
||||||
env: quam
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: null
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer 45acbP1h6eg6kDVdZf8E3av'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
@ -1,430 +0,0 @@
|
|||||||
## Autogenerated by Scribe. DO NOT MODIFY.
|
|
||||||
|
|
||||||
name: source-controls
|
|
||||||
description: ''
|
|
||||||
endpoints:
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- GET
|
|
||||||
uri: 'api/projects/{project_id}/source-controls'
|
|
||||||
metadata:
|
|
||||||
groupName: source-controls
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: list
|
|
||||||
description: ''
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"data":[{"id":5,"project_id":null,"global":true,"name":"Zella Robel","provider":"github","created_at":"2025-04-05T17:48:03.000000Z","updated_at":"2025-04-05T17:48:03.000000Z"},{"id":6,"project_id":null,"global":true,"name":"Jairo Williamson","provider":"github","created_at":"2025-04-05T17:48:03.000000Z","updated_at":"2025-04-05T17:48:03.000000Z"}],"links":{"first":"\/?page=1","last":"\/?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":1,"last_page":1,"links":[{"url":null,"label":"« Previous","active":false},{"url":"\/?page=1","label":"1","active":true},{"url":null,"label":"Next »","active":false}],"path":"\/","per_page":25,"to":2,"total":2}}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer e3f4ag8hkb5vZcDadPEV661'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- POST
|
|
||||||
uri: 'api/projects/{project_id}/source-controls'
|
|
||||||
metadata:
|
|
||||||
groupName: source-controls
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: create
|
|
||||||
description: ''
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters:
|
|
||||||
provider:
|
|
||||||
name: provider
|
|
||||||
description: 'The provider'
|
|
||||||
required: true
|
|
||||||
example: gitlab
|
|
||||||
type: string
|
|
||||||
enumValues:
|
|
||||||
- gitlab
|
|
||||||
- github
|
|
||||||
- bitbucket
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
name:
|
|
||||||
name: name
|
|
||||||
description: 'The name of the storage provider.'
|
|
||||||
required: true
|
|
||||||
example: molestias
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
token:
|
|
||||||
name: token
|
|
||||||
description: 'The token if provider requires api token'
|
|
||||||
required: true
|
|
||||||
example: in
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
url:
|
|
||||||
name: url
|
|
||||||
description: 'The URL if the provider is Gitlab and it is self-hosted'
|
|
||||||
required: true
|
|
||||||
example: 'https://www.white.com/aperiam-dolor-nemo-qui-rerum-quod-quas'
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
username:
|
|
||||||
name: username
|
|
||||||
description: 'The username if the provider is Bitbucket'
|
|
||||||
required: true
|
|
||||||
example: consectetur
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
password:
|
|
||||||
name: password
|
|
||||||
description: 'The password if the provider is Bitbucket'
|
|
||||||
required: true
|
|
||||||
example: 'y*P4_]ZdjE_:'
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanBodyParameters:
|
|
||||||
provider: gitlab
|
|
||||||
name: molestias
|
|
||||||
token: in
|
|
||||||
url: 'https://www.white.com/aperiam-dolor-nemo-qui-rerum-quod-quas'
|
|
||||||
username: consectetur
|
|
||||||
password: 'y*P4_]ZdjE_:'
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"id":5,"project_id":null,"global":true,"name":"Miss Claudine Goyette","provider":"github","created_at":"2025-04-05T17:48:03.000000Z","updated_at":"2025-04-05T17:48:03.000000Z"}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer DfegP56vkEa364Zbhda8V1c'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- GET
|
|
||||||
uri: 'api/projects/{project_id}/source-controls/{sourceControl_id}'
|
|
||||||
metadata:
|
|
||||||
groupName: source-controls
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: show
|
|
||||||
description: ''
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
sourceControl_id:
|
|
||||||
name: sourceControl_id
|
|
||||||
description: 'The ID of the sourceControl.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
sourceControl_id: 1
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"id":5,"project_id":null,"global":true,"name":"Mona Stark","provider":"github","created_at":"2025-04-05T17:48:03.000000Z","updated_at":"2025-04-05T17:48:03.000000Z"}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer ePc6fb65vh1Z4aakE3Dgd8V'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- PUT
|
|
||||||
uri: 'api/projects/{project_id}/source-controls/{sourceControl_id}'
|
|
||||||
metadata:
|
|
||||||
groupName: source-controls
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: update
|
|
||||||
description: ''
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
sourceControl_id:
|
|
||||||
name: sourceControl_id
|
|
||||||
description: 'The ID of the sourceControl.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
sourceControl_id: 1
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters:
|
|
||||||
name:
|
|
||||||
name: name
|
|
||||||
description: 'The name of the storage provider.'
|
|
||||||
required: true
|
|
||||||
example: non
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
token:
|
|
||||||
name: token
|
|
||||||
description: 'The token if provider requires api token'
|
|
||||||
required: true
|
|
||||||
example: sunt
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
url:
|
|
||||||
name: url
|
|
||||||
description: 'The URL if the provider is Gitlab and it is self-hosted'
|
|
||||||
required: true
|
|
||||||
example: 'https://www.frami.org/ex-at-minus-rerum-quo-minus-ea'
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
username:
|
|
||||||
name: username
|
|
||||||
description: 'The username if the provider is Bitbucket'
|
|
||||||
required: true
|
|
||||||
example: natus
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
password:
|
|
||||||
name: password
|
|
||||||
description: 'The password if the provider is Bitbucket'
|
|
||||||
required: true
|
|
||||||
example: 'A^">*m{p]DI'
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
global:
|
|
||||||
name: global
|
|
||||||
description: 'Accessible in all projects'
|
|
||||||
required: true
|
|
||||||
example: true
|
|
||||||
type: string
|
|
||||||
enumValues:
|
|
||||||
- true
|
|
||||||
- false
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanBodyParameters:
|
|
||||||
name: non
|
|
||||||
token: sunt
|
|
||||||
url: 'https://www.frami.org/ex-at-minus-rerum-quo-minus-ea'
|
|
||||||
username: natus
|
|
||||||
password: 'A^">*m{p]DI'
|
|
||||||
global: true
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"id":5,"project_id":null,"global":true,"name":"Neha Little","provider":"github","created_at":"2025-04-05T17:48:03.000000Z","updated_at":"2025-04-05T17:48:03.000000Z"}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer v3f6aaPk61Ze8hVdDbE5g4c'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- DELETE
|
|
||||||
uri: 'api/projects/{project_id}/source-controls/{sourceControl_id}'
|
|
||||||
metadata:
|
|
||||||
groupName: source-controls
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: delete
|
|
||||||
description: ''
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
sourceControl_id:
|
|
||||||
name: sourceControl_id
|
|
||||||
description: 'The ID of the sourceControl.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
sourceControl_id: 1
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 204
|
|
||||||
content: null
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer fgk61vD68E4cZhP3bV5adea'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
@ -1,372 +0,0 @@
|
|||||||
## Autogenerated by Scribe. DO NOT MODIFY.
|
|
||||||
|
|
||||||
name: storage-providers
|
|
||||||
description: ''
|
|
||||||
endpoints:
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- GET
|
|
||||||
uri: 'api/projects/{project_id}/storage-providers'
|
|
||||||
metadata:
|
|
||||||
groupName: storage-providers
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: list
|
|
||||||
description: ''
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"data":[{"id":5,"project_id":null,"global":true,"name":"veritatis","provider":"ftp","created_at":"2025-04-05T17:48:03.000000Z","updated_at":"2025-04-05T17:48:03.000000Z"},{"id":6,"project_id":null,"global":true,"name":"voluptas","provider":"dropbox","created_at":"2025-04-05T17:48:03.000000Z","updated_at":"2025-04-05T17:48:03.000000Z"}],"links":{"first":"\/?page=1","last":"\/?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":1,"last_page":1,"links":[{"url":null,"label":"« Previous","active":false},{"url":"\/?page=1","label":"1","active":true},{"url":null,"label":"Next »","active":false}],"path":"\/","per_page":25,"to":2,"total":2}}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer fgh4eV31dP58kvaDEaZbc66'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- POST
|
|
||||||
uri: 'api/projects/{project_id}/storage-providers'
|
|
||||||
metadata:
|
|
||||||
groupName: storage-providers
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: create
|
|
||||||
description: ''
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters:
|
|
||||||
provider:
|
|
||||||
name: provider
|
|
||||||
description: 'The provider (aws, linode, hetzner, digitalocean, vultr, ...)'
|
|
||||||
required: true
|
|
||||||
example: ab
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
name:
|
|
||||||
name: name
|
|
||||||
description: 'The name of the storage provider.'
|
|
||||||
required: true
|
|
||||||
example: quo
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
token:
|
|
||||||
name: token
|
|
||||||
description: 'The token if provider requires api token'
|
|
||||||
required: true
|
|
||||||
example: in
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
key:
|
|
||||||
name: key
|
|
||||||
description: 'The key if provider requires key'
|
|
||||||
required: true
|
|
||||||
example: sunt
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
secret:
|
|
||||||
name: secret
|
|
||||||
description: 'The secret if provider requires key'
|
|
||||||
required: true
|
|
||||||
example: molestias
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanBodyParameters:
|
|
||||||
provider: ab
|
|
||||||
name: quo
|
|
||||||
token: in
|
|
||||||
key: sunt
|
|
||||||
secret: molestias
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"id":5,"project_id":null,"global":true,"name":"asperiores","provider":"dropbox","created_at":"2025-04-05T17:48:03.000000Z","updated_at":"2025-04-05T17:48:03.000000Z"}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer e584613dkZaPDEVvgcahbf6'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- GET
|
|
||||||
uri: 'api/projects/{project_id}/storage-providers/{storageProvider_id}'
|
|
||||||
metadata:
|
|
||||||
groupName: storage-providers
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: show
|
|
||||||
description: ''
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
storageProvider_id:
|
|
||||||
name: storageProvider_id
|
|
||||||
description: 'The ID of the storageProvider.'
|
|
||||||
required: true
|
|
||||||
example: 3
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
storageProvider_id: 3
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"id":5,"project_id":null,"global":true,"name":"ipsum","provider":"local","created_at":"2025-04-05T17:48:03.000000Z","updated_at":"2025-04-05T17:48:03.000000Z"}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer h6Zk6834dDce5fbPa1VvagE'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- PUT
|
|
||||||
uri: 'api/projects/{project_id}/storage-providers/{storageProvider_id}'
|
|
||||||
metadata:
|
|
||||||
groupName: storage-providers
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: update
|
|
||||||
description: ''
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
storageProvider_id:
|
|
||||||
name: storageProvider_id
|
|
||||||
description: 'The ID of the storageProvider.'
|
|
||||||
required: true
|
|
||||||
example: 3
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
storageProvider_id: 3
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters:
|
|
||||||
name:
|
|
||||||
name: name
|
|
||||||
description: 'The name of the storage provider.'
|
|
||||||
required: true
|
|
||||||
example: voluptas
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
global:
|
|
||||||
name: global
|
|
||||||
description: 'Accessible in all projects'
|
|
||||||
required: true
|
|
||||||
example: true
|
|
||||||
type: string
|
|
||||||
enumValues:
|
|
||||||
- true
|
|
||||||
- false
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanBodyParameters:
|
|
||||||
name: voluptas
|
|
||||||
global: true
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"id":5,"project_id":null,"global":true,"name":"minima","provider":"ftp","created_at":"2025-04-05T17:48:03.000000Z","updated_at":"2025-04-05T17:48:03.000000Z"}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer ak6fgd1Eba48chvPV3e5Z6D'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- DELETE
|
|
||||||
uri: 'api/projects/{project_id}/storage-providers/{storageProvider_id}'
|
|
||||||
metadata:
|
|
||||||
groupName: storage-providers
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: delete
|
|
||||||
description: ''
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
storageProvider_id:
|
|
||||||
name: storageProvider_id
|
|
||||||
description: 'The ID of the storageProvider.'
|
|
||||||
required: true
|
|
||||||
example: 3
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
storageProvider_id: 3
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 204
|
|
||||||
content: null
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer PcaDbh6ZE4aV1e8fdv56k3g'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
@ -1,308 +0,0 @@
|
|||||||
name: cron-jobs
|
|
||||||
description: ''
|
|
||||||
endpoints:
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- GET
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/cron-jobs'
|
|
||||||
metadata:
|
|
||||||
groupName: cron-jobs
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: list
|
|
||||||
description: 'Get all cron jobs.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"data":[{"id":null,"server_id":null,"command":"ls -la","user":"root","frequency":"* * * * *","status":"ready","created_at":null,"updated_at":null},{"id":null,"server_id":null,"command":"ls -la","user":"root","frequency":"* * * * *","status":"ready","created_at":null,"updated_at":null}],"links":{"first":"\/?page=1","last":"\/?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":1,"last_page":1,"links":[{"url":null,"label":"« Previous","active":false},{"url":"\/?page=1","label":"1","active":true},{"url":null,"label":"Next »","active":false}],"path":"\/","per_page":25,"to":2,"total":2}}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer eDa6Vdh1Z4vc35bP8E6gafk'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- POST
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/cron-jobs'
|
|
||||||
metadata:
|
|
||||||
groupName: cron-jobs
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: create
|
|
||||||
description: 'Create a new cron job.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters:
|
|
||||||
command:
|
|
||||||
name: command
|
|
||||||
description: ''
|
|
||||||
required: true
|
|
||||||
example: quia
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
user:
|
|
||||||
name: user
|
|
||||||
description: ''
|
|
||||||
required: true
|
|
||||||
example: root
|
|
||||||
type: string
|
|
||||||
enumValues:
|
|
||||||
- root
|
|
||||||
- vito
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
frequency:
|
|
||||||
name: frequency
|
|
||||||
description: 'Frequency of the cron job.'
|
|
||||||
required: true
|
|
||||||
example: '* * * * *'
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanBodyParameters:
|
|
||||||
command: quia
|
|
||||||
user: root
|
|
||||||
frequency: '* * * * *'
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"id":null,"server_id":null,"command":"ls -la","user":"root","frequency":"* * * * *","status":"ready","created_at":null,"updated_at":null}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer 66EeZvdh3kVaDP8f4ga5c1b'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- GET
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/cron-jobs/{cronJob_id}'
|
|
||||||
metadata:
|
|
||||||
groupName: cron-jobs
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: show
|
|
||||||
description: 'Get a cron job by ID.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cronJob_id:
|
|
||||||
name: cronJob_id
|
|
||||||
description: 'The ID of the cronJob.'
|
|
||||||
required: true
|
|
||||||
example: 6
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
cronJob_id: 6
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"id":null,"server_id":null,"command":"ls -la","user":"root","frequency":"* * * * *","status":"ready","created_at":null,"updated_at":null}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer D4c3Z65ebv8E16fahaVgPdk'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- DELETE
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/cron-jobs/{cronJob_id}'
|
|
||||||
metadata:
|
|
||||||
groupName: cron-jobs
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: delete
|
|
||||||
description: 'Delete cron job.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cronJob_id:
|
|
||||||
name: cronJob_id
|
|
||||||
description: 'The ID of the cronJob.'
|
|
||||||
required: true
|
|
||||||
example: 13
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
cronJob_id: 13
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 204
|
|
||||||
content: null
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer h3cP4aZa1v8feDdEg5b6k6V'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
@ -1,306 +0,0 @@
|
|||||||
name: databases
|
|
||||||
description: ''
|
|
||||||
endpoints:
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- GET
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/databases'
|
|
||||||
metadata:
|
|
||||||
groupName: databases
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: list
|
|
||||||
description: 'Get all databases.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"data":[{"id":null,"server_id":null,"name":"leffler.esther","status":"ready","created_at":null,"updated_at":null},{"id":null,"server_id":null,"name":"rhoda.rutherford","status":"ready","created_at":null,"updated_at":null}],"links":{"first":"\/?page=1","last":"\/?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":1,"last_page":1,"links":[{"url":null,"label":"« Previous","active":false},{"url":"\/?page=1","label":"1","active":true},{"url":null,"label":"Next »","active":false}],"path":"\/","per_page":25,"to":2,"total":2}}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer E1VdfegZah4k86b53Dc6Pva'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- POST
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/databases'
|
|
||||||
metadata:
|
|
||||||
groupName: databases
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: create
|
|
||||||
description: 'Create a new database.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters:
|
|
||||||
name:
|
|
||||||
name: name
|
|
||||||
description: ''
|
|
||||||
required: true
|
|
||||||
example: quisquam
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
charset:
|
|
||||||
name: charset
|
|
||||||
description: ''
|
|
||||||
required: true
|
|
||||||
example: omnis
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
collation:
|
|
||||||
name: collation
|
|
||||||
description: ''
|
|
||||||
required: true
|
|
||||||
example: at
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanBodyParameters:
|
|
||||||
name: quisquam
|
|
||||||
charset: omnis
|
|
||||||
collation: at
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"id":null,"server_id":null,"name":"csawayn","status":"ready","created_at":null,"updated_at":null}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer PVgkZ35ca4afd1EbD8ehv66'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- GET
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/databases/{id}'
|
|
||||||
metadata:
|
|
||||||
groupName: databases
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: show
|
|
||||||
description: 'Get a database by ID.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
id:
|
|
||||||
name: id
|
|
||||||
description: 'The ID of the database.'
|
|
||||||
required: true
|
|
||||||
example: 8
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
id: 8
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"id":null,"server_id":null,"name":"sandrine43","status":"ready","created_at":null,"updated_at":null}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer EP64D8g51adf6hbceavVZ3k'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- DELETE
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/databases/{database_id}'
|
|
||||||
metadata:
|
|
||||||
groupName: databases
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: delete
|
|
||||||
description: 'Delete database.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
database_id:
|
|
||||||
name: database_id
|
|
||||||
description: 'The ID of the database.'
|
|
||||||
required: true
|
|
||||||
example: 8
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
database_id: 8
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 204
|
|
||||||
content: null
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer 8dgEk3Zv1eaVP66bDhf4ac5'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
@ -1,390 +0,0 @@
|
|||||||
name: database-users
|
|
||||||
description: ''
|
|
||||||
endpoints:
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- GET
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/database-users'
|
|
||||||
metadata:
|
|
||||||
groupName: database-users
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: list
|
|
||||||
description: 'Get all database users.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"data":[{"id":null,"server_id":null,"username":"letha64","databases":[],"host":"%","status":null,"created_at":null,"updated_at":null},{"id":null,"server_id":null,"username":"hagenes.lurline","databases":[],"host":"%","status":null,"created_at":null,"updated_at":null}],"links":{"first":"\/?page=1","last":"\/?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":1,"last_page":1,"links":[{"url":null,"label":"« Previous","active":false},{"url":"\/?page=1","label":"1","active":true},{"url":null,"label":"Next »","active":false}],"path":"\/","per_page":25,"to":2,"total":2}}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer d4g15bV3Pa6hDvck6eaEf8Z'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- POST
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/database-users'
|
|
||||||
metadata:
|
|
||||||
groupName: database-users
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: create
|
|
||||||
description: 'Create a new database user.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters:
|
|
||||||
username:
|
|
||||||
name: username
|
|
||||||
description: ''
|
|
||||||
required: true
|
|
||||||
example: qui
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
password:
|
|
||||||
name: password
|
|
||||||
description: ''
|
|
||||||
required: true
|
|
||||||
example: 'xYv*3,#HQ=5<w!'
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
host:
|
|
||||||
name: host
|
|
||||||
description: 'Host, if it is a remote user.'
|
|
||||||
required: true
|
|
||||||
example: '%'
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanBodyParameters:
|
|
||||||
username: qui
|
|
||||||
password: 'xYv*3,#HQ=5<w!'
|
|
||||||
host: '%'
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"id":null,"server_id":null,"username":"marcelle95","databases":[],"host":"%","status":null,"created_at":null,"updated_at":null}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer 3vZ6f6kagacDEhV1Pde5b84'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- GET
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/database-users/{databaseUser_id}'
|
|
||||||
metadata:
|
|
||||||
groupName: database-users
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: show
|
|
||||||
description: 'Get a database user by ID.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
databaseUser_id:
|
|
||||||
name: databaseUser_id
|
|
||||||
description: 'The ID of the databaseUser.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
databaseUser_id: 1
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"id":null,"server_id":null,"username":"brandi53","databases":[],"host":"%","status":null,"created_at":null,"updated_at":null}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer af3b5ac6dP8ZV4vE1hk6eDg'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- POST
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/database-users/{databaseUser_id}/link'
|
|
||||||
metadata:
|
|
||||||
groupName: database-users
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: link
|
|
||||||
description: 'Link to databases'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
databaseUser_id:
|
|
||||||
name: databaseUser_id
|
|
||||||
description: 'The ID of the databaseUser.'
|
|
||||||
required: true
|
|
||||||
example: 4
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
databaseUser_id: 4
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters:
|
|
||||||
databases:
|
|
||||||
name: databases
|
|
||||||
description: 'Array of database names to link to the user.'
|
|
||||||
required: true
|
|
||||||
example: maiores
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanBodyParameters:
|
|
||||||
databases: maiores
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"id":null,"server_id":null,"username":"kschmidt","databases":[],"host":"%","status":null,"created_at":null,"updated_at":null}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer b6f3Ed641gaZDcVa5k8vePh'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- DELETE
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/database-users/{databaseUser_id}'
|
|
||||||
metadata:
|
|
||||||
groupName: database-users
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: delete
|
|
||||||
description: 'Delete database user.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
databaseUser_id:
|
|
||||||
name: databaseUser_id
|
|
||||||
description: 'The ID of the databaseUser.'
|
|
||||||
required: true
|
|
||||||
example: 20
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
databaseUser_id: 20
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 204
|
|
||||||
content: null
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer Zka6fh15g6eaV8vE34cDPdb'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
@ -1,486 +0,0 @@
|
|||||||
name: firewall-rules
|
|
||||||
description: ''
|
|
||||||
endpoints:
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- GET
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/firewall-rules'
|
|
||||||
metadata:
|
|
||||||
groupName: firewall-rules
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: list
|
|
||||||
description: 'Get all firewall rules.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"data":[{"id":null,"name":"ut","server_id":null,"type":"allow","protocol":"tcp","port":35499,"source":"177.130.54.250","mask":24,"note":"test","status":null,"created_at":null,"updated_at":null},{"id":null,"name":"totam","server_id":null,"type":"allow","protocol":"tcp","port":29448,"source":"181.194.26.13","mask":24,"note":"test","status":null,"created_at":null,"updated_at":null}],"links":{"first":"\/?page=1","last":"\/?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":1,"last_page":1,"links":[{"url":null,"label":"« Previous","active":false},{"url":"\/?page=1","label":"1","active":true},{"url":null,"label":"Next »","active":false}],"path":"\/","per_page":25,"to":2,"total":2}}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer eD368kaZfVEab4v61ghdP5c'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- POST
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/firewall-rules'
|
|
||||||
metadata:
|
|
||||||
groupName: firewall-rules
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: create
|
|
||||||
description: 'Create a new firewall rule.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters:
|
|
||||||
name:
|
|
||||||
name: name
|
|
||||||
description: ''
|
|
||||||
required: true
|
|
||||||
example: sapiente
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
type:
|
|
||||||
name: type
|
|
||||||
description: ''
|
|
||||||
required: true
|
|
||||||
example: allow
|
|
||||||
type: string
|
|
||||||
enumValues:
|
|
||||||
- allow
|
|
||||||
- deny
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
protocol:
|
|
||||||
name: protocol
|
|
||||||
description: ''
|
|
||||||
required: true
|
|
||||||
example: tcp
|
|
||||||
type: string
|
|
||||||
enumValues:
|
|
||||||
- tcp
|
|
||||||
- udp
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
port:
|
|
||||||
name: port
|
|
||||||
description: ''
|
|
||||||
required: true
|
|
||||||
example: et
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
source:
|
|
||||||
name: source
|
|
||||||
description: ''
|
|
||||||
required: false
|
|
||||||
example: doloribus
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
mask:
|
|
||||||
name: mask
|
|
||||||
description: 'Mask for source IP.'
|
|
||||||
required: true
|
|
||||||
example: '0'
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanBodyParameters:
|
|
||||||
name: sapiente
|
|
||||||
type: allow
|
|
||||||
protocol: tcp
|
|
||||||
port: et
|
|
||||||
source: doloribus
|
|
||||||
mask: '0'
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"id":null,"name":"omnis","server_id":null,"type":"allow","protocol":"tcp","port":54634,"source":"246.242.9.65","mask":24,"note":"test","status":null,"created_at":null,"updated_at":null}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer 3184PbED6aacZveV6hf5dgk'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- PUT
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/firewall-rules/{firewallRule_id}'
|
|
||||||
metadata:
|
|
||||||
groupName: firewall-rules
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: edit
|
|
||||||
description: 'Update an existing firewall rule.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
firewallRule_id:
|
|
||||||
name: firewallRule_id
|
|
||||||
description: 'The ID of the firewallRule.'
|
|
||||||
required: true
|
|
||||||
example: 85
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
firewallRule_id: 85
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters:
|
|
||||||
name:
|
|
||||||
name: name
|
|
||||||
description: ''
|
|
||||||
required: true
|
|
||||||
example: et
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
type:
|
|
||||||
name: type
|
|
||||||
description: ''
|
|
||||||
required: true
|
|
||||||
example: allow
|
|
||||||
type: string
|
|
||||||
enumValues:
|
|
||||||
- allow
|
|
||||||
- deny
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
protocol:
|
|
||||||
name: protocol
|
|
||||||
description: ''
|
|
||||||
required: true
|
|
||||||
example: tcp
|
|
||||||
type: string
|
|
||||||
enumValues:
|
|
||||||
- tcp
|
|
||||||
- udp
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
port:
|
|
||||||
name: port
|
|
||||||
description: ''
|
|
||||||
required: true
|
|
||||||
example: aut
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
source:
|
|
||||||
name: source
|
|
||||||
description: ''
|
|
||||||
required: false
|
|
||||||
example: et
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
mask:
|
|
||||||
name: mask
|
|
||||||
description: 'Mask for source IP.'
|
|
||||||
required: true
|
|
||||||
example: '0'
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanBodyParameters:
|
|
||||||
name: et
|
|
||||||
type: allow
|
|
||||||
protocol: tcp
|
|
||||||
port: aut
|
|
||||||
source: et
|
|
||||||
mask: '0'
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"id":null,"name":"consequatur","server_id":null,"type":"allow","protocol":"tcp","port":879,"source":"206.106.27.116","mask":24,"note":"test","status":null,"created_at":null,"updated_at":null}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer ad46E3egPDc51aV6hb8vkZf'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- GET
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/firewall-rules/{firewallRule_id}'
|
|
||||||
metadata:
|
|
||||||
groupName: firewall-rules
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: show
|
|
||||||
description: 'Get a firewall rule by ID.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
firewallRule_id:
|
|
||||||
name: firewallRule_id
|
|
||||||
description: 'The ID of the firewallRule.'
|
|
||||||
required: true
|
|
||||||
example: 85
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
firewallRule_id: 85
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"id":null,"name":"dolores","server_id":null,"type":"allow","protocol":"tcp","port":4691,"source":"147.108.28.144","mask":24,"note":"test","status":null,"created_at":null,"updated_at":null}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer 6gkvbDae15a6f43EVPdZh8c'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- DELETE
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/firewall-rules/{firewallRule_id}'
|
|
||||||
metadata:
|
|
||||||
groupName: firewall-rules
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: delete
|
|
||||||
description: 'Delete firewall rule.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
firewallRule_id:
|
|
||||||
name: firewallRule_id
|
|
||||||
description: 'The ID of the firewallRule.'
|
|
||||||
required: true
|
|
||||||
example: 85
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
firewallRule_id: 85
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 204
|
|
||||||
content: null
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer ZVd1fk5E3e48hDvaa6g6cPb'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
@ -1,44 +0,0 @@
|
|||||||
name: general
|
|
||||||
description: ''
|
|
||||||
endpoints:
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- GET
|
|
||||||
uri: api/health
|
|
||||||
metadata:
|
|
||||||
groupName: general
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: health-check
|
|
||||||
description: ''
|
|
||||||
authenticated: false
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters: []
|
|
||||||
cleanUrlParameters: []
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"success":true,"version":"2.4.0"}'
|
|
||||||
headers:
|
|
||||||
cache-control: 'no-cache, private'
|
|
||||||
content-type: application/json
|
|
||||||
x-ratelimit-limit: '60'
|
|
||||||
x-ratelimit-remaining: '59'
|
|
||||||
access-control-allow-origin: '*'
|
|
||||||
description: null
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth: []
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
@ -1,258 +0,0 @@
|
|||||||
name: projects
|
|
||||||
description: ''
|
|
||||||
endpoints:
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- GET
|
|
||||||
uri: api/projects
|
|
||||||
metadata:
|
|
||||||
groupName: projects
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: list
|
|
||||||
description: 'Get all projects.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters: []
|
|
||||||
cleanUrlParameters: []
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"data":[{"id":3,"name":"Mr. Drake Nader","created_at":"2025-04-05T17:48:03.000000Z","updated_at":"2025-04-05T17:48:03.000000Z"},{"id":4,"name":"Wilhelmine Jacobson","created_at":"2025-04-05T17:48:03.000000Z","updated_at":"2025-04-05T17:48:03.000000Z"}],"links":{"first":"\/?page=1","last":"\/?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":1,"last_page":1,"links":[{"url":null,"label":"« Previous","active":false},{"url":"\/?page=1","label":"1","active":true},{"url":null,"label":"Next »","active":false}],"path":"\/","per_page":25,"to":2,"total":2}}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer fbPE6haeDZ8v1gV5ak463dc'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- POST
|
|
||||||
uri: api/projects
|
|
||||||
metadata:
|
|
||||||
groupName: projects
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: create
|
|
||||||
description: 'Create a new project.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters: []
|
|
||||||
cleanUrlParameters: []
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters:
|
|
||||||
name:
|
|
||||||
name: name
|
|
||||||
description: 'The name of the project.'
|
|
||||||
required: true
|
|
||||||
example: dignissimos
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanBodyParameters:
|
|
||||||
name: dignissimos
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"id":3,"name":"Pattie Cole","created_at":"2025-04-05T17:48:03.000000Z","updated_at":"2025-04-05T17:48:03.000000Z"}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer 6ZkedcEfa5V6Dv4ab8P3g1h'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- GET
|
|
||||||
uri: 'api/projects/{id}'
|
|
||||||
metadata:
|
|
||||||
groupName: projects
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: show
|
|
||||||
description: 'Get a project by ID.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
id:
|
|
||||||
name: id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
id: 1
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"id":3,"name":"Mr. Elias Bauch","created_at":"2025-04-05T17:48:03.000000Z","updated_at":"2025-04-05T17:48:03.000000Z"}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer P6ka4Zaefgh8Ec3dV15v6bD'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- PUT
|
|
||||||
uri: 'api/projects/{id}'
|
|
||||||
metadata:
|
|
||||||
groupName: projects
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: update
|
|
||||||
description: 'Update project.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
id:
|
|
||||||
name: id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
id: 1
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters:
|
|
||||||
name:
|
|
||||||
name: name
|
|
||||||
description: 'The name of the project.'
|
|
||||||
required: true
|
|
||||||
example: sunt
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanBodyParameters:
|
|
||||||
name: sunt
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"id":3,"name":"Elfrieda Jakubowski","created_at":"2025-04-05T17:48:03.000000Z","updated_at":"2025-04-05T17:48:03.000000Z"}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer ecaDZkf5E4vgP1V86d6hb3a'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- DELETE
|
|
||||||
uri: 'api/projects/{project_id}'
|
|
||||||
metadata:
|
|
||||||
groupName: projects
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: delete
|
|
||||||
description: 'Delete project.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 204
|
|
||||||
content: null
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer h5gZ63DPVbcevE4faka86d1'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
@ -1,270 +0,0 @@
|
|||||||
name: redirects
|
|
||||||
description: ''
|
|
||||||
endpoints:
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- GET
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/sites/{site_id}/redirects'
|
|
||||||
metadata:
|
|
||||||
groupName: redirects
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: index
|
|
||||||
description: 'Get all redirects.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
site_id:
|
|
||||||
name: site_id
|
|
||||||
description: 'The ID of the site.'
|
|
||||||
required: true
|
|
||||||
example: 44
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
site_id: 44
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"data":[{"id":null,"site_id":null,"mode":307,"from":"ipsum","to":"http:\/\/fritsch.biz\/","status":"ready","created_at":null,"updated_at":null},{"id":null,"site_id":null,"mode":302,"from":"culpa","to":"http:\/\/www.huels.net\/aut-ut-ut-porro-non-rerum-voluptatum.html","status":"ready","created_at":null,"updated_at":null}],"links":{"first":"\/?page=1","last":"\/?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":1,"last_page":1,"links":[{"url":null,"label":"« Previous","active":false},{"url":"\/?page=1","label":"1","active":true},{"url":null,"label":"Next »","active":false}],"path":"\/","per_page":25,"to":2,"total":2}}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer cV16fevgEZhPadD43685akb'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- POST
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/sites/{site_id}/redirects'
|
|
||||||
metadata:
|
|
||||||
groupName: redirects
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: create
|
|
||||||
description: 'Create a new redirect.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
site_id:
|
|
||||||
name: site_id
|
|
||||||
description: 'The ID of the site.'
|
|
||||||
required: true
|
|
||||||
example: 44
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
site_id: 44
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters:
|
|
||||||
from:
|
|
||||||
name: from
|
|
||||||
description: ''
|
|
||||||
required: true
|
|
||||||
example: odit
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
to:
|
|
||||||
name: to
|
|
||||||
description: ''
|
|
||||||
required: true
|
|
||||||
example: incidunt
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
mode:
|
|
||||||
name: mode
|
|
||||||
description: ''
|
|
||||||
required: true
|
|
||||||
example: 301
|
|
||||||
type: string
|
|
||||||
enumValues:
|
|
||||||
- 301
|
|
||||||
- 302
|
|
||||||
- 307
|
|
||||||
- 308
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanBodyParameters:
|
|
||||||
from: odit
|
|
||||||
to: incidunt
|
|
||||||
mode: 301
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: null
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer ZD45hPk638abev61EVcagdf'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- DELETE
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/sites/{site_id}/redirects/{redirect_id}'
|
|
||||||
metadata:
|
|
||||||
groupName: redirects
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: delete
|
|
||||||
description: 'Delete a redirect.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
site_id:
|
|
||||||
name: site_id
|
|
||||||
description: 'The ID of the site.'
|
|
||||||
required: true
|
|
||||||
example: 44
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
redirect_id:
|
|
||||||
name: redirect_id
|
|
||||||
description: 'The ID of the redirect.'
|
|
||||||
required: true
|
|
||||||
example: 9
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
site_id: 44
|
|
||||||
redirect_id: 9
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 204
|
|
||||||
content: null
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer Ec3fDgdbae615aPh8k6vV4Z'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
@ -1,501 +0,0 @@
|
|||||||
name: servers
|
|
||||||
description: ''
|
|
||||||
endpoints:
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- GET
|
|
||||||
uri: 'api/projects/{project_id}/servers'
|
|
||||||
metadata:
|
|
||||||
groupName: servers
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: list
|
|
||||||
description: 'Get all servers in a project.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"data":[{"id":null,"project_id":null,"user_id":null,"provider_id":null,"name":"Miss Bonita Vandervort IV","ssh_user":"vito","ip":"120.222.195.212","local_ip":"138.119.37.248","port":22,"os":"ubuntu_22","type":"regular","type_data":null,"provider":"custom","provider_data":null,"public_key":"test","status":"ready","auto_update":null,"available_updates":0,"security_updates":null,"progress":100,"progress_step":null,"updates":null,"last_update_check":null,"created_at":null,"updated_at":null},{"id":null,"project_id":null,"user_id":null,"provider_id":null,"name":"Dr. Shanie Batz IV","ssh_user":"vito","ip":"241.88.138.163","local_ip":"138.226.232.93","port":22,"os":"ubuntu_22","type":"regular","type_data":null,"provider":"custom","provider_data":null,"public_key":"test","status":"ready","auto_update":null,"available_updates":0,"security_updates":null,"progress":100,"progress_step":null,"updates":null,"last_update_check":null,"created_at":null,"updated_at":null}],"links":{"first":"\/?page=1","last":"\/?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":1,"last_page":1,"links":[{"url":null,"label":"« Previous","active":false},{"url":"\/?page=1","label":"1","active":true},{"url":null,"label":"Next »","active":false}],"path":"\/","per_page":25,"to":2,"total":2}}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer Pg1Vk6cvadD8eb3ZhaEf564'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- POST
|
|
||||||
uri: 'api/projects/{project_id}/servers'
|
|
||||||
metadata:
|
|
||||||
groupName: servers
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: create
|
|
||||||
description: 'Create a new server.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters:
|
|
||||||
provider:
|
|
||||||
name: provider
|
|
||||||
description: 'The server provider type'
|
|
||||||
required: true
|
|
||||||
example: fugiat
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_provider:
|
|
||||||
name: server_provider
|
|
||||||
description: 'If the provider is not custom, the ID of the server provider profile'
|
|
||||||
required: true
|
|
||||||
example: digitalocean
|
|
||||||
type: string
|
|
||||||
enumValues:
|
|
||||||
- custom
|
|
||||||
- hetzner
|
|
||||||
- digitalocean
|
|
||||||
- linode
|
|
||||||
- vultr
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
region:
|
|
||||||
name: region
|
|
||||||
description: 'Provider region if the provider is not custom'
|
|
||||||
required: true
|
|
||||||
example: itaque
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
plan:
|
|
||||||
name: plan
|
|
||||||
description: 'Provider plan if the provider is not custom'
|
|
||||||
required: true
|
|
||||||
example: voluptatum
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
ip:
|
|
||||||
name: ip
|
|
||||||
description: 'SSH IP address if the provider is custom'
|
|
||||||
required: true
|
|
||||||
example: ut
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
port:
|
|
||||||
name: port
|
|
||||||
description: 'SSH Port if the provider is custom'
|
|
||||||
required: true
|
|
||||||
example: reiciendis
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
name:
|
|
||||||
name: name
|
|
||||||
description: 'The name of the server.'
|
|
||||||
required: true
|
|
||||||
example: et
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
os:
|
|
||||||
name: os
|
|
||||||
description: 'The os of the server'
|
|
||||||
required: true
|
|
||||||
example: vel
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
webserver:
|
|
||||||
name: webserver
|
|
||||||
description: 'Web server'
|
|
||||||
required: true
|
|
||||||
example: nginx
|
|
||||||
type: string
|
|
||||||
enumValues:
|
|
||||||
- none
|
|
||||||
- nginx
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
database:
|
|
||||||
name: database
|
|
||||||
description: Database
|
|
||||||
required: true
|
|
||||||
example: mysql80
|
|
||||||
type: string
|
|
||||||
enumValues:
|
|
||||||
- none
|
|
||||||
- mysql57
|
|
||||||
- mysql80
|
|
||||||
- mariadb103
|
|
||||||
- mariadb104
|
|
||||||
- mariadb103
|
|
||||||
- postgresql12
|
|
||||||
- postgresql13
|
|
||||||
- postgresql14
|
|
||||||
- postgresql15
|
|
||||||
- postgresql16
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
php:
|
|
||||||
name: php
|
|
||||||
description: 'PHP version'
|
|
||||||
required: true
|
|
||||||
example: '7.2'
|
|
||||||
type: string
|
|
||||||
enumValues:
|
|
||||||
- '7.0'
|
|
||||||
- '7.1'
|
|
||||||
- '7.2'
|
|
||||||
- '7.3'
|
|
||||||
- '7.4'
|
|
||||||
- '8.0'
|
|
||||||
- '8.1'
|
|
||||||
- '8.2'
|
|
||||||
- '8.3'
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanBodyParameters:
|
|
||||||
provider: fugiat
|
|
||||||
server_provider: digitalocean
|
|
||||||
region: itaque
|
|
||||||
plan: voluptatum
|
|
||||||
ip: ut
|
|
||||||
port: reiciendis
|
|
||||||
name: et
|
|
||||||
os: vel
|
|
||||||
webserver: nginx
|
|
||||||
database: mysql80
|
|
||||||
php: '7.2'
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"id":null,"project_id":null,"user_id":null,"provider_id":null,"name":"Jeromy Mann","ssh_user":"vito","ip":"128.70.209.89","local_ip":"150.217.250.187","port":22,"os":"ubuntu_22","type":"regular","type_data":null,"provider":"custom","provider_data":null,"public_key":"test","status":"ready","auto_update":null,"available_updates":0,"security_updates":null,"progress":100,"progress_step":null,"updates":null,"last_update_check":null,"created_at":null,"updated_at":null}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer 5E61e4vfcgDbVkZd68aah3P'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- GET
|
|
||||||
uri: 'api/projects/{project_id}/servers/{id}'
|
|
||||||
metadata:
|
|
||||||
groupName: servers
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: show
|
|
||||||
description: 'Get a server by ID.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
id:
|
|
||||||
name: id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
id: 29
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"id":null,"project_id":null,"user_id":null,"provider_id":null,"name":"Miss Maya Schaden I","ssh_user":"vito","ip":"44.57.83.39","local_ip":"46.22.92.58","port":22,"os":"ubuntu_22","type":"regular","type_data":null,"provider":"custom","provider_data":null,"public_key":"test","status":"ready","auto_update":null,"available_updates":0,"security_updates":null,"progress":100,"progress_step":null,"updates":null,"last_update_check":null,"created_at":null,"updated_at":null}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer hV3debf65aPD4E1ckag8Z6v'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- POST
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/reboot'
|
|
||||||
metadata:
|
|
||||||
groupName: servers
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: reboot
|
|
||||||
description: 'Reboot a server.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 204
|
|
||||||
content: null
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer b61aD6538PacZEkeghfvV4d'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- POST
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/upgrade'
|
|
||||||
metadata:
|
|
||||||
groupName: servers
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: upgrade
|
|
||||||
description: 'Upgrade server.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 204
|
|
||||||
content: null
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer dEZaa6cePVf3k86g45vbD1h'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- DELETE
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}'
|
|
||||||
metadata:
|
|
||||||
groupName: servers
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: delete
|
|
||||||
description: 'Delete server.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 204
|
|
||||||
content: null
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer 6aDkZEfdP16V58gb43avhec'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
@ -1,370 +0,0 @@
|
|||||||
name: server-providers
|
|
||||||
description: ''
|
|
||||||
endpoints:
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- GET
|
|
||||||
uri: 'api/projects/{project_id}/server-providers'
|
|
||||||
metadata:
|
|
||||||
groupName: server-providers
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: list
|
|
||||||
description: ''
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"data":[{"id":3,"project_id":null,"global":true,"name":"aut","provider":"hetzner","created_at":"2025-04-05T17:48:03.000000Z","updated_at":"2025-04-05T17:48:03.000000Z"},{"id":4,"project_id":null,"global":true,"name":"qui","provider":"aws","created_at":"2025-04-05T17:48:03.000000Z","updated_at":"2025-04-05T17:48:03.000000Z"}],"links":{"first":"\/?page=1","last":"\/?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":1,"last_page":1,"links":[{"url":null,"label":"« Previous","active":false},{"url":"\/?page=1","label":"1","active":true},{"url":null,"label":"Next »","active":false}],"path":"\/","per_page":25,"to":2,"total":2}}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer 3evaP8h6VEZkbfgaD6d1c45'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- POST
|
|
||||||
uri: 'api/projects/{project_id}/server-providers'
|
|
||||||
metadata:
|
|
||||||
groupName: server-providers
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: create
|
|
||||||
description: ''
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters:
|
|
||||||
provider:
|
|
||||||
name: provider
|
|
||||||
description: 'The provider (aws, linode, hetzner, digitalocean, vultr, ...)'
|
|
||||||
required: true
|
|
||||||
example: corrupti
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
name:
|
|
||||||
name: name
|
|
||||||
description: 'The name of the server provider.'
|
|
||||||
required: true
|
|
||||||
example: est
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
token:
|
|
||||||
name: token
|
|
||||||
description: 'The token if provider requires api token'
|
|
||||||
required: true
|
|
||||||
example: rerum
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
key:
|
|
||||||
name: key
|
|
||||||
description: 'The key if provider requires key'
|
|
||||||
required: true
|
|
||||||
example: ut
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
secret:
|
|
||||||
name: secret
|
|
||||||
description: 'The secret if provider requires key'
|
|
||||||
required: true
|
|
||||||
example: sed
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanBodyParameters:
|
|
||||||
provider: corrupti
|
|
||||||
name: est
|
|
||||||
token: rerum
|
|
||||||
key: ut
|
|
||||||
secret: sed
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"id":3,"project_id":null,"global":true,"name":"voluptas","provider":"vultr","created_at":"2025-04-05T17:48:03.000000Z","updated_at":"2025-04-05T17:48:03.000000Z"}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer 6g6vfEck83VaPhd5Zabe1D4'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- GET
|
|
||||||
uri: 'api/projects/{project_id}/server-providers/{serverProvider_id}'
|
|
||||||
metadata:
|
|
||||||
groupName: server-providers
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: show
|
|
||||||
description: ''
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
serverProvider_id:
|
|
||||||
name: serverProvider_id
|
|
||||||
description: 'The ID of the serverProvider.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
serverProvider_id: 1
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"id":3,"project_id":null,"global":true,"name":"et","provider":"digitalocean","created_at":"2025-04-05T17:48:03.000000Z","updated_at":"2025-04-05T17:48:03.000000Z"}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer va63cDe8dPf5Z4Vahb1E6kg'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- PUT
|
|
||||||
uri: 'api/projects/{project_id}/server-providers/{serverProvider_id}'
|
|
||||||
metadata:
|
|
||||||
groupName: server-providers
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: update
|
|
||||||
description: ''
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
serverProvider_id:
|
|
||||||
name: serverProvider_id
|
|
||||||
description: 'The ID of the serverProvider.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
serverProvider_id: 1
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters:
|
|
||||||
name:
|
|
||||||
name: name
|
|
||||||
description: 'The name of the server provider.'
|
|
||||||
required: true
|
|
||||||
example: earum
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
global:
|
|
||||||
name: global
|
|
||||||
description: 'Accessible in all projects'
|
|
||||||
required: true
|
|
||||||
example: false
|
|
||||||
type: string
|
|
||||||
enumValues:
|
|
||||||
- true
|
|
||||||
- false
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanBodyParameters:
|
|
||||||
name: earum
|
|
||||||
global: false
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"id":3,"project_id":null,"global":true,"name":"architecto","provider":"digitalocean","created_at":"2025-04-05T17:48:03.000000Z","updated_at":"2025-04-05T17:48:03.000000Z"}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer 4e1dghaV6D856P3ZbfkcEva'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- DELETE
|
|
||||||
uri: 'api/projects/{project_id}/server-providers/{serverProvider_id}'
|
|
||||||
metadata:
|
|
||||||
groupName: server-providers
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: delete
|
|
||||||
description: ''
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
serverProvider_id:
|
|
||||||
name: serverProvider_id
|
|
||||||
description: 'The ID of the serverProvider.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
serverProvider_id: 1
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 204
|
|
||||||
content: null
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer fcVa8ev63gP5DaZbkdhE461'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
@ -1,233 +0,0 @@
|
|||||||
name: ssh-keys
|
|
||||||
description: ''
|
|
||||||
endpoints:
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- GET
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/ssh-keys'
|
|
||||||
metadata:
|
|
||||||
groupName: ssh-keys
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: list
|
|
||||||
description: 'Get all ssh keys.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"data":[{"id":null,"user":null,"name":"Santa Goyette","created_at":null,"updated_at":null},{"id":null,"user":null,"name":"Cecil Cummings","created_at":null,"updated_at":null}],"links":{"first":"\/?page=1","last":"\/?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":1,"last_page":1,"links":[{"url":null,"label":"« Previous","active":false},{"url":"\/?page=1","label":"1","active":true},{"url":null,"label":"Next »","active":false}],"path":"\/","per_page":25,"to":2,"total":2}}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer 165aZvb46PhacEfke83dVgD'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- POST
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/ssh-keys'
|
|
||||||
metadata:
|
|
||||||
groupName: ssh-keys
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: create
|
|
||||||
description: 'Deploy ssh key to server.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters:
|
|
||||||
key_id:
|
|
||||||
name: key_id
|
|
||||||
description: 'The ID of the key.'
|
|
||||||
required: true
|
|
||||||
example: explicabo
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
name:
|
|
||||||
name: name
|
|
||||||
description: 'Key name, required if key_id is not provided.'
|
|
||||||
required: true
|
|
||||||
example: deleniti
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
public_key:
|
|
||||||
name: public_key
|
|
||||||
description: 'Public Key, required if key_id is not provided.'
|
|
||||||
required: true
|
|
||||||
example: sapiente
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanBodyParameters:
|
|
||||||
key_id: explicabo
|
|
||||||
name: deleniti
|
|
||||||
public_key: sapiente
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"id":null,"user":null,"name":"Mr. Reagan Jacobson V","created_at":null,"updated_at":null}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer deDkf4E13PZb6cgaV58ha6v'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- DELETE
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/ssh-keys/{sshKey_id}'
|
|
||||||
metadata:
|
|
||||||
groupName: ssh-keys
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: delete
|
|
||||||
description: 'Delete ssh key from server.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
sshKey_id:
|
|
||||||
name: sshKey_id
|
|
||||||
description: 'The ID of the sshKey.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
sshKey_id: 1
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 204
|
|
||||||
content: null
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer ec48fgVdZ6ah3kvPD16E5ab'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
@ -1,576 +0,0 @@
|
|||||||
name: services
|
|
||||||
description: ''
|
|
||||||
endpoints:
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- GET
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/services'
|
|
||||||
metadata:
|
|
||||||
groupName: services
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: list
|
|
||||||
description: 'Get all services.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"data":[{"id":null,"server_id":null,"type":null,"type_data":null,"name":null,"version":null,"unit":null,"status":null,"is_default":null,"created_at":null,"updated_at":null},{"id":null,"server_id":null,"type":null,"type_data":null,"name":null,"version":null,"unit":null,"status":null,"is_default":null,"created_at":null,"updated_at":null}],"links":{"first":"\/?page=1","last":"\/?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":1,"last_page":1,"links":[{"url":null,"label":"« Previous","active":false},{"url":"\/?page=1","label":"1","active":true},{"url":null,"label":"Next »","active":false}],"path":"\/","per_page":25,"to":2,"total":2}}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer gVEce46k8aZfaP3d15vbhD6'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- GET
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/services/{id}'
|
|
||||||
metadata:
|
|
||||||
groupName: services
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: show
|
|
||||||
description: 'Get a service by ID.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
id:
|
|
||||||
name: id
|
|
||||||
description: 'The ID of the service.'
|
|
||||||
required: true
|
|
||||||
example: 169
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
id: 169
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"id":null,"server_id":null,"type":null,"type_data":null,"name":null,"version":null,"unit":null,"status":null,"is_default":null,"created_at":null,"updated_at":null}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer Ef8D5gbV6cadk3Zh1vP46ea'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- POST
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/services/{service_id}/start'
|
|
||||||
metadata:
|
|
||||||
groupName: services
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: start
|
|
||||||
description: 'Start service.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
service_id:
|
|
||||||
name: service_id
|
|
||||||
description: 'The ID of the service.'
|
|
||||||
required: true
|
|
||||||
example: 169
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
service_id: 169
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 204
|
|
||||||
content: null
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer b3DckZ8g6ha6aPe4f5V1vdE'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- POST
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/services/{service_id}/stop'
|
|
||||||
metadata:
|
|
||||||
groupName: services
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: stop
|
|
||||||
description: 'Stop service.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
service_id:
|
|
||||||
name: service_id
|
|
||||||
description: 'The ID of the service.'
|
|
||||||
required: true
|
|
||||||
example: 169
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
service_id: 169
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 204
|
|
||||||
content: null
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer 1e8aZbfvE5643DacgkPhdV6'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- POST
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/services/{service_id}/restart'
|
|
||||||
metadata:
|
|
||||||
groupName: services
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: restart
|
|
||||||
description: 'Restart service.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
service_id:
|
|
||||||
name: service_id
|
|
||||||
description: 'The ID of the service.'
|
|
||||||
required: true
|
|
||||||
example: 169
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
service_id: 169
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 204
|
|
||||||
content: null
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer c46baVZEg5dv1Pfe8Dha6k3'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- POST
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/services/{service_id}/enable'
|
|
||||||
metadata:
|
|
||||||
groupName: services
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: enable
|
|
||||||
description: 'Enable service.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
service_id:
|
|
||||||
name: service_id
|
|
||||||
description: 'The ID of the service.'
|
|
||||||
required: true
|
|
||||||
example: 169
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
service_id: 169
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 204
|
|
||||||
content: null
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer EvcehkDbdV43f61P86Za5ga'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- POST
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/services/{service_id}/disable'
|
|
||||||
metadata:
|
|
||||||
groupName: services
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: disable
|
|
||||||
description: 'Disable service.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
service_id:
|
|
||||||
name: service_id
|
|
||||||
description: 'The ID of the service.'
|
|
||||||
required: true
|
|
||||||
example: 169
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
service_id: 169
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 204
|
|
||||||
content: null
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer k8E5gf6d4h31bevaa6cVPZD'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- DELETE
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/services/{service_id}'
|
|
||||||
metadata:
|
|
||||||
groupName: services
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: delete
|
|
||||||
description: 'Delete service.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
service_id:
|
|
||||||
name: service_id
|
|
||||||
description: 'The ID of the service.'
|
|
||||||
required: true
|
|
||||||
example: 169
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
service_id: 169
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 204
|
|
||||||
content: null
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer Pekav16cd5ag486ZfD3EVbh'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
@ -1,989 +0,0 @@
|
|||||||
name: sites
|
|
||||||
description: ''
|
|
||||||
endpoints:
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- GET
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/sites'
|
|
||||||
metadata:
|
|
||||||
groupName: sites
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: list
|
|
||||||
description: 'Get all sites.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"data":[{"id":null,"server_id":null,"source_control_id":null,"type":"laravel","type_data":null,"domain":"test.com","aliases":null,"web_directory":"\/","path":"\/home","php_version":"8.2","repository":null,"branch":"main","status":"ready","port":null,"user":"vito","progress":100,"created_at":null,"updated_at":null},{"id":null,"server_id":null,"source_control_id":null,"type":"laravel","type_data":null,"domain":"test.com","aliases":null,"web_directory":"\/","path":"\/home","php_version":"8.2","repository":null,"branch":"main","status":"ready","port":null,"user":"vito","progress":100,"created_at":null,"updated_at":null}],"links":{"first":"\/?page=1","last":"\/?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":1,"last_page":1,"links":[{"url":null,"label":"« Previous","active":false},{"url":"\/?page=1","label":"1","active":true},{"url":null,"label":"Next »","active":false}],"path":"\/","per_page":25,"to":2,"total":2}}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer aD138EgdPf4Vhav5c6bke6Z'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- POST
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/sites'
|
|
||||||
metadata:
|
|
||||||
groupName: sites
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: create
|
|
||||||
description: 'Create a new site.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters:
|
|
||||||
type:
|
|
||||||
name: type
|
|
||||||
description: ''
|
|
||||||
required: true
|
|
||||||
example: php-blank
|
|
||||||
type: string
|
|
||||||
enumValues:
|
|
||||||
- php
|
|
||||||
- php-blank
|
|
||||||
- phpmyadmin
|
|
||||||
- laravel
|
|
||||||
- wordpress
|
|
||||||
- load-balancer
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
domain:
|
|
||||||
name: domain
|
|
||||||
description: ''
|
|
||||||
required: true
|
|
||||||
example: impedit
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
aliases:
|
|
||||||
name: aliases
|
|
||||||
description: ''
|
|
||||||
required: true
|
|
||||||
example:
|
|
||||||
- cum
|
|
||||||
type: 'string[]'
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
php_version:
|
|
||||||
name: php_version
|
|
||||||
description: 'One of the installed PHP Versions'
|
|
||||||
required: true
|
|
||||||
example: '7.4'
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
web_directory:
|
|
||||||
name: web_directory
|
|
||||||
description: 'Required for PHP and Laravel sites'
|
|
||||||
required: true
|
|
||||||
example: public
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
source_control:
|
|
||||||
name: source_control
|
|
||||||
description: 'Source control ID, Required for Sites which support source control'
|
|
||||||
required: true
|
|
||||||
example: non
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
repository:
|
|
||||||
name: repository
|
|
||||||
description: 'Repository, Required for Sites which support source control'
|
|
||||||
required: true
|
|
||||||
example: organization/repository
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
branch:
|
|
||||||
name: branch
|
|
||||||
description: 'Branch, Required for Sites which support source control'
|
|
||||||
required: true
|
|
||||||
example: main
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
composer:
|
|
||||||
name: composer
|
|
||||||
description: 'Run composer if site supports composer'
|
|
||||||
required: true
|
|
||||||
example: true
|
|
||||||
type: boolean
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
version:
|
|
||||||
name: version
|
|
||||||
description: 'Version, if the site type requires a version like PHPMyAdmin'
|
|
||||||
required: true
|
|
||||||
example: 5.2.1
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
user:
|
|
||||||
name: user
|
|
||||||
description: 'user, to isolate the website under a new user'
|
|
||||||
required: true
|
|
||||||
example: voluptate
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
method:
|
|
||||||
name: method
|
|
||||||
description: 'Load balancer method, Required if the site type is Load balancer'
|
|
||||||
required: true
|
|
||||||
example: ip-hash
|
|
||||||
type: string
|
|
||||||
enumValues:
|
|
||||||
- round-robin
|
|
||||||
- least-connections
|
|
||||||
- ip-hash
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanBodyParameters:
|
|
||||||
type: php-blank
|
|
||||||
domain: impedit
|
|
||||||
aliases:
|
|
||||||
- cum
|
|
||||||
php_version: '7.4'
|
|
||||||
web_directory: public
|
|
||||||
source_control: non
|
|
||||||
repository: organization/repository
|
|
||||||
branch: main
|
|
||||||
composer: true
|
|
||||||
version: 5.2.1
|
|
||||||
user: voluptate
|
|
||||||
method: ip-hash
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"id":null,"server_id":null,"source_control_id":null,"type":"laravel","type_data":null,"domain":"test.com","aliases":null,"web_directory":"\/","path":"\/home","php_version":"8.2","repository":null,"branch":"main","status":"ready","port":null,"user":"vito","progress":100,"created_at":null,"updated_at":null}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer 6V3D5c4g6hZaEfb81evPadk'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- GET
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/sites/{id}'
|
|
||||||
metadata:
|
|
||||||
groupName: sites
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: show
|
|
||||||
description: 'Get a site by ID.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
id:
|
|
||||||
name: id
|
|
||||||
description: 'The ID of the site.'
|
|
||||||
required: true
|
|
||||||
example: 44
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
id: 44
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"id":null,"server_id":null,"source_control_id":null,"type":"laravel","type_data":null,"domain":"test.com","aliases":null,"web_directory":"\/","path":"\/home","php_version":"8.2","repository":null,"branch":"main","status":"ready","port":null,"user":"vito","progress":100,"created_at":null,"updated_at":null}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer gE86bZ6vfcd3hVP15ka4Dea'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- DELETE
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/sites/{site_id}'
|
|
||||||
metadata:
|
|
||||||
groupName: sites
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: delete
|
|
||||||
description: 'Delete site.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
site_id:
|
|
||||||
name: site_id
|
|
||||||
description: 'The ID of the site.'
|
|
||||||
required: true
|
|
||||||
example: 44
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
site_id: 44
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 204
|
|
||||||
content: null
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer 8kEb6Dd613a5afZhcg4VvPe'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- POST
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/sites/{site_id}/load-balancer'
|
|
||||||
metadata:
|
|
||||||
groupName: sites
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: load-balancer
|
|
||||||
description: 'Update load balancer.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
site_id:
|
|
||||||
name: site_id
|
|
||||||
description: 'The ID of the site.'
|
|
||||||
required: true
|
|
||||||
example: 44
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
site_id: 44
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters:
|
|
||||||
method:
|
|
||||||
name: method
|
|
||||||
description: 'Load balancer method, Required if the site type is Load balancer'
|
|
||||||
required: true
|
|
||||||
example: round-robin
|
|
||||||
type: string
|
|
||||||
enumValues:
|
|
||||||
- round-robin
|
|
||||||
- least-connections
|
|
||||||
- ip-hash
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
servers:
|
|
||||||
name: servers
|
|
||||||
description: 'Array of servers including server, port, weight, backup. (server is the local IP of the server)'
|
|
||||||
required: true
|
|
||||||
example:
|
|
||||||
- omnis
|
|
||||||
type: 'string[]'
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanBodyParameters:
|
|
||||||
method: round-robin
|
|
||||||
servers:
|
|
||||||
- omnis
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: null
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer 8Da4P1c6d6gfbhZvaE3k5Ve'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- PUT
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/sites/{site_id}/aliases'
|
|
||||||
metadata:
|
|
||||||
groupName: sites
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: aliases
|
|
||||||
description: 'Update aliases.'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
site_id:
|
|
||||||
name: site_id
|
|
||||||
description: 'The ID of the site.'
|
|
||||||
required: true
|
|
||||||
example: 44
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
site_id: 44
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters:
|
|
||||||
aliases:
|
|
||||||
name: aliases
|
|
||||||
description: 'Array of aliases'
|
|
||||||
required: true
|
|
||||||
example:
|
|
||||||
- doloremque
|
|
||||||
type: 'string[]'
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanBodyParameters:
|
|
||||||
aliases:
|
|
||||||
- doloremque
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: null
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer d4EVa8Zkfvg1Dcbe53P6a6h'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- POST
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/sites/{site_id}/deploy'
|
|
||||||
metadata:
|
|
||||||
groupName: sites
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: deploy
|
|
||||||
description: 'Run site deployment script'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
site_id:
|
|
||||||
name: site_id
|
|
||||||
description: 'The ID of the site.'
|
|
||||||
required: true
|
|
||||||
example: 44
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
site_id: 44
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: null
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer dkcV5EZa8fD6vgaP1b36e4h'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- PUT
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/sites/{site_id}/deployment-script'
|
|
||||||
metadata:
|
|
||||||
groupName: sites
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: deployment-script
|
|
||||||
description: 'Update site deployment script'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
site_id:
|
|
||||||
name: site_id
|
|
||||||
description: 'The ID of the site.'
|
|
||||||
required: true
|
|
||||||
example: 44
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
site_id: 44
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters:
|
|
||||||
script:
|
|
||||||
name: script
|
|
||||||
description: 'Content of the deployment script'
|
|
||||||
required: true
|
|
||||||
example: voluptatem
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanBodyParameters:
|
|
||||||
script: voluptatem
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 204
|
|
||||||
content: null
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer hevV81bfZE6cdkaa453gDP6'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- GET
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/sites/{site_id}/deployment-script'
|
|
||||||
metadata:
|
|
||||||
groupName: sites
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: deployment-script
|
|
||||||
description: 'Get site deployment script content'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
site_id:
|
|
||||||
name: site_id
|
|
||||||
description: 'The ID of the site.'
|
|
||||||
required: true
|
|
||||||
example: 44
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
site_id: 44
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: null
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer a1EbvhePag4f5dk6ZV368Dc'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- GET
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/sites/{site_id}/env'
|
|
||||||
metadata:
|
|
||||||
groupName: sites
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: env
|
|
||||||
description: 'Get site .env file content'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
site_id:
|
|
||||||
name: site_id
|
|
||||||
description: 'The ID of the site.'
|
|
||||||
required: true
|
|
||||||
example: 44
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
site_id: 44
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"data":{"env":"APP_NAME=Laravel\\nAPP_ENV=production"}}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer P8Zvch3DgV654abeaE6f1kd'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- PUT
|
|
||||||
uri: 'api/projects/{project_id}/servers/{server_id}/sites/{site_id}/env'
|
|
||||||
metadata:
|
|
||||||
groupName: sites
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: env
|
|
||||||
description: 'Update site .env file'
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
server_id:
|
|
||||||
name: server_id
|
|
||||||
description: 'The ID of the server.'
|
|
||||||
required: true
|
|
||||||
example: 29
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
site_id:
|
|
||||||
name: site_id
|
|
||||||
description: 'The ID of the site.'
|
|
||||||
required: true
|
|
||||||
example: 44
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
server_id: 29
|
|
||||||
site_id: 44
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters:
|
|
||||||
env:
|
|
||||||
name: env
|
|
||||||
description: 'Content of the .env file'
|
|
||||||
required: true
|
|
||||||
example: quam
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanBodyParameters:
|
|
||||||
env: quam
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: null
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer 45acbP1h6eg6kDVdZf8E3av'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
@ -1,428 +0,0 @@
|
|||||||
name: source-controls
|
|
||||||
description: ''
|
|
||||||
endpoints:
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- GET
|
|
||||||
uri: 'api/projects/{project_id}/source-controls'
|
|
||||||
metadata:
|
|
||||||
groupName: source-controls
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: list
|
|
||||||
description: ''
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"data":[{"id":5,"project_id":null,"global":true,"name":"Zella Robel","provider":"github","created_at":"2025-04-05T17:48:03.000000Z","updated_at":"2025-04-05T17:48:03.000000Z"},{"id":6,"project_id":null,"global":true,"name":"Jairo Williamson","provider":"github","created_at":"2025-04-05T17:48:03.000000Z","updated_at":"2025-04-05T17:48:03.000000Z"}],"links":{"first":"\/?page=1","last":"\/?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":1,"last_page":1,"links":[{"url":null,"label":"« Previous","active":false},{"url":"\/?page=1","label":"1","active":true},{"url":null,"label":"Next »","active":false}],"path":"\/","per_page":25,"to":2,"total":2}}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer e3f4ag8hkb5vZcDadPEV661'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- POST
|
|
||||||
uri: 'api/projects/{project_id}/source-controls'
|
|
||||||
metadata:
|
|
||||||
groupName: source-controls
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: create
|
|
||||||
description: ''
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters:
|
|
||||||
provider:
|
|
||||||
name: provider
|
|
||||||
description: 'The provider'
|
|
||||||
required: true
|
|
||||||
example: gitlab
|
|
||||||
type: string
|
|
||||||
enumValues:
|
|
||||||
- gitlab
|
|
||||||
- github
|
|
||||||
- bitbucket
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
name:
|
|
||||||
name: name
|
|
||||||
description: 'The name of the storage provider.'
|
|
||||||
required: true
|
|
||||||
example: molestias
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
token:
|
|
||||||
name: token
|
|
||||||
description: 'The token if provider requires api token'
|
|
||||||
required: true
|
|
||||||
example: in
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
url:
|
|
||||||
name: url
|
|
||||||
description: 'The URL if the provider is Gitlab and it is self-hosted'
|
|
||||||
required: true
|
|
||||||
example: 'https://www.white.com/aperiam-dolor-nemo-qui-rerum-quod-quas'
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
username:
|
|
||||||
name: username
|
|
||||||
description: 'The username if the provider is Bitbucket'
|
|
||||||
required: true
|
|
||||||
example: consectetur
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
password:
|
|
||||||
name: password
|
|
||||||
description: 'The password if the provider is Bitbucket'
|
|
||||||
required: true
|
|
||||||
example: 'y*P4_]ZdjE_:'
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanBodyParameters:
|
|
||||||
provider: gitlab
|
|
||||||
name: molestias
|
|
||||||
token: in
|
|
||||||
url: 'https://www.white.com/aperiam-dolor-nemo-qui-rerum-quod-quas'
|
|
||||||
username: consectetur
|
|
||||||
password: 'y*P4_]ZdjE_:'
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"id":5,"project_id":null,"global":true,"name":"Miss Claudine Goyette","provider":"github","created_at":"2025-04-05T17:48:03.000000Z","updated_at":"2025-04-05T17:48:03.000000Z"}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer DfegP56vkEa364Zbhda8V1c'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- GET
|
|
||||||
uri: 'api/projects/{project_id}/source-controls/{sourceControl_id}'
|
|
||||||
metadata:
|
|
||||||
groupName: source-controls
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: show
|
|
||||||
description: ''
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
sourceControl_id:
|
|
||||||
name: sourceControl_id
|
|
||||||
description: 'The ID of the sourceControl.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
sourceControl_id: 1
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"id":5,"project_id":null,"global":true,"name":"Mona Stark","provider":"github","created_at":"2025-04-05T17:48:03.000000Z","updated_at":"2025-04-05T17:48:03.000000Z"}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer ePc6fb65vh1Z4aakE3Dgd8V'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- PUT
|
|
||||||
uri: 'api/projects/{project_id}/source-controls/{sourceControl_id}'
|
|
||||||
metadata:
|
|
||||||
groupName: source-controls
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: update
|
|
||||||
description: ''
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
sourceControl_id:
|
|
||||||
name: sourceControl_id
|
|
||||||
description: 'The ID of the sourceControl.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
sourceControl_id: 1
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters:
|
|
||||||
name:
|
|
||||||
name: name
|
|
||||||
description: 'The name of the storage provider.'
|
|
||||||
required: true
|
|
||||||
example: non
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
token:
|
|
||||||
name: token
|
|
||||||
description: 'The token if provider requires api token'
|
|
||||||
required: true
|
|
||||||
example: sunt
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
url:
|
|
||||||
name: url
|
|
||||||
description: 'The URL if the provider is Gitlab and it is self-hosted'
|
|
||||||
required: true
|
|
||||||
example: 'https://www.frami.org/ex-at-minus-rerum-quo-minus-ea'
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
username:
|
|
||||||
name: username
|
|
||||||
description: 'The username if the provider is Bitbucket'
|
|
||||||
required: true
|
|
||||||
example: natus
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
password:
|
|
||||||
name: password
|
|
||||||
description: 'The password if the provider is Bitbucket'
|
|
||||||
required: true
|
|
||||||
example: 'A^">*m{p]DI'
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
global:
|
|
||||||
name: global
|
|
||||||
description: 'Accessible in all projects'
|
|
||||||
required: true
|
|
||||||
example: true
|
|
||||||
type: string
|
|
||||||
enumValues:
|
|
||||||
- true
|
|
||||||
- false
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanBodyParameters:
|
|
||||||
name: non
|
|
||||||
token: sunt
|
|
||||||
url: 'https://www.frami.org/ex-at-minus-rerum-quo-minus-ea'
|
|
||||||
username: natus
|
|
||||||
password: 'A^">*m{p]DI'
|
|
||||||
global: true
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"id":5,"project_id":null,"global":true,"name":"Neha Little","provider":"github","created_at":"2025-04-05T17:48:03.000000Z","updated_at":"2025-04-05T17:48:03.000000Z"}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer v3f6aaPk61Ze8hVdDbE5g4c'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- DELETE
|
|
||||||
uri: 'api/projects/{project_id}/source-controls/{sourceControl_id}'
|
|
||||||
metadata:
|
|
||||||
groupName: source-controls
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: delete
|
|
||||||
description: ''
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
sourceControl_id:
|
|
||||||
name: sourceControl_id
|
|
||||||
description: 'The ID of the sourceControl.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
sourceControl_id: 1
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 204
|
|
||||||
content: null
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer fgk61vD68E4cZhP3bV5adea'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
@ -1,370 +0,0 @@
|
|||||||
name: storage-providers
|
|
||||||
description: ''
|
|
||||||
endpoints:
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- GET
|
|
||||||
uri: 'api/projects/{project_id}/storage-providers'
|
|
||||||
metadata:
|
|
||||||
groupName: storage-providers
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: list
|
|
||||||
description: ''
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"data":[{"id":5,"project_id":null,"global":true,"name":"veritatis","provider":"ftp","created_at":"2025-04-05T17:48:03.000000Z","updated_at":"2025-04-05T17:48:03.000000Z"},{"id":6,"project_id":null,"global":true,"name":"voluptas","provider":"dropbox","created_at":"2025-04-05T17:48:03.000000Z","updated_at":"2025-04-05T17:48:03.000000Z"}],"links":{"first":"\/?page=1","last":"\/?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":1,"last_page":1,"links":[{"url":null,"label":"« Previous","active":false},{"url":"\/?page=1","label":"1","active":true},{"url":null,"label":"Next »","active":false}],"path":"\/","per_page":25,"to":2,"total":2}}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer fgh4eV31dP58kvaDEaZbc66'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- POST
|
|
||||||
uri: 'api/projects/{project_id}/storage-providers'
|
|
||||||
metadata:
|
|
||||||
groupName: storage-providers
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: create
|
|
||||||
description: ''
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters:
|
|
||||||
provider:
|
|
||||||
name: provider
|
|
||||||
description: 'The provider (aws, linode, hetzner, digitalocean, vultr, ...)'
|
|
||||||
required: true
|
|
||||||
example: ab
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
name:
|
|
||||||
name: name
|
|
||||||
description: 'The name of the storage provider.'
|
|
||||||
required: true
|
|
||||||
example: quo
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
token:
|
|
||||||
name: token
|
|
||||||
description: 'The token if provider requires api token'
|
|
||||||
required: true
|
|
||||||
example: in
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
key:
|
|
||||||
name: key
|
|
||||||
description: 'The key if provider requires key'
|
|
||||||
required: true
|
|
||||||
example: sunt
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
secret:
|
|
||||||
name: secret
|
|
||||||
description: 'The secret if provider requires key'
|
|
||||||
required: true
|
|
||||||
example: molestias
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanBodyParameters:
|
|
||||||
provider: ab
|
|
||||||
name: quo
|
|
||||||
token: in
|
|
||||||
key: sunt
|
|
||||||
secret: molestias
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"id":5,"project_id":null,"global":true,"name":"asperiores","provider":"dropbox","created_at":"2025-04-05T17:48:03.000000Z","updated_at":"2025-04-05T17:48:03.000000Z"}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer e584613dkZaPDEVvgcahbf6'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- GET
|
|
||||||
uri: 'api/projects/{project_id}/storage-providers/{storageProvider_id}'
|
|
||||||
metadata:
|
|
||||||
groupName: storage-providers
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: show
|
|
||||||
description: ''
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
storageProvider_id:
|
|
||||||
name: storageProvider_id
|
|
||||||
description: 'The ID of the storageProvider.'
|
|
||||||
required: true
|
|
||||||
example: 3
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
storageProvider_id: 3
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"id":5,"project_id":null,"global":true,"name":"ipsum","provider":"local","created_at":"2025-04-05T17:48:03.000000Z","updated_at":"2025-04-05T17:48:03.000000Z"}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer h6Zk6834dDce5fbPa1VvagE'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- PUT
|
|
||||||
uri: 'api/projects/{project_id}/storage-providers/{storageProvider_id}'
|
|
||||||
metadata:
|
|
||||||
groupName: storage-providers
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: update
|
|
||||||
description: ''
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
storageProvider_id:
|
|
||||||
name: storageProvider_id
|
|
||||||
description: 'The ID of the storageProvider.'
|
|
||||||
required: true
|
|
||||||
example: 3
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
storageProvider_id: 3
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters:
|
|
||||||
name:
|
|
||||||
name: name
|
|
||||||
description: 'The name of the storage provider.'
|
|
||||||
required: true
|
|
||||||
example: voluptas
|
|
||||||
type: string
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
global:
|
|
||||||
name: global
|
|
||||||
description: 'Accessible in all projects'
|
|
||||||
required: true
|
|
||||||
example: true
|
|
||||||
type: string
|
|
||||||
enumValues:
|
|
||||||
- true
|
|
||||||
- false
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanBodyParameters:
|
|
||||||
name: voluptas
|
|
||||||
global: true
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 200
|
|
||||||
content: '{"id":5,"project_id":null,"global":true,"name":"minima","provider":"ftp","created_at":"2025-04-05T17:48:03.000000Z","updated_at":"2025-04-05T17:48:03.000000Z"}'
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer ak6fgd1Eba48chvPV3e5Z6D'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
||||||
-
|
|
||||||
httpMethods:
|
|
||||||
- DELETE
|
|
||||||
uri: 'api/projects/{project_id}/storage-providers/{storageProvider_id}'
|
|
||||||
metadata:
|
|
||||||
groupName: storage-providers
|
|
||||||
groupDescription: ''
|
|
||||||
subgroup: ''
|
|
||||||
subgroupDescription: ''
|
|
||||||
title: delete
|
|
||||||
description: ''
|
|
||||||
authenticated: true
|
|
||||||
custom: []
|
|
||||||
headers:
|
|
||||||
Authorization: 'Bearer YOUR-API-KEY'
|
|
||||||
Content-Type: application/json
|
|
||||||
Accept: application/json
|
|
||||||
urlParameters:
|
|
||||||
project_id:
|
|
||||||
name: project_id
|
|
||||||
description: 'The ID of the project.'
|
|
||||||
required: true
|
|
||||||
example: 1
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
storageProvider_id:
|
|
||||||
name: storageProvider_id
|
|
||||||
description: 'The ID of the storageProvider.'
|
|
||||||
required: true
|
|
||||||
example: 3
|
|
||||||
type: integer
|
|
||||||
enumValues: []
|
|
||||||
exampleWasSpecified: false
|
|
||||||
nullable: false
|
|
||||||
custom: []
|
|
||||||
cleanUrlParameters:
|
|
||||||
project_id: 1
|
|
||||||
storageProvider_id: 3
|
|
||||||
queryParameters: []
|
|
||||||
cleanQueryParameters: []
|
|
||||||
bodyParameters: []
|
|
||||||
cleanBodyParameters: []
|
|
||||||
fileParameters: []
|
|
||||||
responses:
|
|
||||||
-
|
|
||||||
status: 204
|
|
||||||
content: null
|
|
||||||
headers: []
|
|
||||||
description: ''
|
|
||||||
custom: []
|
|
||||||
responseFields: []
|
|
||||||
auth:
|
|
||||||
- headers
|
|
||||||
- Authorization
|
|
||||||
- 'Bearer PcaDbh6ZE4aV1e8fdv56k3g'
|
|
||||||
controller: null
|
|
||||||
method: null
|
|
||||||
route: null
|
|
||||||
custom: []
|
|
@ -1,53 +0,0 @@
|
|||||||
# To include an endpoint that isn't a part of your Laravel app (or belongs to a vendor package),
|
|
||||||
# you can define it in a custom.*.yaml file, like this one.
|
|
||||||
# Each custom file should contain an array of endpoints. Here's an example:
|
|
||||||
# See https://scribe.knuckles.wtf/laravel/documenting/custom-endpoints#extra-sorting-groups-in-custom-endpoint-files for more options
|
|
||||||
|
|
||||||
#- httpMethods:
|
|
||||||
# - POST
|
|
||||||
# uri: api/doSomething/{param}
|
|
||||||
# metadata:
|
|
||||||
# groupName: The group the endpoint belongs to. Can be a new group or an existing group.
|
|
||||||
# groupDescription: A description for the group. You don't need to set this for every endpoint; once is enough.
|
|
||||||
# subgroup: You can add a subgroup, too.
|
|
||||||
# title: Do something
|
|
||||||
# description: 'This endpoint allows you to do something.'
|
|
||||||
# authenticated: false
|
|
||||||
# headers:
|
|
||||||
# Content-Type: application/json
|
|
||||||
# Accept: application/json
|
|
||||||
# urlParameters:
|
|
||||||
# param:
|
|
||||||
# name: param
|
|
||||||
# description: A URL param for no reason.
|
|
||||||
# required: true
|
|
||||||
# example: 2
|
|
||||||
# type: integer
|
|
||||||
# queryParameters:
|
|
||||||
# speed:
|
|
||||||
# name: speed
|
|
||||||
# description: How fast the thing should be done. Can be `slow` or `fast`.
|
|
||||||
# required: false
|
|
||||||
# example: fast
|
|
||||||
# type: string
|
|
||||||
# bodyParameters:
|
|
||||||
# something:
|
|
||||||
# name: something
|
|
||||||
# description: The things we should do.
|
|
||||||
# required: true
|
|
||||||
# example:
|
|
||||||
# - string 1
|
|
||||||
# - string 2
|
|
||||||
# type: 'string[]'
|
|
||||||
# responses:
|
|
||||||
# - status: 200
|
|
||||||
# description: 'When the thing was done smoothly.'
|
|
||||||
# content: # Your response content can be an object, an array, a string or empty.
|
|
||||||
# {
|
|
||||||
# "hey": "ho ho ho"
|
|
||||||
# }
|
|
||||||
# responseFields:
|
|
||||||
# hey:
|
|
||||||
# name: hey
|
|
||||||
# description: Who knows?
|
|
||||||
# type: string # This is optional
|
|
@ -1,13 +0,0 @@
|
|||||||
# Introduction
|
|
||||||
|
|
||||||
VitoDeploy's API documentation.
|
|
||||||
|
|
||||||
<aside>
|
|
||||||
<strong>Base URL</strong>: <code>https://your-vito-url</code>
|
|
||||||
</aside>
|
|
||||||
|
|
||||||
This documentation aims to provide all the information you need to work with our API.
|
|
||||||
|
|
||||||
<aside>As you scroll, you'll see code examples for working with the API in different programming languages in the dark area to the right (or as part of the content on mobile).
|
|
||||||
You can switch the language used with the tabs at the top right (or from the nav menu at the top left on mobile).</aside>
|
|
||||||
|
|
@ -2,4 +2,4 @@ # Contributing
|
|||||||
|
|
||||||
Please read the contribution guide on the website
|
Please read the contribution guide on the website
|
||||||
|
|
||||||
https://vitodeploy.com/prologue/contribution-guide.html
|
https://vitodeploy.com/introduction/contribution-guide.html
|
||||||
|
24
README.md
24
README.md
@ -1,21 +1,20 @@
|
|||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<img src="https://github.com/user-attachments/assets/57f77bd5-bd3f-4367-84c0-aff6ecd392b4" alt="VitoDeploy>
|
<img src="https://github.com/vitodeploy/vito/assets/61919774/8060fded-58e3-4d58-b58b-5b717b0718e9" alt="VitoDeploy>
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<a href="https://github.com/vitodeploy/vito/actions"><img alt="GitHub Workflow Status" src="https://github.com/vitodeploy/vito/workflows/tests/badge.svg"></a>
|
<a href="https://github.com/vitodeploy/vito/actions"><img alt="GitHub Workflow Status" src="https://github.com/vitodeploy/vito/workflows/tests/badge.svg"></a>
|
||||||
</p>
|
</p>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
------
|
------
|
||||||
|
|
||||||
## About Vito
|
## About Vito
|
||||||
|
|
||||||
Vito is a self-hosted web application that helps you manage your servers and deploy your PHP applications into
|
Vito is a self-hosted web application that helps you manage your servers and deploy your PHP applications into production servers without a hassle.
|
||||||
production servers without a hassle.
|
|
||||||
|
|
||||||
## Quick Start
|
## Quick Start
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
bash <(curl -Ls https://raw.githubusercontent.com/vitodeploy/vito/2.x/scripts/install.sh)
|
bash <(curl -Ls https://raw.githubusercontent.com/vitodeploy/vito/1.x/scripts/install.sh)
|
||||||
```
|
```
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
@ -29,17 +28,16 @@ ## Features
|
|||||||
- Manages server's services
|
- Manages server's services
|
||||||
- Deploy your SSH Keys to the server
|
- Deploy your SSH Keys to the server
|
||||||
- Create and Manage cron jobs on the server
|
- Create and Manage cron jobs on the server
|
||||||
- API
|
|
||||||
|
|
||||||
## Useful Links
|
## Useful Links
|
||||||
|
|
||||||
- [Documentation](https://vitodeploy.com)
|
- [Documentation](https://vitodeploy.com)
|
||||||
- [Demo Website](https://demo.vitodeploy.com)
|
- [Install on Server](https://vitodeploy.com/introduction/installation.html#install-on-vps-recommended)
|
||||||
- [Install on Server](https://vitodeploy.com/getting-started/installation.html#install-on-vps)
|
- [Install via Docker](https://vitodeploy.com/introduction/installation.html#install-via-docker)
|
||||||
- [Install via Docker](https://vitodeploy.com/getting-started/installation.html#install-via-docker)
|
|
||||||
- [Roadmap](https://github.com/orgs/vitodeploy/projects/5)
|
- [Roadmap](https://github.com/orgs/vitodeploy/projects/5)
|
||||||
|
- [Video Demo](https://youtu.be/AbmUOBDOc28)
|
||||||
- [Discord](https://discord.gg/uZeeHZZnm5)
|
- [Discord](https://discord.gg/uZeeHZZnm5)
|
||||||
- [Contribution](https://vitodeploy.com/prologue/contribution-guide.html)
|
- [Contribution](/CONTRIBUTING.md)
|
||||||
- [Security](/SECURITY.md)
|
- [Security](/SECURITY.md)
|
||||||
|
|
||||||
## Credits
|
## Credits
|
||||||
@ -49,10 +47,8 @@ ## Credits
|
|||||||
- PHPUnit
|
- PHPUnit
|
||||||
- Tailwindcss
|
- Tailwindcss
|
||||||
- Alpinejs
|
- Alpinejs
|
||||||
- Livewire
|
- HTMX
|
||||||
- Vite
|
- Vite
|
||||||
- Prettier
|
- Prettier
|
||||||
- Postcss
|
- Postcss
|
||||||
- FilamentPHP
|
- Flowbite
|
||||||
- Mobiledetect
|
|
||||||
- Spatie
|
|
||||||
|
@ -2,11 +2,10 @@ # Security Policy
|
|||||||
|
|
||||||
## Supported Versions
|
## Supported Versions
|
||||||
|
|
||||||
| Version | New Features | Bug Fixes | Security Fixes |
|
| Version | Supported |
|
||||||
|---------|--------------|-----------|----------------------|
|
| ------- | ----------|
|
||||||
| 0.x | ❌ | ❌ | ❌ |
|
| 0.x | ❌ |
|
||||||
| 1.x | ❌ | ❌ | ✅ (Until March 2025) |
|
| 1.x | ✅ |
|
||||||
| 2.x | ✅ | ✅ | ✅ |
|
|
||||||
|
|
||||||
## Reporting a Vulnerability
|
## Reporting a Vulnerability
|
||||||
|
|
||||||
|
@ -6,15 +6,15 @@
|
|||||||
use App\Models\CronJob;
|
use App\Models\CronJob;
|
||||||
use App\Models\Server;
|
use App\Models\Server;
|
||||||
use App\ValidationRules\CronRule;
|
use App\ValidationRules\CronRule;
|
||||||
use Illuminate\Validation\Rule;
|
use Illuminate\Support\Facades\Validator;
|
||||||
|
use Illuminate\Validation\ValidationException;
|
||||||
|
|
||||||
class CreateCronJob
|
class CreateCronJob
|
||||||
{
|
{
|
||||||
/**
|
public function create(Server $server, array $input): void
|
||||||
* @param array<string, mixed> $input
|
|
||||||
*/
|
|
||||||
public function create(Server $server, array $input): CronJob
|
|
||||||
{
|
{
|
||||||
|
$this->validate($input);
|
||||||
|
|
||||||
$cronJob = new CronJob([
|
$cronJob = new CronJob([
|
||||||
'server_id' => $server->id,
|
'server_id' => $server->id,
|
||||||
'user' => $input['user'],
|
'user' => $input['user'],
|
||||||
@ -27,37 +27,34 @@ public function create(Server $server, array $input): CronJob
|
|||||||
$server->cron()->update($cronJob->user, CronJob::crontab($server, $cronJob->user));
|
$server->cron()->update($cronJob->user, CronJob::crontab($server, $cronJob->user));
|
||||||
$cronJob->status = CronjobStatus::READY;
|
$cronJob->status = CronjobStatus::READY;
|
||||||
$cronJob->save();
|
$cronJob->save();
|
||||||
|
|
||||||
return $cronJob;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param array<string, mixed> $input
|
* @throws ValidationException
|
||||||
* @return array<string, array<mixed>>
|
|
||||||
*/
|
*/
|
||||||
public static function rules(array $input, Server $server): array
|
private function validate(array $input): void
|
||||||
{
|
{
|
||||||
$rules = [
|
Validator::make($input, [
|
||||||
'command' => [
|
'command' => [
|
||||||
'required',
|
'required',
|
||||||
],
|
],
|
||||||
'user' => [
|
'user' => [
|
||||||
'required',
|
'required',
|
||||||
Rule::in($server->getSshUsers()),
|
'in:root,'.config('core.ssh_user'),
|
||||||
],
|
],
|
||||||
'frequency' => [
|
'frequency' => [
|
||||||
'required',
|
'required',
|
||||||
new CronRule(acceptCustom: true),
|
new CronRule(acceptCustom: true),
|
||||||
],
|
],
|
||||||
];
|
])->validate();
|
||||||
|
|
||||||
if (isset($input['frequency']) && $input['frequency'] == 'custom') {
|
if ($input['frequency'] == 'custom') {
|
||||||
$rules['custom'] = [
|
Validator::make($input, [
|
||||||
|
'custom' => [
|
||||||
'required',
|
'required',
|
||||||
new CronRule,
|
new CronRule(),
|
||||||
];
|
],
|
||||||
|
])->validate();
|
||||||
}
|
}
|
||||||
|
|
||||||
return $rules;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
81
app/Actions/Database/CreateBackup.php
Normal file
81
app/Actions/Database/CreateBackup.php
Normal file
@ -0,0 +1,81 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Actions\Database;
|
||||||
|
|
||||||
|
use App\Enums\BackupStatus;
|
||||||
|
use App\Enums\DatabaseStatus;
|
||||||
|
use App\Models\Backup;
|
||||||
|
use App\Models\Server;
|
||||||
|
use Illuminate\Auth\Access\AuthorizationException;
|
||||||
|
use Illuminate\Support\Facades\Validator;
|
||||||
|
use Illuminate\Validation\Rule;
|
||||||
|
use Illuminate\Validation\ValidationException;
|
||||||
|
|
||||||
|
class CreateBackup
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @throws AuthorizationException
|
||||||
|
* @throws ValidationException
|
||||||
|
*/
|
||||||
|
public function create($type, Server $server, array $input): Backup
|
||||||
|
{
|
||||||
|
$this->validate($type, $server, $input);
|
||||||
|
|
||||||
|
$backup = new Backup([
|
||||||
|
'type' => $type,
|
||||||
|
'server_id' => $server->id,
|
||||||
|
'database_id' => $input['backup_database'] ?? null,
|
||||||
|
'storage_id' => $input['backup_storage'],
|
||||||
|
'interval' => $input['backup_interval'] == 'custom' ? $input['backup_custom'] : $input['backup_interval'],
|
||||||
|
'keep_backups' => $input['backup_keep'],
|
||||||
|
'status' => BackupStatus::RUNNING,
|
||||||
|
]);
|
||||||
|
$backup->save();
|
||||||
|
|
||||||
|
app(RunBackup::class)->run($backup);
|
||||||
|
|
||||||
|
return $backup;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @throws ValidationException
|
||||||
|
*/
|
||||||
|
private function validate($type, Server $server, array $input): void
|
||||||
|
{
|
||||||
|
$rules = [
|
||||||
|
'backup_storage' => [
|
||||||
|
'required',
|
||||||
|
Rule::exists('storage_providers', 'id'),
|
||||||
|
],
|
||||||
|
'backup_keep' => [
|
||||||
|
'required',
|
||||||
|
'numeric',
|
||||||
|
'min:1',
|
||||||
|
],
|
||||||
|
'backup_interval' => [
|
||||||
|
'required',
|
||||||
|
Rule::in([
|
||||||
|
'0 * * * *',
|
||||||
|
'0 0 * * *',
|
||||||
|
'0 0 * * 0',
|
||||||
|
'0 0 1 * *',
|
||||||
|
'custom',
|
||||||
|
]),
|
||||||
|
],
|
||||||
|
];
|
||||||
|
if ($input['backup_interval'] == 'custom') {
|
||||||
|
$rules['backup_custom'] = [
|
||||||
|
'required',
|
||||||
|
];
|
||||||
|
}
|
||||||
|
if ($type === 'database') {
|
||||||
|
$rules['backup_database'] = [
|
||||||
|
'required',
|
||||||
|
Rule::exists('databases', 'id')
|
||||||
|
->where('server_id', $server->id)
|
||||||
|
->where('status', DatabaseStatus::READY),
|
||||||
|
];
|
||||||
|
}
|
||||||
|
Validator::make($input, $rules)->validate();
|
||||||
|
}
|
||||||
|
}
|
@ -5,63 +5,42 @@
|
|||||||
use App\Enums\DatabaseStatus;
|
use App\Enums\DatabaseStatus;
|
||||||
use App\Models\Database;
|
use App\Models\Database;
|
||||||
use App\Models\Server;
|
use App\Models\Server;
|
||||||
use App\Models\Service;
|
use Illuminate\Support\Facades\Validator;
|
||||||
use Illuminate\Validation\Rule;
|
use Illuminate\Validation\Rule;
|
||||||
use Illuminate\Validation\ValidationException;
|
use Illuminate\Validation\ValidationException;
|
||||||
|
|
||||||
class CreateDatabase
|
class CreateDatabase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @param array<string, mixed> $input
|
* @throws ValidationException
|
||||||
*/
|
*/
|
||||||
public function create(Server $server, array $input): Database
|
public function create(Server $server, array $input): Database
|
||||||
{
|
{
|
||||||
|
$this->validate($server, $input);
|
||||||
|
|
||||||
$database = new Database([
|
$database = new Database([
|
||||||
'server_id' => $server->id,
|
'server_id' => $server->id,
|
||||||
'charset' => $input['charset'],
|
|
||||||
'collation' => $input['collation'],
|
|
||||||
'name' => $input['name'],
|
'name' => $input['name'],
|
||||||
]);
|
]);
|
||||||
|
/** @var \App\SSH\Services\Database\Database */
|
||||||
/** @var Service $service */
|
$databaseHandler = $server->database()->handler();
|
||||||
$service = $server->database();
|
$databaseHandler->create($database->name);
|
||||||
|
|
||||||
/** @var \App\SSH\Services\Database\Database $databaseHandler */
|
|
||||||
$databaseHandler = $service->handler();
|
|
||||||
$databaseHandler->create($database->name, $database->charset, $database->collation);
|
|
||||||
$database->status = DatabaseStatus::READY;
|
$database->status = DatabaseStatus::READY;
|
||||||
$database->save();
|
$database->save();
|
||||||
|
|
||||||
if (isset($input['user']) && $input['user']) {
|
|
||||||
$databaseUser = app(CreateDatabaseUser::class)->create($server, $input, [$database->name]);
|
|
||||||
|
|
||||||
app(LinkUser::class)->link($databaseUser, ['databases' => [$database->name]]);
|
|
||||||
}
|
|
||||||
|
|
||||||
return $database;
|
return $database;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param array<string, mixed> $input
|
|
||||||
* @return array<string, mixed>
|
|
||||||
*
|
|
||||||
* @throws ValidationException
|
* @throws ValidationException
|
||||||
*/
|
*/
|
||||||
public static function rules(Server $server, array $input): array
|
private function validate(Server $server, array $input): void
|
||||||
{
|
{
|
||||||
$rules = [
|
$rules = [
|
||||||
'name' => [
|
'name' => [
|
||||||
'required',
|
'required',
|
||||||
'alpha_dash',
|
'alpha_dash',
|
||||||
Rule::unique('databases', 'name')->where('server_id', $server->id)->whereNull('deleted_at'),
|
Rule::unique('databases', 'name')->where('server_id', $server->id),
|
||||||
],
|
|
||||||
'charset' => [
|
|
||||||
'required',
|
|
||||||
'string',
|
|
||||||
],
|
|
||||||
'collation' => [
|
|
||||||
'required',
|
|
||||||
'string',
|
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
if (isset($input['user']) && $input['user']) {
|
if (isset($input['user']) && $input['user']) {
|
||||||
@ -78,7 +57,6 @@ public static function rules(Server $server, array $input): array
|
|||||||
if (isset($input['remote']) && $input['remote']) {
|
if (isset($input['remote']) && $input['remote']) {
|
||||||
$rules['host'] = 'required';
|
$rules['host'] = 'required';
|
||||||
}
|
}
|
||||||
|
Validator::make($input, $rules)->validate();
|
||||||
return $rules;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -5,35 +5,27 @@
|
|||||||
use App\Enums\DatabaseUserStatus;
|
use App\Enums\DatabaseUserStatus;
|
||||||
use App\Models\DatabaseUser;
|
use App\Models\DatabaseUser;
|
||||||
use App\Models\Server;
|
use App\Models\Server;
|
||||||
use App\Models\Service;
|
use Illuminate\Support\Facades\Validator;
|
||||||
use App\SSH\Services\Database\Database;
|
|
||||||
use Illuminate\Validation\Rule;
|
use Illuminate\Validation\Rule;
|
||||||
use Illuminate\Validation\ValidationException;
|
use Illuminate\Validation\ValidationException;
|
||||||
|
|
||||||
class CreateDatabaseUser
|
class CreateDatabaseUser
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @param array<string, mixed> $input
|
|
||||||
* @param array<string> $links
|
|
||||||
*
|
|
||||||
* @throws ValidationException
|
* @throws ValidationException
|
||||||
*/
|
*/
|
||||||
public function create(Server $server, array $input, array $links = []): DatabaseUser
|
public function create(Server $server, array $input, array $links = []): DatabaseUser
|
||||||
{
|
{
|
||||||
|
$this->validate($server, $input);
|
||||||
|
|
||||||
$databaseUser = new DatabaseUser([
|
$databaseUser = new DatabaseUser([
|
||||||
'server_id' => $server->id,
|
'server_id' => $server->id,
|
||||||
'username' => $input['username'],
|
'username' => $input['username'],
|
||||||
'password' => $input['password'],
|
'password' => $input['password'],
|
||||||
'host' => (isset($input['remote']) && $input['remote']) || isset($input['host']) ? $input['host'] : 'localhost',
|
'host' => isset($input['remote']) && $input['remote'] ? $input['host'] : 'localhost',
|
||||||
'databases' => $links,
|
'databases' => $links,
|
||||||
]);
|
]);
|
||||||
|
$server->database()->handler()->createUser(
|
||||||
/** @var Service $service */
|
|
||||||
$service = $server->database();
|
|
||||||
|
|
||||||
/** @var Database $databaseHandler */
|
|
||||||
$databaseHandler = $service->handler();
|
|
||||||
$databaseHandler->createUser(
|
|
||||||
$databaseUser->username,
|
$databaseUser->username,
|
||||||
$databaseUser->password,
|
$databaseUser->password,
|
||||||
$databaseUser->host
|
$databaseUser->host
|
||||||
@ -49,12 +41,9 @@ public function create(Server $server, array $input, array $links = []): Databas
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param array<string, mixed> $input
|
|
||||||
* @return array<string, mixed>
|
|
||||||
*
|
|
||||||
* @throws ValidationException
|
* @throws ValidationException
|
||||||
*/
|
*/
|
||||||
public static function rules(Server $server, array $input): array
|
private function validate(Server $server, array $input): void
|
||||||
{
|
{
|
||||||
$rules = [
|
$rules = [
|
||||||
'username' => [
|
'username' => [
|
||||||
@ -70,7 +59,6 @@ public static function rules(Server $server, array $input): array
|
|||||||
if (isset($input['remote']) && $input['remote']) {
|
if (isset($input['remote']) && $input['remote']) {
|
||||||
$rules['host'] = 'required';
|
$rules['host'] = 'required';
|
||||||
}
|
}
|
||||||
|
Validator::make($input, $rules)->validate();
|
||||||
return $rules;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,24 +2,14 @@
|
|||||||
|
|
||||||
namespace App\Actions\Database;
|
namespace App\Actions\Database;
|
||||||
|
|
||||||
use App\Models\Backup;
|
|
||||||
use App\Models\Database;
|
use App\Models\Database;
|
||||||
use App\Models\Server;
|
use App\Models\Server;
|
||||||
use App\Models\Service;
|
|
||||||
|
|
||||||
class DeleteDatabase
|
class DeleteDatabase
|
||||||
{
|
{
|
||||||
public function delete(Server $server, Database $database): void
|
public function delete(Server $server, Database $database): void
|
||||||
{
|
{
|
||||||
/** @var Service $service */
|
$server->database()->handler()->delete($database->name);
|
||||||
$service = $server->database();
|
|
||||||
/** @var \App\SSH\Services\Database\Database $handler */
|
|
||||||
$handler = $service->handler();
|
|
||||||
$handler->delete($database->name);
|
|
||||||
$database->delete();
|
$database->delete();
|
||||||
|
|
||||||
$database->backups()->each(function (Backup $backup): void {
|
|
||||||
app(ManageBackup::class)->stop($backup);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -4,18 +4,12 @@
|
|||||||
|
|
||||||
use App\Models\DatabaseUser;
|
use App\Models\DatabaseUser;
|
||||||
use App\Models\Server;
|
use App\Models\Server;
|
||||||
use App\Models\Service;
|
|
||||||
use App\SSH\Services\Database\Database;
|
|
||||||
|
|
||||||
class DeleteDatabaseUser
|
class DeleteDatabaseUser
|
||||||
{
|
{
|
||||||
public function delete(Server $server, DatabaseUser $databaseUser): void
|
public function delete(Server $server, DatabaseUser $databaseUser): void
|
||||||
{
|
{
|
||||||
/** @var Service $service */
|
$server->database()->handler()->deleteUser($databaseUser->username, $databaseUser->host);
|
||||||
$service = $server->database();
|
|
||||||
/** @var Database $handler */
|
|
||||||
$handler = $service->handler();
|
|
||||||
$handler->deleteUser($databaseUser->username, $databaseUser->host);
|
|
||||||
$databaseUser->delete();
|
$databaseUser->delete();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -5,24 +5,23 @@
|
|||||||
use App\Models\Database;
|
use App\Models\Database;
|
||||||
use App\Models\DatabaseUser;
|
use App\Models\DatabaseUser;
|
||||||
use App\Models\Server;
|
use App\Models\Server;
|
||||||
use App\Models\Service;
|
use Illuminate\Support\Facades\Validator;
|
||||||
use Illuminate\Validation\Rule;
|
use Illuminate\Validation\Rule;
|
||||||
use Illuminate\Validation\ValidationException;
|
use Illuminate\Validation\ValidationException;
|
||||||
|
|
||||||
class LinkUser
|
class LinkUser
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @param array<string, mixed> $input
|
|
||||||
* @return DatabaseUser $databaseUser
|
|
||||||
*
|
|
||||||
* @throws ValidationException
|
* @throws ValidationException
|
||||||
*/
|
*/
|
||||||
public function link(DatabaseUser $databaseUser, array $input): DatabaseUser
|
public function link(DatabaseUser $databaseUser, array $input): void
|
||||||
{
|
{
|
||||||
if (! isset($input['databases']) || ! is_array($input['databases'])) {
|
if (! isset($input['databases']) || ! is_array($input['databases'])) {
|
||||||
$input['databases'] = [];
|
$input['databases'] = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$this->validate($databaseUser->server, $input);
|
||||||
|
|
||||||
$dbs = Database::query()
|
$dbs = Database::query()
|
||||||
->where('server_id', $databaseUser->server_id)
|
->where('server_id', $databaseUser->server_id)
|
||||||
->whereIn('name', $input['databases'])
|
->whereIn('name', $input['databases'])
|
||||||
@ -33,43 +32,31 @@ public function link(DatabaseUser $databaseUser, array $input): DatabaseUser
|
|||||||
|
|
||||||
$databaseUser->databases = $input['databases'];
|
$databaseUser->databases = $input['databases'];
|
||||||
|
|
||||||
/** @var Service $service */
|
|
||||||
$service = $databaseUser->server->database();
|
|
||||||
|
|
||||||
/** @var \App\SSH\Services\Database\Database $handler */
|
|
||||||
$handler = $service->handler();
|
|
||||||
|
|
||||||
// Unlink the user from all databases
|
// Unlink the user from all databases
|
||||||
$handler->unlink(
|
$databaseUser->server->database()->handler()->unlink(
|
||||||
$databaseUser->username,
|
$databaseUser->username,
|
||||||
$databaseUser->host
|
$databaseUser->host
|
||||||
);
|
);
|
||||||
|
|
||||||
// Link the user to the selected databases
|
// Link the user to the selected databases
|
||||||
$handler->link(
|
$databaseUser->server->database()->handler()->link(
|
||||||
$databaseUser->username,
|
$databaseUser->username,
|
||||||
$databaseUser->host,
|
$databaseUser->host,
|
||||||
$databaseUser->databases
|
$databaseUser->databases
|
||||||
);
|
);
|
||||||
|
|
||||||
$databaseUser->save();
|
$databaseUser->save();
|
||||||
|
|
||||||
$databaseUser->refresh();
|
|
||||||
|
|
||||||
return $databaseUser;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
private function validate(Server $server, array $input): void
|
||||||
* @param array<string, mixed> $input
|
|
||||||
* @return array<string, mixed>
|
|
||||||
*/
|
|
||||||
public static function rules(Server $server, array $input): array
|
|
||||||
{
|
{
|
||||||
return [
|
$rules = [
|
||||||
'databases.*' => [
|
'databases.*' => [
|
||||||
'nullable',
|
'required',
|
||||||
Rule::exists('databases', 'name')->where('server_id', $server->id),
|
Rule::exists('databases', 'name')->where('server_id', $server->id),
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|
||||||
|
Validator::make($input, $rules)->validate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,109 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace App\Actions\Database;
|
|
||||||
|
|
||||||
use App\Enums\BackupFileStatus;
|
|
||||||
use App\Enums\BackupStatus;
|
|
||||||
use App\Enums\DatabaseStatus;
|
|
||||||
use App\Models\Backup;
|
|
||||||
use App\Models\Server;
|
|
||||||
use Illuminate\Auth\Access\AuthorizationException;
|
|
||||||
use Illuminate\Validation\Rule;
|
|
||||||
use Illuminate\Validation\ValidationException;
|
|
||||||
|
|
||||||
class ManageBackup
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* @param array<string, mixed> $input
|
|
||||||
*
|
|
||||||
* @throws AuthorizationException
|
|
||||||
* @throws ValidationException
|
|
||||||
*/
|
|
||||||
public function create(Server $server, array $input): Backup
|
|
||||||
{
|
|
||||||
$backup = new Backup([
|
|
||||||
'type' => 'database',
|
|
||||||
'server_id' => $server->id,
|
|
||||||
'database_id' => $input['database'] ?? null,
|
|
||||||
'storage_id' => $input['storage'],
|
|
||||||
'interval' => $input['interval'] == 'custom' ? $input['custom_interval'] : $input['interval'],
|
|
||||||
'keep_backups' => $input['keep'],
|
|
||||||
'status' => BackupStatus::RUNNING,
|
|
||||||
]);
|
|
||||||
$backup->save();
|
|
||||||
|
|
||||||
app(RunBackup::class)->run($backup);
|
|
||||||
|
|
||||||
return $backup;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param array<string, mixed> $input
|
|
||||||
*/
|
|
||||||
public function update(Backup $backup, array $input): void
|
|
||||||
{
|
|
||||||
$backup->interval = $input['interval'] == 'custom' ? $input['custom_interval'] : $input['interval'];
|
|
||||||
$backup->keep_backups = $input['keep'];
|
|
||||||
$backup->save();
|
|
||||||
}
|
|
||||||
|
|
||||||
public function delete(Backup $backup): void
|
|
||||||
{
|
|
||||||
$backup->status = BackupStatus::DELETING;
|
|
||||||
$backup->save();
|
|
||||||
|
|
||||||
dispatch(function () use ($backup): void {
|
|
||||||
$files = $backup->files;
|
|
||||||
foreach ($files as $file) {
|
|
||||||
$file->status = BackupFileStatus::DELETING;
|
|
||||||
$file->save();
|
|
||||||
|
|
||||||
$file->deleteFile();
|
|
||||||
}
|
|
||||||
|
|
||||||
$backup->delete();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param array<string, mixed> $input
|
|
||||||
* @return array<string, mixed>
|
|
||||||
*/
|
|
||||||
public static function rules(Server $server, array $input): array
|
|
||||||
{
|
|
||||||
$rules = [
|
|
||||||
'storage' => [
|
|
||||||
'required',
|
|
||||||
Rule::exists('storage_providers', 'id'),
|
|
||||||
],
|
|
||||||
'keep' => [
|
|
||||||
'required',
|
|
||||||
'numeric',
|
|
||||||
'min:1',
|
|
||||||
],
|
|
||||||
'interval' => [
|
|
||||||
'required',
|
|
||||||
Rule::in(array_keys(config('core.cronjob_intervals'))),
|
|
||||||
],
|
|
||||||
'database' => [
|
|
||||||
'required',
|
|
||||||
Rule::exists('databases', 'id')
|
|
||||||
->where('server_id', $server->id)
|
|
||||||
->where('status', DatabaseStatus::READY),
|
|
||||||
],
|
|
||||||
];
|
|
||||||
if ($input['interval'] == 'custom') {
|
|
||||||
$rules['custom_interval'] = [
|
|
||||||
'required',
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
return $rules;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function stop(Backup $backup): void
|
|
||||||
{
|
|
||||||
$backup->status = BackupStatus::STOPPED;
|
|
||||||
$backup->save();
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,35 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace App\Actions\Database;
|
|
||||||
|
|
||||||
use App\Enums\BackupFileStatus;
|
|
||||||
use App\Models\BackupFile;
|
|
||||||
use Illuminate\Support\Facades\Storage;
|
|
||||||
use Symfony\Component\HttpFoundation\StreamedResponse;
|
|
||||||
use Throwable;
|
|
||||||
|
|
||||||
class ManageBackupFile
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* @throws Throwable
|
|
||||||
*/
|
|
||||||
public function download(BackupFile $file): StreamedResponse
|
|
||||||
{
|
|
||||||
$file->backup->server->ssh()->download(
|
|
||||||
Storage::disk('tmp')->path(basename($file->path())),
|
|
||||||
$file->path()
|
|
||||||
);
|
|
||||||
|
|
||||||
return Storage::disk('tmp')->download(basename($file->path()));
|
|
||||||
}
|
|
||||||
|
|
||||||
public function delete(BackupFile $file): void
|
|
||||||
{
|
|
||||||
$file->status = BackupFileStatus::DELETING;
|
|
||||||
$file->save();
|
|
||||||
|
|
||||||
dispatch(function () use ($file): void {
|
|
||||||
$file->deleteFile();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
@ -5,46 +5,35 @@
|
|||||||
use App\Enums\BackupFileStatus;
|
use App\Enums\BackupFileStatus;
|
||||||
use App\Models\BackupFile;
|
use App\Models\BackupFile;
|
||||||
use App\Models\Database;
|
use App\Models\Database;
|
||||||
use App\Models\Service;
|
use Illuminate\Support\Facades\Validator;
|
||||||
|
|
||||||
class RestoreBackup
|
class RestoreBackup
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @param array<string, mixed> $input
|
|
||||||
*/
|
|
||||||
public function restore(BackupFile $backupFile, array $input): void
|
public function restore(BackupFile $backupFile, array $input): void
|
||||||
{
|
{
|
||||||
|
$this->validate($input);
|
||||||
|
|
||||||
/** @var Database $database */
|
/** @var Database $database */
|
||||||
$database = Database::query()->findOrFail($input['database']);
|
$database = Database::query()->findOrFail($input['database']);
|
||||||
$backupFile->status = BackupFileStatus::RESTORING;
|
$backupFile->status = BackupFileStatus::RESTORING;
|
||||||
$backupFile->restored_to = $database->name;
|
$backupFile->restored_to = $database->name;
|
||||||
$backupFile->save();
|
$backupFile->save();
|
||||||
|
|
||||||
dispatch(function () use ($backupFile, $database): void {
|
dispatch(function () use ($backupFile, $database) {
|
||||||
/** @var Service $service */
|
$database->server->database()->handler()->restoreBackup($backupFile, $database->name);
|
||||||
$service = $database->server->database();
|
|
||||||
/** @var \App\SSH\Services\Database\Database $databaseHandler */
|
|
||||||
$databaseHandler = $service->handler();
|
|
||||||
$databaseHandler->restoreBackup($backupFile, $database->name);
|
|
||||||
$backupFile->status = BackupFileStatus::RESTORED;
|
$backupFile->status = BackupFileStatus::RESTORED;
|
||||||
$backupFile->restored_at = now();
|
$backupFile->restored_at = now();
|
||||||
$backupFile->save();
|
$backupFile->save();
|
||||||
})->catch(function () use ($backupFile): void {
|
})->catch(function () use ($backupFile) {
|
||||||
$backupFile->status = BackupFileStatus::RESTORE_FAILED;
|
$backupFile->status = BackupFileStatus::RESTORE_FAILED;
|
||||||
$backupFile->save();
|
$backupFile->save();
|
||||||
})->onConnection('ssh');
|
})->onConnection('ssh');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
private function validate(array $input): void
|
||||||
* @return array<string, array<string>>
|
|
||||||
*/
|
|
||||||
public static function rules(): array
|
|
||||||
{
|
{
|
||||||
return [
|
Validator::make($input, [
|
||||||
'database' => [
|
'database' => 'required|exists:databases,id',
|
||||||
'required',
|
])->validate();
|
||||||
'exists:databases,id',
|
|
||||||
],
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,11 +3,8 @@
|
|||||||
namespace App\Actions\Database;
|
namespace App\Actions\Database;
|
||||||
|
|
||||||
use App\Enums\BackupFileStatus;
|
use App\Enums\BackupFileStatus;
|
||||||
use App\Enums\BackupStatus;
|
|
||||||
use App\Models\Backup;
|
use App\Models\Backup;
|
||||||
use App\Models\BackupFile;
|
use App\Models\BackupFile;
|
||||||
use App\Models\Service;
|
|
||||||
use App\SSH\Services\Database\Database;
|
|
||||||
use Illuminate\Support\Str;
|
use Illuminate\Support\Str;
|
||||||
|
|
||||||
class RunBackup
|
class RunBackup
|
||||||
@ -21,22 +18,11 @@ public function run(Backup $backup): BackupFile
|
|||||||
]);
|
]);
|
||||||
$file->save();
|
$file->save();
|
||||||
|
|
||||||
dispatch(function () use ($file, $backup): void {
|
dispatch(function () use ($file) {
|
||||||
/** @var Service $service */
|
$file->backup->server->database()->handler()->runBackup($file);
|
||||||
$service = $backup->server->database();
|
|
||||||
/** @var Database $databaseHandler */
|
|
||||||
$databaseHandler = $service->handler();
|
|
||||||
$databaseHandler->runBackup($file);
|
|
||||||
$file->status = BackupFileStatus::CREATED;
|
$file->status = BackupFileStatus::CREATED;
|
||||||
$file->save();
|
$file->save();
|
||||||
|
})->catch(function () use ($file) {
|
||||||
if ($backup->status !== BackupStatus::RUNNING) {
|
|
||||||
$backup->status = BackupStatus::RUNNING;
|
|
||||||
$backup->save();
|
|
||||||
}
|
|
||||||
})->catch(function () use ($file, $backup): void {
|
|
||||||
$backup->status = BackupStatus::FAILED;
|
|
||||||
$backup->save();
|
|
||||||
$file->status = BackupFileStatus::FAILED;
|
$file->status = BackupFileStatus::FAILED;
|
||||||
$file->save();
|
$file->save();
|
||||||
})->onConnection('ssh');
|
})->onConnection('ssh');
|
||||||
|
@ -1,50 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace App\Actions\Database;
|
|
||||||
|
|
||||||
use App\Enums\DatabaseUserStatus;
|
|
||||||
use App\Models\DatabaseUser;
|
|
||||||
use App\Models\Server;
|
|
||||||
use App\SSH\Services\Database\Database;
|
|
||||||
|
|
||||||
class SyncDatabaseUsers
|
|
||||||
{
|
|
||||||
public function sync(Server $server): void
|
|
||||||
{
|
|
||||||
$service = $server->database();
|
|
||||||
if (! $service instanceof \App\Models\Service) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
/** @var Database $handler */
|
|
||||||
$handler = $service->handler();
|
|
||||||
|
|
||||||
$this->updateUsers($server, $handler);
|
|
||||||
}
|
|
||||||
|
|
||||||
private function updateUsers(Server $server, Database $handler): void
|
|
||||||
{
|
|
||||||
$users = $handler->getUsers();
|
|
||||||
foreach ($users as $user) {
|
|
||||||
$databases = $user[2] != 'NULL' ? explode(',', $user[2]) : [];
|
|
||||||
|
|
||||||
/** @var ?DatabaseUser $databaseUser */
|
|
||||||
$databaseUser = $server->databaseUsers()
|
|
||||||
->where('username', $user[0])
|
|
||||||
->first();
|
|
||||||
|
|
||||||
if ($databaseUser === null) {
|
|
||||||
$server->databaseUsers()->create([
|
|
||||||
'username' => $user[0],
|
|
||||||
'host' => $user[1],
|
|
||||||
'databases' => $databases,
|
|
||||||
'status' => DatabaseUserStatus::READY,
|
|
||||||
]);
|
|
||||||
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
$databaseUser->databases = $databases;
|
|
||||||
$databaseUser->save();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,63 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace App\Actions\Database;
|
|
||||||
|
|
||||||
use App\Enums\DatabaseStatus;
|
|
||||||
use App\Models\Server;
|
|
||||||
use App\Models\Service;
|
|
||||||
use App\SSH\Services\Database\Database;
|
|
||||||
|
|
||||||
class SyncDatabases
|
|
||||||
{
|
|
||||||
public function sync(Server $server): void
|
|
||||||
{
|
|
||||||
$service = $server->database();
|
|
||||||
if (! $service instanceof \App\Models\Service) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
/** @var Database $handler */
|
|
||||||
$handler = $service->handler();
|
|
||||||
|
|
||||||
$this->updateCharsets($service, $handler);
|
|
||||||
$this->updateDatabases($server, $handler);
|
|
||||||
}
|
|
||||||
|
|
||||||
private function updateCharsets(Service $service, Database $handler): void
|
|
||||||
{
|
|
||||||
$data = $service->type_data ?? [];
|
|
||||||
$charsets = $handler->getCharsets();
|
|
||||||
$data['charsets'] = $charsets['charsets'] ?? [];
|
|
||||||
$data['defaultCharset'] = $charsets['defaultCharset'] ?? '';
|
|
||||||
$service->type_data = $data;
|
|
||||||
$service->save();
|
|
||||||
}
|
|
||||||
|
|
||||||
private function updateDatabases(Server $server, Database $handler): void
|
|
||||||
{
|
|
||||||
$databases = $handler->getDatabases();
|
|
||||||
foreach ($databases as $database) {
|
|
||||||
/** @var ?\App\Models\Database $db */
|
|
||||||
$db = $server->databases()
|
|
||||||
->where('name', $database[0])
|
|
||||||
->first();
|
|
||||||
|
|
||||||
if ($db === null) {
|
|
||||||
$server->databases()->create([
|
|
||||||
'name' => $database[0],
|
|
||||||
'collation' => $database[2],
|
|
||||||
'charset' => $database[1],
|
|
||||||
'status' => DatabaseStatus::READY,
|
|
||||||
]);
|
|
||||||
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($db->collation !== $database[2] || $db->charset !== $database[1]) {
|
|
||||||
$db->update([
|
|
||||||
'collation' => $database[2],
|
|
||||||
'charset' => $database[1],
|
|
||||||
]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,44 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace App\Actions\FileManager;
|
|
||||||
|
|
||||||
use App\Exceptions\SSHError;
|
|
||||||
use App\Models\File;
|
|
||||||
use App\Models\Server;
|
|
||||||
use App\Models\User;
|
|
||||||
use Illuminate\Validation\Rule;
|
|
||||||
|
|
||||||
class FetchFiles
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* @param array<string, mixed> $input
|
|
||||||
*
|
|
||||||
* @throws SSHError
|
|
||||||
*/
|
|
||||||
public function fetch(User $user, Server $server, array $input): void
|
|
||||||
{
|
|
||||||
File::parse(
|
|
||||||
$user,
|
|
||||||
$server,
|
|
||||||
$input['path'],
|
|
||||||
$input['user'],
|
|
||||||
$server->os()->ls($input['path'], $input['user'])
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @return array<string, array<string>>
|
|
||||||
*/
|
|
||||||
public static function rules(Server $server): array
|
|
||||||
{
|
|
||||||
return [
|
|
||||||
'path' => [
|
|
||||||
'required',
|
|
||||||
],
|
|
||||||
'user' => [
|
|
||||||
'required',
|
|
||||||
Rule::in($server->getSshUsers()),
|
|
||||||
],
|
|
||||||
];
|
|
||||||
}
|
|
||||||
}
|
|
71
app/Actions/FirewallRule/CreateRule.php
Executable file
71
app/Actions/FirewallRule/CreateRule.php
Executable file
@ -0,0 +1,71 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Actions\FirewallRule;
|
||||||
|
|
||||||
|
use App\Enums\FirewallRuleStatus;
|
||||||
|
use App\Models\FirewallRule;
|
||||||
|
use App\Models\Server;
|
||||||
|
use Illuminate\Support\Facades\Validator;
|
||||||
|
use Illuminate\Validation\ValidationException;
|
||||||
|
|
||||||
|
class CreateRule
|
||||||
|
{
|
||||||
|
public function create(Server $server, array $input): FirewallRule
|
||||||
|
{
|
||||||
|
$this->validate($server, $input);
|
||||||
|
|
||||||
|
$rule = new FirewallRule([
|
||||||
|
'server_id' => $server->id,
|
||||||
|
'type' => $input['type'],
|
||||||
|
'protocol' => $input['protocol'],
|
||||||
|
'port' => $input['port'],
|
||||||
|
'source' => $input['source'],
|
||||||
|
'mask' => $input['mask'] ?? null,
|
||||||
|
]);
|
||||||
|
|
||||||
|
$server->firewall()
|
||||||
|
->handler()
|
||||||
|
->addRule(
|
||||||
|
$rule->type,
|
||||||
|
$rule->getRealProtocol(),
|
||||||
|
$rule->port,
|
||||||
|
$rule->source,
|
||||||
|
$rule->mask
|
||||||
|
);
|
||||||
|
|
||||||
|
$rule->status = FirewallRuleStatus::READY;
|
||||||
|
$rule->save();
|
||||||
|
|
||||||
|
return $rule;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @throws ValidationException
|
||||||
|
*/
|
||||||
|
private function validate(Server $server, array $input): void
|
||||||
|
{
|
||||||
|
Validator::make($input, [
|
||||||
|
'type' => [
|
||||||
|
'required',
|
||||||
|
'in:allow,deny',
|
||||||
|
],
|
||||||
|
'protocol' => [
|
||||||
|
'required',
|
||||||
|
'in:'.implode(',', array_keys(config('core.firewall_protocols_port'))),
|
||||||
|
],
|
||||||
|
'port' => [
|
||||||
|
'required',
|
||||||
|
'numeric',
|
||||||
|
'min:1',
|
||||||
|
'max:65535',
|
||||||
|
],
|
||||||
|
'source' => [
|
||||||
|
'required',
|
||||||
|
'ip',
|
||||||
|
],
|
||||||
|
'mask' => [
|
||||||
|
'numeric',
|
||||||
|
],
|
||||||
|
])->validate();
|
||||||
|
}
|
||||||
|
}
|
28
app/Actions/FirewallRule/DeleteRule.php
Executable file
28
app/Actions/FirewallRule/DeleteRule.php
Executable file
@ -0,0 +1,28 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Actions\FirewallRule;
|
||||||
|
|
||||||
|
use App\Enums\FirewallRuleStatus;
|
||||||
|
use App\Models\FirewallRule;
|
||||||
|
use App\Models\Server;
|
||||||
|
|
||||||
|
class DeleteRule
|
||||||
|
{
|
||||||
|
public function delete(Server $server, FirewallRule $rule): void
|
||||||
|
{
|
||||||
|
$rule->status = FirewallRuleStatus::DELETING;
|
||||||
|
$rule->save();
|
||||||
|
|
||||||
|
$server->firewall()
|
||||||
|
->handler()
|
||||||
|
->removeRule(
|
||||||
|
$rule->type,
|
||||||
|
$rule->getRealProtocol(),
|
||||||
|
$rule->port,
|
||||||
|
$rule->source,
|
||||||
|
$rule->mask
|
||||||
|
);
|
||||||
|
|
||||||
|
$rule->delete();
|
||||||
|
}
|
||||||
|
}
|
@ -1,132 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace App\Actions\FirewallRule;
|
|
||||||
|
|
||||||
use App\Enums\FirewallRuleStatus;
|
|
||||||
use App\Models\FirewallRule;
|
|
||||||
use App\Models\Server;
|
|
||||||
use App\Models\Service;
|
|
||||||
use App\SSH\Services\Firewall\Firewall;
|
|
||||||
use Exception;
|
|
||||||
|
|
||||||
class ManageRule
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* @param array<string, mixed> $input
|
|
||||||
* @return FirewallRule $rule
|
|
||||||
*/
|
|
||||||
public function create(Server $server, array $input): FirewallRule
|
|
||||||
{
|
|
||||||
$sourceAny = $input['source_any'] ?? empty($input['source'] ?? null);
|
|
||||||
$rule = new FirewallRule([
|
|
||||||
'name' => $input['name'],
|
|
||||||
'server_id' => $server->id,
|
|
||||||
'type' => $input['type'],
|
|
||||||
'protocol' => $input['protocol'],
|
|
||||||
'port' => $input['port'],
|
|
||||||
'source' => $sourceAny ? null : $input['source'],
|
|
||||||
'mask' => $sourceAny ? null : ($input['mask'] ?? null),
|
|
||||||
'status' => FirewallRuleStatus::CREATING,
|
|
||||||
]);
|
|
||||||
|
|
||||||
$rule->save();
|
|
||||||
|
|
||||||
dispatch(fn () => $this->applyRule($rule));
|
|
||||||
|
|
||||||
return $rule;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param array<string, mixed> $input
|
|
||||||
* @return FirewallRule $rule
|
|
||||||
*/
|
|
||||||
public function update(FirewallRule $rule, array $input): FirewallRule
|
|
||||||
{
|
|
||||||
$sourceAny = $input['source_any'] ?? empty($input['source'] ?? null);
|
|
||||||
$rule->update([
|
|
||||||
'name' => $input['name'],
|
|
||||||
'type' => $input['type'],
|
|
||||||
'protocol' => $input['protocol'],
|
|
||||||
'port' => $input['port'],
|
|
||||||
'source' => $sourceAny ? null : $input['source'],
|
|
||||||
'mask' => $sourceAny ? null : ($input['mask'] ?? null),
|
|
||||||
'status' => FirewallRuleStatus::UPDATING,
|
|
||||||
]);
|
|
||||||
|
|
||||||
dispatch(fn () => $this->applyRule($rule));
|
|
||||||
|
|
||||||
return $rule;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function delete(FirewallRule $rule): void
|
|
||||||
{
|
|
||||||
$rule->status = FirewallRuleStatus::DELETING;
|
|
||||||
$rule->save();
|
|
||||||
|
|
||||||
dispatch(fn () => $this->applyRule($rule));
|
|
||||||
}
|
|
||||||
|
|
||||||
protected function applyRule(FirewallRule $rule): void
|
|
||||||
{
|
|
||||||
try {
|
|
||||||
/** @var Service $service */
|
|
||||||
$service = $rule->server->firewall();
|
|
||||||
/** @var Firewall $handler */
|
|
||||||
$handler = $service->handler();
|
|
||||||
$handler->applyRules();
|
|
||||||
} catch (Exception) {
|
|
||||||
$rule->server->firewallRules()
|
|
||||||
->where('status', '!=', FirewallRuleStatus::READY)
|
|
||||||
->update(['status' => FirewallRuleStatus::FAILED]);
|
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($rule->status === FirewallRuleStatus::DELETING) {
|
|
||||||
$rule->delete();
|
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
$rule->status = FirewallRuleStatus::READY;
|
|
||||||
$rule->save();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @return array<string, array<string>>
|
|
||||||
*/
|
|
||||||
public static function rules(): array
|
|
||||||
{
|
|
||||||
return [
|
|
||||||
'name' => [
|
|
||||||
'required',
|
|
||||||
'string',
|
|
||||||
'max:18',
|
|
||||||
],
|
|
||||||
'type' => [
|
|
||||||
'required',
|
|
||||||
'in:allow,deny',
|
|
||||||
],
|
|
||||||
'protocol' => [
|
|
||||||
'required',
|
|
||||||
'in:tcp,udp',
|
|
||||||
],
|
|
||||||
'port' => [
|
|
||||||
'required',
|
|
||||||
'numeric',
|
|
||||||
'min:1',
|
|
||||||
'max:65535',
|
|
||||||
],
|
|
||||||
'source' => [
|
|
||||||
'nullable',
|
|
||||||
'ip',
|
|
||||||
],
|
|
||||||
'mask' => [
|
|
||||||
'nullable',
|
|
||||||
'numeric',
|
|
||||||
'min:1',
|
|
||||||
'max:32',
|
|
||||||
],
|
|
||||||
];
|
|
||||||
}
|
|
||||||
}
|
|
@ -5,17 +5,13 @@
|
|||||||
use App\Models\Server;
|
use App\Models\Server;
|
||||||
use Carbon\Carbon;
|
use Carbon\Carbon;
|
||||||
use Illuminate\Contracts\Database\Query\Expression;
|
use Illuminate\Contracts\Database\Query\Expression;
|
||||||
use Illuminate\Support\Collection;
|
|
||||||
use Illuminate\Support\Facades\DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
|
use Illuminate\Support\Facades\Validator;
|
||||||
use Illuminate\Validation\Rule;
|
use Illuminate\Validation\Rule;
|
||||||
|
|
||||||
class GetMetrics
|
class GetMetrics
|
||||||
{
|
{
|
||||||
/**
|
public function filter(Server $server, array $input): array
|
||||||
* @param array<string, mixed> $input
|
|
||||||
* @return Collection<int, mixed>
|
|
||||||
*/
|
|
||||||
public function filter(Server $server, array $input): Collection
|
|
||||||
{
|
{
|
||||||
if (isset($input['from']) && isset($input['to']) && $input['from'] === $input['to']) {
|
if (isset($input['from']) && isset($input['to']) && $input['from'] === $input['to']) {
|
||||||
$input['from'] = Carbon::parse($input['from'])->format('Y-m-d').' 00:00:00';
|
$input['from'] = Carbon::parse($input['from'])->format('Y-m-d').' 00:00:00';
|
||||||
@ -28,6 +24,8 @@ public function filter(Server $server, array $input): Collection
|
|||||||
|
|
||||||
$input = array_merge($defaultInput, $input);
|
$input = array_merge($defaultInput, $input);
|
||||||
|
|
||||||
|
$this->validate($input);
|
||||||
|
|
||||||
return $this->metrics(
|
return $this->metrics(
|
||||||
server: $server,
|
server: $server,
|
||||||
fromDate: $this->getFromDate($input),
|
fromDate: $this->getFromDate($input),
|
||||||
@ -36,16 +34,13 @@ public function filter(Server $server, array $input): Collection
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @return Collection<int, mixed>
|
|
||||||
*/
|
|
||||||
private function metrics(
|
private function metrics(
|
||||||
Server $server,
|
Server $server,
|
||||||
Carbon $fromDate,
|
Carbon $fromDate,
|
||||||
Carbon $toDate,
|
Carbon $toDate,
|
||||||
?Expression $interval = null
|
?Expression $interval = null
|
||||||
): Collection {
|
): array {
|
||||||
return DB::table('metrics')
|
$metrics = DB::table('metrics')
|
||||||
->where('server_id', $server->id)
|
->where('server_id', $server->id)
|
||||||
->whereBetween('created_at', [$fromDate->format('Y-m-d H:i:s'), $toDate->format('Y-m-d H:i:s')])
|
->whereBetween('created_at', [$fromDate->format('Y-m-d H:i:s'), $toDate->format('Y-m-d H:i:s')])
|
||||||
->select(
|
->select(
|
||||||
@ -64,16 +59,17 @@ private function metrics(
|
|||||||
->groupByRaw('date_interval')
|
->groupByRaw('date_interval')
|
||||||
->orderBy('date_interval')
|
->orderBy('date_interval')
|
||||||
->get()
|
->get()
|
||||||
->map(function ($item): \stdClass {
|
->map(function ($item) {
|
||||||
$item->date = Carbon::parse($item->date)->format('Y-m-d H:i');
|
$item->date = Carbon::parse($item->date)->format('Y-m-d H:i');
|
||||||
|
|
||||||
return $item;
|
return $item;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return [
|
||||||
|
'metrics' => $metrics,
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @param array<string, mixed> $input
|
|
||||||
*/
|
|
||||||
private function getFromDate(array $input): Carbon
|
private function getFromDate(array $input): Carbon
|
||||||
{
|
{
|
||||||
if ($input['period'] === 'custom') {
|
if ($input['period'] === 'custom') {
|
||||||
@ -83,9 +79,6 @@ private function getFromDate(array $input): Carbon
|
|||||||
return Carbon::parse('-'.convert_time_format($input['period']));
|
return Carbon::parse('-'.convert_time_format($input['period']));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @param array<string, mixed> $input
|
|
||||||
*/
|
|
||||||
private function getToDate(array $input): Carbon
|
private function getToDate(array $input): Carbon
|
||||||
{
|
{
|
||||||
if ($input['period'] === 'custom') {
|
if ($input['period'] === 'custom') {
|
||||||
@ -95,9 +88,6 @@ private function getToDate(array $input): Carbon
|
|||||||
return Carbon::now();
|
return Carbon::now();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @param array<string, mixed> $input
|
|
||||||
*/
|
|
||||||
private function getInterval(array $input): Expression
|
private function getInterval(array $input): Expression
|
||||||
{
|
{
|
||||||
if ($input['period'] === 'custom') {
|
if ($input['period'] === 'custom') {
|
||||||
@ -120,16 +110,14 @@ private function getInterval(array $input): Expression
|
|||||||
return DB::raw("strftime('%Y-%m-%d %H:00:00', created_at) as date_interval");
|
return DB::raw("strftime('%Y-%m-%d %H:00:00', created_at) as date_interval");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($periodInHours > 24) {
|
||||||
return DB::raw("strftime('%Y-%m-%d 00:00:00', created_at) as date_interval");
|
return DB::raw("strftime('%Y-%m-%d 00:00:00', created_at) as date_interval");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
private function validate(array $input): void
|
||||||
* @param array<string, mixed> $input
|
|
||||||
* @return array<string, array<string>>
|
|
||||||
*/
|
|
||||||
public static function rules(array $input): array
|
|
||||||
{
|
{
|
||||||
$rules = [
|
Validator::make($input, [
|
||||||
'period' => [
|
'period' => [
|
||||||
'required',
|
'required',
|
||||||
Rule::in([
|
Rule::in([
|
||||||
@ -142,13 +130,21 @@ public static function rules(array $input): array
|
|||||||
'custom',
|
'custom',
|
||||||
]),
|
]),
|
||||||
],
|
],
|
||||||
];
|
])->validate();
|
||||||
|
|
||||||
if (isset($input['period']) && $input['period'] === 'custom') {
|
if ($input['period'] === 'custom') {
|
||||||
$rules['from'] = ['required', 'date', 'before:to'];
|
Validator::make($input, [
|
||||||
$rules['to'] = ['required', 'date', 'after:from'];
|
'from' => [
|
||||||
|
'required',
|
||||||
|
'date',
|
||||||
|
'before:to',
|
||||||
|
],
|
||||||
|
'to' => [
|
||||||
|
'required',
|
||||||
|
'date',
|
||||||
|
'after:from',
|
||||||
|
],
|
||||||
|
])->validate();
|
||||||
}
|
}
|
||||||
|
|
||||||
return $rules;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,37 +3,30 @@
|
|||||||
namespace App\Actions\Monitoring;
|
namespace App\Actions\Monitoring;
|
||||||
|
|
||||||
use App\Models\Server;
|
use App\Models\Server;
|
||||||
use App\Models\Service;
|
use Illuminate\Support\Facades\Validator;
|
||||||
use App\SSH\Services\ServiceInterface;
|
use Illuminate\Validation\Rule;
|
||||||
|
|
||||||
class UpdateMetricSettings
|
class UpdateMetricSettings
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @param array<string, mixed> $input
|
|
||||||
*/
|
|
||||||
public function update(Server $server, array $input): void
|
public function update(Server $server, array $input): void
|
||||||
{
|
{
|
||||||
/** @var Service $service */
|
$this->validate($input);
|
||||||
|
|
||||||
$service = $server->monitoring();
|
$service = $server->monitoring();
|
||||||
/** @var ServiceInterface $handler */
|
|
||||||
$handler = $service->handler();
|
$data = $service->handler()->data();
|
||||||
$data = $handler->data();
|
|
||||||
$data['data_retention'] = $input['data_retention'];
|
$data['data_retention'] = $input['data_retention'];
|
||||||
$service->type_data = $data;
|
$service->type_data = $data;
|
||||||
$service->save();
|
$service->save();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
private function validate(array $input): void
|
||||||
* @return array<string, array<string>>
|
|
||||||
*/
|
|
||||||
public static function rules(): array
|
|
||||||
{
|
{
|
||||||
return [
|
Validator::make($input, [
|
||||||
'data_retention' => [
|
'data_retention' => [
|
||||||
'required',
|
'required',
|
||||||
'numeric',
|
Rule::in(config('core.metrics_data_retention')),
|
||||||
'min:1',
|
|
||||||
],
|
],
|
||||||
];
|
])->validate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,46 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace App\Actions\NodeJS;
|
|
||||||
|
|
||||||
use App\Enums\ServiceStatus;
|
|
||||||
use App\Exceptions\SSHError;
|
|
||||||
use App\Models\Server;
|
|
||||||
use App\Models\Service;
|
|
||||||
use App\SSH\Services\NodeJS\NodeJS;
|
|
||||||
use Illuminate\Validation\ValidationException;
|
|
||||||
|
|
||||||
class ChangeDefaultCli
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* @param array<string, mixed> $input
|
|
||||||
*
|
|
||||||
* @throws ValidationException
|
|
||||||
* @throws SSHError
|
|
||||||
*/
|
|
||||||
public function change(Server $server, array $input): void
|
|
||||||
{
|
|
||||||
$this->validate($server, $input);
|
|
||||||
/** @var Service $service */
|
|
||||||
$service = $server->nodejs($input['version']);
|
|
||||||
/** @var NodeJS $handler */
|
|
||||||
$handler = $service->handler();
|
|
||||||
$handler->setDefaultCli();
|
|
||||||
$server->defaultService('nodejs')?->update(['is_default' => 0]);
|
|
||||||
$service->update(['is_default' => 1]);
|
|
||||||
$service->update(['status' => ServiceStatus::READY]);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param array<string, mixed> $input
|
|
||||||
*
|
|
||||||
* @throws ValidationException
|
|
||||||
*/
|
|
||||||
public function validate(Server $server, array $input): void
|
|
||||||
{
|
|
||||||
if (! isset($input['version']) || ! in_array($input['version'], $server->installedNodejsVersions())) {
|
|
||||||
throw ValidationException::withMessages(
|
|
||||||
['version' => __('This version is not installed')]
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,51 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace App\Actions\NodeJS;
|
|
||||||
|
|
||||||
use App\Enums\NodeJS;
|
|
||||||
use App\Enums\ServiceStatus;
|
|
||||||
use App\Models\Server;
|
|
||||||
use App\Models\Service;
|
|
||||||
use Illuminate\Validation\Rule;
|
|
||||||
|
|
||||||
class InstallNewNodeJsVersion
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* @param array<string, mixed> $input
|
|
||||||
*/
|
|
||||||
public function install(Server $server, array $input): void
|
|
||||||
{
|
|
||||||
$nodejs = new Service([
|
|
||||||
'server_id' => $server->id,
|
|
||||||
'type' => 'nodejs',
|
|
||||||
'type_data' => [],
|
|
||||||
'name' => 'nodejs',
|
|
||||||
'version' => $input['version'],
|
|
||||||
'status' => ServiceStatus::INSTALLING,
|
|
||||||
'is_default' => false,
|
|
||||||
]);
|
|
||||||
$nodejs->save();
|
|
||||||
|
|
||||||
dispatch(function () use ($nodejs): void {
|
|
||||||
$nodejs->handler()->install();
|
|
||||||
$nodejs->status = ServiceStatus::READY;
|
|
||||||
$nodejs->save();
|
|
||||||
})->catch(function () use ($nodejs): void {
|
|
||||||
$nodejs->delete();
|
|
||||||
})->onConnection('ssh');
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @return array<string, array<string>>
|
|
||||||
*/
|
|
||||||
public static function rules(Server $server): array
|
|
||||||
{
|
|
||||||
return [
|
|
||||||
'version' => [
|
|
||||||
'required',
|
|
||||||
Rule::in(config('core.nodejs_versions')),
|
|
||||||
Rule::notIn(array_merge($server->installedNodejsVersions(), [NodeJS::NONE])),
|
|
||||||
],
|
|
||||||
];
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,60 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace App\Actions\NodeJS;
|
|
||||||
|
|
||||||
use App\Enums\ServiceStatus;
|
|
||||||
use App\Models\Server;
|
|
||||||
use App\Models\Service;
|
|
||||||
use Illuminate\Support\Facades\Validator;
|
|
||||||
use Illuminate\Validation\ValidationException;
|
|
||||||
|
|
||||||
class UninstallNodeJS
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* @param array<string, mixed> $input
|
|
||||||
*
|
|
||||||
* @throws ValidationException
|
|
||||||
*/
|
|
||||||
public function uninstall(Server $server, array $input): void
|
|
||||||
{
|
|
||||||
$this->validate($server, $input);
|
|
||||||
|
|
||||||
/** @var Service $nodejs */
|
|
||||||
$nodejs = $server->nodejs($input['version']);
|
|
||||||
$nodejs->status = ServiceStatus::UNINSTALLING;
|
|
||||||
$nodejs->save();
|
|
||||||
|
|
||||||
dispatch(function () use ($nodejs): void {
|
|
||||||
$nodejs->handler()->uninstall();
|
|
||||||
$nodejs->delete();
|
|
||||||
})->catch(function () use ($nodejs): void {
|
|
||||||
$nodejs->status = ServiceStatus::FAILED;
|
|
||||||
$nodejs->save();
|
|
||||||
})->onConnection('ssh');
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param array<string, mixed> $input
|
|
||||||
*
|
|
||||||
* @throws ValidationException
|
|
||||||
*/
|
|
||||||
private function validate(Server $server, array $input): void
|
|
||||||
{
|
|
||||||
Validator::make($input, [
|
|
||||||
'version' => 'required|string',
|
|
||||||
])->validate();
|
|
||||||
|
|
||||||
if (! in_array($input['version'], $server->installedNodejsVersions())) {
|
|
||||||
throw ValidationException::withMessages(
|
|
||||||
['version' => __('This version is not installed')]
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
$hasSite = $server->sites()->where('nodejs_version', $input['version'])->first();
|
|
||||||
if ($hasSite) {
|
|
||||||
throw ValidationException::withMessages(
|
|
||||||
['version' => __('Cannot uninstall this version because some sites are using it!')]
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -4,29 +4,27 @@
|
|||||||
|
|
||||||
use App\Models\NotificationChannel;
|
use App\Models\NotificationChannel;
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
use Exception;
|
use Illuminate\Support\Facades\Validator;
|
||||||
use Illuminate\Validation\Rule;
|
|
||||||
use Illuminate\Validation\ValidationException;
|
use Illuminate\Validation\ValidationException;
|
||||||
|
|
||||||
class AddChannel
|
class AddChannel
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @param array<string, mixed> $input
|
|
||||||
*
|
|
||||||
* @throws ValidationException
|
* @throws ValidationException
|
||||||
*/
|
*/
|
||||||
public function add(User $user, array $input): void
|
public function add(User $user, array $input): void
|
||||||
{
|
{
|
||||||
|
$this->validate($input);
|
||||||
$channel = new NotificationChannel([
|
$channel = new NotificationChannel([
|
||||||
'user_id' => $user->id,
|
'user_id' => $user->id,
|
||||||
'provider' => $input['provider'],
|
'provider' => $input['provider'],
|
||||||
'label' => $input['label'],
|
'label' => $input['label'],
|
||||||
'project_id' => isset($input['global']) && $input['global'] ? null : $user->current_project_id,
|
'project_id' => isset($input['global']) && $input['global'] ? null : $user->current_project_id,
|
||||||
]);
|
]);
|
||||||
|
$this->validateType($channel, $input);
|
||||||
$channel->data = $channel->provider()->createData($input);
|
$channel->data = $channel->provider()->createData($input);
|
||||||
$channel->save();
|
$channel->save();
|
||||||
|
|
||||||
try {
|
|
||||||
if (! $channel->provider()->connect()) {
|
if (! $channel->provider()->connect()) {
|
||||||
$channel->delete();
|
$channel->delete();
|
||||||
|
|
||||||
@ -40,49 +38,28 @@ public function add(User $user, array $input): void
|
|||||||
'provider' => __('Could not connect'),
|
'provider' => __('Could not connect'),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
} catch (Exception $e) {
|
|
||||||
$channel->delete();
|
|
||||||
|
|
||||||
throw ValidationException::withMessages([
|
|
||||||
'provider' => $e->getMessage(),
|
|
||||||
]);
|
|
||||||
}
|
|
||||||
|
|
||||||
$channel->connected = true;
|
$channel->connected = true;
|
||||||
$channel->save();
|
$channel->save();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param array<string, mixed> $input
|
* @throws ValidationException
|
||||||
* @return array<string, mixed>
|
|
||||||
*/
|
*/
|
||||||
public static function rules(array $input): array
|
protected function validate(array $input): void
|
||||||
{
|
{
|
||||||
$rules = [
|
Validator::make($input, [
|
||||||
'provider' => [
|
'provider' => 'required|in:'.implode(',', config('core.notification_channels_providers')),
|
||||||
'required',
|
|
||||||
Rule::in(config('core.notification_channels_providers')),
|
|
||||||
],
|
|
||||||
'label' => 'required',
|
'label' => 'required',
|
||||||
];
|
])->validate();
|
||||||
|
|
||||||
return array_merge($rules, self::providerRules($input));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param array<string, mixed> $input
|
* @throws ValidationException
|
||||||
* @return array<string, array<string>>
|
|
||||||
*/
|
*/
|
||||||
private static function providerRules(array $input): array
|
protected function validateType(NotificationChannel $channel, array $input): void
|
||||||
{
|
{
|
||||||
if (! isset($input['provider'])) {
|
Validator::make($input, $channel->provider()->createRules($input))
|
||||||
return [];
|
->validate();
|
||||||
}
|
|
||||||
|
|
||||||
$notificationChannel = new NotificationChannel([
|
|
||||||
'provider' => $input['provider'],
|
|
||||||
]);
|
|
||||||
|
|
||||||
return $notificationChannel->provider()->createRules($input);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -4,29 +4,31 @@
|
|||||||
|
|
||||||
use App\Models\NotificationChannel;
|
use App\Models\NotificationChannel;
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
|
use Illuminate\Support\Facades\Validator;
|
||||||
|
use Illuminate\Validation\ValidationException;
|
||||||
|
|
||||||
class EditChannel
|
class EditChannel
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @param array<string, mixed> $input
|
|
||||||
*/
|
|
||||||
public function edit(NotificationChannel $notificationChannel, User $user, array $input): void
|
public function edit(NotificationChannel $notificationChannel, User $user, array $input): void
|
||||||
{
|
{
|
||||||
$notificationChannel->fill([
|
$this->validate($input);
|
||||||
'label' => $input['label'],
|
|
||||||
'project_id' => isset($input['global']) && $input['global'] ? null : $user->current_project_id,
|
$notificationChannel->label = $input['label'];
|
||||||
]);
|
$notificationChannel->project_id = isset($input['global']) && $input['global'] ? null : $user->current_project_id;
|
||||||
|
|
||||||
$notificationChannel->save();
|
$notificationChannel->save();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param array<string, mixed> $input
|
* @throws ValidationException
|
||||||
* @return array<string, string>
|
|
||||||
*/
|
*/
|
||||||
public static function rules(array $input): array
|
private function validate(array $input): void
|
||||||
{
|
{
|
||||||
return [
|
$rules = [
|
||||||
'label' => 'required',
|
'label' => [
|
||||||
|
'required',
|
||||||
|
],
|
||||||
];
|
];
|
||||||
|
Validator::make($input, $rules)->validate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,37 +3,24 @@
|
|||||||
namespace App\Actions\PHP;
|
namespace App\Actions\PHP;
|
||||||
|
|
||||||
use App\Enums\ServiceStatus;
|
use App\Enums\ServiceStatus;
|
||||||
use App\Exceptions\SSHError;
|
|
||||||
use App\Models\Server;
|
use App\Models\Server;
|
||||||
use App\Models\Service;
|
|
||||||
use App\SSH\Services\PHP\PHP;
|
use App\SSH\Services\PHP\PHP;
|
||||||
use Illuminate\Validation\ValidationException;
|
use Illuminate\Validation\ValidationException;
|
||||||
|
|
||||||
class ChangeDefaultCli
|
class ChangeDefaultCli
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @param array<string, mixed> $input
|
|
||||||
*
|
|
||||||
* @throws SSHError
|
|
||||||
*/
|
|
||||||
public function change(Server $server, array $input): void
|
public function change(Server $server, array $input): void
|
||||||
{
|
{
|
||||||
$this->validate($server, $input);
|
$this->validate($server, $input);
|
||||||
/** @var Service $service */
|
|
||||||
$service = $server->php($input['version']);
|
$service = $server->php($input['version']);
|
||||||
/** @var PHP $handler */
|
/** @var PHP $handler */
|
||||||
$handler = $service->handler();
|
$handler = $service->handler();
|
||||||
$handler->setDefaultCli();
|
$handler->setDefaultCli();
|
||||||
$server->defaultService('php')?->update(['is_default' => 0]);
|
$server->defaultService('php')->update(['is_default' => 0]);
|
||||||
$service->update(['is_default' => 1]);
|
$service->update(['is_default' => 1]);
|
||||||
$service->update(['status' => ServiceStatus::READY]);
|
$service->update(['status' => ServiceStatus::READY]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @param array<string, mixed> $input
|
|
||||||
*
|
|
||||||
* @throws ValidationException
|
|
||||||
*/
|
|
||||||
public function validate(Server $server, array $input): void
|
public function validate(Server $server, array $input): void
|
||||||
{
|
{
|
||||||
if (! isset($input['version']) || ! in_array($input['version'], $server->installedPHPVersions())) {
|
if (! isset($input['version']) || ! in_array($input['version'], $server->installedPHPVersions())) {
|
||||||
|
@ -4,25 +4,17 @@
|
|||||||
|
|
||||||
use App\Enums\PHPIniType;
|
use App\Enums\PHPIniType;
|
||||||
use App\Models\Server;
|
use App\Models\Server;
|
||||||
use App\Models\Service;
|
|
||||||
use App\SSH\Services\PHP\PHP;
|
use App\SSH\Services\PHP\PHP;
|
||||||
use Illuminate\Support\Facades\Validator;
|
use Illuminate\Support\Facades\Validator;
|
||||||
use Illuminate\Validation\Rule;
|
use Illuminate\Validation\Rule;
|
||||||
use Illuminate\Validation\ValidationException;
|
use Illuminate\Validation\ValidationException;
|
||||||
use Throwable;
|
|
||||||
|
|
||||||
class GetPHPIni
|
class GetPHPIni
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @param array<string, mixed> $input
|
|
||||||
*
|
|
||||||
* @throws ValidationException
|
|
||||||
*/
|
|
||||||
public function getIni(Server $server, array $input): string
|
public function getIni(Server $server, array $input): string
|
||||||
{
|
{
|
||||||
$this->validate($server, $input);
|
$this->validate($server, $input);
|
||||||
|
|
||||||
/** @var Service $php */
|
|
||||||
$php = $server->php($input['version']);
|
$php = $server->php($input['version']);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
@ -30,18 +22,13 @@ public function getIni(Server $server, array $input): string
|
|||||||
$handler = $php->handler();
|
$handler = $php->handler();
|
||||||
|
|
||||||
return $handler->getPHPIni($input['type']);
|
return $handler->getPHPIni($input['type']);
|
||||||
} catch (Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
throw ValidationException::withMessages(
|
throw ValidationException::withMessages(
|
||||||
['ini' => $e->getMessage()]
|
['ini' => $e->getMessage()]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @param array<string, mixed> $input
|
|
||||||
*
|
|
||||||
* @throws ValidationException
|
|
||||||
*/
|
|
||||||
public function validate(Server $server, array $input): void
|
public function validate(Server $server, array $input): void
|
||||||
{
|
{
|
||||||
Validator::make($input, [
|
Validator::make($input, [
|
||||||
|
@ -2,19 +2,19 @@
|
|||||||
|
|
||||||
namespace App\Actions\PHP;
|
namespace App\Actions\PHP;
|
||||||
|
|
||||||
use App\Enums\PHP;
|
|
||||||
use App\Enums\ServiceStatus;
|
use App\Enums\ServiceStatus;
|
||||||
use App\Models\Server;
|
use App\Models\Server;
|
||||||
use App\Models\Service;
|
use App\Models\Service;
|
||||||
|
use Illuminate\Support\Facades\Validator;
|
||||||
use Illuminate\Validation\Rule;
|
use Illuminate\Validation\Rule;
|
||||||
|
use Illuminate\Validation\ValidationException;
|
||||||
|
|
||||||
class InstallNewPHP
|
class InstallNewPHP
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @param array<string, mixed> $input
|
|
||||||
*/
|
|
||||||
public function install(Server $server, array $input): void
|
public function install(Server $server, array $input): void
|
||||||
{
|
{
|
||||||
|
$this->validate($server, $input);
|
||||||
|
|
||||||
$php = new Service([
|
$php = new Service([
|
||||||
'server_id' => $server->id,
|
'server_id' => $server->id,
|
||||||
'type' => 'php',
|
'type' => 'php',
|
||||||
@ -29,26 +29,31 @@ public function install(Server $server, array $input): void
|
|||||||
]);
|
]);
|
||||||
$php->save();
|
$php->save();
|
||||||
|
|
||||||
dispatch(function () use ($php): void {
|
dispatch(function () use ($php) {
|
||||||
$php->handler()->install();
|
$php->handler()->install();
|
||||||
$php->status = ServiceStatus::READY;
|
$php->status = ServiceStatus::READY;
|
||||||
$php->save();
|
$php->save();
|
||||||
})->catch(function () use ($php): void {
|
})->catch(function () use ($php) {
|
||||||
$php->delete();
|
$php->delete();
|
||||||
})->onConnection('ssh');
|
})->onConnection('ssh');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return array<string, array<string>>
|
* @throws ValidationException
|
||||||
*/
|
*/
|
||||||
public static function rules(Server $server): array
|
private function validate(Server $server, array $input): void
|
||||||
{
|
{
|
||||||
return [
|
Validator::make($input, [
|
||||||
'version' => [
|
'version' => [
|
||||||
'required',
|
'required',
|
||||||
Rule::in(config('core.php_versions')),
|
Rule::in(config('core.php_versions')),
|
||||||
Rule::notIn(array_merge($server->installedPHPVersions(), [PHP::NONE])),
|
|
||||||
],
|
],
|
||||||
];
|
])->validate();
|
||||||
|
|
||||||
|
if (in_array($input['version'], $server->installedPHPVersions())) {
|
||||||
|
throw ValidationException::withMessages(
|
||||||
|
['version' => __('This version is already installed')]
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -5,39 +5,29 @@
|
|||||||
use App\Models\Server;
|
use App\Models\Server;
|
||||||
use App\Models\Service;
|
use App\Models\Service;
|
||||||
use App\SSH\Services\PHP\PHP;
|
use App\SSH\Services\PHP\PHP;
|
||||||
|
use Illuminate\Support\Facades\Validator;
|
||||||
use Illuminate\Validation\Rule;
|
use Illuminate\Validation\Rule;
|
||||||
use Illuminate\Validation\ValidationException;
|
use Illuminate\Validation\ValidationException;
|
||||||
|
|
||||||
class InstallPHPExtension
|
class InstallPHPExtension
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @param array<string, mixed> $input
|
|
||||||
*
|
|
||||||
* @throws ValidationException
|
|
||||||
*/
|
|
||||||
public function install(Server $server, array $input): Service
|
public function install(Server $server, array $input): Service
|
||||||
{
|
{
|
||||||
|
$this->validate($server, $input);
|
||||||
|
|
||||||
/** @var Service $service */
|
/** @var Service $service */
|
||||||
$service = $server->php($input['version']);
|
$service = $server->php($input['version']);
|
||||||
|
|
||||||
if (in_array($input['extension'], $service->type_data['extensions'] ?? [])) {
|
|
||||||
throw ValidationException::withMessages([
|
|
||||||
'extension' => 'The extension is already installed.',
|
|
||||||
]);
|
|
||||||
}
|
|
||||||
|
|
||||||
$typeData = $service->type_data;
|
$typeData = $service->type_data;
|
||||||
$typeData['extensions'] ??= [];
|
$typeData['extensions'] = $typeData['extensions'] ?? [];
|
||||||
$typeData['extensions'][] = $input['extension'];
|
$typeData['extensions'][] = $input['extension'];
|
||||||
$service->type_data = $typeData;
|
$service->type_data = $typeData;
|
||||||
$service->save();
|
$service->save();
|
||||||
|
|
||||||
dispatch(
|
dispatch(function () use ($service, $input) {
|
||||||
function () use ($service, $input): void {
|
|
||||||
/** @var PHP $handler */
|
/** @var PHP $handler */
|
||||||
$handler = $service->handler();
|
$handler = $service->handler();
|
||||||
$handler->installExtension($input['extension']);
|
$handler->installExtension($input['extension']);
|
||||||
})->catch(function () use ($service, $input): void {
|
})->catch(function () use ($service, $input) {
|
||||||
$service->refresh();
|
$service->refresh();
|
||||||
$typeData = $service->type_data;
|
$typeData = $service->type_data;
|
||||||
$typeData['extensions'] = array_values(array_diff($typeData['extensions'], [$input['extension']]));
|
$typeData['extensions'] = array_values(array_diff($typeData['extensions'], [$input['extension']]));
|
||||||
@ -49,21 +39,28 @@ function () use ($service, $input): void {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return array<string, array<string>>
|
* @throws ValidationException
|
||||||
*/
|
*/
|
||||||
public static function rules(Server $server): array
|
private function validate(Server $server, array $input): void
|
||||||
{
|
{
|
||||||
return [
|
Validator::make($input, [
|
||||||
'extension' => [
|
'extension' => [
|
||||||
'required',
|
'required',
|
||||||
Rule::in(config('core.php_extensions')),
|
'in:'.implode(',', config('core.php_extensions')),
|
||||||
],
|
],
|
||||||
'version' => [
|
'version' => [
|
||||||
'required',
|
'required',
|
||||||
Rule::exists('services', 'version')
|
Rule::in($server->installedPHPVersions()),
|
||||||
->where('server_id', $server->id)
|
|
||||||
->where('type', 'php'),
|
|
||||||
],
|
],
|
||||||
];
|
])->validate();
|
||||||
|
|
||||||
|
/** @var Service $service */
|
||||||
|
$service = $server->php($input['version']);
|
||||||
|
|
||||||
|
if (in_array($input['extension'], $service->type_data['extensions'])) {
|
||||||
|
throw ValidationException::withMessages(
|
||||||
|
['extension' => __('This extension already installed')]
|
||||||
|
)->errorBag('installPHPExtension');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -10,11 +10,6 @@
|
|||||||
|
|
||||||
class UninstallPHP
|
class UninstallPHP
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @param array<string, mixed> $input
|
|
||||||
*
|
|
||||||
* @throws ValidationException
|
|
||||||
*/
|
|
||||||
public function uninstall(Server $server, array $input): void
|
public function uninstall(Server $server, array $input): void
|
||||||
{
|
{
|
||||||
$this->validate($server, $input);
|
$this->validate($server, $input);
|
||||||
@ -24,18 +19,16 @@ public function uninstall(Server $server, array $input): void
|
|||||||
$php->status = ServiceStatus::UNINSTALLING;
|
$php->status = ServiceStatus::UNINSTALLING;
|
||||||
$php->save();
|
$php->save();
|
||||||
|
|
||||||
dispatch(function () use ($php): void {
|
dispatch(function () use ($php) {
|
||||||
$php->handler()->uninstall();
|
$php->handler()->uninstall();
|
||||||
$php->delete();
|
$php->delete();
|
||||||
})->catch(function () use ($php): void {
|
})->catch(function () use ($php) {
|
||||||
$php->status = ServiceStatus::FAILED;
|
$php->status = ServiceStatus::FAILED;
|
||||||
$php->save();
|
$php->save();
|
||||||
})->onConnection('ssh');
|
})->onConnection('ssh');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param array<string, mixed> $input
|
|
||||||
*
|
|
||||||
* @throws ValidationException
|
* @throws ValidationException
|
||||||
*/
|
*/
|
||||||
private function validate(Server $server, array $input): void
|
private function validate(Server $server, array $input): void
|
||||||
|
@ -4,9 +4,9 @@
|
|||||||
|
|
||||||
use App\Enums\PHPIniType;
|
use App\Enums\PHPIniType;
|
||||||
use App\Models\Server;
|
use App\Models\Server;
|
||||||
use App\Models\Service;
|
|
||||||
use Illuminate\Filesystem\FilesystemAdapter;
|
use Illuminate\Filesystem\FilesystemAdapter;
|
||||||
use Illuminate\Support\Facades\Storage;
|
use Illuminate\Support\Facades\Storage;
|
||||||
|
use Illuminate\Support\Facades\Validator;
|
||||||
use Illuminate\Support\Str;
|
use Illuminate\Support\Str;
|
||||||
use Illuminate\Validation\Rule;
|
use Illuminate\Validation\Rule;
|
||||||
use Illuminate\Validation\ValidationException;
|
use Illuminate\Validation\ValidationException;
|
||||||
@ -15,13 +15,12 @@
|
|||||||
class UpdatePHPIni
|
class UpdatePHPIni
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @param array<string, mixed> $input
|
|
||||||
*
|
|
||||||
* @throws ValidationException
|
* @throws ValidationException
|
||||||
*/
|
*/
|
||||||
public function update(Server $server, array $input): void
|
public function update(Server $server, array $input): void
|
||||||
{
|
{
|
||||||
/** @var Service $service */
|
$this->validate($server, $input);
|
||||||
|
|
||||||
$service = $server->php($input['version']);
|
$service = $server->php($input['version']);
|
||||||
|
|
||||||
$tmpName = Str::random(10).strtotime('now');
|
$tmpName = Str::random(10).strtotime('now');
|
||||||
@ -52,26 +51,24 @@ private function deleteTempFile(string $name): void
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
public function validate(Server $server, array $input): void
|
||||||
* @return array<string, array<string>>
|
|
||||||
*/
|
|
||||||
public static function rules(Server $server): array
|
|
||||||
{
|
{
|
||||||
return [
|
Validator::make($input, [
|
||||||
'ini' => [
|
'ini' => [
|
||||||
'required',
|
'required',
|
||||||
'string',
|
'string',
|
||||||
],
|
],
|
||||||
'version' => [
|
'version' => 'required|string',
|
||||||
'required',
|
|
||||||
Rule::exists('services', 'version')
|
|
||||||
->where('server_id', $server->id)
|
|
||||||
->where('type', 'php'),
|
|
||||||
],
|
|
||||||
'type' => [
|
'type' => [
|
||||||
'required',
|
'required',
|
||||||
Rule::in([PHPIniType::CLI, PHPIniType::FPM]),
|
Rule::in([PHPIniType::CLI, PHPIniType::FPM]),
|
||||||
],
|
],
|
||||||
];
|
])->validate();
|
||||||
|
|
||||||
|
if (! in_array($input['version'], $server->installedPHPVersions())) {
|
||||||
|
throw ValidationException::withMessages(
|
||||||
|
['version' => __('This version is not installed')]
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,39 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace App\Actions\Projects;
|
|
||||||
|
|
||||||
use App\Models\Project;
|
|
||||||
use App\Models\User;
|
|
||||||
use Illuminate\Database\Query\Builder;
|
|
||||||
use Illuminate\Validation\Rule;
|
|
||||||
|
|
||||||
class AddUser
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* @param array<string, mixed> $input
|
|
||||||
*/
|
|
||||||
public function add(Project $project, array $input): void
|
|
||||||
{
|
|
||||||
/** @var User $user */
|
|
||||||
$user = User::query()->findOrFail($input['user']);
|
|
||||||
|
|
||||||
$project->users()->detach($user);
|
|
||||||
$project->users()->attach($user);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @return array<string, array<string>>
|
|
||||||
*/
|
|
||||||
public static function rules(Project $project): array
|
|
||||||
{
|
|
||||||
return [
|
|
||||||
'user' => [
|
|
||||||
'required',
|
|
||||||
Rule::exists('users', 'id'),
|
|
||||||
Rule::unique('user_project', 'user_id')->where(function (Builder $query) use ($project): void {
|
|
||||||
$query->where('project_id', $project->id);
|
|
||||||
}),
|
|
||||||
],
|
|
||||||
];
|
|
||||||
}
|
|
||||||
}
|
|
@ -8,13 +8,10 @@
|
|||||||
|
|
||||||
class CreateProject
|
class CreateProject
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @param array<string, mixed> $input
|
|
||||||
*/
|
|
||||||
public function create(User $user, array $input): Project
|
public function create(User $user, array $input): Project
|
||||||
{
|
{
|
||||||
if (isset($input['name'])) {
|
if (isset($input['name'])) {
|
||||||
$input['name'] = strtolower((string) $input['name']);
|
$input['name'] = strtolower($input['name']);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->validate($input);
|
$this->validate($input);
|
||||||
@ -30,27 +27,15 @@ public function create(User $user, array $input): Project
|
|||||||
return $project;
|
return $project;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
private function validate(array $input): void
|
||||||
* @return array<string, array<string>>
|
|
||||||
*/
|
|
||||||
public static function rules(): array
|
|
||||||
{
|
{
|
||||||
return [
|
Validator::make($input, [
|
||||||
'name' => [
|
'name' => [
|
||||||
'required',
|
'required',
|
||||||
'string',
|
'string',
|
||||||
'max:255',
|
'max:255',
|
||||||
'unique:projects,name',
|
'unique:projects,name',
|
||||||
'lowercase:projects,name',
|
|
||||||
],
|
],
|
||||||
];
|
])->validate();
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param array<string, mixed> $input
|
|
||||||
*/
|
|
||||||
private function validate(array $input): void
|
|
||||||
{
|
|
||||||
Validator::make($input, self::rules())->validate();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -8,13 +8,10 @@
|
|||||||
|
|
||||||
class UpdateProject
|
class UpdateProject
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @param array<string, mixed> $input
|
|
||||||
*/
|
|
||||||
public function update(Project $project, array $input): Project
|
public function update(Project $project, array $input): Project
|
||||||
{
|
{
|
||||||
if (isset($input['name'])) {
|
if (isset($input['name'])) {
|
||||||
$input['name'] = strtolower((string) $input['name']);
|
$input['name'] = strtolower($input['name']);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->validate($project, $input);
|
$this->validate($project, $input);
|
||||||
@ -26,27 +23,15 @@ public function update(Project $project, array $input): Project
|
|||||||
return $project;
|
return $project;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
private function validate(Project $project, array $input): void
|
||||||
* @return array<string, array<string>>
|
|
||||||
*/
|
|
||||||
public static function rules(Project $project): array
|
|
||||||
{
|
{
|
||||||
return [
|
Validator::make($input, [
|
||||||
'name' => [
|
'name' => [
|
||||||
'required',
|
'required',
|
||||||
'string',
|
'string',
|
||||||
'max:255',
|
'max:255',
|
||||||
Rule::unique('projects', 'name')->ignore($project->id),
|
Rule::unique('projects')->where('user_id', $project->user_id)->ignore($project->id),
|
||||||
'lowercase:projects,name',
|
|
||||||
],
|
],
|
||||||
];
|
])->validate();
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param array<string, mixed> $input
|
|
||||||
*/
|
|
||||||
private function validate(Project $project, array $input): void
|
|
||||||
{
|
|
||||||
Validator::make($input, self::rules($project))->validate();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
81
app/Actions/Queue/CreateQueue.php
Normal file
81
app/Actions/Queue/CreateQueue.php
Normal file
@ -0,0 +1,81 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Actions\Queue;
|
||||||
|
|
||||||
|
use App\Enums\QueueStatus;
|
||||||
|
use App\Models\Queue;
|
||||||
|
use App\Models\Server;
|
||||||
|
use App\Models\Site;
|
||||||
|
use Illuminate\Support\Facades\Validator;
|
||||||
|
use Illuminate\Validation\ValidationException;
|
||||||
|
|
||||||
|
class CreateQueue
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @throws ValidationException
|
||||||
|
*/
|
||||||
|
public function create(mixed $queueable, array $input): void
|
||||||
|
{
|
||||||
|
$this->validate($input);
|
||||||
|
|
||||||
|
$queue = new Queue([
|
||||||
|
'server_id' => $queueable instanceof Server ? $queueable->id : $queueable->server_id,
|
||||||
|
'site_id' => $queueable instanceof Site ? $queueable->id : null,
|
||||||
|
'command' => $input['command'],
|
||||||
|
'user' => $input['user'],
|
||||||
|
'auto_start' => $input['auto_start'],
|
||||||
|
'auto_restart' => $input['auto_restart'],
|
||||||
|
'numprocs' => $input['numprocs'],
|
||||||
|
'status' => QueueStatus::CREATING,
|
||||||
|
]);
|
||||||
|
$queue->save();
|
||||||
|
|
||||||
|
dispatch(function () use ($queue) {
|
||||||
|
$queue->server->processManager()->handler()->create(
|
||||||
|
$queue->id,
|
||||||
|
$queue->command,
|
||||||
|
$queue->user,
|
||||||
|
$queue->auto_start,
|
||||||
|
$queue->auto_restart,
|
||||||
|
$queue->numprocs,
|
||||||
|
$queue->getLogFile(),
|
||||||
|
$queue->site_id
|
||||||
|
);
|
||||||
|
$queue->status = QueueStatus::RUNNING;
|
||||||
|
$queue->save();
|
||||||
|
})->catch(function () use ($queue) {
|
||||||
|
$queue->delete();
|
||||||
|
})->onConnection('ssh');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @throws ValidationException
|
||||||
|
*/
|
||||||
|
protected function validate(array $input): void
|
||||||
|
{
|
||||||
|
$rules = [
|
||||||
|
'command' => [
|
||||||
|
'required',
|
||||||
|
],
|
||||||
|
'user' => [
|
||||||
|
'required',
|
||||||
|
'in:root,'.config('core.ssh_user'),
|
||||||
|
],
|
||||||
|
'auto_start' => [
|
||||||
|
'required',
|
||||||
|
'in:0,1',
|
||||||
|
],
|
||||||
|
'auto_restart' => [
|
||||||
|
'required',
|
||||||
|
'in:0,1',
|
||||||
|
],
|
||||||
|
'numprocs' => [
|
||||||
|
'required',
|
||||||
|
'numeric',
|
||||||
|
'min:1',
|
||||||
|
],
|
||||||
|
];
|
||||||
|
|
||||||
|
Validator::make($input, $rules)->validate();
|
||||||
|
}
|
||||||
|
}
|
14
app/Actions/Queue/DeleteQueue.php
Normal file
14
app/Actions/Queue/DeleteQueue.php
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Actions\Queue;
|
||||||
|
|
||||||
|
use App\Models\Queue;
|
||||||
|
|
||||||
|
class DeleteQueue
|
||||||
|
{
|
||||||
|
public function delete(Queue $queue): void
|
||||||
|
{
|
||||||
|
$queue->server->processManager()->handler()->delete($queue->id, $queue->site_id);
|
||||||
|
$queue->delete();
|
||||||
|
}
|
||||||
|
}
|
13
app/Actions/Queue/GetQueueLogs.php
Normal file
13
app/Actions/Queue/GetQueueLogs.php
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Actions\Queue;
|
||||||
|
|
||||||
|
use App\Models\Queue;
|
||||||
|
|
||||||
|
class GetQueueLogs
|
||||||
|
{
|
||||||
|
public function getLogs(Queue $queue): string
|
||||||
|
{
|
||||||
|
return $queue->server->processManager()->handler()->getLogs($queue->getLogFile());
|
||||||
|
}
|
||||||
|
}
|
42
app/Actions/Queue/ManageQueue.php
Normal file
42
app/Actions/Queue/ManageQueue.php
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Actions\Queue;
|
||||||
|
|
||||||
|
use App\Enums\QueueStatus;
|
||||||
|
use App\Models\Queue;
|
||||||
|
|
||||||
|
class ManageQueue
|
||||||
|
{
|
||||||
|
public function start(Queue $queue): void
|
||||||
|
{
|
||||||
|
$queue->status = QueueStatus::STARTING;
|
||||||
|
$queue->save();
|
||||||
|
dispatch(function () use ($queue) {
|
||||||
|
$queue->server->processManager()->handler()->start($queue->id, $queue->site_id);
|
||||||
|
$queue->status = QueueStatus::RUNNING;
|
||||||
|
$queue->save();
|
||||||
|
})->onConnection('ssh');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function stop(Queue $queue): void
|
||||||
|
{
|
||||||
|
$queue->status = QueueStatus::STOPPING;
|
||||||
|
$queue->save();
|
||||||
|
dispatch(function () use ($queue) {
|
||||||
|
$queue->server->processManager()->handler()->stop($queue->id, $queue->site_id);
|
||||||
|
$queue->status = QueueStatus::STOPPED;
|
||||||
|
$queue->save();
|
||||||
|
})->onConnection('ssh');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function restart(Queue $queue): void
|
||||||
|
{
|
||||||
|
$queue->status = QueueStatus::RESTARTING;
|
||||||
|
$queue->save();
|
||||||
|
dispatch(function () use ($queue) {
|
||||||
|
$queue->server->processManager()->handler()->restart($queue->id, $queue->site_id);
|
||||||
|
$queue->status = QueueStatus::RUNNING;
|
||||||
|
$queue->save();
|
||||||
|
})->onConnection('ssh');
|
||||||
|
}
|
||||||
|
}
|
@ -1,75 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace App\Actions\Redirect;
|
|
||||||
|
|
||||||
use App\Enums\RedirectStatus;
|
|
||||||
use App\Models\Redirect;
|
|
||||||
use App\Models\Service;
|
|
||||||
use App\Models\Site;
|
|
||||||
use App\SSH\Services\Webserver\Webserver;
|
|
||||||
use Illuminate\Validation\Rule;
|
|
||||||
|
|
||||||
class CreateRedirect
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* @param array<string, mixed> $input
|
|
||||||
*/
|
|
||||||
public function create(Site $site, array $input): Redirect
|
|
||||||
{
|
|
||||||
$redirect = new Redirect;
|
|
||||||
|
|
||||||
$redirect->site_id = $site->id;
|
|
||||||
$redirect->from = $input['from'];
|
|
||||||
$redirect->to = $input['to'];
|
|
||||||
$redirect->mode = $input['mode'];
|
|
||||||
$redirect->status = RedirectStatus::CREATING;
|
|
||||||
$redirect->save();
|
|
||||||
|
|
||||||
dispatch(function () use ($site, $redirect): void {
|
|
||||||
/** @var Service $service */
|
|
||||||
$service = $site->server->webserver();
|
|
||||||
/** @var Webserver $webserver */
|
|
||||||
$webserver = $service->handler();
|
|
||||||
$webserver->updateVHost($site);
|
|
||||||
$redirect->status = RedirectStatus::READY;
|
|
||||||
$redirect->save();
|
|
||||||
})
|
|
||||||
->catch(function () use ($redirect): void {
|
|
||||||
$redirect->status = RedirectStatus::FAILED;
|
|
||||||
$redirect->save();
|
|
||||||
})
|
|
||||||
->onConnection('ssh');
|
|
||||||
|
|
||||||
return $redirect->refresh();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @return array<string, array<string>>
|
|
||||||
*/
|
|
||||||
public static function rules(Site $site): array
|
|
||||||
{
|
|
||||||
return [
|
|
||||||
'from' => [
|
|
||||||
'required',
|
|
||||||
'string',
|
|
||||||
'max:255',
|
|
||||||
'not_regex:/^http(s)?:\/\//',
|
|
||||||
Rule::unique('redirects', 'from')->where('site_id', $site->id),
|
|
||||||
],
|
|
||||||
'to' => [
|
|
||||||
'required',
|
|
||||||
'url:http,https',
|
|
||||||
],
|
|
||||||
'mode' => [
|
|
||||||
'required',
|
|
||||||
'integer',
|
|
||||||
Rule::in([
|
|
||||||
301,
|
|
||||||
302,
|
|
||||||
307,
|
|
||||||
308,
|
|
||||||
]),
|
|
||||||
],
|
|
||||||
];
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,30 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace App\Actions\Redirect;
|
|
||||||
|
|
||||||
use App\Enums\RedirectStatus;
|
|
||||||
use App\Models\Redirect;
|
|
||||||
use App\Models\Service;
|
|
||||||
use App\Models\Site;
|
|
||||||
use App\SSH\Services\Webserver\Webserver;
|
|
||||||
|
|
||||||
class DeleteRedirect
|
|
||||||
{
|
|
||||||
public function delete(Site $site, Redirect $redirect): void
|
|
||||||
{
|
|
||||||
$redirect->status = RedirectStatus::DELETING;
|
|
||||||
$redirect->save();
|
|
||||||
|
|
||||||
dispatch(function () use ($site, $redirect): void {
|
|
||||||
/** @var Service $service */
|
|
||||||
$service = $site->server->webserver();
|
|
||||||
/** @var Webserver $webserver */
|
|
||||||
$webserver = $service->handler();
|
|
||||||
$webserver->updateVHost($site);
|
|
||||||
$redirect->delete();
|
|
||||||
})->catch(function () use ($redirect): void {
|
|
||||||
$redirect->status = RedirectStatus::FAILED;
|
|
||||||
$redirect->save();
|
|
||||||
})->onConnection('ssh');
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,16 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace App\Actions\SSL;
|
|
||||||
|
|
||||||
use App\Models\Ssl;
|
|
||||||
|
|
||||||
class ActivateSSL
|
|
||||||
{
|
|
||||||
public function activate(Ssl $ssl): void
|
|
||||||
{
|
|
||||||
$ssl->site->ssls()->update(['is_active' => false]);
|
|
||||||
$ssl->is_active = true;
|
|
||||||
$ssl->save();
|
|
||||||
$ssl->site->webserver()->updateVHost($ssl->site);
|
|
||||||
}
|
|
||||||
}
|
|
@ -4,27 +4,21 @@
|
|||||||
|
|
||||||
use App\Enums\SslStatus;
|
use App\Enums\SslStatus;
|
||||||
use App\Enums\SslType;
|
use App\Enums\SslType;
|
||||||
use App\Models\ServerLog;
|
|
||||||
use App\Models\Service;
|
|
||||||
use App\Models\Site;
|
use App\Models\Site;
|
||||||
use App\Models\Ssl;
|
use App\Models\Ssl;
|
||||||
use App\SSH\Services\Webserver\Webserver;
|
use App\SSH\Services\Webserver\Webserver;
|
||||||
|
use Illuminate\Support\Facades\Validator;
|
||||||
use Illuminate\Validation\Rule;
|
use Illuminate\Validation\Rule;
|
||||||
use Illuminate\Validation\ValidationException;
|
use Illuminate\Validation\ValidationException;
|
||||||
|
|
||||||
class CreateSSL
|
class CreateSSL
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @param array<string, mixed> $input
|
|
||||||
*
|
|
||||||
* @throws ValidationException
|
* @throws ValidationException
|
||||||
*/
|
*/
|
||||||
public function create(Site $site, array $input): void
|
public function create(Site $site, array $input): void
|
||||||
{
|
{
|
||||||
$site->ssls()
|
$this->validate($input);
|
||||||
->where('type', $input['type'])
|
|
||||||
->where('status', SslStatus::FAILED)
|
|
||||||
->delete();
|
|
||||||
|
|
||||||
$ssl = new Ssl([
|
$ssl = new Ssl([
|
||||||
'site_id' => $site->id,
|
'site_id' => $site->id,
|
||||||
@ -33,36 +27,30 @@ public function create(Site $site, array $input): void
|
|||||||
'pk' => $input['private'] ?? null,
|
'pk' => $input['private'] ?? null,
|
||||||
'expires_at' => $input['type'] === SslType::LETSENCRYPT ? now()->addMonths(3) : $input['expires_at'],
|
'expires_at' => $input['type'] === SslType::LETSENCRYPT ? now()->addMonths(3) : $input['expires_at'],
|
||||||
'status' => SslStatus::CREATING,
|
'status' => SslStatus::CREATING,
|
||||||
'email' => $input['email'] ?? null,
|
|
||||||
'is_active' => ! $site->activeSsl,
|
|
||||||
]);
|
]);
|
||||||
$ssl->domains = [$site->domain];
|
$ssl->domains = [$site->domain];
|
||||||
if (isset($input['aliases']) && $input['aliases']) {
|
if (isset($input['aliases']) && $input['aliases']) {
|
||||||
$ssl->domains = array_merge($ssl->domains, $site->aliases);
|
$ssl->domains = array_merge($ssl->domains, $site->aliases);
|
||||||
}
|
}
|
||||||
$ssl->log_id = ServerLog::log($site->server, 'create-ssl', '', $site)->id;
|
|
||||||
$ssl->save();
|
$ssl->save();
|
||||||
|
|
||||||
dispatch(function () use ($site, $ssl): void {
|
dispatch(function () use ($site, $ssl) {
|
||||||
/** @var Service $service */
|
|
||||||
$service = $site->server->webserver();
|
|
||||||
/** @var Webserver $webserver */
|
/** @var Webserver $webserver */
|
||||||
$webserver = $service->handler();
|
$webserver = $site->server->webserver()->handler();
|
||||||
$webserver->setupSSL($ssl);
|
$webserver->setupSSL($ssl);
|
||||||
$ssl->status = SslStatus::CREATED;
|
$ssl->status = SslStatus::CREATED;
|
||||||
$ssl->save();
|
$ssl->save();
|
||||||
$webserver->updateVHost($site);
|
$site->type()->edit();
|
||||||
})->catch(function () use ($ssl): void {
|
})->catch(function () use ($ssl) {
|
||||||
$ssl->status = SslStatus::FAILED;
|
$ssl->status = SslStatus::FAILED;
|
||||||
$ssl->save();
|
$ssl->save();
|
||||||
})->onConnection('ssh');
|
})->onConnection('ssh');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param array<string, mixed> $input
|
* @throws ValidationException
|
||||||
* @return array<string, mixed>
|
|
||||||
*/
|
*/
|
||||||
public static function rules(array $input): array
|
protected function validate(array $input): void
|
||||||
{
|
{
|
||||||
$rules = [
|
$rules = [
|
||||||
'type' => [
|
'type' => [
|
||||||
@ -73,19 +61,9 @@ public static function rules(array $input): array
|
|||||||
if (isset($input['type']) && $input['type'] == SslType::CUSTOM) {
|
if (isset($input['type']) && $input['type'] == SslType::CUSTOM) {
|
||||||
$rules['certificate'] = 'required';
|
$rules['certificate'] = 'required';
|
||||||
$rules['private'] = 'required';
|
$rules['private'] = 'required';
|
||||||
$rules['expires_at'] = [
|
$rules['expires_at'] = 'required|date_format:Y-m-d|after_or_equal:'.now();
|
||||||
'required',
|
|
||||||
'date_format:Y-m-d',
|
|
||||||
'after_or_equal:'.now(),
|
|
||||||
];
|
|
||||||
}
|
|
||||||
if (isset($input['type']) && $input['type'] == SslType::LETSENCRYPT) {
|
|
||||||
$rules['email'] = [
|
|
||||||
'required',
|
|
||||||
'email',
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return $rules;
|
Validator::make($input, $rules)->validate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,22 +2,13 @@
|
|||||||
|
|
||||||
namespace App\Actions\SSL;
|
namespace App\Actions\SSL;
|
||||||
|
|
||||||
use App\Enums\SslStatus;
|
|
||||||
use App\Models\Service;
|
|
||||||
use App\Models\Ssl;
|
use App\Models\Ssl;
|
||||||
use App\SSH\Services\Webserver\Webserver;
|
|
||||||
|
|
||||||
class DeleteSSL
|
class DeleteSSL
|
||||||
{
|
{
|
||||||
public function delete(Ssl $ssl): void
|
public function delete(Ssl $ssl): void
|
||||||
{
|
{
|
||||||
$ssl->status = SslStatus::DELETING;
|
$ssl->site->server->webserver()->handler()->removeSSL($ssl);
|
||||||
$ssl->save();
|
|
||||||
/** @var Service $service */
|
|
||||||
$service = $ssl->site->server->webserver();
|
|
||||||
/** @var Webserver $webserver */
|
|
||||||
$webserver = $service->handler();
|
|
||||||
$webserver->removeSSL($ssl);
|
|
||||||
$ssl->delete();
|
$ssl->delete();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -4,33 +4,29 @@
|
|||||||
|
|
||||||
use App\Models\Script;
|
use App\Models\Script;
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
|
use Illuminate\Support\Facades\Validator;
|
||||||
|
|
||||||
class CreateScript
|
class CreateScript
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @param array<string, mixed> $input
|
|
||||||
*/
|
|
||||||
public function create(User $user, array $input): Script
|
public function create(User $user, array $input): Script
|
||||||
{
|
{
|
||||||
|
$this->validate($input);
|
||||||
|
|
||||||
$script = new Script([
|
$script = new Script([
|
||||||
'user_id' => $user->id,
|
'user_id' => $user->id,
|
||||||
'name' => $input['name'],
|
'name' => $input['name'],
|
||||||
'content' => $input['content'],
|
'content' => $input['content'],
|
||||||
'project_id' => isset($input['global']) && $input['global'] ? null : $user->current_project_id,
|
|
||||||
]);
|
]);
|
||||||
$script->save();
|
$script->save();
|
||||||
|
|
||||||
return $script;
|
return $script;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
private function validate(array $input): void
|
||||||
* @return array<string, array<string>>
|
|
||||||
*/
|
|
||||||
public static function rules(): array
|
|
||||||
{
|
{
|
||||||
return [
|
Validator::make($input, [
|
||||||
'name' => ['required', 'string', 'max:255'],
|
'name' => ['required', 'string', 'max:255'],
|
||||||
'content' => ['required', 'string'],
|
'content' => ['required', 'string'],
|
||||||
];
|
])->validate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,32 +3,26 @@
|
|||||||
namespace App\Actions\Script;
|
namespace App\Actions\Script;
|
||||||
|
|
||||||
use App\Models\Script;
|
use App\Models\Script;
|
||||||
use App\Models\User;
|
use Illuminate\Support\Facades\Validator;
|
||||||
|
|
||||||
class EditScript
|
class EditScript
|
||||||
{
|
{
|
||||||
/**
|
public function edit(Script $script, array $input): Script
|
||||||
* @param array<string, mixed> $input
|
|
||||||
*/
|
|
||||||
public function edit(Script $script, User $user, array $input): Script
|
|
||||||
{
|
{
|
||||||
|
$this->validate($input);
|
||||||
|
|
||||||
$script->name = $input['name'];
|
$script->name = $input['name'];
|
||||||
$script->content = $input['content'];
|
$script->content = $input['content'];
|
||||||
$script->project_id = isset($input['global']) && $input['global'] ? null : $user->current_project_id;
|
|
||||||
|
|
||||||
$script->save();
|
$script->save();
|
||||||
|
|
||||||
return $script;
|
return $script;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
private function validate(array $input): void
|
||||||
* @return array<string, array<string>>
|
|
||||||
*/
|
|
||||||
public static function rules(): array
|
|
||||||
{
|
{
|
||||||
return [
|
Validator::make($input, [
|
||||||
'name' => ['required', 'string', 'max:255'],
|
'name' => ['required', 'string', 'max:255'],
|
||||||
'content' => ['required', 'string'],
|
'content' => ['required', 'string'],
|
||||||
];
|
])->validate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -7,37 +7,33 @@
|
|||||||
use App\Models\ScriptExecution;
|
use App\Models\ScriptExecution;
|
||||||
use App\Models\Server;
|
use App\Models\Server;
|
||||||
use App\Models\ServerLog;
|
use App\Models\ServerLog;
|
||||||
|
use Illuminate\Support\Facades\Validator;
|
||||||
use Illuminate\Validation\Rule;
|
use Illuminate\Validation\Rule;
|
||||||
|
|
||||||
class ExecuteScript
|
class ExecuteScript
|
||||||
{
|
{
|
||||||
/**
|
public function execute(Script $script, Server $server, array $input): ScriptExecution
|
||||||
* @param array<string, mixed> $input
|
|
||||||
*/
|
|
||||||
public function execute(Script $script, array $input): ScriptExecution
|
|
||||||
{
|
{
|
||||||
|
$this->validate($server, $input);
|
||||||
|
|
||||||
$execution = new ScriptExecution([
|
$execution = new ScriptExecution([
|
||||||
'script_id' => $script->id,
|
'script_id' => $script->id,
|
||||||
'server_id' => $input['server'],
|
|
||||||
'user' => $input['user'],
|
'user' => $input['user'],
|
||||||
'variables' => $input['variables'] ?? [],
|
'variables' => $input['variables'] ?? [],
|
||||||
'status' => ScriptExecutionStatus::EXECUTING,
|
'status' => ScriptExecutionStatus::EXECUTING,
|
||||||
]);
|
]);
|
||||||
$execution->save();
|
$execution->save();
|
||||||
|
|
||||||
dispatch(function () use ($execution, $script): void {
|
dispatch(function () use ($execution, $server, $script) {
|
||||||
/** @var Server $server */
|
|
||||||
$server = $execution->server;
|
|
||||||
|
|
||||||
$content = $execution->getContent();
|
$content = $execution->getContent();
|
||||||
$log = ServerLog::newLog($server, 'script-'.$script->id.'-'.strtotime('now'));
|
$log = ServerLog::make($server, 'script-'.$script->id.'-'.strtotime('now'));
|
||||||
$log->save();
|
$log->save();
|
||||||
$execution->server_log_id = $log->id;
|
$execution->server_log_id = $log->id;
|
||||||
$execution->save();
|
$execution->save();
|
||||||
$server->os()->runScript('~/', $content, $log, $execution->user);
|
$server->os()->runScript('~/', $content, $log, $execution->user);
|
||||||
$execution->status = ScriptExecutionStatus::COMPLETED;
|
$execution->status = ScriptExecutionStatus::COMPLETED;
|
||||||
$execution->save();
|
$execution->save();
|
||||||
})->catch(function () use ($execution): void {
|
})->catch(function () use ($execution) {
|
||||||
$execution->status = ScriptExecutionStatus::FAILED;
|
$execution->status = ScriptExecutionStatus::FAILED;
|
||||||
$execution->save();
|
$execution->save();
|
||||||
})->onConnection('ssh');
|
})->onConnection('ssh');
|
||||||
@ -45,27 +41,15 @@ public function execute(Script $script, array $input): ScriptExecution
|
|||||||
return $execution;
|
return $execution;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
private function validate(Server $server, array $input): void
|
||||||
* @param array<string, mixed> $input
|
|
||||||
* @return array<string, mixed>
|
|
||||||
*/
|
|
||||||
public static function rules(array $input): array
|
|
||||||
{
|
{
|
||||||
$users = ['root'];
|
Validator::make($input, [
|
||||||
if (isset($input['server'])) {
|
|
||||||
/** @var Server $server */
|
|
||||||
$server = Server::query()->findOrFail($input['server']);
|
|
||||||
$users = $server->getSshUsers();
|
|
||||||
}
|
|
||||||
|
|
||||||
return [
|
|
||||||
'server' => [
|
|
||||||
'required',
|
|
||||||
Rule::exists('servers', 'id'),
|
|
||||||
],
|
|
||||||
'user' => [
|
'user' => [
|
||||||
'required',
|
'required',
|
||||||
Rule::in($users),
|
Rule::in([
|
||||||
|
'root',
|
||||||
|
$server->ssh_user,
|
||||||
|
]),
|
||||||
],
|
],
|
||||||
'variables' => 'array',
|
'variables' => 'array',
|
||||||
'variables.*' => [
|
'variables.*' => [
|
||||||
@ -73,6 +57,6 @@ public static function rules(array $input): array
|
|||||||
'string',
|
'string',
|
||||||
'max:255',
|
'max:255',
|
||||||
],
|
],
|
||||||
];
|
])->validate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -5,18 +5,18 @@
|
|||||||
use App\Enums\FirewallRuleStatus;
|
use App\Enums\FirewallRuleStatus;
|
||||||
use App\Enums\ServerProvider;
|
use App\Enums\ServerProvider;
|
||||||
use App\Enums\ServerStatus;
|
use App\Enums\ServerStatus;
|
||||||
use App\Enums\ServerType;
|
use App\Exceptions\ServerProviderError;
|
||||||
use App\Exceptions\SSHConnectionError;
|
|
||||||
use App\Facades\Notifier;
|
use App\Facades\Notifier;
|
||||||
use App\Models\Project;
|
|
||||||
use App\Models\Server;
|
use App\Models\Server;
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
use App\Notifications\ServerInstallationFailed;
|
use App\Notifications\ServerInstallationFailed;
|
||||||
use App\Notifications\ServerInstallationSucceed;
|
use App\Notifications\ServerInstallationSucceed;
|
||||||
use App\ValidationRules\RestrictedIPAddressesRule;
|
use App\ValidationRules\RestrictedIPAddressesRule;
|
||||||
use Exception;
|
use Exception;
|
||||||
use Illuminate\Database\Query\Builder;
|
use Illuminate\Support\Facades\Bus;
|
||||||
|
use Illuminate\Support\Facades\DB;
|
||||||
use Illuminate\Support\Facades\Log;
|
use Illuminate\Support\Facades\Log;
|
||||||
|
use Illuminate\Support\Facades\Validator;
|
||||||
use Illuminate\Support\Str;
|
use Illuminate\Support\Str;
|
||||||
use Illuminate\Validation\Rule;
|
use Illuminate\Validation\Rule;
|
||||||
use Illuminate\Validation\ValidationException;
|
use Illuminate\Validation\ValidationException;
|
||||||
@ -25,19 +25,21 @@
|
|||||||
class CreateServer
|
class CreateServer
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @param array<string, mixed> $input
|
* @throws Throwable
|
||||||
*/
|
*/
|
||||||
public function create(User $creator, Project $project, array $input): Server
|
public function create(User $creator, array $input): Server
|
||||||
{
|
{
|
||||||
|
$this->validateInputs($input);
|
||||||
|
|
||||||
$server = new Server([
|
$server = new Server([
|
||||||
'project_id' => $project->id,
|
'project_id' => $creator->currentProject->id,
|
||||||
'user_id' => $creator->id,
|
'user_id' => $creator->id,
|
||||||
'name' => $input['name'],
|
'name' => $input['name'],
|
||||||
'ssh_user' => config('core.server_providers_default_user')[$input['provider']][$input['os']],
|
'ssh_user' => config('core.server_providers_default_user')[$input['provider']][$input['os']],
|
||||||
'ip' => $input['ip'] ?? '',
|
'ip' => $input['ip'] ?? '',
|
||||||
'port' => $input['port'] ?? 22,
|
'port' => $input['port'] ?? 22,
|
||||||
'os' => $input['os'],
|
'os' => $input['os'],
|
||||||
'type' => ServerType::REGULAR,
|
'type' => $input['type'],
|
||||||
'provider' => $input['provider'],
|
'provider' => $input['provider'],
|
||||||
'authentication' => [
|
'authentication' => [
|
||||||
'user' => config('core.ssh_user'),
|
'user' => config('core.ssh_user'),
|
||||||
@ -48,13 +50,18 @@ public function create(User $creator, Project $project, array $input): Server
|
|||||||
'progress_step' => 'Initializing',
|
'progress_step' => 'Initializing',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
DB::beginTransaction();
|
||||||
try {
|
try {
|
||||||
if ($server->provider != 'custom') {
|
if ($server->provider != 'custom') {
|
||||||
$server->provider_id = $input['server_provider'];
|
$server->provider_id = $input['server_provider'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// validate type
|
||||||
|
$this->validateType($server, $input);
|
||||||
$server->type_data = $server->type()->data($input);
|
$server->type_data = $server->type()->data($input);
|
||||||
|
|
||||||
|
// validate provider
|
||||||
|
$this->validateProvider($server, $input);
|
||||||
$server->provider_data = $server->provider()->data($input);
|
$server->provider_data = $server->provider()->data($input);
|
||||||
|
|
||||||
// save
|
// save
|
||||||
@ -72,40 +79,35 @@ public function create(User $creator, Project $project, array $input): Server
|
|||||||
// install server
|
// install server
|
||||||
$this->install($server);
|
$this->install($server);
|
||||||
|
|
||||||
|
DB::commit();
|
||||||
|
|
||||||
return $server;
|
return $server;
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
$server->delete();
|
$server->provider()->delete();
|
||||||
|
DB::rollBack();
|
||||||
|
if ($e instanceof ServerProviderError) {
|
||||||
throw ValidationException::withMessages([
|
throw ValidationException::withMessages([
|
||||||
'provider' => $e->getMessage(),
|
'provider' => __('Provider Error: ').$e->getMessage(),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
throw $e;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private function install(Server $server): void
|
private function install(Server $server): void
|
||||||
{
|
{
|
||||||
dispatch(function () use ($server): void {
|
$bus = Bus::chain([
|
||||||
$maxWait = 180;
|
function () use ($server) {
|
||||||
while ($maxWait > 0) {
|
|
||||||
sleep(10);
|
|
||||||
$maxWait -= 10;
|
|
||||||
if (! $server->provider()->isRunning()) {
|
if (! $server->provider()->isRunning()) {
|
||||||
continue;
|
sleep(2);
|
||||||
}
|
|
||||||
try {
|
|
||||||
$server->ssh()->connect();
|
|
||||||
break;
|
|
||||||
} catch (SSHConnectionError) {
|
|
||||||
// ignore
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
$server->type()->install();
|
$server->type()->install();
|
||||||
$server->update([
|
$server->update([
|
||||||
'status' => ServerStatus::READY,
|
'status' => ServerStatus::READY,
|
||||||
]);
|
]);
|
||||||
Notifier::send($server, new ServerInstallationSucceed($server));
|
Notifier::send($server, new ServerInstallationSucceed($server));
|
||||||
})
|
},
|
||||||
->catch(function (Throwable $e) use ($server): void {
|
])->catch(function (Throwable $e) use ($server) {
|
||||||
$server->update([
|
$server->update([
|
||||||
'status' => ServerStatus::INSTALLATION_FAILED,
|
'status' => ServerStatus::INSTALLATION_FAILED,
|
||||||
]);
|
]);
|
||||||
@ -113,122 +115,97 @@ private function install(Server $server): void
|
|||||||
Log::error('server-installation-error', [
|
Log::error('server-installation-error', [
|
||||||
'error' => (string) $e,
|
'error' => (string) $e,
|
||||||
]);
|
]);
|
||||||
})
|
});
|
||||||
->onConnection('ssh');
|
|
||||||
|
if ($server->provider != ServerProvider::CUSTOM) {
|
||||||
|
$server->progress_step = 'waiting-for-provider';
|
||||||
|
$server->save();
|
||||||
|
$bus->delay(now()->addMinutes(3));
|
||||||
|
}
|
||||||
|
|
||||||
|
$bus->onConnection('ssh')->dispatch();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param array<string, mixed> $input
|
* @throws ValidationException
|
||||||
* @return array<string, mixed>
|
|
||||||
*/
|
*/
|
||||||
public static function rules(Project $project, array $input): array
|
private function validateInputs(array $input): void
|
||||||
{
|
{
|
||||||
$rules = [
|
$rules = [
|
||||||
'provider' => [
|
'provider' => 'required|in:'.implode(',', config('core.server_providers')),
|
||||||
|
'name' => 'required',
|
||||||
|
'os' => 'required|in:'.implode(',', config('core.operating_systems')),
|
||||||
|
'type' => [
|
||||||
'required',
|
'required',
|
||||||
Rule::in(config('core.server_providers')),
|
Rule::in(config('core.server_types')),
|
||||||
],
|
],
|
||||||
'name' => [
|
];
|
||||||
|
|
||||||
|
Validator::make($input, $rules)->validate();
|
||||||
|
|
||||||
|
if ($input['provider'] != 'custom') {
|
||||||
|
$rules['server_provider'] = 'required|exists:server_providers,id,user_id,'.auth()->user()->id;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($input['provider'] == 'custom') {
|
||||||
|
$rules['ip'] = [
|
||||||
'required',
|
'required',
|
||||||
],
|
new RestrictedIPAddressesRule(),
|
||||||
'os' => [
|
];
|
||||||
'required',
|
$rules['port'] = [
|
||||||
Rule::in(config('core.operating_systems')),
|
|
||||||
],
|
|
||||||
'server_provider' => [
|
|
||||||
Rule::when(fn (): bool => isset($input['provider']) && $input['provider'] != ServerProvider::CUSTOM, [
|
|
||||||
'required',
|
|
||||||
Rule::exists('server_providers', 'id')->where(function (Builder $query) use ($project): void {
|
|
||||||
$query->where('project_id', $project->id)
|
|
||||||
->orWhereNull('project_id');
|
|
||||||
}),
|
|
||||||
]),
|
|
||||||
],
|
|
||||||
'ip' => [
|
|
||||||
Rule::when(fn (): bool => isset($input['provider']) && $input['provider'] == ServerProvider::CUSTOM, [
|
|
||||||
'required',
|
|
||||||
new RestrictedIPAddressesRule,
|
|
||||||
]),
|
|
||||||
],
|
|
||||||
'port' => [
|
|
||||||
Rule::when(fn (): bool => isset($input['provider']) && $input['provider'] == ServerProvider::CUSTOM, [
|
|
||||||
'required',
|
'required',
|
||||||
'numeric',
|
'numeric',
|
||||||
'min:1',
|
'min:1',
|
||||||
'max:65535',
|
'max:65535',
|
||||||
]),
|
|
||||||
],
|
|
||||||
];
|
];
|
||||||
|
}
|
||||||
|
|
||||||
return array_merge($rules, self::typeRules($input), self::providerRules($input));
|
Validator::make($input, $rules)->validate();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param array<string, mixed> $input
|
* @throws ValidationException
|
||||||
* @return array<string, array<string>>
|
|
||||||
*/
|
*/
|
||||||
private static function typeRules(array $input): array
|
private function validateType(Server $server, array $input): void
|
||||||
{
|
{
|
||||||
if (! isset($input['type']) || ! in_array($input['type'], config('core.server_types'))) {
|
Validator::make($input, $server->type()->createRules($input))
|
||||||
return [];
|
->validate();
|
||||||
}
|
|
||||||
|
|
||||||
$server = new Server(['type' => $input['type']]);
|
|
||||||
|
|
||||||
return $server->type()->createRules($input);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param array<string, mixed> $input
|
* @throws ValidationException
|
||||||
* @return array<string, array<string>>
|
|
||||||
*/
|
*/
|
||||||
private static function providerRules(array $input): array
|
private function validateProvider(Server $server, array $input): void
|
||||||
{
|
{
|
||||||
if (
|
Validator::make($input, $server->provider()->createRules($input))
|
||||||
! isset($input['provider']) ||
|
->validate();
|
||||||
! isset($input['server_provider']) ||
|
|
||||||
! in_array($input['provider'], config('core.server_providers')) ||
|
|
||||||
$input['provider'] == ServerProvider::CUSTOM
|
|
||||||
) {
|
|
||||||
return [];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$server = new Server([
|
private function createFirewallRules(Server $server): void
|
||||||
'provider' => $input['provider'],
|
|
||||||
'provider_id' => $input['server_provider'],
|
|
||||||
]);
|
|
||||||
|
|
||||||
return $server->provider()->createRules($input);
|
|
||||||
}
|
|
||||||
|
|
||||||
public function createFirewallRules(Server $server): void
|
|
||||||
{
|
{
|
||||||
$server->firewallRules()->createMany([
|
$server->firewallRules()->createMany([
|
||||||
[
|
[
|
||||||
'type' => 'allow',
|
'type' => 'allow',
|
||||||
'name' => 'SSH',
|
'protocol' => 'ssh',
|
||||||
'protocol' => 'tcp',
|
|
||||||
'port' => 22,
|
'port' => 22,
|
||||||
'source' => null,
|
'source' => '0.0.0.0',
|
||||||
'mask' => null,
|
'mask' => 0,
|
||||||
'status' => FirewallRuleStatus::READY,
|
'status' => FirewallRuleStatus::READY,
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'type' => 'allow',
|
'type' => 'allow',
|
||||||
'name' => 'HTTP',
|
'protocol' => 'http',
|
||||||
'protocol' => 'tcp',
|
|
||||||
'port' => 80,
|
'port' => 80,
|
||||||
'source' => null,
|
'source' => '0.0.0.0',
|
||||||
'mask' => null,
|
'mask' => 0,
|
||||||
'status' => FirewallRuleStatus::READY,
|
'status' => FirewallRuleStatus::READY,
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'type' => 'allow',
|
'type' => 'allow',
|
||||||
'name' => 'HTTPS',
|
'protocol' => 'https',
|
||||||
'protocol' => 'tcp',
|
|
||||||
'port' => 443,
|
'port' => 443,
|
||||||
'source' => null,
|
'source' => '0.0.0.0',
|
||||||
'mask' => null,
|
'mask' => 0,
|
||||||
'status' => FirewallRuleStatus::READY,
|
'status' => FirewallRuleStatus::READY,
|
||||||
],
|
],
|
||||||
]);
|
]);
|
||||||
|
@ -3,17 +3,18 @@
|
|||||||
namespace App\Actions\Server;
|
namespace App\Actions\Server;
|
||||||
|
|
||||||
use App\Models\Server;
|
use App\Models\Server;
|
||||||
|
use Illuminate\Support\Facades\Validator;
|
||||||
use Illuminate\Validation\ValidationException;
|
use Illuminate\Validation\ValidationException;
|
||||||
|
|
||||||
class CreateServerLog
|
class CreateServerLog
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @param array<string, mixed> $input
|
|
||||||
*
|
|
||||||
* @throws ValidationException
|
* @throws ValidationException
|
||||||
*/
|
*/
|
||||||
public function create(Server $server, array $input): void
|
public function create(Server $server, array $input): void
|
||||||
{
|
{
|
||||||
|
$this->validate($input);
|
||||||
|
|
||||||
$server->logs()->create([
|
$server->logs()->create([
|
||||||
'is_remote' => true,
|
'is_remote' => true,
|
||||||
'name' => $input['path'],
|
'name' => $input['path'],
|
||||||
@ -23,12 +24,12 @@ public function create(Server $server, array $input): void
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return array<string, string>
|
* @throws ValidationException
|
||||||
*/
|
*/
|
||||||
public static function rules(): array
|
protected function validate(array $input): void
|
||||||
{
|
{
|
||||||
return [
|
Validator::make($input, [
|
||||||
'path' => 'required',
|
'path' => 'required',
|
||||||
];
|
])->validate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -4,19 +4,18 @@
|
|||||||
|
|
||||||
use App\Models\Server;
|
use App\Models\Server;
|
||||||
use App\ValidationRules\RestrictedIPAddressesRule;
|
use App\ValidationRules\RestrictedIPAddressesRule;
|
||||||
use Illuminate\Validation\Rule;
|
use Illuminate\Support\Facades\Validator;
|
||||||
use Illuminate\Validation\ValidationException;
|
use Illuminate\Validation\ValidationException;
|
||||||
|
|
||||||
class EditServer
|
class EditServer
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @param array<string, mixed> $input
|
|
||||||
* @return Server $server
|
|
||||||
*
|
|
||||||
* @throws ValidationException
|
* @throws ValidationException
|
||||||
*/
|
*/
|
||||||
public function edit(Server $server, array $input): Server
|
public function edit(Server $server, array $input): Server
|
||||||
{
|
{
|
||||||
|
$this->validate($input);
|
||||||
|
|
||||||
$checkConnection = false;
|
$checkConnection = false;
|
||||||
if (isset($input['name'])) {
|
if (isset($input['name'])) {
|
||||||
$server->name = $input['name'];
|
$server->name = $input['name'];
|
||||||
@ -27,9 +26,6 @@ public function edit(Server $server, array $input): Server
|
|||||||
}
|
}
|
||||||
$server->ip = $input['ip'];
|
$server->ip = $input['ip'];
|
||||||
}
|
}
|
||||||
if (isset($input['local_ip'])) {
|
|
||||||
$server->local_ip = $input['local_ip'];
|
|
||||||
}
|
|
||||||
if (isset($input['port'])) {
|
if (isset($input['port'])) {
|
||||||
if ($server->port !== $input['port']) {
|
if ($server->port !== $input['port']) {
|
||||||
$checkConnection = true;
|
$checkConnection = true;
|
||||||
@ -46,30 +42,14 @@ public function edit(Server $server, array $input): Server
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return array<string, array<int, mixed>>
|
* @throws ValidationException
|
||||||
*/
|
*/
|
||||||
public static function rules(Server $server): array
|
protected function validate(array $input): void
|
||||||
{
|
{
|
||||||
return [
|
Validator::make($input, [
|
||||||
'name' => [
|
|
||||||
'required',
|
|
||||||
'max:255',
|
|
||||||
Rule::unique('servers')->where('project_id', $server->project_id)->ignore($server->id),
|
|
||||||
],
|
|
||||||
'ip' => [
|
'ip' => [
|
||||||
'string',
|
new RestrictedIPAddressesRule(),
|
||||||
new RestrictedIPAddressesRule,
|
|
||||||
Rule::unique('servers')->where('project_id', $server->project_id)->ignore($server->id),
|
|
||||||
],
|
],
|
||||||
'local_ip' => [
|
])->validateWithBag('editServer');
|
||||||
'string',
|
|
||||||
Rule::unique('servers')->where('project_id', $server->project_id)->ignore($server->id),
|
|
||||||
],
|
|
||||||
'port' => [
|
|
||||||
'integer',
|
|
||||||
'min:1',
|
|
||||||
'max:65535',
|
|
||||||
],
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -13,11 +13,11 @@ public function update(Server $server): void
|
|||||||
{
|
{
|
||||||
$server->status = ServerStatus::UPDATING;
|
$server->status = ServerStatus::UPDATING;
|
||||||
$server->save();
|
$server->save();
|
||||||
dispatch(function () use ($server): void {
|
dispatch(function () use ($server) {
|
||||||
$server->os()->upgrade();
|
$server->os()->upgrade();
|
||||||
$server->checkConnection();
|
$server->checkConnection();
|
||||||
$server->checkForUpdates();
|
$server->checkForUpdates();
|
||||||
})->catch(function () use ($server): void {
|
})->catch(function () use ($server) {
|
||||||
Notifier::send($server, new ServerUpdateFailed($server));
|
Notifier::send($server, new ServerUpdateFailed($server));
|
||||||
$server->checkConnection();
|
$server->checkConnection();
|
||||||
})->onConnection('ssh');
|
})->onConnection('ssh');
|
||||||
|
@ -2,25 +2,26 @@
|
|||||||
|
|
||||||
namespace App\Actions\ServerProvider;
|
namespace App\Actions\ServerProvider;
|
||||||
|
|
||||||
use App\Models\Project;
|
|
||||||
use App\Models\Server;
|
|
||||||
use App\Models\ServerProvider;
|
use App\Models\ServerProvider;
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
use App\ServerProviders\ServerProvider as ServerProviderContract;
|
use App\ServerProviders\ServerProvider as ServerProviderContract;
|
||||||
use Exception;
|
use Exception;
|
||||||
|
use Illuminate\Support\Facades\Validator;
|
||||||
use Illuminate\Validation\Rule;
|
use Illuminate\Validation\Rule;
|
||||||
use Illuminate\Validation\ValidationException;
|
use Illuminate\Validation\ValidationException;
|
||||||
|
|
||||||
class CreateServerProvider
|
class CreateServerProvider
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @param array<string, mixed> $input
|
|
||||||
*
|
|
||||||
* @throws ValidationException
|
* @throws ValidationException
|
||||||
*/
|
*/
|
||||||
public function create(User $user, Project $project, array $input): ServerProvider
|
public function create(User $user, array $input): ServerProvider
|
||||||
{
|
{
|
||||||
$provider = self::getProvider($input['provider']);
|
$this->validateInput($input);
|
||||||
|
|
||||||
|
$provider = $this->getProvider($input['provider']);
|
||||||
|
|
||||||
|
$this->validateProvider($provider, $input);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$provider->connect($input);
|
$provider->connect($input);
|
||||||
@ -32,33 +33,30 @@ public function create(User $user, Project $project, array $input): ServerProvid
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
$serverProvider = new ServerProvider;
|
$serverProvider = new ServerProvider();
|
||||||
$serverProvider->user_id = $user->id;
|
$serverProvider->user_id = $user->id;
|
||||||
$serverProvider->profile = $input['name'];
|
$serverProvider->profile = $input['name'];
|
||||||
$serverProvider->provider = $input['provider'];
|
$serverProvider->provider = $input['provider'];
|
||||||
$serverProvider->credentials = $provider->credentialData($input);
|
$serverProvider->credentials = $provider->credentialData($input);
|
||||||
$serverProvider->project_id = isset($input['global']) && $input['global'] ? null : $project->id;
|
$serverProvider->project_id = isset($input['global']) && $input['global'] ? null : $user->current_project_id;
|
||||||
$serverProvider->save();
|
$serverProvider->save();
|
||||||
|
|
||||||
return $serverProvider;
|
return $serverProvider;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static function getProvider(string $name): ServerProviderContract
|
private function getProvider($name): ServerProviderContract
|
||||||
{
|
{
|
||||||
$providerClass = config('core.server_providers_class.'.$name);
|
$providerClass = config('core.server_providers_class.'.$name);
|
||||||
/** @var ServerProviderContract $provider */
|
|
||||||
$provider = new $providerClass(new ServerProvider, new Server);
|
|
||||||
|
|
||||||
return $provider;
|
return new $providerClass();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param array<string, mixed> $input
|
* @throws ValidationException
|
||||||
* @return array<string, mixed>
|
|
||||||
*/
|
*/
|
||||||
public static function rules(array $input): array
|
private function validateInput(array $input): void
|
||||||
{
|
{
|
||||||
$rules = [
|
Validator::make($input, [
|
||||||
'name' => [
|
'name' => [
|
||||||
'required',
|
'required',
|
||||||
],
|
],
|
||||||
@ -67,21 +65,14 @@ public static function rules(array $input): array
|
|||||||
Rule::in(config('core.server_providers')),
|
Rule::in(config('core.server_providers')),
|
||||||
Rule::notIn('custom'),
|
Rule::notIn('custom'),
|
||||||
],
|
],
|
||||||
];
|
])->validate();
|
||||||
|
|
||||||
return array_merge($rules, self::providerRules($input));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param array<string, mixed> $input
|
* @throws ValidationException
|
||||||
* @return array<string, array<string>>
|
|
||||||
*/
|
*/
|
||||||
private static function providerRules(array $input): array
|
private function validateProvider(ServerProviderContract $provider, array $input): void
|
||||||
{
|
{
|
||||||
if (! isset($input['provider'])) {
|
Validator::make($input, $provider->credentialValidationRules($input))->validate();
|
||||||
return [];
|
|
||||||
}
|
|
||||||
|
|
||||||
return self::getProvider($input['provider'])->credentialValidationRules($input);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,16 +3,17 @@
|
|||||||
namespace App\Actions\ServerProvider;
|
namespace App\Actions\ServerProvider;
|
||||||
|
|
||||||
use App\Models\ServerProvider;
|
use App\Models\ServerProvider;
|
||||||
use Illuminate\Validation\ValidationException;
|
use Exception;
|
||||||
|
|
||||||
class DeleteServerProvider
|
class DeleteServerProvider
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @throws Exception
|
||||||
|
*/
|
||||||
public function delete(ServerProvider $serverProvider): void
|
public function delete(ServerProvider $serverProvider): void
|
||||||
{
|
{
|
||||||
if ($serverProvider->servers()->exists()) {
|
if ($serverProvider->servers()->exists()) {
|
||||||
throw ValidationException::withMessages([
|
throw new Exception('This server provider is being used by a server.');
|
||||||
'provider' => 'This server provider is being used by a server.',
|
|
||||||
]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$serverProvider->delete();
|
$serverProvider->delete();
|
||||||
|
@ -2,33 +2,33 @@
|
|||||||
|
|
||||||
namespace App\Actions\ServerProvider;
|
namespace App\Actions\ServerProvider;
|
||||||
|
|
||||||
use App\Models\Project;
|
|
||||||
use App\Models\ServerProvider;
|
use App\Models\ServerProvider;
|
||||||
|
use App\Models\User;
|
||||||
|
use Illuminate\Support\Facades\Validator;
|
||||||
|
use Illuminate\Validation\ValidationException;
|
||||||
|
|
||||||
class EditServerProvider
|
class EditServerProvider
|
||||||
{
|
{
|
||||||
/**
|
public function edit(ServerProvider $serverProvider, User $user, array $input): void
|
||||||
* @param array<string, mixed> $input
|
|
||||||
*/
|
|
||||||
public function edit(ServerProvider $serverProvider, Project $project, array $input): ServerProvider
|
|
||||||
{
|
{
|
||||||
|
$this->validate($input);
|
||||||
|
|
||||||
$serverProvider->profile = $input['name'];
|
$serverProvider->profile = $input['name'];
|
||||||
$serverProvider->project_id = isset($input['global']) && $input['global'] ? null : $project->id;
|
$serverProvider->project_id = isset($input['global']) && $input['global'] ? null : $user->current_project_id;
|
||||||
|
|
||||||
$serverProvider->save();
|
$serverProvider->save();
|
||||||
|
|
||||||
return $serverProvider;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return array<string, array<string>>
|
* @throws ValidationException
|
||||||
*/
|
*/
|
||||||
public static function rules(): array
|
private function validate(array $input): void
|
||||||
{
|
{
|
||||||
return [
|
$rules = [
|
||||||
'name' => [
|
'name' => [
|
||||||
'required',
|
'required',
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
Validator::make($input, $rules)->validate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -10,12 +10,9 @@
|
|||||||
|
|
||||||
class Install
|
class Install
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @param array<string, mixed> $input
|
|
||||||
*/
|
|
||||||
public function install(Server $server, array $input): Service
|
public function install(Server $server, array $input): Service
|
||||||
{
|
{
|
||||||
$input['type'] = config('core.service_types')[$input['name']];
|
$this->validate($server, $input);
|
||||||
|
|
||||||
$service = new Service([
|
$service = new Service([
|
||||||
'server_id' => $server->id,
|
'server_id' => $server->id,
|
||||||
@ -31,11 +28,11 @@ public function install(Server $server, array $input): Service
|
|||||||
|
|
||||||
$service->save();
|
$service->save();
|
||||||
|
|
||||||
dispatch(function () use ($service): void {
|
dispatch(function () use ($service) {
|
||||||
$service->handler()->install();
|
$service->handler()->install();
|
||||||
$service->status = ServiceStatus::READY;
|
$service->status = ServiceStatus::READY;
|
||||||
$service->save();
|
$service->save();
|
||||||
})->catch(function () use ($service): void {
|
})->catch(function () use ($service) {
|
||||||
$service->status = ServiceStatus::INSTALLATION_FAILED;
|
$service->status = ServiceStatus::INSTALLATION_FAILED;
|
||||||
$service->save();
|
$service->save();
|
||||||
})->onConnection('ssh');
|
})->onConnection('ssh');
|
||||||
@ -43,25 +40,18 @@ public function install(Server $server, array $input): Service
|
|||||||
return $service;
|
return $service;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
private function validate(Server $server, array $input): void
|
||||||
* @param array<string, mixed> $input
|
|
||||||
* @return array<string, array<int, mixed>>
|
|
||||||
*/
|
|
||||||
public static function rules(array $input): array
|
|
||||||
{
|
{
|
||||||
$rules = [
|
Validator::make($input, [
|
||||||
|
'type' => [
|
||||||
|
'required',
|
||||||
|
Rule::in(config('core.service_types')),
|
||||||
|
],
|
||||||
'name' => [
|
'name' => [
|
||||||
'required',
|
'required',
|
||||||
Rule::in(array_keys(config('core.service_types'))),
|
Rule::in(array_keys(config('core.service_types'))),
|
||||||
],
|
],
|
||||||
'version' => [
|
'version' => 'required',
|
||||||
'required',
|
])->validate();
|
||||||
],
|
|
||||||
];
|
|
||||||
if (isset($input['name'])) {
|
|
||||||
$rules['version'][] = Rule::in(config("core.service_versions.{$input['name']}"));
|
|
||||||
}
|
|
||||||
|
|
||||||
return $rules;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -11,7 +11,7 @@ public function start(Service $service): void
|
|||||||
{
|
{
|
||||||
$service->status = ServiceStatus::STARTING;
|
$service->status = ServiceStatus::STARTING;
|
||||||
$service->save();
|
$service->save();
|
||||||
dispatch(function () use ($service): void {
|
dispatch(function () use ($service) {
|
||||||
$status = $service->server->systemd()->start($service->unit);
|
$status = $service->server->systemd()->start($service->unit);
|
||||||
if (str($status)->contains('Active: active')) {
|
if (str($status)->contains('Active: active')) {
|
||||||
$service->status = ServiceStatus::READY;
|
$service->status = ServiceStatus::READY;
|
||||||
@ -26,7 +26,7 @@ public function stop(Service $service): void
|
|||||||
{
|
{
|
||||||
$service->status = ServiceStatus::STOPPING;
|
$service->status = ServiceStatus::STOPPING;
|
||||||
$service->save();
|
$service->save();
|
||||||
dispatch(function () use ($service): void {
|
dispatch(function () use ($service) {
|
||||||
$status = $service->server->systemd()->stop($service->unit);
|
$status = $service->server->systemd()->stop($service->unit);
|
||||||
if (str($status)->contains('Active: inactive')) {
|
if (str($status)->contains('Active: inactive')) {
|
||||||
$service->status = ServiceStatus::STOPPED;
|
$service->status = ServiceStatus::STOPPED;
|
||||||
@ -41,7 +41,7 @@ public function restart(Service $service): void
|
|||||||
{
|
{
|
||||||
$service->status = ServiceStatus::RESTARTING;
|
$service->status = ServiceStatus::RESTARTING;
|
||||||
$service->save();
|
$service->save();
|
||||||
dispatch(function () use ($service): void {
|
dispatch(function () use ($service) {
|
||||||
$status = $service->server->systemd()->restart($service->unit);
|
$status = $service->server->systemd()->restart($service->unit);
|
||||||
if (str($status)->contains('Active: active')) {
|
if (str($status)->contains('Active: active')) {
|
||||||
$service->status = ServiceStatus::READY;
|
$service->status = ServiceStatus::READY;
|
||||||
@ -56,7 +56,7 @@ public function enable(Service $service): void
|
|||||||
{
|
{
|
||||||
$service->status = ServiceStatus::ENABLING;
|
$service->status = ServiceStatus::ENABLING;
|
||||||
$service->save();
|
$service->save();
|
||||||
dispatch(function () use ($service): void {
|
dispatch(function () use ($service) {
|
||||||
$status = $service->server->systemd()->enable($service->unit);
|
$status = $service->server->systemd()->enable($service->unit);
|
||||||
if (str($status)->contains('Active: active')) {
|
if (str($status)->contains('Active: active')) {
|
||||||
$service->status = ServiceStatus::READY;
|
$service->status = ServiceStatus::READY;
|
||||||
@ -71,7 +71,7 @@ public function disable(Service $service): void
|
|||||||
{
|
{
|
||||||
$service->status = ServiceStatus::DISABLING;
|
$service->status = ServiceStatus::DISABLING;
|
||||||
$service->save();
|
$service->save();
|
||||||
dispatch(function () use ($service): void {
|
dispatch(function () use ($service) {
|
||||||
$status = $service->server->systemd()->disable($service->unit);
|
$status = $service->server->systemd()->disable($service->unit);
|
||||||
if (str($status)->contains('Active: inactive')) {
|
if (str($status)->contains('Active: inactive')) {
|
||||||
$service->status = ServiceStatus::DISABLED;
|
$service->status = ServiceStatus::DISABLED;
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user