Skip to content
🐋 Cetacean

Schema Reference

Cetacean API responses include JSON-LD metadata (@context, @id, @type) for self-description. This page documents the vocabulary. The machine-readable context document is available at /api/schema.jsonld.

Types

Each API response includes an @type value identifying the resource kind.

Collection

A paginated list of resources.

Endpoint All list endpoints Properties items , total , limit , offset
Node

A Docker Swarm node (manager or worker).

Endpoint /nodes/{id} Properties node , name , role , state , availability , tasks , services
Service

A Docker Swarm service.

Endpoint /services/{id} Properties service , name , mode , replicas , image , ports , networks , aliases , tasks , updateStatus , state , changes , integrations
Task

A single running or completed container instance.

Endpoint /tasks/{id} Properties task , state , slot , image , hostname
Stack

A group of services deployed together via `com.docker.stack.namespace` labels.

Endpoint /stacks/{name} Properties stack , name , tasks
Config

A Docker Swarm config object.

Endpoint /configs/{id} Properties config , name , services
Secret

A Docker Swarm secret (data always redacted).

Endpoint /secrets/{id} Properties secret , name , services
Network

A Docker network.

Endpoint /networks/{id} Properties network , name , driver , scope , services
Volume

A Docker volume.

Endpoint /volumes/{name} Properties volume , name , driver , scope , services
Plugin

An installed Docker plugin.

Endpoint /plugins/{name} Properties plugin , name
Cluster

Cluster-wide overview with counts and resource totals.

Swarm

Swarm configuration: join tokens, Raft config, CA config.

Endpoint /swarm Properties managerAddr
ServiceEnv

Service environment variables.

Endpoint /services/{id}/env Properties env
ServicePorts

Service port bindings.

Endpoint /services/{id}/ports Properties ports
ServiceLabels

Service labels.

Endpoint /services/{id}/labels Properties labels
ServiceResources

Service CPU/memory reservations and limits.

Endpoint /services/{id}/resources Properties resources
ServicePlacement

Service placement constraints and preferences.

Endpoint /services/{id}/placement Properties placement
ServiceUpdatePolicy

Rolling update configuration for a service.

Endpoint /services/{id}/update-policy Properties updatePolicy
ServiceRollbackPolicy

Rollback configuration for a service.

Endpoint /services/{id}/rollback-policy Properties rollbackPolicy
ServiceLogDriver

Log driver configuration for a service.

Endpoint /services/{id}/log-driver Properties logDriver
ServiceHealthcheck

Healthcheck configuration for a service.

Endpoint /services/{id}/healthcheck Properties healthcheck
ServiceConfigs

Config references attached to a service.

Endpoint /services/{id}/configs Properties configs
ServiceSecrets

Secret references attached to a service.

Endpoint /services/{id}/secrets Properties secrets
ServiceNetworks

Network attachments for a service.

Endpoint /services/{id}/networks Properties networks
ServiceMounts

Mount configuration for a service.

Endpoint /services/{id}/mounts Properties mounts
ServiceMode

Service scheduling mode and replica count.

Endpoint /services/{id}/mode Properties mode , replicas
ServiceEndpointMode

Service endpoint mode (vip or dnsrr).

Endpoint /services/{id}/endpoint-mode Properties endpointMode
NodeLabels

Node labels.

Endpoint /nodes/{id}/labels Properties labels
NodeRole

Node role in the swarm.

Endpoint /nodes/{id}/role Properties role , isLeader , managerCount
ClusterCapacity

Cluster resource capacity: max single-node values and totals.

Endpoint /cluster/capacity Properties maxNodeCPU , maxNodeMemory , totalCPU , totalMemory , nodeCount
SearchResult

Cross-resource search results.

Endpoint /search Properties query , results , counts , total
RecommendationCollection

Cluster health recommendations from the recommendation engine.

Endpoint /recommendations Properties items , total , summary , computedAt
HistoryEntry

A resource change event from the history ring buffer or SSE stream.

Endpoint /history, /events Properties kind , action , resourceId , timestamp , name
ServiceRef

A cross-reference to a service (used in config/secret/network/volume detail responses).

Endpoint Embedded in detail responses Properties name
Health

Health check response with build metadata and operations level.

Endpoint /-/health Properties version , commit , buildDate , operationsLevel
ProblemDetail

An error response following RFC 9457 Problem Details.

Endpoint Error responses Properties type , title , status , detail , instance , requestId

Properties

Properties are mapped to IRIs via the @context. The urn:cetacean: namespace is the default vocabulary; RFC 9457 problem detail fields use urn:ietf:rfc:9457#.

action

The action performed on a resource (create, update, remove).

IRI urn:cetacean:action Type String Used on HistoryEntry
aliases

DNS aliases for a service on a given network.

IRI urn:cetacean:aliases Type Array of String Used on Service
availability

The scheduling availability of a node: active, pause, or drain.

IRI urn:cetacean:availability Type String Used on Node
buildDate

Build timestamp of the running binary.

IRI urn:cetacean:buildDate Type String Used on Health
changes @list

Spec changes from the previous service version.

IRI urn:cetacean:changes Type Array Used on Service
commit

Git commit SHA of the build.

IRI urn:cetacean:commit Type String Used on Health
computedAt

Timestamp when recommendations were last computed.

IRI urn:cetacean:computedAt Type DateTime Used on RecommendationCollection
config

The Docker config object.

IRI urn:cetacean:config Type Object Used on Config
configs @list

Config references attached to a service.

IRI urn:cetacean:configs Type Array Used on ServiceConfigs
counts

Result counts per resource type.

IRI urn:cetacean:counts Type Object Used on SearchResult
detail

A human-readable explanation specific to this occurrence (RFC 9457).

IRI urn:ietf:rfc:9457#detail Type String Used on ProblemDetail
driver

The driver backing a network or volume (e.g., overlay, local).

IRI urn:cetacean:driver Type String Used on Network , Volume
endpointMode

Endpoint mode for a service: vip or dnsrr.

IRI urn:cetacean:endpointMode Type String Used on ServiceEndpointMode
env

Environment variables as a key-value map.

IRI urn:cetacean:env Type Object Used on ServiceEnv
healthcheck

Container healthcheck configuration.

IRI urn:cetacean:healthcheck Type Object Used on ServiceHealthcheck
hostname

Node hostname in a task cross-reference.

IRI urn:cetacean:hostname Type String Used on Task
image

The container image reference (registry/name:tag@digest).

IRI urn:cetacean:image Type String Used on Service , Task
instance

A URI reference identifying the specific occurrence of the problem (RFC 9457).

IRI urn:ietf:rfc:9457#instance Type URI Used on ProblemDetail
integrations @list

Detected third-party integrations for a service.

IRI urn:cetacean:integrations Type Array Used on Service
isLeader

Whether this manager node is the Raft leader.

IRI urn:cetacean:isLeader Type Boolean Used on NodeRole
items @set

The set of resources in a collection response.

IRI urn:cetacean:items Type Array Used on Collection , RecommendationCollection
kind

The resource kind for history and SSE events (e.g., service, node).

IRI urn:cetacean:kind Type String Used on HistoryEntry
labels

Labels as a key-value map.

IRI urn:cetacean:labels Type Object Used on ServiceLabels , NodeLabels
limit

Page size limit for a collection response.

IRI urn:cetacean:limit Type Integer Used on Collection
logDriver

Log driver name and options.

IRI urn:cetacean:logDriver Type Object Used on ServiceLogDriver
managerAddr

Manager node address for remote Docker API access.

IRI urn:cetacean:managerAddr Type String Used on Swarm
managerCount

Total number of manager nodes in the swarm.

IRI urn:cetacean:managerCount Type Integer Used on NodeRole
maxNodeCPU

CPU capacity (nanoCPUs) of the largest node in the cluster.

IRI urn:cetacean:maxNodeCPU Type Integer Used on ClusterCapacity
maxNodeMemory

Memory capacity (bytes) of the largest node in the cluster.

IRI urn:cetacean:maxNodeMemory Type Integer Used on ClusterCapacity
mode

The scheduling mode of a service: replicated or global.

IRI urn:cetacean:mode Type String Used on Service , ServiceMode
mounts @list

Mount configuration attached to a service.

IRI urn:cetacean:mounts Type Array Used on ServiceMounts
name

The human-readable name of a resource. For nodes this is the hostname; for services, configs, secrets, networks, and volumes it is the Docker object name.

IRI urn:cetacean:name Type String Used on Node , Service , Stack , Config , Secret , Network , Volume , ServiceRef
network

The Docker network object.

IRI urn:cetacean:network Type Object Used on Network
networks @list

The networks a service is attached to.

IRI urn:cetacean:networks Type Array of NetworkAttachment Used on Service , ServiceNetworks
node

The Docker node object.

IRI urn:cetacean:node Type Object Used on Node
nodeCount

Number of nodes in the cluster.

IRI urn:cetacean:nodeCount Type Integer Used on Cluster , ClusterCapacity
nodesDown

Number of nodes in down state.

IRI urn:cetacean:nodesDown Type Integer Used on Cluster
nodesDraining

Number of nodes in drain state.

IRI urn:cetacean:nodesDraining Type Integer Used on Cluster
nodesReady

Number of nodes in ready state.

IRI urn:cetacean:nodesReady Type Integer Used on Cluster
offset

Page offset for a collection response.

IRI urn:cetacean:offset Type Integer Used on Collection
operationsLevel

Current operations level (0=read-only, 1=operational, 2=configuration, 3=impactful).

IRI urn:cetacean:operationsLevel Type Integer Used on Health
placement

Placement constraints and preferences for a service.

IRI urn:cetacean:placement Type Object Used on ServicePlacement
plugin

The Docker plugin object.

IRI urn:cetacean:plugin Type Object Used on Plugin
ports @list

Published port bindings for a service, ordered by target port.

IRI urn:cetacean:ports Type Array of PortConfig Used on Service , ServicePorts
prometheusConfigured

Whether a Prometheus instance is configured.

IRI urn:cetacean:prometheusConfigured Type Boolean Used on Cluster
query

The search query string.

IRI urn:cetacean:query Type String Used on SearchResult
replicas

The configured number of replicas for a replicated service.

IRI urn:cetacean:replicas Type Integer Used on Service , ServiceMode
requestId

Unique request identifier for error correlation.

IRI urn:cetacean:requestId Type String Used on ProblemDetail
reservedCPU

Total reserved CPU (nanoCPUs) across all services.

IRI urn:cetacean:reservedCPU Type Integer Used on Cluster
reservedMemory

Total reserved memory (bytes) across all services.

IRI urn:cetacean:reservedMemory Type Integer Used on Cluster
resourceId

The ID of the affected resource.

IRI urn:cetacean:resourceId Type String Used on HistoryEntry
resources

CPU/memory reservations and limits for a service.

IRI urn:cetacean:resources Type Object Used on ServiceResources
results

Search results grouped by resource type.

IRI urn:cetacean:results Type Object Used on SearchResult
role

The role of a node in the swarm: manager or worker.

IRI urn:cetacean:role Type String Used on Node , NodeRole
rollbackPolicy

Rollback configuration for a service.

IRI urn:cetacean:rollbackPolicy Type Object Used on ServiceRollbackPolicy
scope

The scope of a network or volume: swarm or local.

IRI urn:cetacean:scope Type String Used on Network , Volume
secret

The Docker secret object (data always redacted).

IRI urn:cetacean:secret Type Object Used on Secret
secrets @list

Secret references attached to a service.

IRI urn:cetacean:secrets Type Array Used on ServiceSecrets
service

The Docker service object.

IRI urn:cetacean:service Type Object Used on Service
serviceCount

Number of services in the cluster.

IRI urn:cetacean:serviceCount Type Integer Used on Cluster
services @list

Cross-referenced services using this resource.

IRI urn:cetacean:services Type Array of ServiceRef Used on Config , Secret , Network , Volume
servicesConverged

Number of services with all tasks running.

IRI urn:cetacean:servicesConverged Type Integer Used on Cluster
servicesDegraded

Number of services with fewer tasks than desired.

IRI urn:cetacean:servicesDegraded Type Integer Used on Cluster
slot

The slot number of a task within a replicated service. Each replica occupies a unique slot.

IRI urn:cetacean:slot Type Integer Used on Task
stack

The stack detail with member resources.

IRI urn:cetacean:stack Type Object Used on Stack
stackCount

Number of stacks in the cluster.

IRI urn:cetacean:stackCount Type Integer Used on Cluster
state

The current state of a resource. For nodes: ready, down, or unknown. For tasks: running, failed, complete, etc. For services: a derived state based on running/desired task counts.

IRI urn:cetacean:state Type String Used on Node , Service , Task
status

The HTTP status code for the problem (RFC 9457).

IRI urn:ietf:rfc:9457#status Type Integer Used on ProblemDetail
summary

Severity summary (critical/warning/info counts).

IRI urn:cetacean:summary Type Object Used on RecommendationCollection
task

The Docker task object, enriched with ServiceName and NodeHostname.

IRI urn:cetacean:task Type Object Used on Task
taskCount

Number of tasks in the cluster.

IRI urn:cetacean:taskCount Type Integer Used on Cluster
tasks @list

The list of tasks belonging to a service or running on a node.

IRI urn:cetacean:tasks Type Array of Task Used on Service , Node , Stack
tasksByState

Task counts grouped by state.

IRI urn:cetacean:tasksByState Type Object Used on Cluster
timestamp

When the event occurred.

IRI urn:cetacean:timestamp Type DateTime Used on HistoryEntry
title

A short human-readable summary of the problem type (RFC 9457).

IRI urn:ietf:rfc:9457#title Type String Used on ProblemDetail
total

Total count of items.

IRI urn:cetacean:total Type Integer Used on Collection , SearchResult , RecommendationCollection
totalCPU

Total cluster CPU capacity (nanoCPUs).

IRI urn:cetacean:totalCPU Type Integer Used on Cluster , ClusterCapacity
totalMemory

Total cluster memory capacity (bytes).

IRI urn:cetacean:totalMemory Type Integer Used on Cluster , ClusterCapacity
type

A URI reference identifying the problem type (RFC 9457).

IRI urn:ietf:rfc:9457#type Type URI Used on ProblemDetail
updatePolicy

Rolling update configuration for a service.

IRI urn:cetacean:updatePolicy Type Object Used on ServiceUpdatePolicy
updateStatus

The status of a rolling update for a service, if one is in progress.

IRI urn:cetacean:updateStatus Type UpdateStatus Used on Service
version

Software version string.

IRI urn:cetacean:version Type String Used on Health
volume

The Docker volume object.

IRI urn:cetacean:volume Type Object Used on Volume