Gozunga Cloud provides RESTful API endpoints for managing your cloud resources. This documentation is centered around our SiouxFalls region.
Our platform uses OpenStack at its foundation and thus existing tools that use OpenStack's APIs are compatible with our platform.
All API endpoints are accessible through the following base URL pattern:
https://cloud.fsd1.gozunga.com:<service-port>
Base URL: https://cloud.fsd1.gozunga.com:5000
Common Operations:
# Get auth token
POST /v3/auth/tokens
# List projects
GET /v3/projects
# List users
GET /v3/users
Base URL: https://cloud.fsd1.gozunga.com:8774
Common Operations:
# List servers
GET /v2.1/servers
# Create server
POST /v2.1/servers
# Get server details
GET /v2.1/servers/{server_id}
# List flavors
GET /v2.1/flavors
Base URL: https://cloud.fsd1.gozunga.com:8776
Common Operations:
# List volumes
GET /v3/volumes
# Create volume
POST /v3/volumes
# Create snapshot
POST /v3/snapshots
Base URL: https://cloud.fsd1.gozunga.com:9696
Common Operations:
# List networks
GET /v2.0/networks
# Create port
POST /v2.0/ports
# List security groups
GET /v2.0/security-groups
Base URL: https://cloud.fsd1.gozunga.com:9292
Common Operations:
# List images
GET /v2/images
# Create image
POST /v2/images
# Upload image data
PUT /v2/images/{image_id}/file
Base URL: https://files.fsd1.gozunga.com
Note: Use Signature v2 option if available
Related Information:
Configuring s3cmd with Gozunga Cloud Files
Using Cyberduck with Gozunga's Object Storage API
Content-Type: application/json
X-Auth-Token: {your_auth_token}
curl -X GET \
https://cloud.fsd1.gozunga.com:8774/v2.1/servers \
-H 'X-Auth-Token: your_token' \
-H 'Content-Type: application/json'
{
"servers": [
{
"id": "server-id",
"name": "server-name",
"status": "ACTIVE"
}
]
}
{
"error": {
"code": 404,
"message": "Resource not found",
"details": "Additional error details"
}
}
Headers for rate limit information:
X-Rate-Limit-Limit: 50
X-Rate-Limit-Remaining: 49
X-Rate-Limit-Reset: 1234567890
We recommend using official OpenStack SDKs using Application Credentials, available from Access → Application Credentials in our Cloud Management Portal:
First, install the required packages:
pip install python-openstacksdk
# Python OpenStack SDK
from openstack import connection
conn = connection.Connection(
auth_url='https://cloud.fsd1.gozunga.com:5000/v3',
project_name='your_project',
username='your_username',
password='your_password',
region_name='fsd1'
)
# List servers
servers = conn.compute.servers()