API Reference
Complete endpoint reference for the Infrastructure Service. All endpoints require JWT authentication. The service runs on port 8089.
Infrastructure Provisioning
| Method | Path | Description |
|---|---|---|
POST | /api/v1/infrastructure/tenants/:tenantId/provision | Provision tenant infrastructure |
GET | /api/v1/infrastructure/tenants/:tenantId | Get infrastructure state |
PUT | /api/v1/infrastructure/tenants/:tenantId | Update infrastructure |
DELETE | /api/v1/infrastructure/tenants/:tenantId | Deprovision infrastructure |
Drift Detection
| Method | Path | Description |
|---|---|---|
POST | /api/v1/infrastructure/tenants/:tenantId/drift-check | Trigger drift detection |
GET | /api/v1/infrastructure/tenants/:tenantId/drift-report | Get drift report |
Credentials
| Method | Path | Description |
|---|---|---|
POST | /api/v1/infrastructure/credentials | Register credential |
GET | /api/v1/infrastructure/credentials | List credentials |
GET | /api/v1/infrastructure/credentials/:credentialId | Get credential |
PUT | /api/v1/infrastructure/credentials/:credentialId | Update credential |
DELETE | /api/v1/infrastructure/credentials/:credentialId | Delete credential |
POST | /api/v1/infrastructure/credentials/:credentialId/rotate | Rotate credential |
Ingress Management
| Method | Path | Description |
|---|---|---|
POST | /api/v1/infrastructure/ingress/tenants/:tenantId/controller | Deploy ingress controller |
POST | /api/v1/infrastructure/ingress/tenants/:tenantId/dns | Create DNS zone |
POST | /api/v1/infrastructure/ingress/tenants/:tenantId/ingress | Create tenant ingress |
GET | /api/v1/infrastructure/ingress/tenants/:tenantId | Get ingress status |
Service Management
| Method | Path | Description |
|---|---|---|
POST | /api/v1/infrastructure/services/tenants/:tenantId/deploy | Deploy a service |
GET | /api/v1/infrastructure/services/tenants/:tenantId | List tenant services |
GET | /api/v1/infrastructure/services/tenants/:tenantId/:serviceName | Get service status |
POST | /api/v1/infrastructure/services/tenants/:tenantId/:serviceName/scale | Scale a service |
Topology
| Method | Path | Description |
|---|---|---|
GET | /api/v1/infrastructure/topology | Get full platform topology |
GET | /api/v1/infrastructure/topology/tenants/:tenantId | Get tenant topology |
Terraform State
| Method | Path | Description |
|---|---|---|
GET | /api/v1/infrastructure/terraform/tenants/:tenantId/state | Get state info |
POST | /api/v1/infrastructure/terraform/tenants/:tenantId/state/lock | Lock state |
POST | /api/v1/infrastructure/terraform/tenants/:tenantId/state/unlock | Unlock state |
Artifacts
| Method | Path | Description |
|---|---|---|
GET | /api/v1/infrastructure/artifacts | List platform artifacts |
GET | /api/v1/infrastructure/artifacts/:name | Get artifact details |
GET | /api/v1/infrastructure/artifacts/:name/versions | List artifact versions |