Tenax API v1¶
JSON API of tenax-api, used by the web console and the tenax CLI (ADR 0012). This document is the source
of truth: the Go DTOs and the CLI client in internal/apiv1 are generated from it (make generate), and
tenax-api validates every request against it.
Authentication: behind Cloudflare Access every request carries an Access JWT (Cf-Access-Jwt-Assertion,
cf-access-token or the CF_Authorization cookie). Roles, lowest first: viewer, operator, restorer,
restorer-admin. Each operation names the role it needs in x-tenax-role.
Storage formats (manifest, inventory, tags, previews) are returned as stored (ADR 0006).
Servers¶
| Description | URL |
|---|---|
| /api/v1 | /api/v1 |
meta¶
GET /whoami¶
The authenticated principal and the server version
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
Responses
{
"principal": {
"id": "string",
"email": "string",
"groups": [
"string"
],
"role": "viewer",
"orgs": [
"string"
],
"projects": [
"string"
],
"service": true
},
"version": "string",
"externalURL": "string"
}
Refer to the common response description: Error.
GET /openapi.yaml¶
This document
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
Responses
Refer to the common response description: Error.
POST /stores/{name}/copy¶
Copy a store's backups to another store, as they are (ADR 0044)
Description
Copies every backup, stream segment and record of the store (or of the named targets) that the destination lacks, still encrypted: the destination must list the store's recipients. With dryRun nothing is copied and the answer says what would be. Otherwise the request is recorded in the store and a copy Job runs it within minutes; nothing is ever deleted from the destination.
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
name |
path | No |
Request body
Schema of the request body
{
"type": "object",
"additionalProperties": false,
"required": [
"to"
],
"properties": {
"to": {
"type": "string",
"description": "The destination BackupStore"
},
"targets": {
"type": "array",
"items": {
"type": "string"
},
"description": "Only these targets (namespace/name); all when empty"
},
"dryRun": {
"type": "boolean"
},
"reason": {
"type": "string",
"maxLength": 1000
}
}
}
Responses
{
"from": "string",
"to": "string",
"dryRun": true,
"objects": 32,
"bytes": 12,
"same": 222,
"message": "string"
}
Schema of the response body
{
"type": "object",
"required": [
"from",
"to",
"dryRun",
"objects",
"bytes",
"same",
"message"
],
"properties": {
"from": {
"type": "string"
},
"to": {
"type": "string"
},
"dryRun": {
"type": "boolean"
},
"objects": {
"type": "integer",
"format": "int64",
"description": "Objects to copy"
},
"bytes": {
"type": "integer",
"format": "int64"
},
"same": {
"type": "integer",
"format": "int64",
"description": "Objects the destination already has"
},
"message": {
"type": "string"
}
}
}
Refer to the common response description: Error.
GET /settings¶
Stores, policies and catalog state (read-only)
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
Responses
{
"stores": [
{
"name": "string",
"endpoint": "string",
"region": "string",
"bucket": "string",
"prefix": "string",
"readOnly": true,
"phase": "string",
"message": "string",
"replicas": [
{
"store": "string",
"copying": true,
"lastSync": "2022-04-13T15:42:05.901Z",
"behindSeconds": 219,
"pending": 292,
"pendingBytes": 83,
"deletesHeld": 53,
"writeFallback": true,
"message": "string"
}
]
}
],
"policies": [
{
"namespace": "string",
"name": "string",
"store": "string",
"schedule": "string",
"retention": "string",
"pitr": true,
"verify": "string"
}
],
"version": "string",
"catalog": {
"targets": 0,
"backups": 0,
"version": 73
},
"sandbox": {
"defaults": {
"cpu": "string",
"memory": "string",
"sizeLimit": "string",
"storageClass": "string"
},
"limits": null,
"tunnels": true
}
}
Schema of the response body
{
"type": "object",
"required": [
"stores",
"policies",
"version",
"catalog"
],
"properties": {
"stores": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Store"
}
},
"policies": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Policy"
}
},
"version": {
"type": "string"
},
"catalog": {
"$ref": "#/components/schemas/CatalogState"
},
"sandbox": {
"$ref": "#/components/schemas/SandboxSettings"
}
}
}
Refer to the common response description: Error.
targets¶
GET /targets¶
Targets with last backup, PITR window and health
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
env |
query | string | No | ||
health |
query | No | |||
org |
query | string | No | ||
project |
query | string | No | ||
q |
query | string | No | Free-text search |
Responses
{
"targets": [
{
"namespace": "string",
"name": "string",
"engine": "string",
"org": "string",
"project": "string",
"env": "string",
"policy": "string",
"phase": "string",
"message": "string",
"suspended": true,
"lastFull": null,
"lastSuccess": "2022-04-13T15:42:05.901Z",
"nextRun": "2022-04-13T15:42:05.901Z",
"pitr": true,
"windows": [
{
"from": "2022-04-13T15:42:05.901Z",
"to": "2022-04-13T15:42:05.901Z"
}
],
"gaps": 0,
"chainBroken": true,
"replicationDenied": "string",
"replicationFix": "string",
"lagSeconds": 93,
"storedBytes": 77,
"backups": 0,
"segments": 0,
"lastVerification": "2022-04-13T15:42:05.901Z",
"health": "ok",
"healthReason": "string",
"running": "string",
"onlyInStore": true,
"store": "string"
}
],
"catalogVersion": 11
}
Refer to the common response description: Error.
GET /targets/{ns}/{name}¶
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
name |
path | No | |||
ns |
path | No |
Responses
{
"target": {
"namespace": "string",
"name": "string",
"engine": "string",
"org": "string",
"project": "string",
"env": "string",
"policy": "string",
"phase": "string",
"message": "string",
"suspended": true,
"lastFull": null,
"lastSuccess": "2022-04-13T15:42:05.901Z",
"nextRun": "2022-04-13T15:42:05.901Z",
"pitr": true,
"windows": [
{
"from": "2022-04-13T15:42:05.901Z",
"to": "2022-04-13T15:42:05.901Z"
}
],
"gaps": 0,
"chainBroken": true,
"replicationDenied": "string",
"replicationFix": "string",
"lagSeconds": 215,
"storedBytes": 20,
"backups": 0,
"segments": 0,
"lastVerification": "2022-04-13T15:42:05.901Z",
"health": "ok",
"healthReason": "string",
"running": "string",
"onlyInStore": true,
"store": "string"
},
"spec": {},
"status": {}
}
Schema of the response body
{
"type": "object",
"required": [
"target"
],
"properties": {
"target": {
"$ref": "#/components/schemas/Target"
},
"spec": {
"type": "object",
"description": "The BackupTarget's spec (see the CRD)",
"additionalProperties": true,
"x-go-type": "tenaxv1.BackupTargetSpec",
"x-go-type-import": {
"name": "tenaxv1",
"path": "github.com/republic-global/tenax/api/v1alpha1"
},
"x-go-type-skip-optional-pointer": false
},
"status": {
"type": "object",
"description": "The BackupTarget's status (see the CRD)",
"additionalProperties": true,
"x-go-type": "tenaxv1.BackupTargetStatus",
"x-go-type-import": {
"name": "tenaxv1",
"path": "github.com/republic-global/tenax/api/v1alpha1"
},
"x-go-type-skip-optional-pointer": false
}
}
}
Refer to the common response description: Error.
POST /targets/{ns}/{name}/suspend¶
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
name |
path | No | |||
ns |
path | No |
Request body
Responses
POST /targets/{ns}/{name}/resume¶
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
name |
path | No | |||
ns |
path | No |
Request body
Responses
GET /targets/{ns}/{name}/history¶
The target's history (ADR 0023) — refs and commits, newest commits first
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
limit |
query | integer | No | ||
name |
path | No | |||
ns |
path | No |
Responses
{
"refs": [
{
"name": "string",
"commit": "string",
"at": "2022-04-13T15:42:05.901Z",
"actor": "string",
"reason": "string",
"moves": 0
}
],
"commits": [
{
"id": "string",
"kind": "backup",
"parents": [
"string"
],
"backupID": "string",
"time": "2022-04-13T15:42:05.901Z",
"position": "string",
"destination": "string",
"destinationName": "string",
"source": "string",
"actor": "string",
"reason": "string",
"approvals": [
"string"
],
"createdAt": "2022-04-13T15:42:05.901Z",
"refs": [
"string"
],
"dataAvailable": true
}
]
}
Refer to the common response description: Error.
GET /targets/{ns}/{name}/reflog¶
Every move of one ref, oldest first, with a check of the log's hash chain
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
name |
path | No | |||
ns |
path | No | |||
ref |
query | string | main | No |
Responses
{
"ref": "string",
"verified": true,
"problem": "string",
"entries": [
{
"seq": 295,
"commit": "string",
"previous": "string",
"actor": "string",
"reason": "string",
"at": "2022-04-13T15:42:05.901Z",
"hash": "string",
"prevHash": "string"
}
]
}
Schema of the response body
{
"type": "object",
"required": [
"ref",
"verified",
"entries"
],
"properties": {
"ref": {
"type": "string"
},
"verified": {
"type": "boolean",
"description": "The hash chain and every commit check out"
},
"problem": {
"type": "string",
"description": "The first problem found when not verified"
},
"entries": {
"type": "array",
"items": {
"$ref": "#/components/schemas/RefLogEntry"
}
}
}
}
Refer to the common response description: Error.
POST /targets/{ns}/{name}/tags¶
Point a tag at a commit (tags/
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
name |
path | No | |||
ns |
path | No |
Request body
Schema of the request body
{
"type": "object",
"additionalProperties": false,
"required": [
"name",
"commit"
],
"properties": {
"name": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,99}$"
},
"commit": {
"type": "string",
"minLength": 7,
"maxLength": 64,
"description": "Commit ID or a unique prefix"
},
"reason": {
"type": "string",
"maxLength": 1000
}
}
}
Responses
GET /targets/{ns}/{name}/incidents¶
Anomaly incidents of a target, newest first (ADR 0026)
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
name |
path | No | |||
ns |
path | No |
Responses
{
"incidents": [
{
"id": "string",
"start": "2022-04-13T15:42:05.901Z",
"end": "2022-04-13T15:42:05.901Z",
"detected": "2022-04-13T15:42:05.901Z",
"strength": "weak",
"summary": "string",
"signals": [
{
"kind": "mass-delete",
"strength": "weak",
"table": "string",
"at": "2022-04-13T15:42:05.901Z",
"value": 10.12,
"baseline": 10.12,
"detail": "string",
"source": "string"
}
],
"pinnedBackup": "string",
"extraBackup": "string",
"sandbox": "string",
"suspicious": [
"string"
],
"context": [
{
"kind": "rollout",
"namespace": "string",
"name": "string",
"image": "string",
"at": "2022-04-13T15:42:05.901Z"
}
],
"resolved": "2022-04-13T15:42:05.901Z",
"resolvedBy": "string",
"intended": true,
"reason": "string"
}
]
}
Refer to the common response description: Error.
POST /targets/{ns}/{name}/incidents/{id}/resolve¶
Close an incident; intended clears the suspicious marks it set
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
id |
path | string | No | ||
name |
path | No | |||
ns |
path | No |
Request body
Schema of the request body
{
"type": "object",
"additionalProperties": false,
"required": [
"reason"
],
"properties": {
"reason": {
"type": "string",
"minLength": 1,
"maxLength": 1000
},
"intended": {
"type": "boolean",
"description": "The change was intended (a migration, a cleanup): the backups it marked suspicious become usable again"
}
}
}
Responses
GET /targets/{ns}/{name}/destroy¶
What destroying a target whose BackupTarget is gone would delete, per store (ADR 0042); changes nothing
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
name |
path | No | |||
ns |
path | No |
Responses
{
"target": "string",
"destroyable": true,
"refusal": "string",
"stores": [
{
"store": "string",
"readOnly": true,
"objects": 94,
"bytes": 189,
"backups": 206,
"segments": 58,
"oldest": "2022-04-13T15:42:05.901Z",
"newest": "2022-04-13T15:42:05.901Z"
}
]
}
Schema of the response body
{
"type": "object",
"required": [
"target",
"destroyable",
"stores"
],
"properties": {
"target": {
"type": "string",
"description": "namespace/name"
},
"destroyable": {
"type": "boolean"
},
"refusal": {
"type": "string",
"description": "Why it cannot be destroyed now (empty when it can)"
},
"stores": {
"type": "array",
"items": {
"$ref": "#/components/schemas/DestroyStore"
}
}
}
}
Refer to the common response description: Error.
POST /targets/{ns}/{name}/destroy¶
Permanently delete every backup, stream and record of a target whose BackupTarget is gone (ADR 0042)
Description
Refused while a BackupTarget of that name exists, while a restore of it runs, and on read-only stores. The target disappears at once; the controller deletes its objects within minutes. Cannot be undone.
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
name |
path | No | |||
ns |
path | No |
Request body
Responses
GET /targets/{ns}/{name}/rules¶
The target's anomaly detector rules, who applied them and why
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
name |
path | No | |||
ns |
path | No |
Responses
Refer to the common response description: Error.
POST /targets/{ns}/{name}/rules/{id}/remove¶
Remove a detector rule from a target
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
id |
path | string | No | ||
name |
path | No | |||
ns |
path | No |
Request body
Responses
backups¶
GET /targets/{ns}/{name}/backups¶
Versions of a target, newest first
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
limit |
query | integer | No | ||
name |
path | No | |||
ns |
path | No |
Responses
{
"target": "string",
"backups": [
{
"id": "string",
"target": "string",
"time": "2022-04-13T15:42:05.901Z",
"completed": "2022-04-13T15:42:05.901Z",
"engine": "string",
"mode": "string",
"serverVersion": "string",
"reason": "string",
"rawBytes": 138,
"storedBytes": 170,
"databaseBytes": 83,
"minRestoreBytes": 164,
"durationSeconds": 10.12,
"tiers": [
"string"
],
"pinned": true,
"pinReason": "string",
"verified": true,
"verifyFailed": true,
"trust": "quarantined",
"scrubbedAt": "2022-04-13T15:42:05.901Z",
"suspiciousReason": "string",
"quarantineReason": "string",
"tables": 0,
"rowsEstimate": 87,
"schemaHash": "string",
"migrationVersion": "string",
"position": "string",
"databases": [
"string"
],
"warnings": [
"string"
],
"store": "string"
}
]
}
Refer to the common response description: Error.
POST /targets/{ns}/{name}/backup-now¶
Trigger a full backup
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
name |
path | No | |||
ns |
path | No |
Request body
Responses
GET /backups/{id}¶
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
id |
path | string | No |
Responses
{
"backup": {
"id": "string",
"target": "string",
"time": "2022-04-13T15:42:05.901Z",
"completed": "2022-04-13T15:42:05.901Z",
"engine": "string",
"mode": "string",
"serverVersion": "string",
"reason": "string",
"rawBytes": 76,
"storedBytes": 253,
"databaseBytes": 166,
"minRestoreBytes": 10,
"durationSeconds": 10.12,
"tiers": [
"string"
],
"pinned": true,
"pinReason": "string",
"verified": true,
"verifyFailed": true,
"trust": "quarantined",
"scrubbedAt": "2022-04-13T15:42:05.901Z",
"suspiciousReason": "string",
"quarantineReason": "string",
"tables": 0,
"rowsEstimate": 135,
"schemaHash": "string",
"migrationVersion": "string",
"position": "string",
"databases": [
"string"
],
"warnings": [
"string"
],
"store": "string"
},
"manifest": {
"version": 0,
"id": "string",
"kind": "string",
"engine": "string",
"mode": "string",
"target": {
"namespace": "string",
"name": "string",
"org": "string",
"project": "string",
"env": "string",
"uid": "string"
},
"policy": "string",
"reason": "string",
"server": {
"version": "string",
"major": 0,
"host": "string",
"systemID": "string",
"settings": {},
"sizeBytes": 237
},
"startedAt": "2022-04-13T15:42:05.901Z",
"completedAt": "2022-04-13T15:42:05.901Z",
"consistentAt": "2022-04-13T15:42:05.901Z",
"position": {
"startLSN": "string",
"endLSN": "string",
"timeline": 0,
"startWAL": "string",
"binlogFile": "string",
"binlogPos": 110,
"gtidSet": "string"
},
"databases": [
"string"
],
"objects": [
{
"key": "string",
"size": 124,
"sha256": "string",
"rawSize": 177,
"role": "string",
"database": "string",
"format": "string",
"name": "string",
"compression": "zstd"
}
],
"tools": {},
"recipients": [
"string"
],
"inventory": {
"databases": 0,
"tables": 0,
"rowsEstimate": 28,
"bytes": 130,
"schemaHash": "string",
"migrationVersion": "string"
},
"tiers": [
"string"
],
"stats": {
"rawBytes": 137,
"storedBytes": 53,
"durationSeconds": 10.12,
"minRestoreBytes": 171,
"postpones": 0,
"warnings": [
"string"
],
"throughputMBps": 10.12
},
"tenaxVersion": "string",
"scope": {}
},
"tags": {
"tiers": [
"string"
],
"pinned": true,
"pinReason": "string",
"pinExpires": "2022-04-13T15:42:05.901Z",
"pinnedBy": "string",
"verified": true,
"verifiedAt": "2022-04-13T15:42:05.901Z",
"verifyRTOSeconds": 10.12,
"verifyFailed": true,
"updatedAt": "2022-04-13T15:42:05.901Z"
}
}
Refer to the common response description: Error.
GET /backups/{id}/inventory¶
What the database looked like (needs the store's catalog identity)
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
id |
path | string | No |
Responses
{
"collectedAt": "2022-04-13T15:42:05.901Z",
"engine": "string",
"server": {
"version": "string",
"major": 0,
"host": "string",
"systemID": "string",
"settings": {},
"sizeBytes": 197
},
"databases": [
{
"name": "string",
"sizeBytes": 86,
"oid": 0,
"extensions": [
"string"
],
"schemas": [
"string"
],
"tables": [
{
"schema": "string",
"name": "string",
"kind": "string",
"rowsEstimate": 146,
"exactRows": 33,
"totalBytes": 233,
"tableBytes": 206,
"indexBytes": 26,
"toastBytes": 111,
"columns": [
{
"name": "string",
"type": "string",
"nullable": true,
"default": "string"
}
],
"primaryKey": [
"string"
],
"indexes": [
{
"name": "string",
"columns": [
"string"
],
"unique": true,
"def": "string"
}
],
"foreignKeys": [
{
"name": "string",
"columns": [
"string"
],
"refTable": "string",
"refColumns": [
"string"
]
}
],
"fingerprint": "string",
"activity": {
"inserts": 50,
"updates": 11,
"deletes": 238,
"lastAutovacuum": "2022-04-13T15:42:05.901Z"
},
"relfilenode": 0,
"oid": 0
}
],
"views": [
"string"
],
"routines": [
"string"
],
"migrationTable": "string",
"migrationVersion": "string",
"schemaHash": "string"
}
],
"schemaHash": "string",
"notes": [
"string"
],
"extra": {}
}
Schema of the response body
{
"type": "object",
"description": "What a database looked like at backup time (no row data)",
"x-go-type": "model.Inventory",
"x-go-type-import": {
"path": "github.com/republic-global/tenax/internal/model"
},
"required": [
"collectedAt",
"engine",
"server",
"databases",
"schemaHash"
],
"properties": {
"collectedAt": {
"type": "string",
"format": "date-time"
},
"engine": {
"type": "string"
},
"server": {
"$ref": "#/components/schemas/ServerInfo"
},
"databases": {
"type": "array",
"nullable": true,
"items": {
"type": "object",
"required": [
"name",
"sizeBytes",
"tables",
"schemaHash"
],
"properties": {
"name": {
"type": "string"
},
"sizeBytes": {
"type": "integer",
"format": "int64"
},
"oid": {
"type": "integer"
},
"extensions": {
"type": "array",
"items": {
"type": "string"
}
},
"schemas": {
"type": "array",
"items": {
"type": "string"
}
},
"tables": {
"type": "array",
"nullable": true,
"items": {
"type": "object",
"required": [
"name",
"rowsEstimate",
"totalBytes",
"columns",
"fingerprint"
],
"properties": {
"schema": {
"type": "string"
},
"name": {
"type": "string"
},
"kind": {
"type": "string"
},
"rowsEstimate": {
"type": "integer",
"format": "int64"
},
"exactRows": {
"type": "integer",
"format": "int64"
},
"totalBytes": {
"type": "integer",
"format": "int64"
},
"tableBytes": {
"type": "integer",
"format": "int64"
},
"indexBytes": {
"type": "integer",
"format": "int64"
},
"toastBytes": {
"type": "integer",
"format": "int64"
},
"columns": {
"type": "array",
"nullable": true,
"items": {
"type": "object",
"required": [
"name",
"type",
"nullable"
],
"properties": {
"name": {
"type": "string"
},
"type": {
"type": "string"
},
"nullable": {
"type": "boolean"
},
"default": {
"type": "string"
}
}
}
},
"primaryKey": {
"type": "array",
"items": {
"type": "string"
}
},
"indexes": {
"type": "array",
"items": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
},
"columns": {
"type": "array",
"items": {
"type": "string"
}
},
"unique": {
"type": "boolean"
},
"def": {
"type": "string"
}
}
}
},
"foreignKeys": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"columns",
"refTable",
"refColumns"
],
"properties": {
"name": {
"type": "string"
},
"columns": {
"type": "array",
"nullable": true,
"items": {
"type": "string"
}
},
"refTable": {
"type": "string"
},
"refColumns": {
"type": "array",
"nullable": true,
"items": {
"type": "string"
}
}
}
}
},
"fingerprint": {
"type": "string"
},
"activity": {
"type": "object",
"properties": {
"inserts": {
"type": "integer",
"format": "int64"
},
"updates": {
"type": "integer",
"format": "int64"
},
"deletes": {
"type": "integer",
"format": "int64"
},
"lastAutovacuum": {
"type": "string",
"format": "date-time"
}
}
},
"relfilenode": {
"type": "integer"
},
"oid": {
"type": "integer"
}
}
}
},
"views": {
"type": "array",
"items": {
"type": "string"
}
},
"routines": {
"type": "array",
"items": {
"type": "string"
}
},
"migrationTable": {
"type": "string"
},
"migrationVersion": {
"type": "string"
},
"schemaHash": {
"type": "string"
}
}
}
},
"schemaHash": {
"type": "string"
},
"notes": {
"type": "array",
"items": {
"type": "string"
}
},
"extra": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
Refer to the common response description: Error.
GET /backups/{id}/diff/{other}¶
Schema, row and size changes between two versions, and the segments in between
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
id |
path | string | No | ||
other |
path | string | No |
Responses
{
"from": {
"id": "string",
"target": "string",
"time": "2022-04-13T15:42:05.901Z",
"completed": "2022-04-13T15:42:05.901Z",
"engine": "string",
"mode": "string",
"serverVersion": "string",
"reason": "string",
"rawBytes": 125,
"storedBytes": 214,
"databaseBytes": 194,
"minRestoreBytes": 268,
"durationSeconds": 10.12,
"tiers": [
"string"
],
"pinned": true,
"pinReason": "string",
"verified": true,
"verifyFailed": true,
"trust": "quarantined",
"scrubbedAt": "2022-04-13T15:42:05.901Z",
"suspiciousReason": "string",
"quarantineReason": "string",
"tables": 0,
"rowsEstimate": 18,
"schemaHash": "string",
"migrationVersion": "string",
"position": "string",
"databases": [
"string"
],
"warnings": [
"string"
],
"store": "string"
},
"to": null,
"diff": {
"tablesAdded": [
"string"
],
"tablesDropped": [
"string"
],
"tablesRenamed": [
{
"from": "string",
"to": "string"
}
],
"columns": [
{
"table": "string",
"added": [
"string"
],
"removed": [
"string"
],
"typeChanged": [
"string"
],
"indexAdded": [
"string"
],
"indexDropped": [
"string"
]
}
],
"rows": [
{
"table": "string",
"rowsBefore": 121,
"rowsAfter": 296,
"rowsPct": 10.12,
"sizeBefore": 76,
"sizeAfter": 200
}
],
"sizeBefore": 175,
"sizeAfter": 92,
"migrationBefore": "string",
"migrationAfter": "string",
"schemaChanged": true,
"lines": [
"string"
],
"databasesAdded": [
"string"
],
"databasesDropped": [
"string"
]
},
"segments": [
{
"version": 0,
"engine": "string",
"name": "string",
"seq": 11,
"timeline": 0,
"server": "string",
"key": "string",
"size": 128,
"sha256": "string",
"rawSize": 8,
"partial": true,
"startPos": "string",
"endPos": "string",
"firstTime": "2022-04-13T15:42:05.901Z",
"lastTime": "2022-04-13T15:42:05.901Z",
"commits": 23,
"tables": {},
"ddl": [
"string"
],
"previewsKey": "string",
"uploadedAt": "2022-04-13T15:42:05.901Z",
"chainID": "string",
"explanation": "string",
"target": "string"
}
]
}
Schema of the response body
{
"type": "object",
"required": [
"from",
"to",
"diff",
"segments"
],
"properties": {
"from": {
"$ref": "#/components/schemas/Backup"
},
"to": {
"$ref": "#/components/schemas/Backup"
},
"diff": {
"$ref": "#/components/schemas/Diff"
},
"segments": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Segment"
}
}
}
}
Refer to the common response description: Error.
POST /backups/{id}/pin¶
Retention hold
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
id |
path | string | No |
Request body
Responses
POST /backups/{id}/unpin¶
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
id |
path | string | No |
Request body
Responses
changes¶
GET /targets/{ns}/{name}/segments¶
Change-stream segments of a target, newest first
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
limit |
query | integer | No | ||
name |
path | No | |||
ns |
path | No | |||
since |
query | string | No | A duration back from now (2h, 3d) or an RFC3339 time |
Responses
{
"target": "string",
"since": "2022-04-13T15:42:05.901Z",
"segments": [
{
"version": 0,
"engine": "string",
"name": "string",
"seq": 49,
"timeline": 0,
"server": "string",
"key": "string",
"size": 42,
"sha256": "string",
"rawSize": 62,
"partial": true,
"startPos": "string",
"endPos": "string",
"firstTime": "2022-04-13T15:42:05.901Z",
"lastTime": "2022-04-13T15:42:05.901Z",
"commits": 217,
"tables": {},
"ddl": [
"string"
],
"previewsKey": "string",
"uploadedAt": "2022-04-13T15:42:05.901Z",
"chainID": "string",
"explanation": "string",
"target": "string"
}
]
}
Refer to the common response description: Error.
GET /segments¶
Segments across visible targets, newest first
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
limit |
query | integer | No | ||
since |
query | string | No | A duration back from now (2h, 3d) or an RFC3339 time | |
target |
query | string | No | namespace/name |
Responses
{
"since": "2022-04-13T15:42:05.901Z",
"segments": [
{
"version": 0,
"engine": "string",
"name": "string",
"seq": 154,
"timeline": 0,
"server": "string",
"key": "string",
"size": 15,
"sha256": "string",
"rawSize": 194,
"partial": true,
"startPos": "string",
"endPos": "string",
"firstTime": "2022-04-13T15:42:05.901Z",
"lastTime": "2022-04-13T15:42:05.901Z",
"commits": 104,
"tables": {},
"ddl": [
"string"
],
"previewsKey": "string",
"uploadedAt": "2022-04-13T15:42:05.901Z",
"chainID": "string",
"explanation": "string",
"target": "string"
}
]
}
Refer to the common response description: Error.
GET /segments/{ns}/{name}/{seg}/previews¶
Masked row previews of a segment
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
name |
path | No | |||
ns |
path | No | |||
seg |
path | string | No | Segment name |
Responses
Refer to the common response description: Error.
restores¶
GET /targets/{ns}/{name}/plan¶
The restore plan for a backup or a point in time (a dry run)
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
at |
query | string | No | RFC3339 time (second resolution), latest, or latest-verified (the newest verified backup) | |
backup |
query | string | No | Backup ID | |
name |
path | No | |||
ns |
path | No |
Responses
{
"baseBackupID": "string",
"baseTime": "2022-04-13T15:42:05.901Z",
"segments": 0,
"targetTime": "2022-04-13T15:42:05.901Z",
"effectiveTime": "2022-04-13T15:42:05.901Z",
"bytes": 157,
"minRestoreBytes": 146,
"minRestore": "string",
"restorable": true,
"reason": "string",
"windows": [
{
"from": "2022-04-13T15:42:05.901Z",
"to": "2022-04-13T15:42:05.901Z"
}
]
}
Schema of the response body
{
"type": "object",
"required": [
"baseBackupID",
"baseTime",
"segments",
"effectiveTime",
"bytes",
"restorable"
],
"properties": {
"baseBackupID": {
"type": "string",
"x-go-name": "BaseBackupID"
},
"baseTime": {
"type": "string",
"format": "date-time"
},
"segments": {
"type": "integer"
},
"targetTime": {
"type": "string",
"format": "date-time",
"x-go-type-skip-optional-pointer": false
},
"effectiveTime": {
"type": "string",
"format": "date-time"
},
"bytes": {
"type": "integer",
"format": "int64"
},
"minRestoreBytes": {
"type": "integer",
"format": "int64",
"description": "Smallest disk this restore fits in: data, staged and replayed changes, WAL or redo space and a margin (ADR 0030)"
},
"minRestore": {
"type": "string",
"description": "How minRestoreBytes adds up, for people"
},
"restorable": {
"type": "boolean"
},
"reason": {
"type": "string"
},
"windows": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Window"
}
}
}
}
Refer to the common response description: Error.
POST /targets/{ns}/{name}/verify¶
Run a verification restore now
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
name |
path | No | |||
ns |
path | No |
Request body
Responses
POST /targets/{ns}/{name}/undo¶
Undo the last in-place restore by restoring, in place, the state it replaced
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
name |
path | No | |||
ns |
path | No |
Request body
Schema of the request body
{
"type": "object",
"additionalProperties": false,
"required": [
"confirm",
"credentialsSecret",
"reason"
],
"properties": {
"confirm": {
"type": "string",
"description": "Must equal the target name"
},
"credentialsSecret": {
"type": "string",
"description": "Admin user in the target namespace"
},
"reason": {
"type": "string",
"minLength": 1,
"maxLength": 1000
}
}
}
Responses
GET /restores¶
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
Responses
{
"restores": [
{
"namespace": "string",
"name": "string",
"target": "string",
"mode": "sandbox",
"phase": "string",
"message": "string",
"requestedBy": "string",
"created": "2022-04-13T15:42:05.901Z",
"sandbox": "string",
"plan": null,
"progress": null,
"checks": [
{
"name": "string",
"passed": true,
"message": "string"
}
],
"downloadURL": "string",
"downloadExpires": "2022-04-13T15:42:05.901Z",
"durationSeconds": 5,
"source": {
"backupID": "string",
"time": "2022-04-13T15:42:05.901Z",
"latest": true,
"targetNamespace": "string"
},
"destination": {
"mode": null,
"sandboxTTL": "string",
"expose": true,
"deleteAfter": true,
"database": "string",
"host": "string",
"tables": [
"string"
]
}
}
]
}
Refer to the common response description: Error.
POST /restores¶
Create a Restore (sandbox, new database, in place or download)
Description
The role depends on the mode: sandbox needs operator, new and download need restorer, in-place needs
restorer-admin plus confirm equal to the target name. The plan is checked first: a time outside the
restorable windows is refused with 422 and the windows.
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
Request body
{
"target": "string",
"at": "string",
"backupID": "string",
"mode": "sandbox",
"ttl": "string",
"expose": true,
"cpu": "string",
"memory": "string",
"sizeLimit": "string",
"storageClass": "string",
"confirm": "string",
"host": "string",
"port": 0,
"database": "string",
"credentialsSecret": "string",
"skipSafetyBackup": true,
"tables": [
"string"
],
"reason": "string"
}
Schema of the request body
{
"type": "object",
"additionalProperties": false,
"required": [
"target"
],
"properties": {
"target": {
"type": "string",
"pattern": "^[^/]+/[^/]+$",
"description": "namespace/name"
},
"at": {
"type": "string",
"description": "RFC3339 time, latest (default) or latest-verified (the newest verified backup, ADR 0024)"
},
"backupID": {
"type": "string"
},
"mode": {
"$ref": "#/components/schemas/RestoreMode"
},
"ttl": {
"$ref": "#/components/schemas/Duration"
},
"expose": {
"type": "boolean"
},
"cpu": {
"type": "string",
"maxLength": 32,
"description": "Sandbox CPU request, for example 500m or 2 (default: the target's, then the installation's)"
},
"memory": {
"type": "string",
"maxLength": 32,
"description": "Sandbox memory (request and limit), for example 2Gi"
},
"sizeLimit": {
"type": "string",
"maxLength": 32,
"description": "Sandbox data volume, for example 20Gi (default: the restore's minimum size rounded up to GiB, at least 1Gi; a smaller size is refused with the size to use, ADR 0030)"
},
"storageClass": {
"type": "string",
"maxLength": 253,
"description": "Put the sandbox's data on a PVC of this storage class"
},
"confirm": {
"type": "string",
"description": "In place: the target name"
},
"host": {
"type": "string",
"description": "New database: server host"
},
"port": {
"type": "integer",
"minimum": 1,
"maximum": 65535
},
"database": {
"type": "string"
},
"credentialsSecret": {
"type": "string",
"description": "Admin credentials secret (new, in-place)"
},
"skipSafetyBackup": {
"type": "boolean"
},
"tables": {
"type": "array",
"items": {
"type": "string"
},
"maxItems": 1000
},
"reason": {
"type": "string",
"maxLength": 1000
}
}
}
Responses
GET /restores/{ns}/{name}¶
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
name |
path | No | |||
ns |
path | No |
Responses
{
"restore": {
"namespace": "string",
"name": "string",
"target": "string",
"mode": "sandbox",
"phase": "string",
"message": "string",
"requestedBy": "string",
"created": "2022-04-13T15:42:05.901Z",
"sandbox": "string",
"plan": null,
"progress": null,
"checks": [
{
"name": "string",
"passed": true,
"message": "string"
}
],
"downloadURL": "string",
"downloadExpires": "2022-04-13T15:42:05.901Z",
"durationSeconds": 181,
"source": {
"backupID": "string",
"time": "2022-04-13T15:42:05.901Z",
"latest": true,
"targetNamespace": "string"
},
"destination": {
"mode": null,
"sandboxTTL": "string",
"expose": true,
"deleteAfter": true,
"database": "string",
"host": "string",
"tables": [
"string"
]
}
}
}
Refer to the common response description: Error.
POST /restores/{ns}/{name}/cancel¶
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
name |
path | No | |||
ns |
path | No |
Request body
Responses
POST /restores/{ns}/{name}/approve¶
Approve a restore that waits for people (ADR 0045)
Description
Only people decide: agents and service tokens are refused. An in-place restore needs restorer-admin.
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
name |
path | No | |||
ns |
path | No |
Request body
Responses
POST /restores/{ns}/{name}/reject¶
Reject a restore that waits for people; it fails and nothing is touched
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
name |
path | No | |||
ns |
path | No |
Request body
Responses
agents¶
GET /agents¶
Rules for AI agents, restores waiting for approval, and agent grants (ADR 0045)
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
Responses
{
"enabled": true,
"write": true,
"inPlaceApprovals": 0,
"tools": [
"string"
],
"targets": [
"string"
],
"changedBy": "string",
"changedAt": "2022-04-13T15:42:05.901Z",
"pending": [
{
"namespace": "string",
"name": "string",
"target": "string",
"mode": "string",
"at": "string",
"requestedBy": "string",
"agent": "string",
"reason": "string",
"required": 0,
"approvedBy": [
"string"
],
"created": "2022-04-13T15:42:05.901Z",
"expires": "2022-04-13T15:42:05.901Z"
}
],
"grants": [
{
"id": "string",
"user": "string",
"agent": "string",
"role": "string",
"scope": "string",
"created": "2022-04-13T15:42:05.901Z",
"lastUsed": "2022-04-13T15:42:05.901Z"
}
]
}
Schema of the response body
{
"type": "object",
"required": [
"enabled",
"write",
"inPlaceApprovals",
"tools",
"targets",
"pending",
"grants"
],
"properties": {
"enabled": {
"type": "boolean",
"description": "false: every agent call is refused (kill switch)"
},
"write": {
"type": "boolean",
"description": "Agents may act (back up, verify, sandboxes, ask for restores); false: they only read"
},
"inPlaceApprovals": {
"type": "integer",
"minimum": 1,
"maximum": 2,
"description": "People who approve an in-place restore an agent asks for"
},
"tools": {
"type": "array",
"items": {
"type": "string"
},
"description": "Tools agents may use; empty: all"
},
"targets": {
"type": "array",
"items": {
"type": "string"
},
"description": "namespace/name patterns the tools naming a target may use; empty: all"
},
"changedBy": {
"type": "string"
},
"changedAt": {
"type": "string",
"format": "date-time"
},
"pending": {
"type": "array",
"items": {
"$ref": "#/components/schemas/PendingApproval"
}
},
"grants": {
"type": "array",
"items": {
"$ref": "#/components/schemas/AgentGrant"
}
}
}
}
Refer to the common response description: Error.
GET /agents/activity¶
The durable record of agent activity, newest first (ADR 0050): your own agents', or everyone's for a restorer-admin
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
agent |
query | string | No | Agent name (exact) | |
before |
query | string | No | Cursor: the next value of the previous page | |
kind |
query | string | No | ||
limit |
query | integer | No | ||
outcome |
query | string | No | ||
since |
query | string | No | ||
target |
query | string | No | Part of the target or request | |
tool |
query | string | No | Tool (exact) | |
until |
query | string | No | ||
user |
query | string | No | Person the agent acts for (exact) |
Responses
{
"entries": [
{
"id": "string",
"time": "2022-04-13T15:42:05.901Z",
"kind": "call",
"user": "string",
"role": "string",
"agent": "string",
"agentVersion": "string",
"tool": "string",
"target": "string",
"outcome": "ok",
"reason": "string",
"request": "string",
"decision": "string",
"decidedBy": "string",
"args": "string",
"from": "string"
}
],
"next": "string",
"stored": true,
"warning": "string"
}
Schema of the response body
{
"type": "object",
"x-go-type": "agentlog.Page",
"x-go-type-import": {
"path": "github.com/republic-global/tenax/internal/agentlog"
},
"required": [
"entries",
"stored"
],
"properties": {
"entries": {
"type": "array",
"items": {
"$ref": "#/components/schemas/AgentActivityEntry"
}
},
"next": {
"type": "string",
"description": "Cursor of the next (older) page; absent on the last page"
},
"stored": {
"type": "boolean",
"description": "false: the store could not be read and entries are only this replica's recent ones"
},
"warning": {
"type": "string"
}
}
}
Refer to the common response description: Error.
POST /agents/settings¶
Change the rules for agents; enabled false stops every agent at once (kill switch)
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
Request body
{
"enabled": true,
"write": true,
"inPlaceApprovals": 0,
"tools": [
"string"
],
"targets": [
"string"
],
"reason": "string"
}
Schema of the request body
{
"type": "object",
"additionalProperties": false,
"properties": {
"enabled": {
"type": "boolean",
"x-go-type-skip-optional-pointer": false
},
"write": {
"type": "boolean",
"x-go-type-skip-optional-pointer": false
},
"inPlaceApprovals": {
"type": "integer",
"minimum": 1,
"maximum": 2,
"x-go-type-skip-optional-pointer": false
},
"tools": {
"type": "array",
"items": {
"type": "string"
},
"x-go-type-skip-optional-pointer": false
},
"targets": {
"type": "array",
"items": {
"type": "string"
},
"x-go-type-skip-optional-pointer": false
},
"reason": {
"type": "string",
"maxLength": 1000
}
}
}
Responses
DELETE /agents/grants/{id}¶
Revoke an agent's grant (its person, or a restorer-admin)
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
id |
path | string | No |
Responses
volumes¶
GET /volumes¶
Volume targets with their PVCs and snapshots (ADR 0027)
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
Responses
{
"volumeTargets": [
{
"namespace": "string",
"name": "string",
"policy": "string",
"phase": "string",
"message": "string",
"schedule": "string",
"lastRun": "2022-04-13T15:42:05.901Z",
"nextRun": "2022-04-13T15:42:05.901Z",
"copySchedule": "string",
"nextCopy": "2022-04-13T15:42:05.901Z",
"volumes": [
{
"pvc": "string",
"lastSnapshot": "string",
"lastSnapshotTime": "2022-04-13T15:42:05.901Z",
"readySnapshots": 0,
"skipped": "string",
"lastCopy": "string",
"lastCopyTime": "2022-04-13T15:42:05.901Z",
"dataBytes": 132,
"minRestoreBytes": 141,
"copyRunning": true,
"copyMessage": "string"
}
]
}
]
}
Refer to the common response description: Error.
POST /volumes/{ns}/{name}/restore¶
Create a new PVC from a snapshot or an S3 copy of one of the target's PVCs
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
name |
path | No | |||
ns |
path | No |
Request body
{
"pvc": "string",
"toPVC": "string",
"snapshot": "string",
"from": "snapshot",
"copy": "string",
"size": "string",
"at": "string",
"storageClass": "string",
"reason": "string"
}
Schema of the request body
{
"type": "object",
"additionalProperties": false,
"required": [
"pvc",
"toPVC"
],
"properties": {
"pvc": {
"type": "string",
"x-go-name": "PVC",
"description": "PVC of the target to restore"
},
"toPVC": {
"type": "string",
"x-go-name": "ToPVC",
"pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$",
"maxLength": 253,
"description": "New PVC (must not exist)"
},
"snapshot": {
"type": "string",
"description": "VolumeSnapshot to restore (default: the newest ready one at or before at)"
},
"from": {
"type": "string",
"enum": [
"snapshot",
"copy"
],
"description": "snapshot (default) or copy (from S3)"
},
"copy": {
"type": "string",
"description": "Copy ID to restore (default: the newest copy at or before at)"
},
"size": {
"type": "string",
"description": "Size of the new PVC (default: enough for the data)"
},
"at": {
"type": "string",
"description": "RFC3339 time"
},
"storageClass": {
"type": "string"
},
"reason": {
"type": "string",
"maxLength": 1000
}
}
}
Responses
POST /volumes/{ns}/{name}/copy¶
Copy the target's volumes to S3 now
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
name |
path | No | |||
ns |
path | No |
Request body
Responses
GET /volumes/{ns}/{name}/copies¶
The S3 copies of the target's volumes, newest first, with their sizes
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
name |
path | No | |||
ns |
path | No | |||
pvc |
query | string | No |
Responses
{
"copies": [
{
"id": "string",
"pvc": "string",
"at": "2022-04-13T15:42:05.901Z",
"source": "string",
"snapshot": "string",
"files": 44,
"dirs": 297,
"dataBytes": 79,
"allocatedBytes": 1,
"minRestoreBytes": 83,
"uploadedBytes": 52,
"newChunks": 268,
"chunks": 270,
"durationSeconds": 10.12,
"throughputMBps": 10.12,
"notes": [
"string"
]
}
]
}
Refer to the common response description: Error.
GET /volumes/{ns}/{name}/copies/{pvc}/{id}/files¶
Files of a copy (names, sizes, times; never contents), from its encrypted index
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
desc |
query | boolean | No | Reverse the order | |
dir |
query | string | No | Directory to list (default: the volume root) | |
id |
path | string | No | ||
limit |
query | integer | No | Entries per page (default 5000) | |
name |
path | No | |||
ns |
path | No | |||
offset |
query | integer | No | Skip this many entries | |
pvc |
path | string | No | ||
q |
query | string | No | Search file paths instead of listing a directory | |
sort |
query | string | No | Order (default name; folders first) |
Responses
{
"dir": "string",
"files": [
{
"path": "string",
"name": "string",
"type": "string",
"size": 198,
"mtime": "2022-04-13T15:42:05.901Z",
"mode": "string",
"link": "string",
"files": 10
}
],
"truncated": true,
"total": 0,
"offset": 0,
"dirSize": 143,
"dirFiles": 173
}
Schema of the response body
{
"type": "object",
"required": [
"dir",
"files",
"truncated"
],
"properties": {
"dir": {
"type": "string"
},
"files": {
"type": "array",
"items": {
"$ref": "#/components/schemas/VolumeFile"
}
},
"truncated": {
"type": "boolean",
"description": "More entries follow (next page at offset + the entries returned)"
},
"total": {
"type": "integer",
"description": "Entries that match (the same on every page)"
},
"offset": {
"type": "integer"
},
"dirSize": {
"type": "integer",
"format": "int64",
"description": "Total size of the files under dir"
},
"dirFiles": {
"type": "integer",
"format": "int64",
"description": "Files under dir"
}
}
}
Refer to the common response description: Error.
GET /volumes/{ns}/{name}/copies/{pvc}/{id}/diff¶
Files added, removed and changed between two copies (exact, from chunk ids)
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
against |
query | string | No | Older copy to compare with | |
dir |
query | string | No | ||
id |
path | string | No | ||
name |
path | No | |||
ns |
path | No | |||
pvc |
path | string | No |
Responses
{
"from": "string",
"to": "string",
"added": 0,
"removed": 0,
"changed": 0,
"unchanged": 0,
"addedBytes": 180,
"removedBytes": 115,
"changedBytes": 131,
"changes": [
{
"path": "string",
"kind": "string",
"type": "string",
"before": 296,
"after": 271,
"delta": 141
}
],
"truncated": true
}
Schema of the response body
{
"type": "object",
"required": [
"from",
"to",
"added",
"removed",
"changed",
"unchanged",
"addedBytes",
"removedBytes",
"changedBytes",
"changes",
"truncated"
],
"properties": {
"from": {
"type": "string"
},
"to": {
"type": "string"
},
"added": {
"type": "integer"
},
"removed": {
"type": "integer"
},
"changed": {
"type": "integer"
},
"unchanged": {
"type": "integer"
},
"addedBytes": {
"type": "integer",
"format": "int64"
},
"removedBytes": {
"type": "integer",
"format": "int64"
},
"changedBytes": {
"type": "integer",
"format": "int64"
},
"changes": {
"type": "array",
"items": {
"$ref": "#/components/schemas/VolumeChange"
}
},
"truncated": {
"type": "boolean"
}
}
}
Refer to the common response description: Error.
GET /volumes/{ns}/{name}/copies/{pvc}/{id}/stat¶
Metadata of one file or folder of a copy (owner, mode, sizes, chunks; never contents)
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
id |
path | string | No | ||
name |
path | No | |||
ns |
path | No | |||
path |
query | string | No | File or folder, relative to the volume root | |
pvc |
path | string | No |
Responses
{
"path": "string",
"name": "string",
"type": "string",
"size": 40,
"allocated": 83,
"mtime": "2022-04-13T15:42:05.901Z",
"mode": "string",
"uid": 0,
"gid": 0,
"link": "string",
"files": 276,
"chunks": 0,
"previewable": true
}
Schema of the response body
{
"type": "object",
"required": [
"path",
"name",
"type",
"size",
"mtime",
"mode"
],
"properties": {
"path": {
"type": "string"
},
"name": {
"type": "string"
},
"type": {
"type": "string",
"description": "file, dir or symlink"
},
"size": {
"type": "integer",
"format": "int64",
"description": "File size, or the total of a directory's files"
},
"allocated": {
"type": "integer",
"format": "int64",
"description": "Space the file took on the source volume"
},
"mtime": {
"type": "string",
"format": "date-time",
"x-go-name": "MTime"
},
"mode": {
"type": "string"
},
"uid": {
"type": "integer",
"x-go-name": "UID"
},
"gid": {
"type": "integer",
"x-go-name": "GID"
},
"link": {
"type": "string"
},
"files": {
"type": "integer",
"format": "int64",
"description": "Files under a directory"
},
"chunks": {
"type": "integer",
"description": "Content chunks of a file"
},
"previewable": {
"type": "boolean",
"description": "A file small enough to try a preview of"
}
}
}
Refer to the common response description: Error.
POST /volumes/{ns}/{name}/copies/{pvc}/{id}/exports¶
Export a file or folder of a copy (download or preview, ADR 0031)
Description
Creates a VolumeExport: a short-lived Job decrypts the file or folder into a short-lived object. Poll getVolumeExport until it is Succeeded, then ask for a link (createVolumeExportLink) or a preview (getVolumeExportPreview). The API never holds the data key. Audited.
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
id |
path | string | No | ||
name |
path | No | |||
ns |
path | No | |||
pvc |
path | string | No |
Request body
Schema of the request body
{
"type": "object",
"additionalProperties": false,
"properties": {
"path": {
"type": "string",
"maxLength": 4096,
"description": "File or folder, relative to the volume root (empty: the whole volume)"
},
"format": {
"type": "string",
"enum": [
"file",
"zip",
"tar",
"preview"
],
"description": "Default: file for a file, zip for a folder"
},
"ttl": {
"$ref": "#/components/schemas/Duration"
},
"reason": {
"type": "string",
"maxLength": 1000
}
}
}
Responses
GET /volume-exports/{ns}/{name}¶
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
name |
path | No | |||
ns |
path | No |
Responses
{
"namespace": "string",
"name": "string",
"target": "string",
"pvc": "string",
"copy": "string",
"path": "string",
"format": "string",
"phase": "string",
"message": "string",
"requestedBy": "string",
"created": "2022-04-13T15:42:05.901Z",
"readyTime": "2022-04-13T15:42:05.901Z",
"expireTime": "2022-04-13T15:42:05.901Z",
"fileName": "string",
"contentType": "string",
"size": 55,
"files": 85,
"truncated": true
}
Schema of the response body
{
"type": "object",
"required": [
"namespace",
"name",
"target",
"pvc",
"copy",
"path",
"format",
"phase"
],
"properties": {
"namespace": {
"type": "string"
},
"name": {
"type": "string"
},
"target": {
"type": "string"
},
"pvc": {
"type": "string",
"x-go-name": "PVC"
},
"copy": {
"type": "string"
},
"path": {
"type": "string"
},
"format": {
"type": "string"
},
"phase": {
"type": "string",
"description": "Running, Succeeded, Failed or Expired"
},
"message": {
"type": "string"
},
"requestedBy": {
"type": "string"
},
"created": {
"type": "string",
"format": "date-time"
},
"readyTime": {
"type": "string",
"format": "date-time",
"x-go-type-skip-optional-pointer": false
},
"expireTime": {
"type": "string",
"format": "date-time",
"x-go-type-skip-optional-pointer": false
},
"fileName": {
"type": "string"
},
"contentType": {
"type": "string"
},
"size": {
"type": "integer",
"format": "int64"
},
"files": {
"type": "integer",
"format": "int64"
},
"truncated": {
"type": "boolean"
}
}
}
Refer to the common response description: Error.
POST /volume-exports/{ns}/{name}/link¶
A presigned download link to a ready export (15 minutes at most; audited with who and what)
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
name |
path | No | |||
ns |
path | No |
Request body
Responses
{
"url": "string",
"expires": "2022-04-13T15:42:05.901Z",
"fileName": "string",
"contentType": "string",
"size": 74
}
Schema of the response body
{
"type": "object",
"required": [
"url",
"expires",
"fileName",
"size"
],
"properties": {
"url": {
"type": "string",
"x-go-name": "URL",
"description": "Presigned GET URL of the export: anyone holding it can download until it expires"
},
"expires": {
"type": "string",
"format": "date-time"
},
"fileName": {
"type": "string"
},
"contentType": {
"type": "string"
},
"size": {
"type": "integer",
"format": "int64"
}
}
}
Refer to the common response description: Error.
GET /volume-exports/{ns}/{name}/preview¶
The preview of a ready preview export (text, or a png, jpeg, gif or webp image; audited)
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
name |
path | No | |||
ns |
path | No |
Responses
{
"fileName": "string",
"contentType": "string",
"size": 279,
"truncated": true,
"text": "string",
"data": "TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQ="
}
Schema of the response body
{
"type": "object",
"required": [
"fileName",
"contentType",
"size",
"truncated"
],
"properties": {
"fileName": {
"type": "string"
},
"contentType": {
"type": "string",
"description": "text/plain; charset=utf-8, or image/png, image/jpeg, image/gif, image/webp"
},
"size": {
"type": "integer",
"format": "int64"
},
"truncated": {
"type": "boolean",
"description": "The text is only the start of the file"
},
"text": {
"type": "string"
},
"data": {
"type": "string",
"format": "byte",
"description": "The image (base64)"
}
}
}
Refer to the common response description: Error.
GET /volume-sandboxes¶
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
Responses
{
"volumeSandboxes": [
{
"name": "string",
"target": "string",
"pvc": "string",
"copy": "string",
"copyTime": "2022-04-13T15:42:05.901Z",
"phase": "string",
"message": "string",
"owner": "string",
"created": "2022-04-13T15:42:05.901Z",
"expires": "2022-04-13T15:42:05.901Z",
"namespace": "string",
"host": "string",
"port": 0,
"route": "string",
"routeType": "tunnel",
"expose": true,
"user": "string",
"hostKey": "string",
"hostKeyFingerprint": "string",
"files": 16,
"dataBytes": 52
}
]
}
Refer to the common response description: Error.
POST /volume-sandboxes¶
Restore a copy into a temporary PVC and serve it over read-only SFTP until its TTL (ADR 0031)
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
Request body
{
"target": "string",
"pvc": "string",
"copy": "string",
"at": "string",
"authorizedKeys": [
"string"
],
"ttl": "string",
"expose": true,
"size": "string",
"storageClass": "string",
"reason": "string"
}
Schema of the request body
{
"type": "object",
"additionalProperties": false,
"required": [
"target",
"pvc",
"authorizedKeys"
],
"properties": {
"target": {
"type": "string",
"pattern": "^[^/]+/[^/]+$",
"description": "namespace/name of the VolumeTarget"
},
"pvc": {
"type": "string",
"x-go-name": "PVC"
},
"copy": {
"type": "string",
"description": "Copy ID (default: the newest copy at or before at)"
},
"at": {
"type": "string",
"description": "RFC3339 time"
},
"authorizedKeys": {
"type": "array",
"minItems": 1,
"maxItems": 16,
"items": {
"type": "string",
"maxLength": 16384
},
"description": "SSH public keys (authorized_keys lines) that may log in"
},
"ttl": {
"$ref": "#/components/schemas/Duration"
},
"expose": {
"type": "boolean"
},
"size": {
"type": "string"
},
"storageClass": {
"type": "string"
},
"reason": {
"type": "string",
"maxLength": 1000
}
}
}
Responses
GET /volume-sandboxes/{name}¶
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
name |
path | No |
Responses
{
"name": "string",
"target": "string",
"pvc": "string",
"copy": "string",
"copyTime": "2022-04-13T15:42:05.901Z",
"phase": "string",
"message": "string",
"owner": "string",
"created": "2022-04-13T15:42:05.901Z",
"expires": "2022-04-13T15:42:05.901Z",
"namespace": "string",
"host": "string",
"port": 0,
"route": "string",
"routeType": "tunnel",
"expose": true,
"user": "string",
"hostKey": "string",
"hostKeyFingerprint": "string",
"files": 97,
"dataBytes": 100
}
Schema of the response body
{
"type": "object",
"required": [
"name",
"target",
"pvc",
"phase"
],
"properties": {
"name": {
"type": "string"
},
"target": {
"type": "string",
"description": "namespace/name"
},
"pvc": {
"type": "string",
"x-go-name": "PVC"
},
"copy": {
"type": "string"
},
"copyTime": {
"type": "string",
"format": "date-time",
"x-go-type-skip-optional-pointer": false
},
"phase": {
"type": "string"
},
"message": {
"type": "string"
},
"owner": {
"type": "string"
},
"created": {
"type": "string",
"format": "date-time"
},
"expires": {
"type": "string",
"format": "date-time",
"x-go-type-skip-optional-pointer": false
},
"namespace": {
"type": "string"
},
"host": {
"type": "string",
"description": "In-cluster host of the SFTP Service"
},
"port": {
"type": "integer"
},
"route": {
"type": "string"
},
"routeType": {
"type": "string",
"enum": [
"tunnel",
"direct"
]
},
"expose": {
"type": "boolean"
},
"user": {
"type": "string",
"description": "SFTP user name (any name works; keys decide)"
},
"hostKey": {
"type": "string",
"description": "The server's public host key (known_hosts)"
},
"hostKeyFingerprint": {
"type": "string"
},
"files": {
"type": "integer",
"format": "int64"
},
"dataBytes": {
"type": "integer",
"format": "int64"
}
}
}
Refer to the common response description: Error.
DELETE /volume-sandboxes/{name}¶
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
name |
path | No |
Responses
POST /volume-sandboxes/{name}/extend¶
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
name |
path | No |
Request body
Responses
POST /volume-sandboxes/{name}/expose¶
Open a route to the sandbox's SFTP server through the exposure provider
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
name |
path | No |
Responses
DELETE /volume-sandboxes/{name}/expose¶
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
name |
path | No |
Responses
sandboxes¶
GET /sandboxes¶
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
Responses
{
"sandboxes": [
{
"name": "string",
"engine": "string",
"owner": "string",
"phase": "string",
"message": "string",
"namespace": "string",
"host": "string",
"port": 0,
"database": "string",
"expires": "2022-04-13T15:42:05.901Z",
"ready": "2022-04-13T15:42:05.901Z",
"route": "string",
"routeType": "tunnel",
"expose": true,
"target": "string",
"backupID": "string",
"time": "2022-04-13T15:42:05.901Z",
"sizeLimit": "string",
"cpu": "string",
"memory": "string",
"storageClass": "string",
"restore": "string",
"created": "2022-04-13T15:42:05.901Z",
"connect": "string",
"inCluster": "string",
"members": [
{
"target": "string",
"restore": "string",
"phase": "string",
"databases": [
"string"
],
"backupID": "string",
"time": "2022-04-13T15:42:05.901Z",
"message": "string"
}
]
}
]
}
Refer to the common response description: Error.
POST /sandboxes¶
Create a multi-database sandbox
Description
Restores several targets of the same engine into one sandbox, each at the same time or the newest point before it (ADR 0025). Needs the operator role and access to every member target.
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
Request body
{
"members": [
{
"target": "string",
"databasePrefix": "string",
"backupID": "string"
}
],
"at": "string",
"ttl": "string",
"expose": true,
"cpu": "string",
"memory": "string",
"sizeLimit": "string",
"storageClass": "string",
"reason": "string"
}
Schema of the request body
{
"type": "object",
"additionalProperties": false,
"required": [
"members"
],
"properties": {
"members": {
"type": "array",
"minItems": 1,
"maxItems": 16,
"items": {
"$ref": "#/components/schemas/SandboxMemberRequest"
}
},
"at": {
"type": "string",
"description": "RFC3339 time every member is restored to (or the newest point before it). Default: the newest time every member can reach"
},
"ttl": {
"$ref": "#/components/schemas/Duration"
},
"expose": {
"type": "boolean"
},
"cpu": {
"type": "string",
"maxLength": 32
},
"memory": {
"type": "string",
"maxLength": 32
},
"sizeLimit": {
"type": "string",
"maxLength": 32,
"description": "Default: what the members need together, rounded up to GiB (at least 1Gi); a smaller size is refused with the size to use (ADR 0030)"
},
"storageClass": {
"type": "string",
"maxLength": 253
},
"reason": {
"type": "string",
"maxLength": 1000
}
}
}
Responses
GET /sandboxes/{name}¶
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
name |
path | No |
Responses
{
"sandbox": {
"name": "string",
"engine": "string",
"owner": "string",
"phase": "string",
"message": "string",
"namespace": "string",
"host": "string",
"port": 0,
"database": "string",
"expires": "2022-04-13T15:42:05.901Z",
"ready": "2022-04-13T15:42:05.901Z",
"route": "string",
"routeType": "tunnel",
"expose": true,
"target": "string",
"backupID": "string",
"time": "2022-04-13T15:42:05.901Z",
"sizeLimit": "string",
"cpu": "string",
"memory": "string",
"storageClass": "string",
"restore": "string",
"created": "2022-04-13T15:42:05.901Z",
"connect": "string",
"inCluster": "string",
"members": [
{
"target": "string",
"restore": "string",
"phase": "string",
"databases": [
"string"
],
"backupID": "string",
"time": "2022-04-13T15:42:05.901Z",
"message": "string"
}
]
}
}
Refer to the common response description: Error.
DELETE /sandboxes/{name}¶
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
name |
path | No |
Responses
GET /sandboxes/{name}/credentials¶
Reveal the sandbox credentials (owner or restorer-admin; audited)
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
name |
path | No |
Responses
{
"username": "string",
"password": "string",
"host": "string",
"port": 0,
"database": "string",
"engine": "string",
"route": "string",
"routeType": "tunnel"
}
Schema of the response body
{
"type": "object",
"required": [
"username",
"password",
"host",
"port",
"database",
"engine"
],
"properties": {
"username": {
"type": "string"
},
"password": {
"type": "string"
},
"host": {
"type": "string"
},
"port": {
"type": "integer"
},
"database": {
"type": "string"
},
"engine": {
"type": "string"
},
"route": {
"type": "string",
"description": "Tunnel hostname (routeType tunnel) or host:port (routeType direct)"
},
"routeType": {
"type": "string",
"enum": [
"tunnel",
"direct"
]
}
}
}
Refer to the common response description: Error.
POST /sandboxes/{name}/extend¶
Extend the TTL (capped at the policy maximum)
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
name |
path | No |
Request body
Responses
POST /sandboxes/{name}/expose¶
Open a tunnel route to the sandbox (Cloudflare Tunnel behind Access); 409 when no exposure provider is configured
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
name |
path | No |
Responses
DELETE /sandboxes/{name}/expose¶
Close the sandbox's tunnel route
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
name |
path | No |
Responses
POST /sandboxes/{name}/query¶
Run SQL on a sandbox (read-only by default, 30 s, 1,000 rows; audited)
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
format |
query | string | No | ||
name |
path | No |
Request body
Schema of the request body
{
"type": "object",
"additionalProperties": false,
"required": [
"sql"
],
"properties": {
"sql": {
"type": "string",
"minLength": 1,
"maxLength": 262144
},
"database": {
"type": "string"
},
"write": {
"type": "boolean",
"description": "Run outside a read-only transaction (sandboxes only)"
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 1000
}
}
}
Responses
{
"columns": [
"string"
],
"rows": [
[
"string"
]
],
"truncated": true,
"ms": 254,
"command": "string",
"affected": 136,
"masked": [
"string"
]
}
Schema of the response body
{
"type": "object",
"required": [
"columns",
"rows",
"truncated",
"ms"
],
"properties": {
"columns": {
"type": "array",
"items": {
"type": "string"
}
},
"rows": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string"
}
}
},
"truncated": {
"type": "boolean"
},
"ms": {
"type": "integer",
"format": "int64",
"x-go-name": "Millis"
},
"command": {
"type": "string"
},
"affected": {
"type": "integer",
"format": "int64"
},
"masked": {
"type": "array",
"items": {
"type": "string"
},
"description": "Columns masked by the target's mask rules"
}
}
}
Refer to the common response description: Error.
GET /sandboxes/{name}/tables¶
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
database |
query | string | No | ||
name |
path | No |
Responses
Refer to the common response description: Error.
GET /sandboxes/{name}/tables/{table}¶
The first 50 rows of a table, masked
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
name |
path | No | |||
table |
path | string | No | [schema.]table |
Responses
{
"columns": [
"string"
],
"rows": [
[
"string"
]
],
"truncated": true,
"ms": 241,
"command": "string",
"affected": 107,
"masked": [
"string"
]
}
Schema of the response body
{
"type": "object",
"required": [
"columns",
"rows",
"truncated",
"ms"
],
"properties": {
"columns": {
"type": "array",
"items": {
"type": "string"
}
},
"rows": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string"
}
}
},
"truncated": {
"type": "boolean"
},
"ms": {
"type": "integer",
"format": "int64",
"x-go-name": "Millis"
},
"command": {
"type": "string"
},
"affected": {
"type": "integer",
"format": "int64"
},
"masked": {
"type": "array",
"items": {
"type": "string"
},
"description": "Columns masked by the target's mask rules"
}
}
}
Refer to the common response description: Error.
activity¶
GET /activity¶
Recent and running backups and restores, newest first
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
limit |
query | integer | No |
Responses
{
"backups": [
{
"namespace": "string",
"name": "string",
"target": "string",
"phase": "string",
"message": "string",
"reason": "string",
"backupID": "string",
"created": "2022-04-13T15:42:05.901Z",
"bytes": 97,
"durationSeconds": 26,
"progress": null
}
],
"restores": [
{
"namespace": "string",
"name": "string",
"target": "string",
"mode": "sandbox",
"phase": "string",
"message": "string",
"requestedBy": "string",
"created": "2022-04-13T15:42:05.901Z",
"sandbox": "string",
"plan": null,
"progress": null,
"checks": [
{
"name": "string",
"passed": true,
"message": "string"
}
],
"downloadURL": "string",
"downloadExpires": "2022-04-13T15:42:05.901Z",
"durationSeconds": 179,
"source": {
"backupID": "string",
"time": "2022-04-13T15:42:05.901Z",
"latest": true,
"targetNamespace": "string"
},
"destination": {
"mode": null,
"sandboxTTL": "string",
"expose": true,
"deleteAfter": true,
"database": "string",
"host": "string",
"tables": [
"string"
]
}
}
]
}
Refer to the common response description: Error.
GET /audit¶
Recent audit events of this replica, newest first
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
action |
query | string | No | ||
limit |
query | integer | No | ||
user |
query | string | No |
Responses
{
"events": [
{
"time": "2022-04-13T15:42:05.901Z",
"user": "string",
"role": "string",
"action": "string",
"target": "string",
"object": "string",
"outcome": "ok",
"from": "string",
"detail": {}
}
]
}
Refer to the common response description: Error.
GET /events¶
Server-sent events (backup, restore, sandbox, target, catalog), coalesced every 500 ms
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
Responses
Refer to the common response description: Error.
ai¶
GET /ai/runs¶
The AI runs the principal may see, newest first
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
Responses
[
{
"namespace": "string",
"name": "string",
"workflow": "string",
"phase": "string",
"subject": "string",
"verdict": "string",
"requestedBy": "string",
"created": "2022-04-13T15:42:05.901Z",
"link": "string"
}
]
Refer to the common response description: Error.
POST /ai/runs¶
Start an AI workflow (explain a failed backup, triage an incident, a report, a question, the doctor)
Description
backup-failure needs namespace and backup; anomaly-triage target (namespace/name) and incident; ask a question (followUp continues an answered one); doctor optionally a provider. security-posture looks at the whole installation; restore-drill at one target, a namespace's targets or every one; capacity-forecast at a namespace's targets or every one. Reports on many targets and questions need a principal that sees every target.
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
Request body
{
"workflow": "backup-failure",
"namespace": "string",
"target": "string",
"backup": "string",
"incident": "string",
"question": "string",
"followUp": "string",
"provider": "string"
}
Schema of the request body
{
"type": "object",
"additionalProperties": false,
"required": [
"workflow"
],
"properties": {
"workflow": {
"type": "string",
"enum": [
"backup-failure",
"anomaly-triage",
"security-posture",
"restore-drill",
"capacity-forecast",
"ask",
"doctor"
]
},
"namespace": {
"type": "string",
"maxLength": 63,
"description": "backup-failure: the backup's; restore-drill, capacity-forecast: only this namespace's targets"
},
"target": {
"type": "string",
"maxLength": 317,
"description": "namespace/name (anomaly-triage; restore-drill: only this target)"
},
"backup": {
"type": "string",
"maxLength": 253,
"description": "The failed Backup (backup-failure)"
},
"incident": {
"type": "string",
"maxLength": 32,
"description": "Incident ID (anomaly-triage)"
},
"question": {
"type": "string",
"maxLength": 500,
"description": "The question (ask)"
},
"followUp": {
"type": "string",
"maxLength": 253,
"description": "The answered ask run this question continues"
},
"provider": {
"type": "string",
"maxLength": 253,
"description": "doctor: probe only this provider"
}
}
}
Responses
GET /ai/runs/{ns}/{name}¶
One AI run with its result
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
name |
path | No | |||
ns |
path | No |
Responses
Schema of the response body
{
"allOf": [
{
"$ref": "#/components/schemas/AIRunSummary"
},
{
"type": "object",
"properties": {
"message": {
"type": "string"
},
"step": {
"type": "string"
},
"inputTokens": {
"type": "integer"
},
"outputTokens": {
"type": "integer"
},
"result": {
"$ref": "#/components/schemas/AIRunResult",
"x-go-type-skip-optional-pointer": false
}
}
}
]
}
Refer to the common response description: Error.
POST /ai/runs/{ns}/{name}/apply-rule¶
Apply the detector rule an anomaly-triage run proposed to its target (the reason is recorded on the rule)
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
accessCookie |
cookie | string | N/A | No | API key |
accessToken |
header | string | N/A | No | API key |
accessJWT |
header | string | N/A | No | API key |
name |
path | No | |||
ns |
path | No |
Request body
Responses
Schemas¶
ActionResult¶
| Name | Type | Description |
|---|---|---|
kind |
string | |
link |
string | Console page of the result |
message |
string | |
name |
string | |
namespace |
string |
Activity¶
| Name | Type | Description |
|---|---|---|
backups |
Array<BackupRun> | |
restores |
Array<Restore> |
AgentActivityEntry¶
| Name | Type | Description |
|---|---|---|
agent |
string | |
agentVersion |
string | |
args |
string | |
decidedBy |
string | |
decision |
string | |
from |
string | |
id |
string | |
kind |
string | |
outcome |
string | |
reason |
string | |
request |
string | The agent request id or restore namespace/name a decision is about |
role |
string | |
target |
string | |
time |
string(date-time) | |
tool |
string | |
user |
string | The person the agent acts for |
AgentActivityPage¶
| Name | Type | Description |
|---|---|---|
entries |
Array<AgentActivityEntry> | |
next |
string | Cursor of the next (older) page; absent on the last page |
stored |
boolean | false: the store could not be read and entries are only this replica's recent ones |
warning |
string |
AgentGrant¶
| Name | Type | Description |
|---|---|---|
agent |
string | |
created |
string(date-time) | |
id |
string | |
lastUsed |
string(date-time) | |
role |
string | |
scope |
string | |
user |
string |
Agents¶
| Name | Type | Description |
|---|---|---|
changedAt |
string(date-time) | |
changedBy |
string | |
enabled |
boolean | false: every agent call is refused (kill switch) |
grants |
Array<AgentGrant> | |
inPlaceApprovals |
integer | People who approve an in-place restore an agent asks for |
pending |
Array<PendingApproval> | |
targets |
Array<string> | namespace/name patterns the tools naming a target may use; empty: all |
tools |
Array<string> | Tools agents may use; empty: all |
write |
boolean | Agents may act (back up, verify, sandboxes, ask for restores); false: they only read |
AgentSettingsRequest¶
| Name | Type | Description |
|---|---|---|
enabled |
boolean | |
inPlaceApprovals |
integer | |
reason |
string | |
targets |
Array<string> | |
tools |
Array<string> | |
write |
boolean |
AIFinding¶
| Name | Type | Description |
|---|---|---|
detail |
string | |
evidence |
Array<string> | |
recommendation |
string | The model's proposed change, tailored from Tenax's recommendations |
recommendations |
Array<AIRecommendation> | Tenax's own recommendations for the checks this finding cites (security-posture) |
severity |
string | |
summary |
string |
AIRecommendation¶
| Name | Type | Description |
|---|---|---|
check |
string | The evidence ID of the failed check |
docs |
string | The documentation page |
example |
string | A snippet to adapt (Helm value, SQL, command); values to fill in are in angle brackets |
key |
string | The kind of check, stable across releases (for example target/privileges/postgres) |
text |
string | What to change and when it applies |
where |
string | The chart value, database setting or Kubernetes object to change; field paths and values are in backticks |
AIRuleProposal¶
| Name | Type | Description |
|---|---|---|
id |
string | |
rule |
string | The rule in words |
unsafe |
boolean | The backtest would hide signals it should not |
unsafeReason |
string |
AIRun¶
Type:
AIRunRequest¶
| Name | Type | Description |
|---|---|---|
backup |
string | The failed Backup (backup-failure) |
followUp |
string | The answered ask run this question continues |
incident |
string | Incident ID (anomaly-triage) |
namespace |
string | backup-failure: the backup's; restore-drill, capacity-forecast: only this namespace's targets |
provider |
string | doctor: probe only this provider |
question |
string | The question (ask) |
target |
string | namespace/name (anomaly-triage; restore-drill: only this target) |
workflow |
string |
AIRunResult¶
| Name | Type | Description |
|---|---|---|
findings |
Array<AIFinding> | |
proposal |
AIRuleProposal | |
recommendations |
Array<AIRecommendation> | Tenax's own recommendation for every failed check (security-posture), written by code, in English |
summary |
string | |
verdict |
string |
AIRunSummary¶
| Name | Type | Description |
|---|---|---|
created |
string(date-time) | |
link |
string | Console page of the run |
name |
string | |
namespace |
string | |
phase |
string | |
requestedBy |
string | |
subject |
string | What the run looks at |
verdict |
string | |
workflow |
string |
ApplyRuleRequest¶
| Name | Type | Description |
|---|---|---|
force |
boolean | Apply a rule its backtest marked unsafe |
reason |
string |
AuditEvent¶
| Name | Type | Description |
|---|---|---|
action |
string | |
detail |
||
from |
string | |
object |
string | |
outcome |
string | |
role |
string | |
target |
string | |
time |
string(date-time) | |
user |
string |
AuditList¶
| Name | Type | Description |
|---|---|---|
events |
Array<AuditEvent> |
Backup¶
| Name | Type | Description |
|---|---|---|
completed |
string(date-time) | |
databaseBytes |
integer(int64) | Size of the backed-up databases on the server (0 when unknown) |
databases |
Array<string> | |
durationSeconds |
number(double) | |
engine |
string | |
id |
string | |
migrationVersion |
string | |
minRestoreBytes |
integer(int64) | Smallest disk the backup restores into without replaying changes: data, WAL or redo space and a margin (ADR 0030) |
mode |
string | |
pinned |
boolean | |
pinReason |
string | |
position |
string | |
quarantineReason |
string | |
rawBytes |
integer(int64) | Uncompressed (logical) size of the backup |
reason |
string | |
rowsEstimate |
integer(int64) | |
schemaHash |
string | |
scrubbedAt |
string(date-time) | Last time every object was re-read intact |
serverVersion |
string | |
store |
string | |
storedBytes |
integer(int64) | Size in the store (compressed and encrypted) |
suspiciousReason |
string | |
tables |
integer | |
target |
string | |
tiers |
Array<string> | |
time |
string(date-time) | Consistent at |
trust |
string | Trust level (ADR 0024) |
verified |
boolean | |
verifyFailed |
boolean | |
warnings |
Array<string> |
BackupDetail¶
| Name | Type | Description |
|---|---|---|
backup |
Backup | |
manifest |
Manifest | |
tags |
Tags |
BackupList¶
| Name | Type | Description |
|---|---|---|
backups |
Array<Backup> | |
target |
string |
BackupRef¶
Type:
BackupRun¶
| Name | Type | Description |
|---|---|---|
backupID |
string | |
bytes |
integer(int64) | |
created |
string(date-time) | |
durationSeconds |
integer(int64) | |
message |
string | |
name |
string | |
namespace |
string | |
phase |
string | |
progress |
ProgressRef | |
reason |
string | |
target |
string |
CatalogState¶
| Name | Type | Description |
|---|---|---|
backups |
integer | |
targets |
integer | |
version |
integer(int64) |
CheckResult¶
| Name | Type | Description |
|---|---|---|
message |
string | |
name |
string | |
passed |
boolean |
ColumnChange¶
| Name | Type | Description |
|---|---|---|
added |
Array<string> | |
indexAdded |
Array<string> | |
indexDropped |
Array<string> | |
removed |
Array<string> | |
table |
string | |
typeChanged |
Array<string> |
DestroyPreview¶
| Name | Type | Description |
|---|---|---|
destroyable |
boolean | |
refusal |
string | Why it cannot be destroyed now (empty when it can) |
stores |
Array<DestroyStore> | |
target |
string | namespace/name |
DestroyRequest¶
| Name | Type | Description |
|---|---|---|
confirm |
string | The target's namespace/name, typed out |
reason |
string |
DestroyStore¶
| Name | Type | Description |
|---|---|---|
backups |
integer(int64) | |
bytes |
integer(int64) | |
newest |
string(date-time) | |
objects |
integer(int64) | |
oldest |
string(date-time) | |
readOnly |
boolean | Read-only stores are never written, so they are left as they are |
segments |
integer(int64) | |
store |
string |
DetectorRule¶
| Name | Type | Description |
|---|---|---|
appliedAt |
string(date-time) | |
appliedBy |
string | |
forced |
boolean | Applied although its backtest marked it unsafe |
id |
string | |
reason |
string | |
rule |
string | The rule in words |
sourceRun |
string | The triage run (namespace/name) that proposed it |
Diff¶
| Name | Type | Description |
|---|---|---|
columns |
Array<ColumnChange> | |
databasesAdded |
Array<string> | |
databasesDropped |
Array<string> | |
lines |
Array<string> | |
migrationAfter |
string | |
migrationBefore |
string | |
rows |
Array<RowDelta> | |
schemaChanged |
boolean | |
sizeAfter |
integer(int64) | |
sizeBefore |
integer(int64) | |
tablesAdded |
Array<string> | |
tablesDropped |
Array<string> | |
tablesRenamed |
Array<Rename> |
DiffResult¶
| Name | Type | Description |
|---|---|---|
diff |
Diff | |
from |
Backup | |
segments |
Array<Segment> | |
to |
Backup |
Duration¶
Type: string
Error¶
| Name | Type | Description |
|---|---|---|
error |
string |
Event¶
| Name | Type | Description |
|---|---|---|
bytes |
integer(int64) | |
kind |
string | |
message |
string | |
name |
string | |
namespace |
string | |
phase |
string | |
stage |
string | |
version |
integer(int64) |
ExtendRequest¶
| Name | Type | Description |
|---|---|---|
by |
Duration | |
reason |
string |
Health¶
Type: string
History¶
| Name | Type | Description |
|---|---|---|
commits |
Array<HistoryCommit> | |
refs |
Array<RefHead> |
HistoryCommit¶
| Name | Type | Description |
|---|---|---|
actor |
string | |
approvals |
Array<string> | |
backupID |
string | |
createdAt |
string(date-time) | |
dataAvailable |
boolean | False once retention deleted the backup the commit points to |
destination |
string | |
destinationName |
string | |
id |
string | |
kind |
string | |
parents |
Array<string> | |
position |
string | |
reason |
string | |
refs |
Array<string> | Refs pointing at this commit |
source |
string | |
time |
string(date-time) |
Incident¶
| Name | Type | Description |
|---|---|---|
context |
Array<IncidentContext> | Rollouts and Jobs shortly before the start (time proximity only) |
detected |
string(date-time) | |
end |
string(date-time) | |
extraBackup |
string | The Backup Tenax took when the incident became strong |
id |
string | |
intended |
boolean | |
pinnedBackup |
string | The last good backup Tenax pinned |
reason |
string | |
resolved |
string(date-time) | |
resolvedBy |
string | |
sandbox |
string | Restore (namespace/name) of the sandbox opened at the point before |
signals |
Array<IncidentSignal> | |
start |
string(date-time) | |
strength |
string | |
summary |
string | |
suspicious |
Array<string> | Backups marked suspicious |
IncidentContext¶
| Name | Type | Description |
|---|---|---|
at |
string(date-time) | |
image |
string | |
kind |
string | |
name |
string | |
namespace |
string |
IncidentList¶
| Name | Type | Description |
|---|---|---|
incidents |
Array<Incident> |
IncidentSignal¶
| Name | Type | Description |
|---|---|---|
at |
string(date-time) | |
baseline |
number | |
detail |
string | |
kind |
string | |
source |
string | Segment (server/seq) or backup ID |
strength |
string | |
table |
string | |
value |
number |
Inventory¶
| Name | Type | Description |
|---|---|---|
collectedAt |
string(date-time) | |
databases |
Array<Properties: name, sizeBytes, oid, extensions, schemas, tables, views, routines, migrationTable, migrationVersion, schemaHash> |
|
engine |
string | |
extra |
||
notes |
Array<string> | |
schemaHash |
string | |
server |
ServerInfo |
K8sName¶
Type: string
Manifest¶
| Name | Type | Description |
|---|---|---|
completedAt |
string(date-time) | |
consistentAt |
string(date-time) | |
databases |
Array<string> | |
engine |
string | |
id |
string | |
inventory |
Properties: databases, tables, rowsEstimate, bytes, schemaHash, migrationVersion |
|
kind |
string | |
mode |
string | |
objects |
Array<Properties: key, size, sha256, rawSize, role, database, format, name, compression> |
|
policy |
string | |
position |
Properties: startLSN, endLSN, timeline, startWAL, binlogFile, binlogPos, gtidSet |
|
reason |
string | |
recipients |
Array<string> | |
scope |
||
server |
ServerInfo | |
startedAt |
string(date-time) | |
stats |
Properties: rawBytes, storedBytes, durationSeconds, minRestoreBytes, postpones, warnings, throughputMBps |
|
target |
Properties: namespace, name, org, project, env, uid |
|
tenaxVersion |
string | |
tiers |
Array<string> | |
tools |
||
version |
integer |
PendingApproval¶
| Name | Type | Description |
|---|---|---|
agent |
string | |
approvedBy |
Array<string> | |
at |
string | The time, backup id or latest it restores |
created |
string(date-time) | |
expires |
string(date-time) | |
mode |
string | |
name |
string | |
namespace |
string | |
reason |
string | |
requestedBy |
string | |
required |
integer | |
target |
string | namespace/name |
PinRequest¶
| Name | Type | Description |
|---|---|---|
expires |
string | Pin duration (30d) or RFC3339 time; empty: forever |
reason |
string |
Plan¶
| Name | Type | Description |
|---|---|---|
baseBackupID |
string | |
baseTime |
string(date-time) | |
bytes |
integer(int64) | |
effectiveTime |
string(date-time) | |
minRestore |
string | How minRestoreBytes adds up, for people |
minRestoreBytes |
integer(int64) | Smallest disk this restore fits in: data, staged and replayed changes, WAL or redo space and a margin (ADR 0030) |
reason |
string | |
restorable |
boolean | |
segments |
integer | |
targetTime |
string(date-time) | |
windows |
Array<Window> |
Policy¶
| Name | Type | Description |
|---|---|---|
name |
string | |
namespace |
string | |
pitr |
boolean | |
retention |
string | daily/weekly/monthly/yearly counts |
schedule |
string | |
store |
string | |
verify |
string |
Previews¶
| Name | Type | Description |
|---|---|---|
tables |
PreviewsResult¶
| Name | Type | Description |
|---|---|---|
previews |
Previews | |
segment |
string |
Principal¶
| Name | Type | Description |
|---|---|---|
email |
string | |
groups |
Array<string> | |
id |
string | |
orgs |
Array<string> | |
projects |
Array<string> | |
role |
string | |
service |
boolean |
Progress¶
| Name | Type | Description |
|---|---|---|
bytes |
integer(int64) | |
stage |
string | |
totalBytes |
integer(int64) | |
updatedAt |
string(date-time) |
ProgressRef¶
Type:
QueryRequest¶
| Name | Type | Description |
|---|---|---|
database |
string | |
limit |
integer | |
sql |
string | |
write |
boolean | Run outside a read-only transaction (sandboxes only) |
QueryResult¶
| Name | Type | Description |
|---|---|---|
affected |
integer(int64) | |
columns |
Array<string> | |
command |
string | |
masked |
Array<string> | Columns masked by the target's mask rules |
ms |
integer(int64) | |
rows |
Array<Array<string>> | |
truncated |
boolean |
ReasonRequest¶
| Name | Type | Description |
|---|---|---|
reason |
string |
RefHead¶
| Name | Type | Description |
|---|---|---|
actor |
string | |
at |
string(date-time) | |
commit |
string | |
moves |
integer | |
name |
string | |
reason |
string |
RefLog¶
| Name | Type | Description |
|---|---|---|
entries |
Array<RefLogEntry> | |
problem |
string | The first problem found when not verified |
ref |
string | |
verified |
boolean | The hash chain and every commit check out |
RefLogEntry¶
| Name | Type | Description |
|---|---|---|
actor |
string | |
at |
string(date-time) | |
commit |
string | |
hash |
string | |
prevHash |
string | |
previous |
string | |
reason |
string | |
seq |
integer(int64) |
Rename¶
| Name | Type | Description |
|---|---|---|
from |
string | |
to |
string |
ResolveRequest¶
| Name | Type | Description |
|---|---|---|
intended |
boolean | The change was intended (a migration, a cleanup): the backups it marked suspicious become usable again |
reason |
string |
Restore¶
| Name | Type | Description |
|---|---|---|
checks |
Array<CheckResult> | |
created |
string(date-time) | |
destination |
RestoreDestination | |
downloadExpires |
string(date-time) | |
downloadURL |
string | |
durationSeconds |
integer(int64) | |
message |
string | |
mode |
RestoreMode | |
name |
string | |
namespace |
string | |
phase |
string | |
plan |
RestorePlanRef | |
progress |
ProgressRef | |
requestedBy |
string | |
sandbox |
string | |
source |
RestoreSource | |
target |
string |
RestoreDestination¶
| Name | Type | Description |
|---|---|---|
database |
string | New database: its name |
deleteAfter |
boolean | |
expose |
boolean | |
host |
string | New database: server host |
mode |
RestoreMode | |
sandboxTTL |
string | |
tables |
Array<string> |
RestoreDetail¶
| Name | Type | Description |
|---|---|---|
restore |
Restore |
RestoreList¶
| Name | Type | Description |
|---|---|---|
restores |
Array<Restore> |
RestoreMode¶
Type: string
RestorePlan¶
| Name | Type | Description |
|---|---|---|
baseBackupID |
string | |
bytes |
integer(int64) | |
dataBytes |
integer(int64) | What the restored databases occupy after the replay |
message |
string | |
minRestoreBytes |
integer(int64) | Smallest disk this restore fits in (ADR 0030) |
segments |
integer | |
targetTime |
string(date-time) |
RestorePlanRef¶
Type:
RestoreRequest¶
| Name | Type | Description |
|---|---|---|
at |
string | RFC3339 time, latest (default) or latest-verified (the newest verified backup, ADR 0024) |
backupID |
string | |
confirm |
string | In place: the target name |
cpu |
string | Sandbox CPU request, for example 500m or 2 (default: the target's, then the installation's) |
credentialsSecret |
string | Admin credentials secret (new, in-place) |
database |
string | |
expose |
boolean | |
host |
string | New database: server host |
memory |
string | Sandbox memory (request and limit), for example 2Gi |
mode |
RestoreMode | |
port |
integer | |
reason |
string | |
sizeLimit |
string | Sandbox data volume, for example 20Gi (default: the restore's minimum size rounded up to GiB, at least 1Gi; a smaller size is refused with the size to use, ADR 0030) |
skipSafetyBackup |
boolean | |
storageClass |
string | Put the sandbox's data on a PVC of this storage class |
tables |
Array<string> | |
target |
string | namespace/name |
ttl |
Duration |
RestoreSource¶
| Name | Type | Description |
|---|---|---|
backupID |
string | |
latest |
boolean | |
targetNamespace |
string | |
time |
string(date-time) |
RowDelta¶
| Name | Type | Description |
|---|---|---|
rowsAfter |
integer(int64) | |
rowsBefore |
integer(int64) | |
rowsPct |
number(double) | |
sizeAfter |
integer(int64) | |
sizeBefore |
integer(int64) | |
table |
string |
Sandbox¶
| Name | Type | Description |
|---|---|---|
backupID |
string | |
connect |
string | CLI command that opens the tunnel |
cpu |
string | CPU request (empty is the built-in 100m) |
created |
string(date-time) | |
database |
string | |
engine |
string | |
expires |
string(date-time) | |
expose |
boolean | A route is requested (route is set once it exists) |
host |
string | |
inCluster |
string | host:port inside the cluster |
members |
Array<SandboxMember> | Members of a multi-database sandbox |
memory |
string | Memory request and limit (empty is 256Mi requested, 1Gi limit) |
message |
string | |
name |
string | |
namespace |
string | |
owner |
string | |
phase |
string | |
port |
integer | |
ready |
string(date-time) | |
restore |
string | |
route |
string | Once the route exists: a tunnel hostname (routeType tunnel) or host:port (routeType direct) |
routeType |
string | |
sizeLimit |
string | |
storageClass |
string | Storage class of the data PVC (empty is an emptyDir) |
target |
string | |
time |
string(date-time) |
SandboxCredentials¶
| Name | Type | Description |
|---|---|---|
database |
string | |
engine |
string | |
host |
string | |
password |
string | |
port |
integer | |
route |
string | Tunnel hostname (routeType tunnel) or host:port (routeType direct) |
routeType |
string | |
username |
string |
SandboxDetail¶
| Name | Type | Description |
|---|---|---|
sandbox |
Sandbox |
SandboxList¶
| Name | Type | Description |
|---|---|---|
sandboxes |
Array<Sandbox> |
SandboxMember¶
| Name | Type | Description |
|---|---|---|
backupID |
string | |
databases |
Array<string> | |
message |
string | |
phase |
string | |
restore |
string | |
target |
string | |
time |
string(date-time) |
SandboxMemberRequest¶
| Name | Type | Description |
|---|---|---|
backupID |
string | Pin this member to one backup instead of the sandbox's time |
databasePrefix |
string | Rename this member's databases to |
target |
string | namespace/name |
SandboxRequest¶
| Name | Type | Description |
|---|---|---|
at |
string | RFC3339 time every member is restored to (or the newest point before it). Default: the newest time every member can reach |
cpu |
string | |
expose |
boolean | |
members |
Array<SandboxMemberRequest> | |
memory |
string | |
reason |
string | |
sizeLimit |
string | Default: what the members need together, rounded up to GiB (at least 1Gi); a smaller size is refused with the size to use (ADR 0030) |
storageClass |
string | |
ttl |
Duration |
SandboxResources¶
| Name | Type | Description |
|---|---|---|
cpu |
string | |
memory |
string | |
sizeLimit |
string | |
storageClass |
string |
SandboxSettings¶
| Name | Type | Description |
|---|---|---|
defaults |
SandboxResources | |
limits |
SandboxResources | |
tunnels |
boolean | An exposure provider is configured (sandboxes can get tunnel routes) |
Segment¶
| Name | Type | Description |
|---|---|---|
chainID |
string | |
commits |
integer(int64) | |
ddl |
Array<string> | |
endPos |
string | |
engine |
string | |
explanation |
string | |
firstTime |
string(date-time) | |
key |
string | |
lastTime |
string(date-time) | |
name |
string | |
partial |
boolean | |
previewsKey |
string | |
rawSize |
integer(int64) | |
seq |
integer(int64) | |
server |
string | |
sha256 |
string | |
size |
integer(int64) | |
startPos |
string | |
tables |
||
target |
string | |
timeline |
integer | |
uploadedAt |
string(date-time) | |
version |
integer |
SegmentList¶
| Name | Type | Description |
|---|---|---|
segments |
Array<Segment> | |
since |
string(date-time) |
ServerInfo¶
| Name | Type | Description |
|---|---|---|
host |
string | |
major |
integer | |
settings |
||
sizeBytes |
integer(int64) | |
systemID |
string | |
version |
string |
Settings¶
| Name | Type | Description |
|---|---|---|
catalog |
CatalogState | |
policies |
Array<Policy> | |
sandbox |
SandboxSettings | |
stores |
Array<Store> | |
version |
string |
Store¶
| Name | Type | Description |
|---|---|---|
bucket |
string | |
endpoint |
string | |
message |
string | |
name |
string | |
phase |
string | |
prefix |
string | |
readOnly |
boolean | |
region |
string | |
replicas |
Array<StoreReplica> |
StoreCopyRequest¶
| Name | Type | Description |
|---|---|---|
dryRun |
boolean | |
reason |
string | |
targets |
Array<string> | Only these targets (namespace/name); all when empty |
to |
string | The destination BackupStore |
StoreCopyResult¶
| Name | Type | Description |
|---|---|---|
bytes |
integer(int64) | |
dryRun |
boolean | |
from |
string | |
message |
string | |
objects |
integer(int64) | Objects to copy |
same |
integer(int64) | Objects the destination already has |
to |
string |
StoreReplica¶
| Name | Type | Description |
|---|---|---|
behindSeconds |
integer(int64) | Seconds since the last error-free copy |
copying |
boolean | A copy Job is running |
deletesHeld |
integer(int64) | Objects gone from the store that the replica still keeps (delete delay or brake) |
lastSync |
string(date-time) | When the last copy finished without errors: every backup committed before it is in the replica |
message |
string | |
pending |
integer(int64) | Objects the last copy could not copy |
pendingBytes |
integer(int64) | |
store |
string | |
writeFallback |
boolean |
TableChange¶
| Name | Type | Description |
|---|---|---|
deletes |
integer(int64) | |
inserts |
integer(int64) | |
truncates |
integer(int64) | |
updates |
integer(int64) |
TableInfo¶
| Name | Type | Description |
|---|---|---|
bytes |
integer(int64) | |
columns |
Array<string> | |
fullName |
string | |
name |
string | |
rowsEstimate |
integer(int64) | |
schema |
string |
TableList¶
| Name | Type | Description |
|---|---|---|
tables |
Array<TableInfo> |
TagRequest¶
| Name | Type | Description |
|---|---|---|
commit |
string | Commit ID or a unique prefix |
name |
string | |
reason |
string |
Tags¶
| Name | Type | Description |
|---|---|---|
pinExpires |
string(date-time) | |
pinned |
boolean | |
pinnedBy |
string | |
pinReason |
string | |
tiers |
Array<string> | |
updatedAt |
string(date-time) | |
verified |
boolean | |
verifiedAt |
string(date-time) | |
verifyFailed |
boolean | |
verifyRTOSeconds |
number(double) |
Target¶
| Name | Type | Description |
|---|---|---|
backups |
integer | |
chainBroken |
boolean | |
engine |
string | |
env |
string | |
gaps |
integer | |
health |
Health | |
healthReason |
string | |
lagSeconds |
integer(int64) | |
lastFull |
BackupRef | |
lastSuccess |
string(date-time) | |
lastVerification |
string(date-time) | |
message |
string | |
name |
string | |
namespace |
string | |
nextRun |
string(date-time) | |
onlyInStore |
boolean | |
org |
string | |
phase |
string | |
pitr |
boolean | |
policy |
string | |
project |
string | |
replicationDenied |
string | Set while the target's user may not replicate (ADR 0016): what is missing |
replicationFix |
string | What to grant so physical backups and the change stream can run |
running |
string | |
segments |
integer | |
store |
string | |
storedBytes |
integer(int64) | |
suspended |
boolean | |
windows |
Array<Window> |
TargetDetail¶
| Name | Type | Description |
|---|---|---|
spec |
The BackupTarget's spec (see the CRD) | |
status |
The BackupTarget's status (see the CRD) | |
target |
Target |
TargetList¶
| Name | Type | Description |
|---|---|---|
catalogVersion |
integer(int64) | |
targets |
Array<Target> |
TargetSegmentList¶
| Name | Type | Description |
|---|---|---|
segments |
Array<Segment> | |
since |
string(date-time) | |
target |
string |
UndoRequest¶
| Name | Type | Description |
|---|---|---|
confirm |
string | Must equal the target name |
credentialsSecret |
string | Admin user in the target namespace |
reason |
string |
VolumeChange¶
| Name | Type | Description |
|---|---|---|
after |
integer(int64) | |
before |
integer(int64) | |
delta |
integer(int64) | |
kind |
string | added, removed or changed |
path |
string | |
type |
string |
VolumeCopyInfo¶
| Name | Type | Description |
|---|---|---|
allocatedBytes |
integer(int64) | |
at |
string(date-time) | |
chunks |
integer(int64) | |
dataBytes |
integer(int64) | |
dirs |
integer(int64) | |
durationSeconds |
number(double) | |
files |
integer(int64) | |
id |
string | |
minRestoreBytes |
integer(int64) | |
newChunks |
integer(int64) | |
notes |
Array<string> | |
pvc |
string | |
snapshot |
string | |
source |
string | snapshot or live |
throughputMBps |
number(double) | |
uploadedBytes |
integer(int64) | Stored bytes of the chunks this copy added |
VolumeCopyList¶
| Name | Type | Description |
|---|---|---|
copies |
Array<VolumeCopyInfo> |
VolumeDiff¶
| Name | Type | Description |
|---|---|---|
added |
integer | |
addedBytes |
integer(int64) | |
changed |
integer | |
changedBytes |
integer(int64) | |
changes |
Array<VolumeChange> | |
from |
string | |
removed |
integer | |
removedBytes |
integer(int64) | |
to |
string | |
truncated |
boolean | |
unchanged |
integer |
VolumeExportInfo¶
| Name | Type | Description |
|---|---|---|
contentType |
string | |
copy |
string | |
created |
string(date-time) | |
expireTime |
string(date-time) | |
fileName |
string | |
files |
integer(int64) | |
format |
string | |
message |
string | |
name |
string | |
namespace |
string | |
path |
string | |
phase |
string | Running, Succeeded, Failed or Expired |
pvc |
string | |
readyTime |
string(date-time) | |
requestedBy |
string | |
size |
integer(int64) | |
target |
string | |
truncated |
boolean |
VolumeExportLink¶
| Name | Type | Description |
|---|---|---|
contentType |
string | |
expires |
string(date-time) | |
fileName |
string | |
size |
integer(int64) | |
url |
string | Presigned GET URL of the export: anyone holding it can download until it expires |
VolumeExportRequest¶
| Name | Type | Description |
|---|---|---|
format |
string | Default: file for a file, zip for a folder |
path |
string | File or folder, relative to the volume root (empty: the whole volume) |
reason |
string | |
ttl |
Duration |
VolumeFile¶
| Name | Type | Description |
|---|---|---|
files |
integer(int64) | Files under a directory |
link |
string | |
mode |
string | |
mtime |
string(date-time) | |
name |
string | |
path |
string | |
size |
integer(int64) | File size, or the total of a directory's files |
type |
string | file, dir or symlink |
VolumeFileDetail¶
| Name | Type | Description |
|---|---|---|
allocated |
integer(int64) | Space the file took on the source volume |
chunks |
integer | Content chunks of a file |
files |
integer(int64) | Files under a directory |
gid |
integer | |
link |
string | |
mode |
string | |
mtime |
string(date-time) | |
name |
string | |
path |
string | |
previewable |
boolean | A file small enough to try a preview of |
size |
integer(int64) | File size, or the total of a directory's files |
type |
string | file, dir or symlink |
uid |
integer |
VolumeFileList¶
| Name | Type | Description |
|---|---|---|
dir |
string | |
dirFiles |
integer(int64) | Files under dir |
dirSize |
integer(int64) | Total size of the files under dir |
files |
Array<VolumeFile> | |
offset |
integer | |
total |
integer | Entries that match (the same on every page) |
truncated |
boolean | More entries follow (next page at offset + the entries returned) |
VolumeInfo¶
| Name | Type | Description |
|---|---|---|
copyMessage |
string | |
copyRunning |
boolean | |
dataBytes |
integer(int64) | Size of the files in the newest copy, uncompressed |
lastCopy |
string | |
lastCopyTime |
string(date-time) | |
lastSnapshot |
string | |
lastSnapshotTime |
string(date-time) | |
minRestoreBytes |
integer(int64) | Smallest volume the newest copy fits in |
pvc |
string | |
readySnapshots |
integer | |
skipped |
string |
VolumePreview¶
| Name | Type | Description |
|---|---|---|
contentType |
string | text/plain; charset=utf-8, or image/png, image/jpeg, image/gif, image/webp |
data |
string(byte) | The image (base64) |
fileName |
string | |
size |
integer(int64) | |
text |
string | |
truncated |
boolean | The text is only the start of the file |
VolumeRestoreRequest¶
| Name | Type | Description |
|---|---|---|
at |
string | RFC3339 time |
copy |
string | Copy ID to restore (default: the newest copy at or before at) |
from |
string | snapshot (default) or copy (from S3) |
pvc |
string | PVC of the target to restore |
reason |
string | |
size |
string | Size of the new PVC (default: enough for the data) |
snapshot |
string | VolumeSnapshot to restore (default: the newest ready one at or before at) |
storageClass |
string | |
toPVC |
string | New PVC (must not exist) |
VolumeSandboxInfo¶
| Name | Type | Description |
|---|---|---|
copy |
string | |
copyTime |
string(date-time) | |
created |
string(date-time) | |
dataBytes |
integer(int64) | |
expires |
string(date-time) | |
expose |
boolean | |
files |
integer(int64) | |
host |
string | In-cluster host of the SFTP Service |
hostKey |
string | The server's public host key (known_hosts) |
hostKeyFingerprint |
string | |
message |
string | |
name |
string | |
namespace |
string | |
owner |
string | |
phase |
string | |
port |
integer | |
pvc |
string | |
route |
string | |
routeType |
string | |
target |
string | namespace/name |
user |
string | SFTP user name (any name works; keys decide) |
VolumeSandboxList¶
| Name | Type | Description |
|---|---|---|
volumeSandboxes |
Array<VolumeSandboxInfo> |
VolumeSandboxRequest¶
| Name | Type | Description |
|---|---|---|
at |
string | RFC3339 time |
authorizedKeys |
Array<string> | SSH public keys (authorized_keys lines) that may log in |
copy |
string | Copy ID (default: the newest copy at or before at) |
expose |
boolean | |
pvc |
string | |
reason |
string | |
size |
string | |
storageClass |
string | |
target |
string | namespace/name of the VolumeTarget |
ttl |
Duration |
VolumeTargetInfo¶
| Name | Type | Description |
|---|---|---|
copySchedule |
string | Schedule of S3 copies (empty when copies are off) |
lastRun |
string(date-time) | |
message |
string | |
name |
string | |
namespace |
string | |
nextCopy |
string(date-time) | |
nextRun |
string(date-time) | |
phase |
string | |
policy |
string | |
schedule |
string | |
volumes |
Array<VolumeInfo> |
VolumeTargetList¶
| Name | Type | Description |
|---|---|---|
volumeTargets |
Array<VolumeTargetInfo> |
Whoami¶
| Name | Type | Description |
|---|---|---|
externalURL |
string | |
principal |
Principal | |
version |
string |
Window¶
| Name | Type | Description |
|---|---|---|
from |
string(date-time) | |
to |
string(date-time) |
Common responses¶
This section describes common responses that are reused across operations.
Action¶
The write was accepted
Error¶
Error (400 invalid request, 401 unauthenticated, 403 role, 404, 409, 422 not restorable, 5xx)
Common parameters¶
This section describes common parameters that are reused across operations.
Namespace¶
| Name | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
ns |
path | None | No |
Name¶
| Name | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
name |
path | None | No |
BackupID¶
| Name | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
id |
path | string | No |
Since¶
| Name | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
since |
query | string | No |
At¶
| Name | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
at |
query | string | No |
Security schemes¶
| Name | Type | Scheme | Description |
|---|---|---|---|
| accessJWT | apiKey | ||
| accessToken | apiKey | ||
| accessCookie | apiKey |
Tags¶
| Name | Description |
|---|---|
| targets | |
| backups | |
| changes | |
| restores | |
| agents | |
| sandboxes | |
| volumes | |
| activity | |
| ai | |
| meta |
Using the document¶
Every Tenax serves this document at /api/v1/openapi.yaml; generate a client in any language from it (the
tenax CLI uses one generated with oapi-codegen). Requests are validated against it, and each operation needs at
least the role in its x-tenax-role (roles). Errors are {"error": "…"} with an HTTP
status.