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
Add SSH Key
name(string, required): Key nameprivateKey(file, optional): Private key fileprivateKeyContent(string, optional): Private key content
Node Management
List All Nodes
Add a New Node
name(string, required): Unique node namehost(string, required): Hostname or IP addressuser(string, required): SSH usernameport(string, optional): SSH port (default: 22)password(string, optional): SSH passwordansible_ssh_private_key_file(file, optional): SSH private keyprovider(string, optional): Cloud provider (AWS, Azure, GCP, DigitalOcean)location(string, optional): Region/locationinstance_type(string, optional): Instance type/size
Get Node Details
nodeName(path): Name of the node
Cloud Instance Management
Launch Cloud Instance
Terminate Instance
Restart Instance
Connection Management
Test Connection
host(string, required): Hostname or IPuser(string, required): SSH usernameport(string, optional): SSH portpassword(string, optional): SSH passwordansible_ssh_private_key_file(file, optional): SSH private key
Verify Node
Execute Command
Resource Management
Add Firewall Rule
Create Volume
Discovery & Exploration
Discover Cloud Instances
credentials(string, required): JSON string with provider credentialssaveCredentials(string, optional): Whether to save credentialscredentialName(string, optional): Name for saved credentials
Get Instance Types
provider(path): Cloud provider (AWS, Azure, GCP, DigitalOcean)region(path): Cloud region
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
