Skip to main content

REST API Reference

The Okustera Cloud Platform provides a comprehensive, RESTful OpenAPI 3.1 interface for programmatic management of all cloud infrastructure, developer platform, AI, and security resources.

Base Production Endpoint:

https://portal.okustera.com/api/v1

Authentication​

All API requests require authentication via an HTTP Authorization header containing an Okustera API Bearer token:

curl -H "Authorization: Bearer <YOUR_API_TOKEN>" \
-H "Content-Type: application/json" \
https://portal.okustera.com/api/v1/auth/me

Tokens can be generated from the Okustera Cloud Portal under User Settings → API Tokens.


API Endpoints Overview​

1. Authentication & Security (2FA)​

HTTP Method & PathDescription
POST /api/v1/auth/loginAuthenticate user credentials and optional TOTP code; receive JWT access token.
GET /api/v1/auth/meRetrieve profile and project membership of current caller.
POST /api/v1/auth/2fa/setupGenerate a new TOTP secret key and QR code provisioning URI.
POST /api/v1/auth/2fa/activateSubmit initial 6-digit verification code to activate 2FA on user account.
POST /api/v1/auth/2fa/verifyValidate a 6-digit code during authentication challenge.
POST /api/v1/auth/2fa/disableDeactivate 2FA by providing a valid verification code.

2. Compute Instances​

HTTP Method & PathDescription
GET /api/v1/compute/instancesList all virtual machine instances in the current tenant project.
POST /api/v1/compute/instancesLaunch a new VM instance with flavor, image, and network.
GET /api/v1/compute/instances/{id}Inspect instance state, IP addresses, and hardware flavor.
DELETE /api/v1/compute/instances/{id}Terminate and delete an instance.
POST /api/v1/compute/instances/{id}/actionExecute lifecycle action (reboot, start, stop, pause, unpause, rebuild).
GET /api/v1/compute/instances/{id}/consoleRetrieve interactive VNC/SPICE console URL for out-of-band access.
GET /api/v1/compute/instances/{id}/console-logRetrieve live serial kernel boot logs.
GET /api/v1/compute/flavorsList available compute resource flavors.

3. VPC Networking & Security Groups​

HTTP Method & PathDescription
GET /api/v1/network/networksList tenant private VPC networks and subnets.
POST /api/v1/network/networksCreate a new private network with custom CIDR and DHCP.
DELETE /api/v1/network/networks/{id}Delete a private network.
GET /api/v1/network/routersList active virtual routers and gateway interfaces.
GET /api/v1/network/security-groupsList stateful firewall security groups and rules.
POST /api/v1/network/security-groupsCreate a new security group.
POST /api/v1/network/security-groups/{id}/rulesAdd ingress/egress firewall rule (protocol, port range, CIDR).
DELETE /api/v1/network/security-groups/rules/{rule_id}Remove a firewall rule.
GET /api/v1/network/floating-ipsList allocated floating public IP addresses.
POST /api/v1/network/floating-ipsAllocate a new public floating IP from the external pool.
POST /api/v1/network/floating-ips/{id}/associateBind floating IP to a compute instance or load balancer port.
POST /api/v1/network/floating-ips/{id}/disassociateUnbind floating IP from a port.
DELETE /api/v1/network/floating-ips/{id}Release floating IP back to the external pool.
GET /api/v1/network/portsList virtual network interfaces, MAC addresses, and IP bindings.

4. Load Balancers & Authoritative DNS​

HTTP Method & PathDescription
GET /api/v1/octavia/loadbalancersList active managed load balancers and provisioning status.
POST /api/v1/octavia/loadbalancersProvision a new high-availability load balancer with dedicated VIP.
GET /api/v1/octavia/loadbalancers/{id}Inspect load balancer status and VIP details.
DELETE /api/v1/octavia/loadbalancers/{id}Decommission and delete a load balancer.
GET /api/v1/octavia/listenersList listeners associated with tenant load balancers.
GET /api/v1/octavia/poolsList backend pools and member health states.
GET /api/v1/networking/dns/zonesList authoritative DNS zones in the current tenant project.
POST /api/v1/networking/dns/zonesCreate a new authoritative DNS zone (PRIMARY or SECONDARY).
GET /api/v1/networking/dns/zones/{zone_id}Inspect DNS zone metadata, SOA serial, nameservers, and recordsets.
PATCH /api/v1/networking/dns/zones/{zone_id}Update DNS zone email, default TTL, description, or VPC association.
DELETE /api/v1/networking/dns/zones/{zone_id}Delete an authoritative DNS zone.
GET /api/v1/networking/dns/zones/{zone_id}/recordsetsList recordsets in a DNS zone.
POST /api/v1/networking/dns/zones/{zone_id}/recordsetsCreate or update a DNS recordset (A, AAAA, CNAME, MX, TXT, SRV, PTR, NS, CAA).
PATCH /api/v1/networking/dns/zones/{zone_id}/recordsets/{recordset_id}Update recordset values, TTL, or description.
DELETE /api/v1/networking/dns/zones/{zone_id}/recordsets/{recordset_id}Delete a DNS recordset from a zone.
POST /api/v1/networking/dns/zones/{zone_id}/bind-vip1-click bind a domain/subdomain to a Load Balancer VIP with automatic reverse DNS (PTR).

5. Persistent Block Storage​

HTTP Method & PathDescription
GET /api/v1/storage/volumesList persistent block storage volumes in the current tenant project.
POST /api/v1/storage/volumesProvision a new persistent volume (blank, from image, or from snapshot).
GET /api/v1/storage/volumes/{id}Retrieve volume status, size, and instance attachments.
DELETE /api/v1/storage/volumes/{id}Delete an unattached volume.
POST /api/v1/storage/volumes/{id}/attachAttach a volume to a running compute instance.
POST /api/v1/storage/volumes/{id}/detachDetach a volume from an instance.
GET /api/v1/storage/snapshotsList point-in-time volume snapshots.
POST /api/v1/storage/snapshotsCreate an instantaneous copy-on-write volume snapshot.

6. S3-Compatible Object Storage​

HTTP Method & PathDescription
GET /api/v1/storage/credentialsList active S3 access keys for the tenant project.
POST /api/v1/storage/credentialsGenerate a new S3 Access Key / Secret Key pair.
GET /api/v1/storage/bucketsList S3-compatible object storage buckets.
POST /api/v1/storage/bucketsCreate a new S3 bucket with quota and ACL (private, public-read).
DELETE /api/v1/storage/buckets/{name}Delete an empty S3 bucket.
GET /api/v1/storage/buckets/{name}/objectsList objects in a bucket with optional prefix filtering.
POST /api/v1/storage/buckets/{name}/objects/presignGenerate a temporary presigned download or upload URL.
DELETE /api/v1/storage/buckets/{name}/objects/{key}Delete an object from a bucket.

7. Operating System Images​

HTTP Method & PathDescription
GET /api/v1/glance/imagesList certified public and custom tenant images.
POST /api/v1/glance/imagesRegister and upload a custom image (QCOW2, RAW, ISO).
GET /api/v1/glance/images/{id}Retrieve image metadata, checksum, and status.
DELETE /api/v1/glance/images/{id}Remove a custom image from the catalog.

8. Secrets Vault & KMS​

HTTP Method & PathDescription
GET /api/v1/barbican/secretsList secrets in the current tenant project.
POST /api/v1/barbican/secretsStore a new secret (passphrase, symmetric key, certificate, or opaque payload).
GET /api/v1/barbican/secrets/{id}/payloadRetrieve a decrypted secret payload.
DELETE /api/v1/barbican/secrets/{id}Permanently delete a secret from the vault.

9. Managed Kubernetes Service​

HTTP Method & PathDescription
GET /api/v1/kubernetes/clustersList all managed Kubernetes clusters for the tenant.
POST /api/v1/kubernetes/clustersProvision a new upstream Kubernetes cluster.
GET /api/v1/kubernetes/clusters/{id}Inspect cluster health, API endpoint, and node count.
POST /api/v1/kubernetes/clusters/{id}/scaleScale worker node pool count dynamically.
GET /api/v1/kubernetes/clusters/{id}/kubeconfigDownload cluster kubeconfig.
DELETE /api/v1/kubernetes/clusters/{id}Terminate a cluster and delete associated compute resources.
GET /api/v1/kubernetes/cluster-templatesList certified upstream Kubernetes templates.

10. Managed Databases (DBaaS)​

HTTP Method & PathDescription
GET /api/v1/dbaas/clustersList managed clusters across all engines (PostgreSQL, MySQL, MongoDB, Valkey, Qdrant, ClickHouse).
POST /api/v1/dbaas/postgresProvision a high-availability Managed PostgreSQL cluster.
GET /api/v1/dbaas/postgres/{ns}/{name}Retrieve details for a PostgreSQL cluster.
GET /api/v1/dbaas/valkeyList active Managed Valkey clusters.
POST /api/v1/dbaas/valkeyProvision a high-availability Managed Valkey cluster.
GET /api/v1/dbaas/qdrantList tenant-isolated Managed Qdrant Vector DB clusters.
POST /api/v1/dbaas/qdrantProvision a tenant-isolated Qdrant Vector DB cluster with KMS-managed API key authentication.
GET /api/v1/dbaas/clickhouseList tenant Managed ClickHouse analytical OLAP clusters.
POST /api/v1/dbaas/clickhouseProvision a Managed ClickHouse columnar OLAP cluster on persistent NVMe storage.
POST /api/v1/dbaas/mysqlProvision a high-availability Managed MySQL cluster.
POST /api/v1/dbaas/mongodbProvision a high-availability Managed MongoDB replica set.
GET /api/v1/dbaas/catalog/versionsList certified database engine versions supported for provisioning and upgrades.
GET /api/v1/dbaas/clusters/{engine}/{ns}/{name}/upgrade-candidatesDiscover certified upgrade targets and upgrade strategy (rolling vs. Blue-Green) for a running cluster.
GET /api/v1/dbaas/clusters/{engine}/{ns}/{name}/preflightRun automated pre-flight readiness checks prior to triggering an upgrade.
POST /api/v1/dbaas/clusters/{engine}/{ns}/{name}/upgradeDispatch an automated zero-downtime rolling or Blue-Green upgrade job with automatic rollback protection.
GET /api/v1/dbaas/jobsList active and historical database upgrade jobs and rollout progress.
GET /api/v1/dbaas/jobs/{job_id}Query real-time rollout progress (stage_progress) and diagnostic logs for an upgrade job.
POST /api/v1/dbaas/jobs/{job_id}/rollbackRequest manual rollback to restore the previous certified database engine version.

11. AI Inference PaaS, Model Foundry & Managed Agent Sandboxes​

HTTP Method & PathDescription
GET /api/v1/ai/statusRetrieve operational AI inference, gateway guardrails, and vector RAG health status.
GET /api/v1/ai/modelsList active foundation models available for inference.
POST /api/v1/ai/chat/completionsOpenAI-compatible chat completions with unbuffered SSE streaming and prompt-injection guardrails.
GET /api/v1/ai/foundry/catalogBrowse curated Model Foundry models, capabilities, and context windows.
POST /api/v1/ai/foundry/oci-packagePackage fine-tuned weights or LoRA adapters as immutable OCI artifacts in the Universal Artifact Registry.
GET /api/v1/ai/deploymentsList Dynamic Multi-LoRA model serving deployments and attached adapters.
GET /api/v1/ai/gpu-profilesList available dedicated and fractional GPU acceleration tiers.
GET /api/v1/ai/batch/jobsList asynchronous frontier batch inference jobs.
POST /api/v1/ai/batch/jobsSubmit an asynchronous frontier batch inference job.
GET /api/v1/ai/rag/collectionsList and inspect managed vector RAG knowledge base collections.
POST /api/v1/ai/rag/collectionsCreate and index a new vector RAG document collection.
GET /api/v1/ai/sandbox-catalogRetrieve available Managed Agent Sandbox toolchain profiles and security policies.
GET /api/v1/ai/sandboxesList tenant Managed Agent Sandboxes.
POST /api/v1/ai/sandboxesProvision a new isolated Managed Agent Sandbox with persistent /workspace storage and skill mounts.
POST /api/v1/ai/sandboxes/{id}/executeExecute a bounded non-root command inside a sandbox with toolchain allowlist validation.
GET /api/v1/ai/sandboxes/{id}/filesList or read files inside the sandbox /workspace volume.
PUT /api/v1/ai/sandboxes/{id}/filesWrite or update a file inside the sandbox /workspace volume.
POST /api/v1/ai/mcp/tokensMint a short-lived (<= 15m) audience-scoped JWT token for MCP server access backed by a KMS secret_ref.
GET /api/v1/ai/skillsList available system and project-scoped AI agent skills.
POST /api/v1/ai/skillsRegister a custom project-scoped SKILL.md definition.

12. API Gateway & Ingress​

HTTP Method & PathDescription
GET /api/v1/gateway/routesList all managed API Gateway ingress routing rules.
POST /api/v1/gateway/routesCreate or update a route with optional canary traffic splitting, WAF, CORS, and rate limiting.
GET /api/v1/gateway/routes/{id}/manifestExport declarative route manifest configuration.
GET /api/v1/gateway/certificatesList SSL/TLS certificates registered on the gateway.
POST /api/v1/gateway/certificatesRegister a new SSL/TLS certificate or request an automated Let's Encrypt certificate.

13. Serverless Functions & Shared Layers​

HTTP Method & PathDescription
GET /api/v1/functions/templatesList certified language runtime templates and lifecycle statuses (active, deprecated).
GET /api/v1/functionsList active serverless functions.
POST /api/v1/functionsDeploy a sandboxed serverless function.
POST /api/v1/functions/{id}/invokeInvoke a serverless function synchronously or asynchronously.
GET /api/v1/functions/{id}/logsStream live function execution logs.
GET /api/v1/layersList available shared dependency layers.
POST /api/v1/layersCreate a new shared dependency layer definition.
POST /api/v1/layers/{id}/versionsPublish an immutable layer version with package requirements or archives.
POST /api/v1/layers/{id}/permissionsGrant cross-project layer sharing permissions.

14. Messaging & Event Streaming (RabbitMQ & Apache Kafka)​

HTTP Method & PathDescription
GET /api/v1/messaging/clustersList managed RabbitMQ clusters in the tenant project.
POST /api/v1/messaging/clustersProvision a new high-availability RabbitMQ quorum cluster.
GET /api/v1/messaging/clusters/{namespace}/{name}Inspect RabbitMQ AMQP/Management endpoints and credentials.
DELETE /api/v1/messaging/clusters/{namespace}/{name}Terminate and delete a RabbitMQ cluster.
GET /api/v1/messaging/kafkaList managed Apache Kafka (KRaft) clusters in the tenant project.
POST /api/v1/messaging/kafkaProvision a ZooKeeper-less Apache Kafka KRaft event streaming cluster.
GET /api/v1/messaging/kafka/{namespace}/{name}Inspect Kafka bootstrap endpoints (:9092 / :9093), partitions, replication factor, and retention window.
DELETE /api/v1/messaging/kafka/{namespace}/{name}Terminate and delete an Apache Kafka cluster.

15. Workflows & Orchestration (Managed Apache Airflow)​

HTTP Method & PathDescription
GET /api/v1/workflows/statusRetrieve operational health of the managed Airflow workspace.
GET /api/v1/workflows/dagsList workflow DAGs accessible to the current tenant.
PATCH /api/v1/workflows/dags/{dag_id}Pause or unpause a workflow DAG.
POST /api/v1/workflows/dags/{dag_id}/triggerTrigger immediate DAG execution with optional JSON parameters.
GET /api/v1/workflows/dags/{dag_id}/runsList historical and active DAG runs with state and duration.
GET /api/v1/workflows/dags/{dag_id}/runs/{run_id}/tasks/{task_id}/logsRetrieve streaming task execution logs.
POST /api/v1/workflows/dags/uploadUpload a Python DAG file with automatic scheduler synchronization.
DELETE /api/v1/workflows/dags/{dag_id}Delete a DAG file and purge scheduler metadata.

16. Observability & Telemetry​

HTTP Method & PathDescription
GET /api/v1/observability/dashboardRetrieve tenant-scoped telemetry summary.
GET /api/v1/observability/logsQuery centralized log streams with LogQL expressions and time ranges.
GET /api/v1/observability/timeseries/{metric_type}Retrieve historical time-series data for CPU, RAM, Network, or Disk.
GET /api/v1/grafana/infoRetrieve tenant Grafana workspace URL and SSO endpoint.

17. FinOps, Billing & Payments​

HTTP Method & PathDescription
GET /api/v1/billing/overviewRetrieve real-time metering, budget limit, and forecasted spend.
GET /api/v1/billing/breakdownItemized cost breakdown across compute, storage, databases, and AI usage.
GET /api/v1/billing/invoicesHistorical billing statements and line items.
GET /api/v1/billing/payment-methodsList configured customer payment cards.
POST /api/v1/billing/payment-methodsAdd and tokenize a new payment method via Stripe.
POST /api/v1/billing/payment-methods/{id}/defaultSet a card as the default payment method.
POST /api/v1/billing/checkout-sessionGenerate a secure Stripe payment checkout session.
GET /api/v1/billing/budgetRetrieve current budget limits and alert thresholds.
PUT /api/v1/billing/budgetUpdate monthly budget limit and notification thresholds.
GET /api/v1/billing/pricingRetrieve the active rate card and unit prices.
GET /api/v1/finops/tenant/{tenant_id}/summaryRetrieve multi-region tenant FinOps showback summary.

18. Identity & Policy Simulation​

HTTP Method & PathDescription
GET /api/v1/identity/usersList users in the current project.
POST /api/v1/identity/usersCreate a user account with initial credentials.
GET /api/v1/identity/rolesList available IAM roles (admin, member, reader).
POST /api/v1/identity/role-assignmentsAssign a role to a user within a project.
DELETE /api/v1/identity/role-assignmentsRevoke a user's role assignment.
POST /api/v1/iam/simulateEvaluate whether an identity has permission to invoke an endpoint.
POST /api/v1/iam/sts/assume-roleExchange a workload identity token for short-lived credentials.

19. Service Catalog & Inventory​

HTTP Method & PathDescription
GET /api/v1/services/servicesList available cloud catalog services and subscription statuses.
GET /api/v1/inventory/inventoryRetrieve unified inventory of all compute, Kubernetes, database, and network resources.

20. Tenant Quotas & Governance​

HTTP Method & PathDescription
GET /api/v1/tenant/quotaQuery live resource allocations, usage, and available balances across quota dimensions.

Standard Error Response Format​

All failed API responses adhere to the standard JSON error schema:

{
"error": {
"code": "RESOURCE_NOT_FOUND",
"message": "Cluster with ID 'k8s-prod-01' was not found in tenant 'tenant-production'.",
"status": 404,
"timestamp": "2026-09-28T12:00:00Z"
}
}