Programmatic control of your cloud infrastructure via OpenStack API
RamNode Cloud is built on OpenStack, providing full API access for programmatic management of your cloud resources. This enables automation, scripting, and integration with third-party tools.
✓ Recommended: Always use Identity API v3 for the latest features and better security.
Ubuntu/Debian:
apt update\napt install python3-openstackclientCentOS/Rocky/Alma:
yum install python3-openstackclientmacOS:
pip3 install python-openstackclient# Source the RC file
source ~/Downloads/openrc.sh
# You'll be prompted for your password
# Enter your Cloud Control Panel passwordList Instances
openstack server listCreate Instance
openstack server create \
--flavor m1.small \
--image "Ubuntu 22.04" \
--key-name my-key \
--network public \
my-instance-nameList Flavors (Plans)
openstack flavor listList Images
openstack image listCreate Snapshot
openstack server image create --name my-snapshot my-instance-nameManage Floating IPs
# List floating IPs
openstack floating ip list
# Create floating IP
openstack floating ip create public
# Assign to instance
openstack server add floating ip my-instance-name 198.51.100.10You can also interact directly with the REST API for custom integrations.
curl -X POST https://cloud.ramnode.com:5000/v3/auth/tokens \
-H "Content-Type: application/json" \
-d '{
"auth": {
"identity": {
"methods": ["password"],
"password": {
"user": {
"name": "your-email",
"domain": {"name": "Default"},
"password": "your-password"
}
}
},
"scope": {
"project": {
"name": "your-project",
"domain": {"name": "Default"}
}
}
}
}'Popular tools that work with OpenStack:
Infrastructure as Code
Configuration management and orchestration
OpenStack SDK for Python
Gophercloud for Go applications
terraform {
required_providers {
openstack = {
source = "terraform-provider-openstack/openstack"
}
}
}
provider "openstack" {
auth_url = "https://cloud.ramnode.com:5000/v3"
user_name = "your-email"
password = "your-password"
tenant_name = "your-project"
domain_name = "Default"
}
resource "openstack_compute_instance_v2" "basic" {
name = "basic-instance"
image_name = "Ubuntu 22.04"
flavor_name = "m1.small"
key_pair = "my-key"
security_groups = ["default"]
}chmod 600 openrc.sh📚 Documentation: For complete API documentation, visit the OpenStack API Documentation. Our implementation is fully compatible with standard OpenStack APIs.