| Action | Command |
|---|---|
| Generate Secret Key | node -e "console.log(require('crypto').randomBytes(32).toString('hex'))" |
| Generate Encryption Key | node -e "console.log(require('crypto').randomBytes(32).toString('base64'))" |
| Start Frontend | cd frontend && npm run dev |
| Start Backend | cd backend && npm run dev |
| Create Migration | npx sequelize-cli migration:generate --name migration-file-name-here-in-this-format |
| Run Migration | npx sequelize-cli db:migrate |
| Create Seed | npx sequelize-cli seed:generate --name seeding-file-name-here-in-this-format |
| Run Seeding | npx sequelize-cli db:seed:all |
| Generate Host Key on Linux Server to store in inventories/1/host-key/trust | ssh-keygen -lf /etc/ssh/ssh_host_ed25519_key.pub -E sha256 |
Action Request Type Link Request Body HOME GEThttp://127.0.0.1:3100/ None
Action Request Type Link Request Body HEALTH GEThttp://127.0.0.1:3100/health/ None READINESS GEThttp://127.0.0.1:3100/health/ready None
Action Request Type Link Request Body LOGIN POSThttp://127.0.0.1:3100/api/v1/auth/ JSON LOGIN POSThttp://127.0.0.1:3100/api/v1/auth/login JSON LOGOUT POSThttp://127.0.0.1:3100/api/v1/auth/logout None REGISTER POSThttp://127.0.0.1:3100/api/v1/auth/register JSON FORGOT PASSWORD PUThttp://127.0.0.1:3100/api/v1/auth/forgot-password JSON RESET PASSWORD PUThttp://127.0.0.1:3100/api/v1/auth/reset-password JSON
Action Request Type Link Request Body LIST GEThttp://127.0.0.1:3100/api/v1/users None SELF VIEW GEThttp://127.0.0.1:3100/api/v1/users/self None VIEW GEThttp://127.0.0.1:3100/api/v1/users/4 None UPDATE PUThttp://127.0.0.1:3100/api/v1/users/4 JSON ENABLE PUThttp://127.0.0.1:3100/api/v1/users/4/enable None DISABLE PUThttp://127.0.0.1:3100/api/v1/users/4/disable None SET REMARKS PUThttp://127.0.0.1:3100/api/v1/users/4/remarks JSON SET TAGS PUThttp://127.0.0.1:3100/api/v1/users/4/tags JSON DELETE DELETEhttp://127.0.0.1:3100/api/v1/users/4 None REMOVE REMARKS DELETEhttp://127.0.0.1:3100/api/v1/users/4/remarks/remove None REMOVE TAGS DELETEhttp://127.0.0.1:3100/api/v1/users/4/tags/remove None UPDATE PERMISSIONS PUThttp://127.0.0.1:3100/api/v1/users/4/permissions JSON
Action Request Type Link Request Body LIST GEThttp://127.0.0.1:3100/api/v1/user-roles None VIEW GEThttp://127.0.0.1:3100/api/v1/user-roles/3 None CREATE POSThttp://127.0.0.1:3100/api/v1/user-roles JSON UPDATE PUThttp://127.0.0.1:3100/api/v1/user-roles/3 JSON ENABLE PUThttp://127.0.0.1:3100/api/v1/user-roles/3/enable None DISABLE PUThttp://127.0.0.1:3100/api/v1/user-roles/3/disable None SET REMARKS PUThttp://127.0.0.1:3100/api/v1/user-roles/3/remarks JSON SET TAGS PUThttp://127.0.0.1:3100/api/v1/user-roles/3/tags JSON DELETE DELETEhttp://127.0.0.1:3100/api/v1/user-roles/3 None REMOVE REMARKS DELETEhttp://127.0.0.1:3100/api/v1/user-roles/3/remarks/remove None REMOVE TAGS DELETEhttp://127.0.0.1:3100/api/v1/user-roles/3/tags/remove None
Action Request Type Link Request Body LIST GEThttp://127.0.0.1:3100/api/v1/credentials None VIEW GEThttp://127.0.0.1:3100/api/v1/credentials/1 None CREATE POSThttp://127.0.0.1:3100/api/v1/credentials JSON UPDATE PUThttp://127.0.0.1:3100/api/v1/credentials/1 JSON ENABLE PUThttp://127.0.0.1:3100/api/v1/credentials/1/enable None DISABLE PUThttp://127.0.0.1:3100/api/v1/credentials/1/disable None SET REMARKS PUThttp://127.0.0.1:3100/api/v1/credentials/1/remarks JSON SET TAGS PUThttp://127.0.0.1:3100/api/v1/credentials/1/tags JSON DELETE DELETEhttp://127.0.0.1:3100/api/v1/credentials/1 None REMOVE REMARKS DELETEhttp://127.0.0.1:3100/api/v1/credentials/1/remarks/remove None REMOVE TAGS DELETEhttp://127.0.0.1:3100/api/v1/credentials/1/tags/remove None
Action Request Type Link Request Body LIST GEThttp://127.0.0.1:3100/api/v1/command-executions None VIEW GEThttp://127.0.0.1:3100/api/v1/command-executions/1 None
Action Request Type Link Request Body LIST GEThttp://127.0.0.1:3100/api/v1/services None VIEW GEThttp://127.0.0.1:3100/api/v1/services/nginx None START SERVICE POSThttp://127.0.0.1:3100/api/v1/services/nginx/start None STOP SERVICE POSThttp://127.0.0.1:3100/api/v1/services/nginx/stop None RESTART SERVICE POSThttp://127.0.0.1:3100/api/v1/services/nginx/restart None ENABLE SERVICE POSThttp://127.0.0.1:3100/api/v1/services/nginx/enable None DISABLE SERVICE POSThttp://127.0.0.1:3100/api/v1/services/nginx/disable None
Action Request Type Link Request Body LIST GEThttp://127.0.0.1:3100/api/v1/processes None VIEW GEThttp://127.0.0.1:3100/api/v1/processes/295 None TERMINATE PROCESS POSThttp://127.0.0.1:3100/api/v1/services/295/terminate None FORCE KILL PROCESS POSThttp://127.0.0.1:3100/api/v1/services/295/kill None
Action Request Type Link Request Body LIST GEThttp://127.0.0.1:3100/api/v1/inventories/1/managed-services None VIEW GEThttp://127.0.0.1:3100/api/v1/inventories/1/managed-services/3 None CREATE POSThttp://127.0.0.1:3100/api/v1/inventories/1/managed-services JSON UPDATE PUThttp://127.0.0.1:3100/api/v1/inventories/1/managed-services/3 JSON DELETE DELETEhttp://127.0.0.1:3100/api/v1/inventories/1/managed-services/3 None
{
"userid": "testuser",
"email": "seconduser@gmail.com",
"password": "abc123",
"confirm_password": "abc123",
"name": "Sazad Ahemad",
"remarks": "Testign auth",
"user_role_id": 2,
"tags": [
"test", "auth", "user"
]
}
{
"userid": "connect2sazad",
"password": "abc123"
}
{
"name": "Test Role",
"slug": "test-role",
"permissions": [
"users.view",
"users.create",
"users.update",
"users.delete",
"user-roles.view",
"user-roles.create",
"user-roles.update",
"user-roles.delete"
]
}
{
"name": "Instance",
"hostname": "49.261.23.35",
"ssh_port": 22,
"ssh_username": "ubuntu",
"environment": "production",
"operating_system": "Ubuntu 22.04",
"description": "Test Instance"
}
{
"inventory_id": 1,
"username": "ubuntu",
"type": "password",
"secret": "abc123"
}
{
"command": "pwd"
}
{
"fingerprint": "THE_VERIFIED_SHA256_FINGERPRINT_HERE"
}
{
"individual_permissions": [
"inventories.list",
"inventories.read",
"services.list",
"services.read"
]
}
{
"service_name": "nginx",
"can_restart": true,
"can_start": true,
"can_stop": true,
"can_enable": true,
"can_disable": true
}
{
"name": "Check uptime",
"description": "Display server uptime and load averages",
"command": "uptime",
"timeout_seconds": 10
}
- Login to your server and run the below command:
ssh-keygen -lf /etc/ssh/ssh_host_ed25519_key.pub -E sha256- Copy the generated Key starting with
SHA256:...- Update the inventory host-key trust link below and update with the above json:
POSThttp://127.0.0.1:3100/api/v1/inventories/1/host-key/trust