Skip to main content

Nodes API Reference

Manage cloud infrastructure, servers, and virtual machines through the Nodes API. This API provides comprehensive infrastructure management capabilities across multiple cloud providers.

Endpoints Overview

SSH Key Management

List SSH Keys

Response:

Add SSH Key

Request Body (multipart/form-data):
  • name (string, required): Key name
  • privateKey (file, optional): Private key file
  • privateKeyContent (string, optional): Private key content
Response:

Node Management

List All Nodes

Response:

Add a New Node

Request Body (multipart/form-data):
  • name (string, required): Unique node name
  • host (string, required): Hostname or IP address
  • user (string, required): SSH username
  • port (string, optional): SSH port (default: 22)
  • password (string, optional): SSH password
  • ansible_ssh_private_key_file (file, optional): SSH private key
  • provider (string, optional): Cloud provider (AWS, Azure, GCP, DigitalOcean)
  • location (string, optional): Region/location
  • instance_type (string, optional): Instance type/size
Response:

Get Node Details

Parameters:
  • nodeName (path): Name of the node
Response:

Cloud Instance Management

Launch Cloud Instance

Request Body (JSON):
Response:

Terminate Instance

Request Body (JSON):
Response:

Restart Instance

Request Body (JSON):
Response:

Connection Management

Test Connection

Request Body (multipart/form-data):
  • host (string, required): Hostname or IP
  • user (string, required): SSH username
  • port (string, optional): SSH port
  • password (string, optional): SSH password
  • ansible_ssh_private_key_file (file, optional): SSH private key
Response:

Verify Node

Request Body (JSON):
Response:

Execute Command

Request Body (JSON):
Response:

Resource Management

Add Firewall Rule

Request Body (JSON):
Response:

Create Volume

Request Body (JSON):
Response:

Discovery & Exploration

Discover Cloud Instances

Request Body (multipart/form-data):
  • credentials (string, required): JSON string with provider credentials
  • saveCredentials (string, optional): Whether to save credentials
  • credentialName (string, optional): Name for saved credentials
Response:

Get Instance Types

Parameters:
  • provider (path): Cloud provider (AWS, Azure, GCP, DigitalOcean)
  • region (path): Cloud region
Response:

Error Responses

Common error responses for Nodes API:

Best Practices

Security

  • Use SSH keys instead of passwords whenever possible
  • Limit SSH access to specific IP ranges
  • Regularly rotate SSH keys and credentials
  • Monitor failed connection attempts

Performance

  • Use connection pooling for frequent operations
  • Cache instance type information when possible
  • Implement proper error handling and retry logic
  • Monitor resource usage and API limits

Automation

  • Use infrastructure-as-code approaches
  • Implement proper state management
  • Set up monitoring and alerting
  • Document all operational procedures
For detailed schema definitions, refer to the OpenAPI specification published alongside the backend service.