Introduction
Welcome to the CloudNexus API. This RESTful API allows you to manage your cloud infrastructure programmatically. The base URL for all requests is https://api.cloudnexus.io/v1.
Checks the status of the API service.
"status": "healthy",
"version": "2.4.1",
"uptime": 9999312,
"region": "us-east-1"
}
Authentication
All API requests must include a valid API key in the Authorization header using the Bearer scheme.
Refreshes a short-lived OAuth2 access token.
| Parameter | Type | Required | Description |
|---|---|---|---|
| refresh_token | string | Required | The refresh token obtained from the initial login. |
| client_id | string | Required | Your application's client ID. |
Create Instance
Provision a new virtual machine or container cluster. Supports custom images, SSH keys, and auto-scaling policies.
Creates a new compute instance with the specified configuration.
| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | Required | Human-readable name for the instance. |
| plan | string | Required | Instance plan: starter, professional, enterprise. |
| region | string | Required | Deployment region: us-east, eu-west, ap-south. |
| image_id | string | Optional | OS Image ID. Defaults to Ubuntu 22.04 LTS. |
| ssh_keys | array[string] | Optional | Array of SSH public keys to inject. |
| auto_scale | object | Optional | Auto-scaling configuration policy. |
List Buckets
Retrieve all object storage buckets associated with your account.
Returns a paginated list of storage buckets.
CDN Configuration
Manage your global content delivery network settings, cache rules, and edge locations.
Updates the global CDN configuration. Changes propagate to edge nodes within 60 seconds.
| Parameter | Type | Required | Description |
|---|---|---|---|
| cache_ttl | integer | Required | Cache Time-To-Live in seconds. Max 31536000 (1 year). |
| ssl_enabled | boolean | Optional | Enable automatic SSL/TLS termination. Defaults to true. |
| compression | string | Optional | Compression strategy: brotli, gzip, none. |