Download OpenAPI specification:Download
Calinora Pilot API for comprehensive Kafka cluster management and monitoring
Calinora Pilot is an all-in-one, container-native tool that live-samples Kafka traffic, scores partition activity, exposes management APIs (including intelligent partition redistribution) and displays everything in a modern React dashboard.
HA mode permits prepared rebalance execution, broker drains through POST /brokers/maintenance and POST /brokers/{brokerId}/maintenance as operations of kind drain the journal keeps, or, with nothing to move, as fenced broker-state writes, maintenance removal through DELETE /brokers/{brokerId}/maintenance as a fenced broker-state write, topic and partition redistribution through POST /topics/{topic}/redistribute and POST /topics/{topic}/partitions/{partition}/redistribute as operations of kind redistribution, bulk reassignment through POST /topics/{topic}/partitions/bulk as operations of kind bulk, the reversal of a recorded reassignment through POST /audit-log/revert as operations of kind revert, the reversal of an audited topic configuration, ACL, client quota or offset reset change through POST /audit-log/revert as an administrative operation of the reverted change's kind, or, with nothing to change, without an operation, preferred leader election through POST /preferred-leader-election and POST /topics/{topic}/preferred-leader-election as administrative operations of kind election, which run beside the data movement, or, with nothing to elect, without an operation, topic configuration changes through PUT /topics/{topic}/config and PUT /topics/config/bulk as administrative operations of kind topic-config, which run beside the data movement, or, with nothing to send, without an operation, client quota changes through PUT and DELETE on each of the eight /quotas entity routes as administrative operations of kind quota, or, with nothing to send, without an operation, ACL changes through POST /acls, PUT /acls and DELETE /acls as administrative operations of kind acl, or, with nothing to change, without an operation, consumer group offset resets and deletes through POST /consumer-groups/{group}/reset-offsets and DELETE /consumer-groups/{group} as administrative operations of kind consumer-group, or, for a reset of no partition, without an operation, log dir moves through POST /brokers/{brokerId}/logdirs/move, POST /topics/{topic}/logdirs/move and POST /topics/{topic}/partitions/{partition}/logdirs/move as administrative operations of kind logdir, which run beside the data movement and stay outstanding until their copies finish, cancellation of the accepted owned operation (all included), changes to the shared execution limits through PUT /reassignments/tuning, the monitor resync through POST /reassignments/resync and the dry run of an offset reset. A live accept requires an Idempotency-Key; previews are reads, refused only for what a plan's content keeps the HA executor from running. The request-level audit event of an accepted operation is delivered once from the journal. Broker restarts, stops and starts through POST /agents/{brokerId}/restart, POST /agents/{brokerId}/stop and POST /agents/{brokerId}/start and remote agent upgrades through POST /agents/{brokerId}/upgrade-remote run as administrative operations of kind agent-command; SSH deploys through POST /agents/deploy, POST /agents/deploy/stream, POST /agents/deploy/bulk, POST /agents/deploy/bulk/stream and POST /agents/{brokerId}/upgrade run on the active replica as deploy sessions the journal records; the agent settings (PUT /agents/config), the enrollment tokens and the token a certificate bootstrap spends are journal records. A rolling restart through POST /rolling-restart runs as an operation of kind rolling-restart in the data movement's place, which the active replica runs broker by broker and the next active replica resumes at the recorded step; POST /rolling-restart/cancel commits its cancel intent, and POST /rolling-restart/dismiss records the dismissal of a failed or cancelled restart's outcome under an Idempotency-Key. Other Kafka and agent mutations return 503 with HA_UNSUPPORTED. Monitoring readiness and administrative mutation readiness are independent. Pilot sends one administrative request at a time across all operations, and the others wait for it; the request in flight is not uncertain. An uncertain administrative attempt freezes further administrative effects until resolved by explicit evidence; an agent command waiting for its result freezes only its own operation until its deadline, also on the next active replica. The 60-second escalation does not authorize a retry. GET /ha exposes current readiness and uncertainty.
When authentication is enabled every endpoint is protected except the public endpoints listed below.
A protected endpoint accepts a session cookie or an Authorization: Bearer credential.
Session (UI): Users authenticate via OAuth2/OIDC and receive an HMAC-signed, HttpOnly session
cookie (pilot_session by default, configurable with AUTH_COOKIE_NAME). /auth/me,
/auth/logout and /auth/refresh accept the cookie only. In HA mode bounded identity-only
session cookies and PKCE cookies use authenticated encryption derived from the shared
AUTH_COOKIE_SECRET. A successor retains browser identity until the session expires.
Provider access and refresh tokens remain local to the active process; provider-token
refresh or token exposure on a successor requires login again. Refresh on the same active
process reissues the session cookie.
Bearer PAT (API/MCP): Personal Access Tokens carry the pat_ prefix and are validated against
the token store. A read scope token is rejected on non-GET requests outside /mcp; inside /mcp
it cannot call mutation tools.
Bearer OAuth2/OIDC token: A JWT is verified against the provider's published JWKS, including
exp, iss and aud. There is no unverified decode path: a token that cannot be verified is
rejected. Audience binding fails closed. When no AUTH_<PROVIDER>_ALLOWED_AUDIENCES is configured
the provider's client id is the expected audience (api://<client-id> and <client-id> for
entraid), and a provider that resolves no audience at all rejects bearer JWTs outright. The azp
authorized-party claim is accepted alongside aud. Opaque, non-JWT tokens (for example GitHub's)
authenticate only through a successful provider userinfo call.
Error semantics: 401 means the caller is not authenticated: missing, malformed, expired,
unverifiable or audience-unbound credential, or a PAT that no longer validates. 403 means the
caller authenticated but is not permitted: a configured organization, email domain, group or
audience allowlist rejected the identity, or a read scope PAT attempted a write. Mutation
endpoints also return 403 when no valid license is present; the license check is separate from
the authentication check. Cancelling a partition move (POST /reassignments/{id}/cancel) or a
rolling restart (POST /rolling-restart/cancel) needs no license, and neither does dismissing
the outcome of a failed or cancelled rolling restart (POST /rolling-restart/dismiss). In HA
mode a repeat under the
Idempotency-Key of an accepted request answers its recorded result also after the license
lapsed, while a new request returns 403.
Before the first Kafka connection (standalone mode only): When its first connection attempt
fails or runs longer than 5 seconds, a standalone Pilot starts serving before it has reached the
Kafka cluster and retries the connection in the background. Until it connects, /health, /ready,
/cluster/connection and /metrics answer as documented, and every other endpoint returns 503
with code: KAFKA_UNAVAILABLE and a Retry-After header when the next attempt is scheduled.
Authentication cannot run in this phase, so with authentication enabled these responses name no
brokers and no connection error; the Pilot log does. In HA mode no replica serves the API before
its promotion has connected to Kafka: a standby has no API listener, and the active replica
answers 503 with code: HA_NOT_READY until its monitoring is ready.
Public endpoints: /health, /cluster/connection, /auth/*, /openapi.yaml, /openapi.json,
/agents/bootstrap-cert (guarded by its own enrollment token), GET /agents/binary and
GET /agents/binary/sha256 (the agent release and its checksum), the /docs/ UI, and /metrics
(served at the server root, outside this spec's base path). /ready is protected.
MCP endpoint: The Model Context Protocol server is available at /mcp for AI agent integration.
Its clients can use only tools that do not change the cluster unless PILOT_MCP_WRITE_ENABLED=true
and a sign-in provider is configured; even then a tool that changes the cluster needs a write
scope PAT or an MCP OAuth token with the write scope. GET /integrations/mcp reports the state.
In HA mode apply_proposal, the MCP tools that move partitions and the preferred leader
election tools report the status pending, accepted or already_accepted with the operationId,
an election that ended within the call's wait its per-partition result; calling a tool again
with the same idempotency key polls a pending accept.
OAuth discovery is public at the root paths /.well-known/oauth-protected-resource/api/v1/mcp
and /.well-known/oauth-protected-resource. When configured, unauthenticated MCP requests receive
a 401 Bearer challenge with resource_metadata and the delegated read scope.
Pilot is not an OAuth authorization server. Local authorization-server and OIDC discovery
fallback paths return JSON 404 responses without redirecting to browser login.
Returns the state of all agents known to Pilot. When agent management is disabled
returns an empty list with enabled: false.
{- "success": true,
- "data": {
- "agents": [
- {
- "agentId": "string",
- "brokerId": 0,
- "version": "string",
- "status": "online",
- "hostname": "string",
- "lastSeen": "2019-08-24T14:15:22Z",
- "uptimeSeconds": 0,
- "connectedAt": "2019-08-24T14:15:22Z",
- "kafkaVersion": "string",
- "clusterId": "string",
- "binaryHash": "string",
- "upgradeAvailable": true,
- "brokerRunning": true,
- "systemMetrics": {
- "cpuPercent": 0,
- "memoryUsedBytes": 0,
- "memoryTotalBytes": 0,
- "openFileDescriptors": 0,
- "maxFileDescriptors": 0,
- "diskUsage": [
- {
- "mountPoint": "string",
- "totalBytes": 0,
- "usedBytes": 0,
- "availableBytes": 0,
- "filesystemType": "string",
- "usagePercent": 0,
- "inodeTotal": 0,
- "inodeUsed": 0
}
], - "network": {
- "bytesSent": 0,
- "bytesReceived": 0,
- "packetsSent": 0,
- "packetsReceived": 0,
- "errorsIn": 0,
- "errorsOut": 0,
- "dropsIn": 0,
- "dropsOut": 0,
- "linkSpeedMbps": 0
}, - "diskIO": {
- "readBytes": 0,
- "writeBytes": 0,
- "readOps": 0,
- "writeOps": 0,
- "ioTimeMs": 0,
- "weightedIoTimeMs": 0
}, - "logDirUsage": [
- {
- "path": "string",
- "totalBytes": 0,
- "usedBytes": 0,
- "availableBytes": 0,
- "usagePercent": 0
}
]
}, - "discovery": {
- "runtime": {
- "type": "string",
- "os": "string",
- "kernel": "string",
- "arch": "string",
- "systemdAvailable": true
}, - "distribution": {
- "vendor": "string",
- "version": "string",
- "kafkaVersion": "string",
- "kraftMode": true,
- "kraftRole": "string"
}, - "process": {
- "pid": 0,
- "user": "string",
- "javaVersion": "string",
- "heapMaxMb": 0,
- "jmxPort": 0,
- "jmxAuth": true
}, - "paths": {
- "installDir": "string",
- "configFile": "string",
- "logDirs": [
- "string"
], - "dataDirs": [
- "string"
], - "pidFile": "string"
}, - "service": {
- "manager": "string",
- "unitName": "string",
- "restartCommand": "string",
- "stopCommand": "string",
- "statusCommand": "string"
}, - "logFiles": [
- {
- "type": "string",
- "path": "string",
- "format": "string"
}
], - "confidence": 0,
- "receivedAt": "2019-08-24T14:15:22Z"
}, - "vendor": "string",
- "kraftMode": true,
- "runtimeType": "string",
- "serviceManager": "string"
}
], - "enabled": true,
- "summary": {
- "total": 0,
- "online": 0,
- "offline": 0
}, - "grpcPort": 0
}
}Returns the Pilot Agent binary for the requested architecture as an application/octet-stream. The binary is fetched from the configured upstream download URL and cached locally by Pilot. Public, so agents can download it without credentials; an upgrade command pins the binary's SHA256.
| arch | string Default: "amd64" Enum: "amd64" "arm64" CPU architecture |
{- "success": false,
- "error": "string",
- "code": "KAFKA_UNAVAILABLE",
- "details": "string",
- "reason": "string",
- "affectedBrokerIds": [
- 0
], - "operationId": "string"
}Returns the full SHA256 hex digest of the cached agent binary for the requested architecture. Public, like the binary.
| arch | string Default: "amd64" Enum: "amd64" "arm64" |
{- "success": true,
- "data": {
- "checksum": "2a91f4e9b3c5d1a7..."
}
}Returns the current upstream download URL, the agent version, and a map of architectures for which a binary is cached.
{- "success": true,
- "data": {
- "downloadUrl": "string",
- "version": "string",
- "binaryAvailable": {
- "property1": true,
- "property2": true
}
}
}Updates the upstream URL from which Pilot fetches the agent binary. The change is not persisted and reverts on restart. Requires a valid license (management mode). In HA mode the URL commits to the journal first, which keeps it for the next active replica, and needs administrative readiness; the event and the answer are standalone's.
| downloadUrl required | string |
{- "downloadUrl": "string"
}{- "success": true,
- "data": {
- "downloadUrl": "string"
}
}Called by an agent during enrollment. Accepts either a single-use enrollment token or the persistent master bootstrap token. Single-use tokens are consumed on successful enrollment. Not license-gated because it is part of the agent bootstrap flow. Bootstrap requests over plain HTTP are logged with a security warning. In HA mode a single-use token must be live in the journal, and its use commits to the journal together with the agent.bootstrap-cert event, which names the certificate's serial and expiry, before the certificate is returned; the master token's event commits before the answer as well. A token a successor replays enrolls one agent only.
| agentId required | string |
| token required | string |
| csrPEM required | string PEM-encoded certificate signing request |
{- "agentId": "string",
- "token": "string",
- "csrPEM": "string"
}{- "success": true,
- "data": {
- "certPEM": "string",
- "caPEM": "string"
}
}Creates a new single-use bootstrap token that an agent can exchange for a signed certificate. Requires a valid license (management mode). In HA mode the token's record commits to the journal before the answer, so any replica that becomes active accepts it; the record keeps the token's SHA-256 and its masked value, never the token, which this answer returns once.
| label | string |
| ttlMinutes | integer Token TTL in minutes. 0 or omitted uses the default TTL. |
{- "label": "string",
- "ttlMinutes": 0
}{- "success": true,
- "data": {
- "token": "string",
- "expiresAt": "2019-08-24T14:15:22Z",
- "label": "string"
}
}Returns active enrollment tokens with masked token values. In HA mode the list is the journal's.
{- "success": true,
- "data": [
- {
- "label": "string",
- "maskedToken": "string",
- "expiresAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z"
}
]
}Revokes a previously issued single-use enrollment token. Requires a valid license (management mode). In HA mode the revocation commits to the journal.
| token required | string |
{- "token": "string"
}{- "success": true,
- "message": "string"
}Deploys a Pilot Agent to a remote host using SSH (optionally via one or more jump hosts). Requires HTTPS and a valid license (management mode). In HA mode the deploy requires an Idempotency-Key and administrative readiness and runs on the active replica in the request, as a deploy session the journal records before the first SSH dial; the session's end commits with its agent.deploy event. The record names the target, its jump hosts and the deploy settings and holds no credential: SSH passwords and private keys, the sudo password and the master token stay in the request, and the agent key Pilot issues is kept in memory only. A deploy cut off by a failover is reported interrupted by the next active replica, which records agent.deploy as interrupted by a failover. Repeating the request with the same key answers the recorded outcome without dialing again, 202 while it still runs; a new key deploys again.
| Idempotency-Key | string [ 1 .. 256 ] characters Required in HA mode; bounded stable key for retrying the same deploy. |
required | object (SSHHop) |
Array of objects (SSHHop) | |
| brokerId | integer <int32> >= 0 Broker the agent serves, where 0 is broker 0. Leave it out to let the agent detect its broker. |
| pilotServerAddress required | string gRPC address used by the agent to connect back to Pilot (e.g. |
| bootstrapUrl | string HTTP bootstrap URL used by the agent for certificate renewal. Defaults to the incoming request URL. |
| arch | string Default: "amd64" Enum: "amd64" "arm64" |
| serviceUser | string Default: "root" OS user the agent systemd service runs as. Defaults to |
| kafkaUnit | string Systemd unit name of the Kafka broker on the target host. Optional; auto-detected from the running Kafka JVM process when omitted. Comma-separated list for hosts running multiple brokers. |
| kafkaGroup | string Group that owns Kafka log files. Optional; auto-detected from the running unit when omitted. The pilot-agent user is added to this group so it can tail Kafka logs. |
| sudoPassword | string Password for sudo on the target host. Empty means passwordless sudo is attempted. |
{- "target": {
- "host": "string",
- "port": 22,
- "username": "string",
- "authMethod": "key",
- "privateKey": "string",
- "password": "string",
- "hostKey": "string",
- "knownFingerprints": [
- "string"
], - "allowInsecureHostKey": false
}, - "proxyHops": [
- {
- "host": "string",
- "port": 22,
- "username": "string",
- "authMethod": "key",
- "privateKey": "string",
- "password": "string",
- "hostKey": "string",
- "knownFingerprints": [
- "string"
], - "allowInsecureHostKey": false
}
], - "brokerId": 0,
- "pilotServerAddress": "string",
- "bootstrapUrl": "string",
- "arch": "amd64",
- "serviceUser": "root",
- "kafkaUnit": "kafka.service",
- "kafkaGroup": "kafka",
- "sudoPassword": "string"
}{- "success": true,
- "data": {
- "success": true,
- "steps": [
- "string"
], - "agentId": "string",
- "error": "string",
- "deployId": "string",
- "status": "interrupted"
}
}Deploys Pilot Agents to up to 50 target hosts sequentially. Requires HTTPS and a valid license (management mode). In HA mode it runs as one deploy session the journal records, as POST /agents/deploy does: the record takes each host's outcome as the host ends, the session's end commits with the agent.bulk-deploy event, and a failover interrupts only the hosts that had not ended, which that event's summary counts as failed.
| Idempotency-Key | string [ 1 .. 256 ] characters Required in HA mode; bounded stable key for retrying the same deploy. |
required | Array of objects (BulkDeployTarget) <= 50 items |
Array of objects (SSHHop) | |
| pilotServerAddress required | string gRPC address used by the agent to connect back to Pilot (e.g. |
| bootstrapUrl | string HTTP bootstrap URL used by the agent for certificate renewal. Defaults to the incoming request URL. |
| arch | string Shared architecture. Empty string auto-detects per host. |
| serviceUser | string Default: "root" OS user the agent systemd service runs as. Defaults to |
| kafkaUnit | string Systemd unit name of the Kafka broker on each target host. Optional; auto-detected from the running Kafka JVM process when omitted. Comma-separated list for hosts running multiple brokers. Applied to every host in the bulk batch. |
| kafkaGroup | string Group that owns Kafka log files. Optional; auto-detected from the running unit when omitted. The pilot-agent user is added to this group so it can tail Kafka logs. Applied to every host in the bulk batch. |
| sudoPassword | string Password for sudo on the target host. Empty means passwordless sudo is attempted. |
{- "targets": [
- {
- "target": {
- "host": "string",
- "port": 22,
- "username": "string",
- "authMethod": "key",
- "privateKey": "string",
- "password": "string",
- "hostKey": "string",
- "knownFingerprints": [
- "string"
], - "allowInsecureHostKey": false
}, - "brokerId": 0
}
], - "proxyHops": [
- {
- "host": "string",
- "port": 22,
- "username": "string",
- "authMethod": "key",
- "privateKey": "string",
- "password": "string",
- "hostKey": "string",
- "knownFingerprints": [
- "string"
], - "allowInsecureHostKey": false
}
], - "pilotServerAddress": "string",
- "bootstrapUrl": "string",
- "arch": "string",
- "serviceUser": "root",
- "kafkaUnit": "kafka.service",
- "kafkaGroup": "kafka",
- "sudoPassword": "string"
}{- "success": true,
- "data": {
- "results": [
- {
- "host": "string",
- "brokerId": 0,
- "result": {
- "success": true,
- "steps": [
- "string"
], - "agentId": "string",
- "error": "string",
- "deployId": "string",
- "status": "interrupted"
}
}
], - "summary": {
- "total": 0,
- "succeeded": 0,
- "failed": 0
}, - "deployId": "string"
}
}Runs the SSH connection, auth, and discovery steps of a deploy without installing anything. Returns host key material for trust-on-first-use. Requires HTTPS and a valid license (management mode). In HA mode it runs on the active replica with administrative readiness, needs no Idempotency-Key and records nothing in the journal.
required | object (SSHHop) |
Array of objects (SSHHop) | |
| brokerId | integer <int32> >= 0 Broker the agent serves, where 0 is broker 0. Leave it out to let the agent detect its broker. |
| pilotServerAddress required | string gRPC address used by the agent to connect back to Pilot (e.g. |
| bootstrapUrl | string HTTP bootstrap URL used by the agent for certificate renewal. Defaults to the incoming request URL. |
| arch | string Default: "amd64" Enum: "amd64" "arm64" |
| serviceUser | string Default: "root" OS user the agent systemd service runs as. Defaults to |
| kafkaUnit | string Systemd unit name of the Kafka broker on the target host. Optional; auto-detected from the running Kafka JVM process when omitted. Comma-separated list for hosts running multiple brokers. |
| kafkaGroup | string Group that owns Kafka log files. Optional; auto-detected from the running unit when omitted. The pilot-agent user is added to this group so it can tail Kafka logs. |
| sudoPassword | string Password for sudo on the target host. Empty means passwordless sudo is attempted. |
{- "target": {
- "host": "string",
- "port": 22,
- "username": "string",
- "authMethod": "key",
- "privateKey": "string",
- "password": "string",
- "hostKey": "string",
- "knownFingerprints": [
- "string"
], - "allowInsecureHostKey": false
}, - "proxyHops": [
- {
- "host": "string",
- "port": 22,
- "username": "string",
- "authMethod": "key",
- "privateKey": "string",
- "password": "string",
- "hostKey": "string",
- "knownFingerprints": [
- "string"
], - "allowInsecureHostKey": false
}
], - "brokerId": 0,
- "pilotServerAddress": "string",
- "bootstrapUrl": "string",
- "arch": "amd64",
- "serviceUser": "root",
- "kafkaUnit": "kafka.service",
- "kafkaGroup": "kafka",
- "sudoPassword": "string"
}{- "success": true,
- "data": {
- "success": true,
- "message": "string",
- "arch": "string",
- "hostname": "string",
- "detectedBrokerId": 0,
- "detectedKafkaUnit": "kafka.service",
- "detectedKafkaGroup": "kafka",
- "hopsReached": 0,
- "error": "string",
- "hostKey": "string",
- "hostKeyFingerprint": "string"
}
}Same as /agents/deploy but emits Server-Sent Events with per-step progress.
Events: step for each deploy step, done with the final result, or error
on failure. Requires HTTPS and a valid license (management mode). In HA mode it
runs as a deploy session the journal records, as /agents/deploy does; the last
event names the session as deployId, and a repeat under the key streams the
recorded outcome as its only event, with status interrupted for a session a
failover cut off. A repeat while the session still runs, or before its end
commits, answers 202 as JSON instead, and every refusal before the stream
starts answers as JSON.
| Idempotency-Key | string [ 1 .. 256 ] characters Required in HA mode; bounded stable key for retrying the same deploy. |
required | object (SSHHop) |
Array of objects (SSHHop) | |
| brokerId | integer <int32> >= 0 Broker the agent serves, where 0 is broker 0. Leave it out to let the agent detect its broker. |
| pilotServerAddress required | string gRPC address used by the agent to connect back to Pilot (e.g. |
| bootstrapUrl | string HTTP bootstrap URL used by the agent for certificate renewal. Defaults to the incoming request URL. |
| arch | string Default: "amd64" Enum: "amd64" "arm64" |
| serviceUser | string Default: "root" OS user the agent systemd service runs as. Defaults to |
| kafkaUnit | string Systemd unit name of the Kafka broker on the target host. Optional; auto-detected from the running Kafka JVM process when omitted. Comma-separated list for hosts running multiple brokers. |
| kafkaGroup | string Group that owns Kafka log files. Optional; auto-detected from the running unit when omitted. The pilot-agent user is added to this group so it can tail Kafka logs. |
| sudoPassword | string Password for sudo on the target host. Empty means passwordless sudo is attempted. |
{- "target": {
- "host": "string",
- "port": 22,
- "username": "string",
- "authMethod": "key",
- "privateKey": "string",
- "password": "string",
- "hostKey": "string",
- "knownFingerprints": [
- "string"
], - "allowInsecureHostKey": false
}, - "proxyHops": [
- {
- "host": "string",
- "port": 22,
- "username": "string",
- "authMethod": "key",
- "privateKey": "string",
- "password": "string",
- "hostKey": "string",
- "knownFingerprints": [
- "string"
], - "allowInsecureHostKey": false
}
], - "brokerId": 0,
- "pilotServerAddress": "string",
- "bootstrapUrl": "string",
- "arch": "amd64",
- "serviceUser": "root",
- "kafkaUnit": "kafka.service",
- "kafkaGroup": "kafka",
- "sudoPassword": "string"
}{- "success": true,
- "data": {
- "deployId": "string",
- "status": "running"
}
}Same as /agents/deploy/bulk but emits Server-Sent Events with per-host
progress. Events: step for each host step, done with the final summary, or
error on failure. A step event carries host, step, and brokerId when the
target names a broker. Requires HTTPS and a valid license (management mode).
In HA mode it runs as a deploy session the journal records, as
/agents/deploy/bulk does; the last event names the session as deployId, and a
repeat under the key streams the recorded outcome as its only event. A repeat
while the session still runs, or before its end commits, answers 202 as JSON
instead, and every refusal before the stream starts answers as JSON.
| Idempotency-Key | string [ 1 .. 256 ] characters Required in HA mode; bounded stable key for retrying the same deploy. |
required | Array of objects (BulkDeployTarget) <= 50 items |
Array of objects (SSHHop) | |
| pilotServerAddress required | string gRPC address used by the agent to connect back to Pilot (e.g. |
| bootstrapUrl | string HTTP bootstrap URL used by the agent for certificate renewal. Defaults to the incoming request URL. |
| arch | string Shared architecture. Empty string auto-detects per host. |
| serviceUser | string Default: "root" OS user the agent systemd service runs as. Defaults to |
| kafkaUnit | string Systemd unit name of the Kafka broker on each target host. Optional; auto-detected from the running Kafka JVM process when omitted. Comma-separated list for hosts running multiple brokers. Applied to every host in the bulk batch. |
| kafkaGroup | string Group that owns Kafka log files. Optional; auto-detected from the running unit when omitted. The pilot-agent user is added to this group so it can tail Kafka logs. Applied to every host in the bulk batch. |
| sudoPassword | string Password for sudo on the target host. Empty means passwordless sudo is attempted. |
{- "targets": [
- {
- "target": {
- "host": "string",
- "port": 22,
- "username": "string",
- "authMethod": "key",
- "privateKey": "string",
- "password": "string",
- "hostKey": "string",
- "knownFingerprints": [
- "string"
], - "allowInsecureHostKey": false
}, - "brokerId": 0
}
], - "proxyHops": [
- {
- "host": "string",
- "port": 22,
- "username": "string",
- "authMethod": "key",
- "privateKey": "string",
- "password": "string",
- "hostKey": "string",
- "knownFingerprints": [
- "string"
], - "allowInsecureHostKey": false
}
], - "pilotServerAddress": "string",
- "bootstrapUrl": "string",
- "arch": "string",
- "serviceUser": "root",
- "kafkaUnit": "kafka.service",
- "kafkaGroup": "kafka",
- "sudoPassword": "string"
}{- "success": true,
- "data": {
- "deployId": "string",
- "status": "running"
}
}| brokerId required | integer <int32> |
{- "success": true,
- "data": {
- "agentId": "string",
- "brokerId": 0,
- "version": "string",
- "status": "online",
- "hostname": "string",
- "lastSeen": "2019-08-24T14:15:22Z",
- "uptimeSeconds": 0,
- "connectedAt": "2019-08-24T14:15:22Z",
- "kafkaVersion": "string",
- "clusterId": "string",
- "binaryHash": "string",
- "upgradeAvailable": true,
- "brokerRunning": true,
- "systemMetrics": {
- "cpuPercent": 0,
- "memoryUsedBytes": 0,
- "memoryTotalBytes": 0,
- "openFileDescriptors": 0,
- "maxFileDescriptors": 0,
- "diskUsage": [
- {
- "mountPoint": "string",
- "totalBytes": 0,
- "usedBytes": 0,
- "availableBytes": 0,
- "filesystemType": "string",
- "usagePercent": 0,
- "inodeTotal": 0,
- "inodeUsed": 0
}
], - "network": {
- "bytesSent": 0,
- "bytesReceived": 0,
- "packetsSent": 0,
- "packetsReceived": 0,
- "errorsIn": 0,
- "errorsOut": 0,
- "dropsIn": 0,
- "dropsOut": 0,
- "linkSpeedMbps": 0
}, - "diskIO": {
- "readBytes": 0,
- "writeBytes": 0,
- "readOps": 0,
- "writeOps": 0,
- "ioTimeMs": 0,
- "weightedIoTimeMs": 0
}, - "logDirUsage": [
- {
- "path": "string",
- "totalBytes": 0,
- "usedBytes": 0,
- "availableBytes": 0,
- "usagePercent": 0
}
]
}, - "discovery": {
- "runtime": {
- "type": "string",
- "os": "string",
- "kernel": "string",
- "arch": "string",
- "systemdAvailable": true
}, - "distribution": {
- "vendor": "string",
- "version": "string",
- "kafkaVersion": "string",
- "kraftMode": true,
- "kraftRole": "string"
}, - "process": {
- "pid": 0,
- "user": "string",
- "javaVersion": "string",
- "heapMaxMb": 0,
- "jmxPort": 0,
- "jmxAuth": true
}, - "paths": {
- "installDir": "string",
- "configFile": "string",
- "logDirs": [
- "string"
], - "dataDirs": [
- "string"
], - "pidFile": "string"
}, - "service": {
- "manager": "string",
- "unitName": "string",
- "restartCommand": "string",
- "stopCommand": "string",
- "statusCommand": "string"
}, - "logFiles": [
- {
- "type": "string",
- "path": "string",
- "format": "string"
}
], - "confidence": 0,
- "receivedAt": "2019-08-24T14:15:22Z"
}, - "vendor": "string",
- "kraftMode": true,
- "runtimeType": "string",
- "serviceManager": "string"
}
}Copies a new agent binary to the target host over SSH and restarts the agent service. Requires HTTPS and a valid license (management mode). In HA mode it runs as a deploy session the journal records, as POST /agents/deploy does, and its end commits with the agent.upgrade event.
| brokerId required | integer <int32> |
| Idempotency-Key | string [ 1 .. 256 ] characters Required in HA mode; bounded stable key for retrying the same upgrade. |
required | object (SSHHop) |
Array of objects (SSHHop) | |
| brokerId | integer <int32> |
| arch | string Default: "amd64" Enum: "amd64" "arm64" |
| sudoPassword | string Password for sudo on the target host. Empty means passwordless sudo is attempted. |
{- "target": {
- "host": "string",
- "port": 22,
- "username": "string",
- "authMethod": "key",
- "privateKey": "string",
- "password": "string",
- "hostKey": "string",
- "knownFingerprints": [
- "string"
], - "allowInsecureHostKey": false
}, - "proxyHops": [
- {
- "host": "string",
- "port": 22,
- "username": "string",
- "authMethod": "key",
- "privateKey": "string",
- "password": "string",
- "hostKey": "string",
- "knownFingerprints": [
- "string"
], - "allowInsecureHostKey": false
}
], - "brokerId": 0,
- "arch": "amd64",
- "sudoPassword": "string"
}{- "success": true,
- "data": {
- "success": true,
- "steps": [
- "string"
], - "agentId": "string",
- "error": "string",
- "deployId": "string",
- "status": "interrupted"
}
}Sends an upgrade command over the existing gRPC stream; the agent downloads the new binary from Pilot and restarts itself. No SSH required. The command pins the SHA256 of the binary for the architecture the agent reported. Requires a valid license (management mode). In HA mode the upgrade runs as an agent-command operation, as POST /agents/{brokerId}/restart describes; the request waits standalone's 3 minutes, and the agent.upgrade-remote event is delivered once from the journal when the operation ends. An upgrade the agent did not report on is decided from the binary hash the agent's heartbeats report.
| brokerId required | integer <int32> |
| Idempotency-Key | string [ 1 .. 256 ] characters Required in HA mode; bounded stable key for retrying the same command. |
{- "success": true,
- "data": {
- "commandId": "string",
- "success": true,
- "error": "string",
- "durationMs": 0,
- "operationId": "string",
- "decidedBy": "brokerState"
}
}Sends a restart command to the broker's Pilot Agent. Requires a valid license
(management mode). In HA mode a restart, stop or start requires an
Idempotency-Key and administrative mutation readiness and runs as one
administrative operation of kind agent-command beside a data movement. The
request waits as standalone does, the command's timeout plus 30 seconds, and
answers standalone's body with the operation as data.operationId, or 202 with
the operation once the wait or the request ends first. A repeat under the key
answers the recorded outcome. The journal refuses a command to a broker that
another command or a rolling restart holds with 409 HA_BUSY. A broker without a
registered agent answers standalone's 400 before anything is recorded. A command
accepted before a failover whose agent has not reconnected to the next active
replica yet waits for it up to two minutes from that replica's start, then
answers standalone's 400. Pilot sends the command once, only to an agent whose
stream sent its command ledger; a command
whose result was lost is decided from that ledger, or 30 seconds after the wait
from the broker's state as the agent's heartbeats report it (data.decidedBy
brokerState; a restart took effect once the broker runs as another process than
before the send), or recorded as unknown, never sent again, with 504
HA_OUTCOME_UNKNOWN. A replica that becomes active finishes a command its
predecessor left open. The broker.
| brokerId required | integer <int32> |
| Idempotency-Key | string [ 1 .. 256 ] characters Required in HA mode; bounded stable key for retrying the same command. |
| graceful | boolean Default: true |
| timeoutSeconds | integer [ 1 .. 600 ] Default: 300 |
{- "graceful": true,
- "timeoutSeconds": 300
}{- "success": true,
- "data": {
- "commandId": "string",
- "success": true,
- "error": "string",
- "durationMs": 0,
- "operationId": "string",
- "decidedBy": "brokerState"
}
}Requires a valid license (management mode). In HA mode the stop runs as an agent-command operation, as POST /agents/{brokerId}/restart describes; a stop the agent did not report on took effect once two heartbeats after its deadline report the broker down, or once the cluster metadata no longer lists a broker whose agent is gone.
| brokerId required | integer <int32> |
| Idempotency-Key | string [ 1 .. 256 ] characters Required in HA mode; bounded stable key for retrying the same command. |
| graceful | boolean Default: true |
| timeoutSeconds | integer [ 1 .. 600 ] Default: 300 |
{- "graceful": true,
- "timeoutSeconds": 300
}{- "success": true,
- "data": {
- "commandId": "string",
- "success": true,
- "error": "string",
- "durationMs": 0,
- "operationId": "string",
- "decidedBy": "brokerState"
}
}Requires a valid license (management mode). In HA mode the start runs as an agent-command operation, as POST /agents/{brokerId}/restart describes; a start the agent did not report on took effect once a heartbeat after its deadline reports the broker running and the cluster metadata lists it.
| brokerId required | integer <int32> |
| Idempotency-Key | string [ 1 .. 256 ] characters Required in HA mode; bounded stable key for retrying the same command. |
| graceful | boolean Default: true |
| timeoutSeconds | integer [ 1 .. 600 ] Default: 300 |
{- "graceful": true,
- "timeoutSeconds": 300
}{- "success": true,
- "data": {
- "commandId": "string",
- "success": true,
- "error": "string",
- "durationMs": 0,
- "operationId": "string",
- "decidedBy": "brokerState"
}
}Subscribes to the broker's log stream via Server-Sent Events. Filters can be
applied by level or substring pattern. Recent buffered entries are backfilled
on connect. Each event is event: log with a JSON payload.
| brokerId required | integer <int32> |
| level | string Enum: "TRACE" "DEBUG" "INFO" "WARN" "ERROR" Minimum log level |
| pattern | string Substring filter applied to each log line |
| tail | integer <= 1000 Default: 200 Number of recent entries to replay on connect |
{- "success": false,
- "error": "string",
- "code": "KAFKA_UNAVAILABLE",
- "details": "string",
- "reason": "string",
- "affectedBrokerIds": [
- 0
], - "operationId": "string"
}Searches the in-memory log buffer for a broker and returns matching entries.
| brokerId required | integer <int32> |
| q | string Substring search term |
| level | string Enum: "TRACE" "DEBUG" "INFO" "WARN" "ERROR" |
| from | integer <int64> Lower bound timestamp (unix millis) |
| to | integer <int64> Upper bound timestamp (unix millis) |
| limit | integer <= 1000 Default: 500 |
{- "success": true,
- "data": {
- "entries": [
- { }
], - "count": 0
}
}Starts a rolling restart across all brokers using the connected Pilot Agents.
Runs preflight safety checks (ISR health, URP counts, connected agents, pending
reassignments) before starting. Returns 409 if preflight fails or a restart is
already running. Before each broker's stop, a fresh pre-stop check refuses the stop
when a partition in the broker's ISR would drop below min.insync.replicas; while
min.insync.replicas of a topic or the cluster metadata cannot be read, it checks
again for up to stallTimeoutSeconds and then refuses the stop, so Pilot needs
DescribeConfigs on all topics. Requires a valid license (management mode). In HA mode it
requires an Idempotency-Key and administrative mutation readiness; the preflight
also counts a data movement the HA journal holds as an active reassignment. The
restart is accepted as one operation of kind rolling-restart, with the broker
order and each broker's agent as its plan, and the request answers standalone's
body with data.operationId once the accept committed. The active replica runs
it broker by broker and saves each step (drain, stop, start, readiness and soak,
ISR catch-up, restore) before its first request; the next active replica resumes
it at the recorded step. Stops and starts go out once each; one whose result was
lost is decided from the agent's command ledger or, at its deadline, from the
broker's state, and the next broker is not stopped until it is decided. A
readiness wait's hard deadline counts from the step's saved start. Each election
of the restart names its partitions and goes out in request batches within the
journal's bounds; the final preferred leader election names the partitions whose
leader is not their preferred replica. Once the journal recorded the restart's first
request it runs to its end after a license lapse, as a standalone restart does. A repeat under
the key answers that restart's current status. The rolling-restart.start event is
delivered once from the journal; the steps are recorded as the run takes them,
before the journal records that a step passed, so a step a failover interrupted
may be recorded twice; one whose replica was killed before writing it is missing.
| Idempotency-Key | string [ 1 .. 256 ] characters Required in HA mode; bounded stable key for retrying the same start. |
| gracefulShutdown | boolean Default: true |
| stallTimeoutSeconds | integer [ 30 .. 600 ] Default: 120 Universal stall timeout, in seconds without progress before a phase stops waiting. A stalled readiness check stops the restart; a stalled leadership drain or restore continues; a stalled ISR catch-up continues only when no partition is at or below min.insync.replicas, otherwise the restart stops. It also bounds how long the pre-stop ISR check keeps retrying while min.insync.replicas or the cluster metadata cannot be read before the broker's stop is refused. Clamped to [30, 600]. |
| stabilizationSeconds | integer [ 0 .. 120 ] Default: 0 Dwell time between brokers after a successful restart. Clamped to [0, 120]. |
| readinessSoakSeconds | integer [ 1 .. 60 ] Default: 10 Soak period after initial readiness before proceeding. Clamped to [1, 60]. |
{- "gracefulShutdown": true,
- "stallTimeoutSeconds": 120,
- "stabilizationSeconds": 0,
- "readinessSoakSeconds": 10
}{- "success": true,
- "data": {
- "id": "string",
- "operationId": "string",
- "status": "IDLE",
- "brokerOrder": [
- 0
], - "brokerStates": {
- "property1": {
- "brokerId": 0,
- "rack": "string",
- "phase": "PENDING",
- "phaseStartedAt": "2019-08-24T14:15:22Z",
- "error": "string",
- "drainDurationMs": 0,
- "stopDurationMs": 0,
- "startDurationMs": 0,
- "isrWaitDurationMs": 0,
- "restoreDurationMs": 0,
- "drainProgress": {
- "total": 0,
- "completed": 0,
- "remaining": 0
}, - "isrCatchupProgress": {
- "total": 0,
- "inSync": 0
}, - "restoreProgress": {
- "total": 0,
- "completed": 0,
- "remaining": 0
}
}, - "property2": {
- "brokerId": 0,
- "rack": "string",
- "phase": "PENDING",
- "phaseStartedAt": "2019-08-24T14:15:22Z",
- "error": "string",
- "drainDurationMs": 0,
- "stopDurationMs": 0,
- "startDurationMs": 0,
- "isrWaitDurationMs": 0,
- "restoreDurationMs": 0,
- "drainProgress": {
- "total": 0,
- "completed": 0,
- "remaining": 0
}, - "isrCatchupProgress": {
- "total": 0,
- "inSync": 0
}, - "restoreProgress": {
- "total": 0,
- "completed": 0,
- "remaining": 0
}
}
}, - "currentBrokerIdx": 0,
- "startedAt": "2019-08-24T14:15:22Z",
- "completedAt": "2019-08-24T14:15:22Z",
- "error": "string",
- "config": {
- "gracefulShutdown": true,
- "stallTimeoutSeconds": 120,
- "stabilizationSeconds": 0,
- "readinessSoakSeconds": 10
}, - "preflightResults": [
- {
- "gate": "string",
- "severity": "BLOCK",
- "passed": true,
- "message": "string",
- "details": null
}
]
}
}Returns the current rolling restart state. When agent management is disabled or
no restart has been run, returns {status: "IDLE"}. A restart that ended keeps
showing DONE, FAILED or CANCELLED until a new one starts; a FAILED or CANCELLED one
also until it is dismissed (POST /rolling-restart/dismiss), which resets the status
to IDLE. In standalone mode the state is kept in memory, so a restart of Pilot
resets it to IDLE as well. In HA mode it reads the journal, on whichever replica
is active: the rolling restart accepted last, running or ended, with
data.operationId, also after a failover; IDLE when the journal retains none or
its outcome was dismissed. The journal keeps an ended restart's brokers, settings
and preflight results for 45 minutes and then only how it ended: brokerOrder,
brokerStates and preflightResults are then empty and config shows the
defaults, while id, status, error, startedAt and completedAt stay. The
status shows CANCELLED from the committed cancel intent on, while the run still
brings back the broker the cancel interrupted. Its preflight results carry no
details in HA mode.
{- "success": true,
- "data": {
- "id": "string",
- "operationId": "string",
- "status": "IDLE",
- "brokerOrder": [
- 0
], - "brokerStates": {
- "property1": {
- "brokerId": 0,
- "rack": "string",
- "phase": "PENDING",
- "phaseStartedAt": "2019-08-24T14:15:22Z",
- "error": "string",
- "drainDurationMs": 0,
- "stopDurationMs": 0,
- "startDurationMs": 0,
- "isrWaitDurationMs": 0,
- "restoreDurationMs": 0,
- "drainProgress": {
- "total": 0,
- "completed": 0,
- "remaining": 0
}, - "isrCatchupProgress": {
- "total": 0,
- "inSync": 0
}, - "restoreProgress": {
- "total": 0,
- "completed": 0,
- "remaining": 0
}
}, - "property2": {
- "brokerId": 0,
- "rack": "string",
- "phase": "PENDING",
- "phaseStartedAt": "2019-08-24T14:15:22Z",
- "error": "string",
- "drainDurationMs": 0,
- "stopDurationMs": 0,
- "startDurationMs": 0,
- "isrWaitDurationMs": 0,
- "restoreDurationMs": 0,
- "drainProgress": {
- "total": 0,
- "completed": 0,
- "remaining": 0
}, - "isrCatchupProgress": {
- "total": 0,
- "inSync": 0
}, - "restoreProgress": {
- "total": 0,
- "completed": 0,
- "remaining": 0
}
}
}, - "currentBrokerIdx": 0,
- "startedAt": "2019-08-24T14:15:22Z",
- "completedAt": "2019-08-24T14:15:22Z",
- "error": "string",
- "config": {
- "gracefulShutdown": true,
- "stallTimeoutSeconds": 120,
- "stabilizationSeconds": 0,
- "readinessSoakSeconds": 10
}, - "preflightResults": [
- {
- "gate": "string",
- "severity": "BLOCK",
- "passed": true,
- "message": "string",
- "details": null
}
]
}
}Cancels the currently running rolling restart. Remaining brokers are marked as skipped. If the cancel interrupts a broker's stop or start, Pilot waits for that command to finish and starts the broker again once its agent reports it stopped; a broker that keeps running is left as is. Until that broker is dealt with, the restart still counts as active, so a new rolling restart and operations that wait for rolling restarts are refused. A cancel needs no license, also after the license lapsed; authentication and the write scope still apply. In HA mode it requires mutation readiness, but not the license, and commits the restart's cancel intent, which the active replica, or the next one after a failover, carries out: it waits for the decision of a stop the cancel caught, starts that broker again when it went down or its outcome stayed unknown, skips the remaining brokers and ends the restart CANCELLED. It needs no Idempotency-Key; a repeat after the intent committed answers 409, as a second standalone cancel does. A reassignment cancel (POST /reassignments/{id}/cancel, all included) leaves a rolling restart.
{- "success": true,
- "data": {
- "id": "string",
- "operationId": "string",
- "status": "IDLE",
- "brokerOrder": [
- 0
], - "brokerStates": {
- "property1": {
- "brokerId": 0,
- "rack": "string",
- "phase": "PENDING",
- "phaseStartedAt": "2019-08-24T14:15:22Z",
- "error": "string",
- "drainDurationMs": 0,
- "stopDurationMs": 0,
- "startDurationMs": 0,
- "isrWaitDurationMs": 0,
- "restoreDurationMs": 0,
- "drainProgress": {
- "total": 0,
- "completed": 0,
- "remaining": 0
}, - "isrCatchupProgress": {
- "total": 0,
- "inSync": 0
}, - "restoreProgress": {
- "total": 0,
- "completed": 0,
- "remaining": 0
}
}, - "property2": {
- "brokerId": 0,
- "rack": "string",
- "phase": "PENDING",
- "phaseStartedAt": "2019-08-24T14:15:22Z",
- "error": "string",
- "drainDurationMs": 0,
- "stopDurationMs": 0,
- "startDurationMs": 0,
- "isrWaitDurationMs": 0,
- "restoreDurationMs": 0,
- "drainProgress": {
- "total": 0,
- "completed": 0,
- "remaining": 0
}, - "isrCatchupProgress": {
- "total": 0,
- "inSync": 0
}, - "restoreProgress": {
- "total": 0,
- "completed": 0,
- "remaining": 0
}
}
}, - "currentBrokerIdx": 0,
- "startedAt": "2019-08-24T14:15:22Z",
- "completedAt": "2019-08-24T14:15:22Z",
- "error": "string",
- "config": {
- "gracefulShutdown": true,
- "stallTimeoutSeconds": 120,
- "stabilizationSeconds": 0,
- "readinessSoakSeconds": 10
}, - "preflightResults": [
- {
- "gate": "string",
- "severity": "BLOCK",
- "passed": true,
- "message": "string",
- "details": null
}
]
}
}Dismisses the rolling restart that ended FAILED or CANCELLED, which the request
names by its id: the status returns to IDLE for every viewer and the restart's
condition (operations.rolling_restart.failed:<id> or
operations.rolling_restart.cancelled:<id> in GET /conditions) ends at once.
Starting a new rolling restart resolves the outcome too. Only the last rolling
restart has an outcome to dismiss, once nothing of it runs any more: a restart
that is running, still brings a broker back, ended DONE or is not the last one
answers 409, as does a second dismissal. A dismissal changes no Kafka state, so it
needs no license, also after the license lapsed; authentication and the write scope
still apply. It is audited as rolling-restart.dismiss. In HA mode it requires an
Idempotency-Key and mutation readiness, but not the license, also while a request
has an unknown outcome: the journal records the dismissal with its audit event,
which is delivered once, and every replica then shows IDLE, also after a failover.
A repeat under the key with the same id answers the same body and records
nothing, on the next active replica too, until a later dismissal replaces the
record; the key with another id answers IDEMPOTENCY_CONFLICT.
| Idempotency-Key | string [ 1 .. 256 ] characters Required in HA mode; bounded stable key for retrying the same dismissal. |
| id required | string The rolling restart whose outcome to dismiss: |
{- "id": "string"
}{- "success": true,
- "data": {
- "dismissed": {
- "id": "string",
- "status": "FAILED"
}, - "status": "IDLE"
}
}Runs all preflight safety gates (ISR, URPs, connected agents, pending reassignments, controller location) without starting a restart. Returns the individual gate results, the computed broker order, and whether the restart can proceed. In HA mode the same gates run on the active replica, where a data movement the HA journal holds counts as an active reassignment and the journal's rolling restart as one in progress.
{- "success": true,
- "data": {
- "gates": [
- {
- "gate": "string",
- "severity": "BLOCK",
- "passed": true,
- "message": "string",
- "details": null
}
], - "brokerOrder": [
- 0
], - "canProceed": true
}
}Readiness probe for Kubernetes. Returns 200 OK if the service is ready to accept traffic. Requires a current broker observation with at least one available Kafka broker. Returns 503 when the observation is stale or unavailable, with a reason distinguishing failed monitoring from a current observation of zero available brokers.
Unlike /health, this endpoint is protected when authentication is enabled and returns 401 to
an unauthenticated caller. Use /health for unauthenticated liveness probing.
Until Pilot has connected to the Kafka cluster after startup, this endpoint returns 503 to every caller with a reason naming the bootstrap servers and the last connection error. With authentication enabled the reason names neither.
{- "status": "ready",
- "reason": "no available Kafka brokers"
}Returns the version and build information for the Pilot service
{- "success": true,
- "status": "healthy",
- "version": "0.10.0",
- "service": "pilot",
- "go_version": "go1.23.0",
- "build_time": "2025-01-04T12:00:00Z",
- "git_commit": "abc123def"
}Returns the current state of all three self-healing loops (activity, critical, RF), including scheduling, execution status, and configuration settings.
{- "success": true,
- "data": {
- "types": {
- "activity": {
- "enabled": true,
- "running": true,
- "intervalSeconds": 0,
- "inProgress": true,
- "lastAppliedTime": "2019-08-24T14:15:22Z",
- "lastAttemptedTime": "2019-08-24T14:15:22Z",
- "nextScheduledTime": "2019-08-24T14:15:22Z",
- "executionWindow": {
- "startHour": 0,
- "endHour": 0
}
}, - "critical": {
- "enabled": true,
- "running": true,
- "intervalSeconds": 0,
- "inProgress": true,
- "lastAppliedTime": "2019-08-24T14:15:22Z",
- "lastAttemptedTime": "2019-08-24T14:15:22Z",
- "nextScheduledTime": "2019-08-24T14:15:22Z",
- "executionWindow": {
- "startHour": 0,
- "endHour": 0
}
}, - "rf": {
- "enabled": true,
- "running": true,
- "intervalSeconds": 0,
- "inProgress": true,
- "lastAppliedTime": "2019-08-24T14:15:22Z",
- "lastAttemptedTime": "2019-08-24T14:15:22Z",
- "nextScheduledTime": "2019-08-24T14:15:22Z",
- "executionWindow": {
- "startHour": 0,
- "endHour": 0
}
}
}, - "currentExecution": {
- "proposalId": "string",
- "type": "activity",
- "startTime": "2019-08-24T14:15:22Z"
}, - "settings": {
- "dryRun": true,
- "cooldownSeconds": 0,
- "maxPartitionsPerRun": 0
}
}, - "timestamp": "2019-08-24T14:15:22Z"
}Authenticated status without a license requirement. Monitoring readiness and administrative mutation readiness are independent. escalated has the causes HAStatus lists, each named in escalationReason. An unresolved Kafka administrative attempt is visible immediately and escalates after 60 seconds for a reassignment or cancellation request and 3 minutes for a throttle configuration, leader election or administrative request; an agent command without an answer counts as unresolved, and escalated, once its deadline passed; rows that wait on absent brokers show absentBrokerWait at once, and the wait escalates 10 minutes after its since, while queued rows fail once their own broker has been missing for 10 minutes and copied rows keep waiting until the broker returns or a cancel ends the operation; rows that wait because Kafka does not answer for a topic's identity show identityHold and escalate when the executor escalates the hold, after 10 minutes; copied rows that wait for their preferred leader to be in sync show leaderWait, which escalates after 10 minutes and whose escalationReason names the partitions and their preferred leaders; and a leader whose Pilot Agent is off (PILOT_AGENT_ENABLED=false) while the journal holds an agent command or rolling restart escalates at once, as only turning the Pilot Agent back on lets that operation end. Its escalationReason names PILOT_AGENT_ENABLED, also while mutationReady is false for another reason such as an unlicensed leader, and a mutation refused with 503 HA_NOT_READY may carry the same reason; cancels and tuning changes are not refused for it. Monitoring and PAT revocation remain available while mutations are suspended. A durable cancel intent its executor has not applied shows as cancelPending. In HA mode, topology contains cached namespaced Kubernetes pod and Lease observations, refreshed every 10 seconds by the elected process. These separate reads are not an atomic snapshot. Replica roles are inferred from a valid Lease and exact pod UID, not from peer probes or Kafka connections. Pod readiness is distinct from the local controller's monitoring and mutation readiness. Failed or stale observations preserve last-known pod details with unknown roles. Topology is omitted in standalone mode. Polling this endpoint does not perform Kubernetes or Kafka requests.
{- "success": true,
- "data": {
- "enabled": true,
- "role": "standalone",
- "generation": "string",
- "monitoringReady": true,
- "mutationReady": true,
- "monitoringReason": "string",
- "mutationReason": "string",
- "journalReady": true,
- "operationId": "string",
- "operationKind": "string",
- "administrativeOperations": [
- {
- "operationId": "string",
- "kind": "string",
- "cancelPending": true
}
], - "uncertain": true,
- "uncertainSince": "2019-08-24T14:15:22Z",
- "uncertainOperationId": "string",
- "uncertainKind": "string",
- "escalated": true,
- "escalationReason": "string",
- "cancelPending": true,
- "absentBrokerWait": {
- "brokers": [
- 0
], - "rows": 0,
- "copied": 0,
- "since": "2019-08-24T14:15:22Z",
- "escalated": true
}, - "identityHold": {
- "topics": [
- "string"
], - "since": "2019-08-24T14:15:22Z",
- "escalated": true
}, - "leaderWait": {
- "partitions": [
- "string"
], - "leaders": [
- 0
], - "rows": 0,
- "since": "2019-08-24T14:15:22Z",
- "escalated": true
}, - "sendSlot": {
- "operationId": "string",
- "since": "2019-08-24T14:15:22Z",
- "heldSeconds": 0,
- "waiting": 0,
- "escalated": true
}, - "retainedRecords": 0,
- "topology": {
- "available": true,
- "stale": true,
- "error": "string",
- "observedAt": "2019-08-24T14:15:22Z",
- "namespace": "string",
- "leaseUid": "string",
- "leaderPodUid": "string",
- "leaderGeneration": "string",
- "authorityValid": true,
- "members": [
- {
- "podName": "string",
- "podUid": "string",
- "nodeName": "string",
- "role": "leader",
- "roleSource": "lease",
- "phase": "string",
- "podReady": true,
- "terminating": true,
- "pilotRestartCount": 0,
- "containerStartedAt": "2019-08-24T14:15:22Z"
}
]
}
}
}Returns basic cluster information including brokers and topics
{- "success": true,
- "data": {
- "brokerObservation": {
- "status": "current",
- "observedAt": "2019-08-24T14:15:22Z",
- "expiresAt": "2019-08-24T14:15:22Z",
- "reason": "string"
}, - "brokers": [
- {
- "id": 0,
- "host": "string",
- "port": 0,
- "rack": "string",
- "available": true,
- "availabilityStatus": "current",
- "availabilityObservedAt": "2019-08-24T14:15:22Z"
}
], - "topics": [
- {
- "name": "string",
- "partitions": [
- {
- "id": 0,
- "leader": 0,
- "replicas": [
- 0
], - "isr": [
- 0
], - "sampled": true,
- "samplingStatus": "string",
- "lastSampled": "2019-08-24T14:15:22Z",
- "rateObservedAt": "2019-08-24T14:15:22Z",
- "diskMeasuredAt": "2019-08-24T14:15:22Z"
}
], - "isInternal": true
}
], - "maintenanceBrokers": {
- "property1": true,
- "property2": true
}
}
}Returns comprehensive cluster information including sampling status and detailed partition data
| summary | boolean Default: false When true, excludes per-partition details and returns only topic names and partition counts (60-80% smaller response) |
{- "success": true,
- "data": {
- "brokerObservation": {
- "status": "current",
- "observedAt": "2019-08-24T14:15:22Z",
- "expiresAt": "2019-08-24T14:15:22Z",
- "reason": "string"
}, - "clusterId": "string",
- "brokers": [
- {
- "id": 0,
- "host": "string",
- "port": 0,
- "rack": "string",
- "available": true,
- "availabilityStatus": "current",
- "availabilityObservedAt": "2019-08-24T14:15:22Z"
}
], - "topics": [
- {
- "name": "string",
- "partitions": [
- {
- "id": 0,
- "leader": 0,
- "replicas": [
- 0
], - "isr": [
- 0
], - "sampled": true,
- "samplingStatus": "string",
- "lastSampled": "2019-08-24T14:15:22Z",
- "rateObservedAt": "2019-08-24T14:15:22Z",
- "diskMeasuredAt": "2019-08-24T14:15:22Z"
}
], - "isInternal": true
}
], - "brokerRacks": {
- "property1": "string",
- "property2": "string"
}, - "maintenanceBrokers": {
- "property1": true,
- "property2": true
}, - "sampling": {
- "totalPartitions": 0,
- "sampledPartitions": 0,
- "samplingCoverage": 0
}
}
}Returns fresh validated per-broker storage measurements, including valid zero-byte measurements. Partial collections return 200 with coverage and brokerErrors: healthy broker rows continue updating, missing broker rows are omitted, and incomplete cluster or topic totals are null rather than zero. Segment counts are independently null when segment-size configuration is unavailable, even if byte coverage is complete. Expected broker IDs include live inventory, assigned replicas, and known brokers even when offline. collectedAt and topologyObservedAt retain the original collection and assignment observation times. Global collection failures, invalid timestamps, and unavailable assignment metadata return an error. Partial monitoring responses never replace complete snapshots used for operations or metrics.
| summary | boolean Default: false When true, returns only aggregated broker-level data without per-partition details (90%+ smaller response) |
{- "success": true,
- "data": {
- "collectedAt": "2019-08-24T14:15:22Z",
- "topologyObservedAt": "2019-08-24T14:15:22Z",
- "coverage": {
- "complete": true,
- "expectedBrokerIds": [
- 0
], - "observedBrokerIds": [
- 0
], - "missingBrokerIds": [
- 0
]
}, - "brokerErrors": [
- {
- "brokerId": 0,
- "error": "string"
}
], - "totalSize": 0,
- "totalSegments": 0,
- "totalPartitions": 0,
- "summary": true,
- "brokers": [
- {
- "brokerId": 0,
- "totalSize": 0,
- "partitionCount": 0,
- "logDirs": [
- "string"
], - "partitions": [
- {
- "topic": "string",
- "partition": 0,
- "logDir": "string",
- "sizeBytes": 0,
- "segmentCount": 0,
- "offsetLag": 0,
- "isFuture": true
}
]
}
], - "topics": [
- {
- "topic": "string",
- "totalSize": 0,
- "segmentCount": 0,
- "coverage": {
- "complete": true,
- "expectedBrokerIds": [
- 0
], - "observedBrokerIds": [
- 0
], - "missingBrokerIds": [
- 0
]
}, - "partitions": [
- {
- "topic": "string",
- "partition": 0,
- "logDir": "string",
- "sizeBytes": 0,
- "segmentCount": 0,
- "offsetLag": 0,
- "isFuture": true
}
]
}
]
}
}Returns the shared cached health observation. HTTP success is not a safety verdict: rackAwareness can be partial or unavailable while broker and partition observations remain usable. Rack health tests whether assigned replicas remaining after any single rack loss meet effective minimum ISR. It does not establish current producer availability or current ISR survival. The legacy notRackAwarePartitions exact count is null unless the rack assessment is complete and current. Broker counts are qualified by brokerObservation: stale retains the last successful counts; unavailable means no successful broker observation exists. Neither state establishes a broker outage. An initialized monitor returns 200 with unavailable at startup; 503 is reserved for an absent health provider or observation response.
{- "success": true,
- "data": {
- "brokerObservation": {
- "status": "current",
- "observedAt": "2019-08-24T14:15:22Z",
- "expiresAt": "2019-08-24T14:15:22Z",
- "reason": "string"
}, - "totalBrokers": 0,
- "availableBrokers": 0,
- "unavailableBrokers": 0,
- "underReplicatedPartitions": 0,
- "offlinePartitions": 0,
- "notRackAwarePartitions": 0,
- "notRackAwareDetails": [
- {
- "topic": "string",
- "partition": 0,
- "minISR": 0,
- "replicas": [
- 0
], - "racks": [
- "string"
]
}
], - "rackAwareness": {
- "status": "complete",
- "totalPartitions": 0,
- "evaluatedPartitions": 0,
- "unknownPartitions": 0,
- "knownViolations": 0,
- "reason": "string",
- "reasonCounts": {
- "property1": 0,
- "property2": 0
}, - "configRefreshFailures": 0,
- "details": [
- {
- "topic": "string",
- "partition": 0,
- "minISR": 0,
- "replicas": [
- 0
], - "racks": [
- "string"
]
}
], - "evaluatedAt": "2019-08-24T14:15:22Z",
- "topologyObservedAt": "2019-08-24T14:15:22Z",
- "configObservedAt": "2019-08-24T14:15:22Z",
- "configNewestObservedAt": "2019-08-24T14:15:22Z",
- "validUntil": "2019-08-24T14:15:22Z"
}, - "totalFollowerLag": 0,
- "followerLagWarning": true,
- "urpsFromOfflineBrokers": 0,
- "urpsFromFollowerLag": 0,
- "urpsFromReassignments": 0,
- "unexplainedUrps": 0
}
}Returns the server's list of what is wrong with the cluster and with Pilot's own work on it:
one entry per condition, worst first (by source, then severity, then age, then code). The
MCP tool get_cluster_conditions and the chat assistant read this same list, so every
surface gives the same verdict. The list is built from cached state with each health check
of the cluster (every 30 seconds), and what one health check observed is judged once; a
request issues no Kafka request.
Severity. critical is kept for risks to Kafka availability, warning needs attention,
info is context and not a fault. Under-replication that running partition moves explain is
info (kafka.partitions.catching_up), and a broker in maintenance is info.
Life of a condition. A critical condition and the outcome of a rolling restart show with
the first evaluation that sees them. Any other warning or info condition shows after two
consecutive evaluations, an evidence.* condition after its input has been unreadable for
60 seconds. A condition that stops matching
stays listed with state: resolving for 60 seconds and at least two evaluations, then moves
to the resolved history, which keeps up to 500 conditions for 24 hours and is returned with
includeResolved=true. A condition that returns three times within 15 minutes is
intermittent and is then held for 5 minutes. A condition whose input could not be read
is kept as last seen with stale: true: an input that cannot be read raises nothing and
resolves nothing. scope.kafka says how current the Kafka observation behind the whole
list is; a list without critical or warning conditions is a verdict on the cluster only
while it is current.
History. Pilot keeps the conditions on the compacted topic __pilot_conditions, so a
restart or an HA failover continues the list with the same id, since and flapCount.
Without that topic the list starts empty. revision changes whenever the list, its
history or scope changes in anything but a lastSeen time; it also differs between two
Pilot processes or leaderships.
Codes are a stable contract. A code never changes once shipped. Codes that end in a colon carry the entity after it:
| Code | Severity |
|---|---|
kafka.partitions.offline |
critical |
kafka.controller.unhealthy |
critical |
kafka.brokers.majority_unavailable |
critical |
kafka.broker.offline:<brokerId> |
critical; info when the broker holds no replicas |
kafka.broker.maintenance:<brokerId> |
info |
kafka.partitions.under_replicated |
warning |
kafka.broker.maintenance_under_replicated:<brokerId> |
warning |
kafka.partitions.catching_up |
info |
kafka.partitions.below_min_isr |
warning |
kafka.racks.violations |
warning |
evidence.kafka.health |
warning |
evidence.kafka.brokers |
warning |
evidence.kafka.racks |
warning |
evidence.ha.topology |
warning |
operations.ha.mutations_paused |
warning |
operations.ha.outcome_unconfirmed:<operationId> |
warning |
operations.ha.absent_broker_wait:<operationId> |
warning |
operations.ha.identity_hold:<operationId> |
warning |
operations.ha.leader_wait:<operationId> |
warning |
operations.ha.send_hold:<operationId> |
warning |
operations.ha.agents_off:<operationId> |
warning |
operations.rolling_restart.failed:<restartId> |
warning |
operations.rolling_restart.cancelled:<restartId> |
warning |
pilot.agents.unmatched |
info |
license.expired |
warning |
license.invalid |
warning |
license.missing |
info |
license.trial |
info |
license.start_required |
info |
A standalone Pilot raises no operations.ha.* condition and no evidence.ha.topology.
An operations.ha.* hold that names no operation has no :<operationId> suffix.
Authenticated like every read and free of the license. In HA mode only the active replica with monitoring readiness answers; a standby or a replica in a handover refuses with 503 like every other read.
| includeResolved | boolean Default: false Also return the conditions resolved within the last 24 hours under |
| limit | integer >= 0 Default: 100 Maximum number of conditions to return in |
{- "success": true,
- "data": {
- "generatedAt": "2019-08-24T14:15:22Z",
- "revision": "K7Q2M4XA-12",
- "scope": {
- "kafka": "current"
}, - "counts": {
- "critical": 0,
- "warning": 0,
- "info": 0
}, - "worstSeverity": "critical",
- "total": 0,
- "truncated": true,
- "conditions": [
- {
- "id": "kafka.partitions.under_replicated@1794470400000",
- "code": "kafka.broker.offline:3",
- "severity": "critical",
- "source": "kafka",
- "state": "active",
- "title": "Broker 3 is offline.",
- "shortLabel": "Broker 3 offline",
- "detail": "It holds replicas, so its partitions lose redundancy.",
- "count": 0,
- "countUnit": "string",
- "entity": {
- "type": "broker",
- "id": "string"
}, - "since": "2019-08-24T14:15:22Z",
- "lastSeen": "2019-08-24T14:15:22Z",
- "resolvedAt": "2019-08-24T14:15:22Z",
- "flapCount": 0,
- "intermittent": true,
- "stale": true,
- "links": [
- {
- "label": "string",
- "href": "string"
}
], - "actions": [
- {
- "id": "dismiss",
- "label": "string",
- "method": "POST",
- "path": "string"
}
], - "ackable": true
}
], - "resolved": [
- {
- "id": "kafka.partitions.under_replicated@1794470400000",
- "code": "kafka.broker.offline:3",
- "severity": "critical",
- "source": "kafka",
- "state": "active",
- "title": "Broker 3 is offline.",
- "shortLabel": "Broker 3 offline",
- "detail": "It holds replicas, so its partitions lose redundancy.",
- "count": 0,
- "countUnit": "string",
- "entity": {
- "type": "broker",
- "id": "string"
}, - "since": "2019-08-24T14:15:22Z",
- "lastSeen": "2019-08-24T14:15:22Z",
- "resolvedAt": "2019-08-24T14:15:22Z",
- "flapCount": 0,
- "intermittent": true,
- "stale": true,
- "links": [
- {
- "label": "string",
- "href": "string"
}
], - "actions": [
- {
- "id": "dismiss",
- "label": "string",
- "method": "POST",
- "path": "string"
}
], - "ackable": true
}
]
}
}Reports whether Pilot has connected to the Kafka cluster since it started. In standalone mode
Pilot serves the UI and this endpoint before the cluster is reachable and retries the connection
in the background with exponential backoff, so a wrong or unreachable KAFKA_BOOTSTRAP_SERVERS
no longer stops the process. Retries start after 1s and double up to 30s, or up to 5 minutes
while Kafka refuses the connection (refused: for example a failed SASL login, an untrusted
broker certificate or a client configuration error). connecting means no attempt has failed yet,
unreachable that the last attempt failed, starting that Kafka answered and Pilot is loading
its state, and connected that the full API is serving.
The state covers the first connection only. Once connected it stays connected; broker
availability after that is reported by /cluster/health and /ready.
In HA mode there is no waiting phase: a standby has no API listener, and only the active replica
serves this endpoint, once its monitoring is ready. It answers connected with the values of
its promotion's Kafka client for this active lifetime: the bootstrap servers, the attempts the
promotion's wait for Kafka made, when the last attempt began and when Kafka answered. Before
monitoring is ready it answers 503 with code: HA_NOT_READY.
This endpoint is public so the UI can show the state before login. With authentication enabled,
detailsHidden is true and the response omits bootstrapServers and lastError. refused
names no broker and no error, so it is present in both cases.
{- "success": true,
- "data": {
- "state": "unreachable",
- "bootstrapServers": [
- "broker1:9092",
- "broker2:9092"
], - "attempts": 3,
- "lastError": "kafka: client has run out of available brokers to talk to: dial tcp: lookup broker1: no such host",
- "lastAttemptAt": "2019-08-24T14:15:22Z",
- "nextRetryAt": "2019-08-24T14:15:22Z",
- "connectedAt": "2019-08-24T14:15:22Z",
- "refused": false,
- "detailsHidden": false
}
}Returns fresh validated follower lag at cluster, broker, topic, and partition levels. Partial observations return 200 with coverage and brokerErrors. Healthy broker rows continue updating while unavailable broker rows are omitted and incomplete aggregate values are null. A filtered known broker with unavailable measurements has null values and incomplete coverage. Topic and partition lag coverage identify their assigned follower scope independently of other topics. Zero lag is valid only when measurement evidence supports it; unknown leader evidence, unobserved ISR membership, negative offsets, or zero offsets outside ISR without a usable estimate remain unavailable. collectedAt and topologyObservedAt preserve source timestamps. Global collection or assignment metadata failures return an error. Partial observations never update strict operational caches or publish partial totals as cluster metrics. Unknown topic or broker filters return 404.
| topic | string Filter to a specific topic (includes per-partition detail) |
| broker | integer Filter to a specific broker |
| summary | boolean Default: false When true, omits per-partition details from topics (smaller response) |
{- "success": true,
- "data": {
- "collectedAt": "2019-08-24T14:15:22Z",
- "topologyObservedAt": "2019-08-24T14:15:22Z",
- "brokerErrors": [
- {
- "brokerId": 0,
- "error": "string"
}
], - "coverage": {
- "complete": true,
- "expectedBrokerIds": [
- 0
], - "observedBrokerIds": [
- 0
], - "missingBrokerIds": [
- 0
]
}, - "totalLag": 0,
- "maxLag": 0,
- "maxLagTopic": "string",
- "maxLagPartition": 0,
- "maxLagBroker": 0,
- "partitionsWithLag": 0,
- "totalFollowerReplicas": 0,
- "urpsFromOfflineBrokers": 0,
- "urpsFromFollowerLag": 0,
- "brokers": [
- {
- "brokerId": 0,
- "totalLag": 0,
- "maxLag": 0,
- "avgLag": 0,
- "followerCount": 0,
- "partitionsWithLag": 0
}
], - "topics": [
- {
- "coverage": {
- "complete": true,
- "expectedBrokerIds": [
- 0
], - "observedBrokerIds": [
- 0
], - "missingBrokerIds": [
- 0
]
}, - "topic": "string",
- "totalLag": 0,
- "maxLag": 0,
- "avgLag": 0,
- "partitionsWithLag": 0,
- "partitions": [
- {
- "coverage": {
- "complete": true,
- "expectedBrokerIds": [
- 0
], - "observedBrokerIds": [
- 0
], - "missingBrokerIds": [
- 0
]
}, - "partition": 0,
- "leader": 0,
- "maxLag": 0,
- "replicas": [
- {
- "brokerId": 0,
- "offsetLag": 0,
- "isLeader": true
}
]
}
]
}
]
}
}Manually triggers a metadata refresh for the cluster and sampler
{- "success": true,
- "timestamp": "2019-08-24T14:15:22Z",
- "message": "string",
- "successful_components": [
- "string"
], - "failed_components": [
- "string"
]
}Returns real-time partition activity data including sampling statistics and rates
| minimal | boolean Default: false When true, returns core partition metadata, rates, samplingStatus, lastSampled, rateObservedAt and diskMeasuredAt while excluding detailed message and health fields. |
| fields | string Example: fields=topic,partition,leader,replicas,isr,messageRate,byteRate,minISR Comma-separated list of fields to include per partition (e.g. "topic,partition,leader,replicas,isr,messageRate,byteRate"). Only specified fields are returned. Applies after minimal/full mode field population. |
{- "success": true,
- "data": {
- "brokerObservation": {
- "status": "current",
- "observedAt": "2019-08-24T14:15:22Z",
- "expiresAt": "2019-08-24T14:15:22Z",
- "reason": "string"
}, - "partitionActivity": [
- {
- "topic": "string",
- "partition": 0,
- "leader": 0,
- "replicas": [
- 0
], - "isr": [
- 0
], - "messageCount": 0,
- "totalMessages": 0,
- "byteCount": 0,
- "totalSize": 0,
- "activityScore": 0,
- "messageRate": 0,
- "byteRate": 0,
- "avgMessageSize": 0,
- "samplingStatus": "sampled",
- "healthStatus": "healthy",
- "minISR": 0,
- "isInternal": true,
- "lastSampled": "2019-08-24T14:15:22Z",
- "rateObservedAt": "2019-08-24T14:15:22Z",
- "diskMeasuredAt": "2019-08-24T14:15:22Z",
- "lastUpdated": "2019-08-24T14:15:22Z",
- "hasSamples": true,
- "highWatermark": 0,
- "lowWatermark": 0
}
], - "sampledPartitions": 0,
- "activePartitions": 0,
- "totalMessages": 0,
- "totalBytes": 0,
- "messagesPerSec": 0,
- "bytesPerSec": 0,
- "clusterTotalPartitions": 0,
- "clusterTotalReplicaPartitions": 0,
- "clusterTotalTopics": 0,
- "samplingCoverage": 0,
- "totalBrokers": 0,
- "availableBrokers": 0,
- "unavailableBrokers": 0,
- "underReplicatedPartitions": 0,
- "offlinePartitions": 0,
- "lastSampleTime": "2019-08-24T14:15:22Z",
- "lastMetadataUpdate": "2019-08-24T14:15:22Z"
}
}Redistributes all partitions of a topic using the specified strategy. Previews use a metadata snapshot no more than 60 seconds old without synchronous broker requests. If recent metadata is unavailable, retry after the next metadata refresh. Applying changes still performs live availability and safety checks. A preview needs no license; applying needs a valid license. In HA mode a live redistribution requires an Idempotency-Key and administrative mutation readiness, and its plan is accepted exactly as planned as one operation of kind redistribution before the answer; the reassignments.apply event is delivered once from the journal, and a forced drop below min.insync.replicas is audited before the accept. The answer is the standalone one with data.operationId, or 202 with data.status pending and its progress while a worker writes a large accept. Repeating the request with the same key and input answers 202 already_accepted with the operation; other input under the key returns 409 IDEMPOTENCY_CONFLICT. Another outstanding operation or an accept being written refuses a live request as another reassignment operation does; a preview ignores them. A preview and its live request alike refuse what the plan's content keeps the HA executor from running. When every planned move failed, the leader whose run ended the operation, a successor that resumed it included, records reassignments.apply with status 500, as standalone does.
| topic required | string Name of the topic to redistribute |
| force | boolean Default: false Bypass soft / in-flight pre-flight checks for a live (non-preview) redistribution, and override the min.insync.replicas guard when the target replication factor would drop a partition below its min.insync.replicas (writes with acks=all would stop). The override is audited. The cluster hard-health pre-flight (controller_unhealthy, controller_unreachable, majority_brokers_unavailable, sustained_isr_shrink, offline_partitions) is always enforced and is NOT overridable by force. controller_unreachable means a controller resolved from cluster metadata but answers no controller-routed request, which is what a lost KRaft controller quorum looks like. |
| Idempotency-Key | string [ 1 .. 256 ] characters Required in HA mode for a live request; bounded stable key for retrying the same input. |
| strategy required | string Enum: "ROUND_ROBIN" "RANDOM" "BALANCED" "RACK_AWARE" Redistribution strategy to use |
| excludedBrokers | Array of integers <int32> [ items <int32 > ] Broker IDs to exclude from redistribution |
{- "strategy": "BALANCED",
- "excludedBrokers": [
- 3,
- 4
]
}{- "success": true,
- "message": "string",
- "reassignmentId": "string",
- "data": {
- "success": true,
- "preview": true,
- "topic": "string",
- "partition": 0,
- "partitionChanges": [
- {
- "topic": "string",
- "partitionId": 0,
- "oldLeader": 0,
- "newLeader": 0,
- "oldReplicas": [
- 0
], - "newReplicas": [
- 0
], - "estimatedBytes": 0,
- "estimatedBytesKnown": true,
- "estimatedBytesCollectedAt": "2019-08-24T14:15:22Z",
- "error": "string"
}
], - "message": "string",
- "operationId": "string",
- "status": "pending",
- "progress": {
- "batches": 0,
- "written": 0,
- "rows": 0
}
}
}Redistributes a single partition to different brokers. A preview needs no license; applying needs a valid license. In HA mode a live redistribution requires an Idempotency-Key and administrative mutation readiness, and its plan is accepted as one operation of kind redistribution that names the partition, before the answer; the reassignments.apply event is delivered once from the journal. The answer is the standalone one with data.operationId, or 202 with data.status pending while a worker writes the accept. Repeating the request with the same key and input answers 202 already_accepted with the operation; other input under the key returns 409 IDEMPOTENCY_CONFLICT. Another outstanding operation or an accept being written refuses a live request as another reassignment operation does. A preview and its live request alike refuse a replica added on a broker in maintenance (409 HA_MAINTENANCE_TARGET), which the HA executor never sends. When the planned move failed, the leader whose run ended the operation records reassignments.apply with status 500 and the operation as reassignmentId, as standalone does.
| topic required | string Name of the topic |
| partition required | integer <int32> Partition number to redistribute |
| Idempotency-Key | string [ 1 .. 256 ] characters Required in HA mode for a live request; bounded stable key for retrying the same input. |
| replicas required | Array of integers <int32> non-empty unique [ items <int32 > >= 0 ] Ordered target broker IDs. Empty, duplicate, or negative IDs are rejected for previews and live requests. |
| preferredLeader | integer <int32> Preferred leader broker ID; zero preserves the submitted replica order. A preview that inserts a leader outside the submitted replicas requires cached rack metadata covering all affected brokers. If that metadata is unavailable, select a leader already in the replica assignment or retry after metadata refresh. |
| preview | boolean Default: false Return the planned assignment without applying it. Previews may explore reduced replication factors; live requests enforce the current replication and minimum ISR safety floors. |
{- "replicas": [
- 1,
- 2,
- 3
], - "preview": true
}{- "success": true,
- "message": "string",
- "reassignmentId": "string",
- "data": {
- "success": true,
- "preview": true,
- "topic": "string",
- "partition": 0,
- "partitionChanges": [
- {
- "topic": "string",
- "partitionId": 0,
- "oldLeader": 0,
- "newLeader": 0,
- "oldReplicas": [
- 0
], - "newReplicas": [
- 0
], - "estimatedBytes": 0,
- "estimatedBytesKnown": true,
- "estimatedBytesCollectedAt": "2019-08-24T14:15:22Z",
- "error": "string"
}
], - "message": "string",
- "operationId": "string",
- "status": "pending",
- "progress": {
- "batches": 0,
- "written": 0,
- "rows": 0
}
}
}Plans a move for each listed partition of the topic and, unless every entry is a preview, executes the planned live moves as one monitored reassignment operation (strategy BULK_MANUAL) through the throttled streaming path the other redistribute endpoints use. The call returns once execution has started; follow it with GET /reassignments/{id} using the returned bulkId, or stop it with POST /reassignments/{id}/cancel. Each entry is validated and planned on its own. An entry with an empty, duplicate or negative replica set, a partition listed more than once, a live replica set that would shrink the replication factor below its safety floor, or a plan that fails is reported in results with success=false and is never executed; the remaining live entries still run. A request whose live entries are all rejected starts nothing and returns 200 with started=false. Every request with a live entry is audited as reassignments.apply, including the entries that were not executed. Preview entries never change the cluster. Requires a valid license, also for preview-only requests. In HA mode a request with a live entry requires an Idempotency-Key and administrative mutation readiness, and is refused as another reassignment operation refuses it while an operation is outstanding or an accept is being written. An entry that adds a replica on a broker in maintenance, which the HA executor never sends, or that the HA executor cannot run is reported in results with success=false like the other refused entries, preview entries included. The planned live changes are accepted as one operation of kind bulk before the answer, which names it as bulkId and operationId, or answers 202 with status pending while a worker writes the accept; the reassignments.apply event, which names at most 20 of the entries that were not executed and counts the rest, is delivered once from the journal. Repeating the request with the same key and input answers 202 already_accepted with the operation; other input under the key returns 409 IDEMPOTENCY_CONFLICT. When every planned move failed, the leader whose run ended the operation records reassignments.apply with status 500, as standalone does.
| topic required | string Name of the topic |
| Idempotency-Key | string [ 1 .. 256 ] characters Required in HA mode for a live request; bounded stable key for retrying the same input. |
| description | string Optional description for the bulk operation |
required | Array of objects non-empty One entry per partition to move. Entries are validated, planned and reported independently. |
{- "description": "Rebalancing user-events topic for better distribution",
- "partitions": [
- {
- "partition": 0,
- "replicas": [
- 1,
- 2,
- 3
], - "preview": false
}, - {
- "partition": 1,
- "replicas": [
- 2,
- 3,
- 4
], - "preview": false
}
]
}{- "success": true,
- "topic": "user-events",
- "description": "Rebalancing user-events topic for better distribution",
- "started": true,
- "bulkId": "bulk-user-events-1790413459-1",
- "message": "Bulk reassignment of 1 partition(s) of topic user-events started - executing with throttling. Monitor reassignments for progress.",
- "results": [
- {
- "partition": 0,
- "success": true,
- "preview": false,
- "changes": [
- {
- "partitionId": 0,
- "oldLeader": 1,
- "newLeader": 2,
- "oldReplicas": [
- 1,
- 2,
- 3
], - "newReplicas": [
- 2,
- 3,
- 4
], - "estimatedBytes": 1073741824
}
]
}, - {
- "partition": 1,
- "success": false,
- "error": "Replica broker IDs must be non-negative"
}
]
}Drains one or more brokers in one operation: every replica on them moves once, straight onto its final broker, and the brokers enter maintenance. targetBrokers limits where the replicas go; without it every online broker outside the drain and outside maintenance is eligible. Targets govern data placement only: a partition led by a drained broker gets the least-loaded in-sync surviving replica as its new leader. preview=true returns the plan and changes nothing. The checks are strict: unknown brokers, unusable targets, a replication-factor shortfall, a rack collapse the drain introduces and a partition left below min.insync.replicas are refused, in previews too. While Kafka reassigns a partition with a replica on a drained broker, the drain is refused with reassignments_in_flight, previews included: mid-move, Kafka lists the old and the new replicas, and a plan made then would inflate the replication factor. When that status cannot be read, the drain is refused with reassignment_status_unavailable. force=true accepts a reduced replication factor and rack collapses (audited as broker.maintenance.set.override); it never overrides min.insync.replicas, the hard-health check or a running reassignment. An unforced drain whose replication-factor shortfall force could not fix, because the forced plan would leave a partition below min.insync.replicas, is refused with below_min_isr instead of rf_shortfall. A live drain starts one monitored bulk reassignment with strategy MAINTENANCE-BROKER-
| Idempotency-Key | string [ 1 .. 256 ] characters Required in HA mode for a live drain; bounded stable key for retrying the same input. |
| brokerIds required | Array of integers <int32> non-empty [ items <int32 > >= 0 ] Brokers to drain. Duplicates are ignored. |
| targetBrokers | Array of integers <int32> [ items <int32 > >= 0 ] Brokers that may receive the replicas. Omitted or empty: every online broker outside the drain and outside maintenance. A drained broker is refused with invalid_request; a target in maintenance, offline or unknown with invalid_target. |
| preview | boolean Default: false Return the plan and change nothing |
| force | boolean Default: false Accept a reduced replication factor and rack collapses (audited). Never overrides min.insync.replicas, the hard-health check or a running reassignment. |
| changesLimit | integer >= 0 Return at most this many partitionChanges. When the plan has more, the heaviest are listed, heaviest first (largest estimatedBytes, then topic and partition). 0 returns none. Omitted, or at least the number of changes: every change in plan order. Only the response is bounded; a live drain moves every partition and audits every change. |
{- "brokerIds": [
- 1,
- 4
], - "targetBrokers": [
- 7,
- 9
], - "preview": true,
- "force": false
}{- "success": true,
- "data": {
- "operationId": "string",
- "status": "pending",
- "progress": {
- "batches": 0,
- "written": 0,
- "rows": 0
}, - "success": true,
- "preview": true,
- "brokerId": 0,
- "brokerIds": [
- 0
], - "affectedTopics": [
- "string"
], - "affectedTopicsTotal": 0,
- "totalPartitions": 0,
- "partitionChanges": [
- {
- "topic": "string",
- "partitionId": 0,
- "oldLeader": 0,
- "newLeader": 0,
- "oldReplicas": [
- 0
], - "newReplicas": [
- 0
], - "estimatedBytes": 0,
- "estimatedBytesKnown": true,
- "estimatedBytesCollectedAt": "2019-08-24T14:15:22Z",
- "error": "string"
}
], - "partitionChangesTotal": 0,
- "estimatedBytes": 0,
- "unknownSizePartitionsTotal": 0,
- "targetSummary": [
- {
- "brokerId": 0,
- "rack": "string",
- "replicasAdded": 0,
- "leadersAdded": 0,
- "estimatedBytes": 0,
- "estimatedBytesKnown": true
}
], - "fullyReplacedPartitions": 0,
- "skippedPartitions": [
- {
- "topic": "string",
- "partition": 0,
- "replicas": [
- 0
]
}
], - "skippedPartitionsTotal": 0,
- "uncoveredRacks": [
- "string"
], - "landing": {
- "balanced": true,
- "line": 0,
- "concentratedTopics": 0,
- "loads": [
- {
- "load": "leader",
- "distance": 0,
- "brokerId": 0
}
]
}, - "message": "string"
}, - "rackCollapses": [
- {
- "topic": "string",
- "partition": 0,
- "replicas": [
- 0
], - "racks": [
- "string"
]
}
], - "rackCollapsesTotal": 0
}Drains one broker through the same flow as POST /brokers/maintenance with this endpoint's original, lenient checks: unusable targetBrokers are ignored rather than refused, rack collapses are reported in rackCollapses but not refused, and min.insync.replicas is checked only for live drains. A drain that cannot preserve any partition's replication factor is rejected with 409 listing the affected partitions unless the request body sets force=true, which drains with reduced replication factor (the override is audited). force may reduce the replication factor but never below a partition's min.insync.replicas: a live drain that would push a partition below min.insync.replicas (writes with acks=all would stop) is rejected with 409 even under force and is NOT overridable. A non-preview drain is also rejected with 409 while the cluster has a hard-health emergency (unhealthy controller, majority of brokers down, or sustained ISR shrink); that block is never overridable by force. A drain, preview or not, is refused with reassignments_in_flight while Kafka reassigns one of the broker's partitions, and with reassignment_status_unavailable when that cannot be read, like POST /brokers/maintenance. A live drain reports partitions left on the broker like POST /brokers/maintenance, and no rebalance follows it. Error responses carry a reason code. In HA mode a live drain requires an Idempotency-Key and administrative mutation readiness, and its plan is accepted as one operation of kind drain before the answer: the drained brokers' maintenance flags commit with the operation, and the broker.maintenance.set event is delivered once from the journal. The answer is the standalone one with data.operationId, or 202 with data.status pending and its progress while a worker writes a large accept. Repeating the request with the same key and input answers 202 already_accepted with the operation, also once the brokers are in maintenance; other input under the key returns 409 IDEMPOTENCY_CONFLICT. A drain with nothing to move writes the flags as fenced broker-state writes, one per broker, and starts no operation, so its key is not kept: a repeat finds the brokers in maintenance and answers 409 already_in_maintenance, a safe end state. A write that fails after earlier ones committed leaves those brokers in maintenance and records broker.maintenance.set with status 500, and a write of unknown outcome answers 503 HA_UNCERTAIN. A preview answers as standalone's does: another outstanding operation or an accept being written refuses only the live drain (operation_in_progress), and so does an unknown outcome (HA_UNCERTAIN). A preview and its live drain alike refuse what the plan's content keeps the HA executor from running: a replica added on a broker in maintenance (invalid_target) and a row it cannot run (409 HA_UNSUPPORTED). When the drain ends, the leader whose run ended it, a successor that resumed it included, records as standalone does a run in which every planned move failed (broker.maintenance.set with status 500) and the partitions left on a drained broker (broker.maintenance.residual).
| brokerId required | integer <int32> ID of the broker to put in maintenance mode |
| Idempotency-Key | string [ 1 .. 256 ] characters Required in HA mode for a live drain; bounded stable key for retrying the same input. |
| strategy | string Enum: "ROUND_ROBIN" "RANDOM" "BALANCED" "RACK_AWARE" Accepted for compatibility and ignored; the drain planner places replicas rack-aware |
| preserveLeaders | boolean Default: true Accepted for compatibility and ignored; leadership moves only off the drained broker |
| preview | boolean Default: false If true, only return a preview of changes without executing them |
| force | boolean Default: false Allow maintenance even if it causes under-replicated partitions |
| targetBrokers | Array of integers Optional list of specific brokers to move partitions to; drained, maintenance, offline and unknown brokers are ignored. If not provided, partitions will be distributed across all available brokers. |
| changesLimit | integer >= 0 Return at most this many partitionChanges. When the plan has more, the heaviest are listed, heaviest first (largest estimatedBytes, then topic and partition). 0 returns none. Omitted, or at least the number of changes: every change in plan order. Only the response is bounded; a live drain moves every partition and audits every change. |
{- "strategy": "RACK_AWARE",
- "preserveLeaders": true,
- "preview": false,
- "force": false,
- "targetBrokers": [
- 7,
- 8,
- 9,
- 10,
- 11,
- 12
]
}{- "success": true,
- "data": {
- "operationId": "string",
- "status": "pending",
- "progress": {
- "batches": 0,
- "written": 0,
- "rows": 0
}, - "success": true,
- "preview": true,
- "brokerId": 0,
- "brokerIds": [
- 0
], - "affectedTopics": [
- "string"
], - "affectedTopicsTotal": 0,
- "totalPartitions": 0,
- "partitionChanges": [
- {
- "topic": "string",
- "partitionId": 0,
- "oldLeader": 0,
- "newLeader": 0,
- "oldReplicas": [
- 0
], - "newReplicas": [
- 0
], - "estimatedBytes": 0,
- "estimatedBytesKnown": true,
- "estimatedBytesCollectedAt": "2019-08-24T14:15:22Z",
- "error": "string"
}
], - "partitionChangesTotal": 0,
- "estimatedBytes": 0,
- "unknownSizePartitionsTotal": 0,
- "targetSummary": [
- {
- "brokerId": 0,
- "rack": "string",
- "replicasAdded": 0,
- "leadersAdded": 0,
- "estimatedBytes": 0,
- "estimatedBytesKnown": true
}
], - "fullyReplacedPartitions": 0,
- "skippedPartitions": [
- {
- "topic": "string",
- "partition": 0,
- "replicas": [
- 0
]
}
], - "skippedPartitionsTotal": 0,
- "uncoveredRacks": [
- "string"
], - "landing": {
- "balanced": true,
- "line": 0,
- "concentratedTopics": 0,
- "loads": [
- {
- "load": "leader",
- "distance": 0,
- "brokerId": 0
}
]
}, - "message": "string"
}, - "rackCollapses": [
- {
- "topic": "string",
- "partition": 0,
- "replicas": [
- 0
], - "racks": [
- "string"
]
}
], - "rackCollapsesTotal": 0
}Removes a broker from maintenance mode. preview=true in the optional body answers the removal without changing anything. In HA mode the removal is one fenced broker-state write that stores the broker offline, as standalone does, and needs administrative readiness; it is allowed while a drain of the broker still runs, since the drain set the maintenance flag once, when it was accepted. A preview is a read.
| brokerId required | integer <int32> ID of the broker to remove from maintenance mode |
| preview | boolean Default: false Answer the removal without changing anything. |
{- "preview": false
}{- "success": true,
- "message": "string"
}Moves replicas stored in source log directories to target log directories on the specified broker. In HA mode the move requires an Idempotency-Key and administrative mutation readiness; it is planned from a fresh read of the broker's log directories with standalone's planner and refusals and accepted as one administrative operation of kind logdir, which runs beside a data movement. The HA answers, the checks right before the send and the read-back of a lost answer are those of POST /topics/{topic}/logdirs/move; the broker.logdirs.move event is delivered once from the journal when every partition has its outcome, at the broker's answer as standalone records it, also by a successor, while the operation still watches the copies.
| brokerId required | integer <int32> >= 0 ID of the broker to move log directories on |
| Idempotency-Key | string [ 1 .. 256 ] characters Required in HA mode; bounded stable key for retrying the same input. |
| strategy | string Default: "BALANCE_ALL" Enum: "BALANCE_ALL" "BALANCE_SELECTED" Move strategy. Both strategies use the same two-pass balancing algorithm (disk size first, then partition count). BALANCE_ALL operates on all log dirs. BALANCE_SELECTED operates on the specified source + target dirs only. |
| sourceLogDirs | Array of strings Log directory paths to move replicas from (required for BALANCE_SELECTED) |
| targetLogDirs | Array of strings Log directory paths to move replicas to (required for BALANCE_SELECTED) |
{- "strategy": "BALANCE_ALL",
- "sourceLogDirs": [
- "/var/lib/kafka/data-1"
], - "targetLogDirs": [
- "/var/lib/kafka/data-2"
]
}{- "success": true,
- "data": {
- "success": true,
- "brokerId": 0,
- "totalPartitions": 0,
- "movedPartitions": 0,
- "failedPartitions": 0,
- "pendingPartitions": 0,
- "errors": [
- {
- "topic": "string",
- "partition": 0,
- "errorCode": 0,
- "error": "string"
}
]
}
}Returns the configuration for a specific topic
| topic required | string Name of the topic |
{- "success": true,
- "configs": {
- "property1": "string",
- "property2": "string"
}
}Updates the configuration for a specific topic. In HA mode the change requires an Idempotency-Key and administrative mutation readiness. Pilot reads the topic fresh and accepts the change as one administrative operation of kind topic-config, which runs beside a data movement: only the requested keys are sent, a value equal to the cluster default deletes the topic's own value, and keys the topic already shows are left out. A topic Kafka does not know, or one that already shows every requested value, accepts no operation and is answered and recorded as in standalone mode. The request waits up to 10 seconds for the operation to end and answers as standalone does, with operationId, or 202 with the operation and status accepted when the wait or the request ends first. Repeating the request with the same key and input waits the same way and answers the ended change's outcome, else 202 already_accepted; other input under the key returns 409 IDEMPOTENCY_CONFLICT. Pilot sends the change once. A request that got no answer is decided from the configuration Pilot reads back, once its resolution window has passed (116 seconds after the send was authorized, or 90 seconds after the send call returned if that is later) unless the read shows the change earlier. The topics.config.update event is delivered once from the journal when the operation ends, also by a successor after a failover.
| topic required | string Name of the topic |
| Idempotency-Key | string [ 1 .. 256 ] characters Required in HA mode; bounded stable key for retrying the same input. |
required | object Configuration key-value pairs to update |
{- "configs": {
- "retention.ms": "604800000",
- "max.message.bytes": "1048576",
- "cleanup.policy": "delete"
}
}{- "success": true,
- "topic": "string",
- "message": "Topic configuration updated successfully",
- "error": "string",
- "operationId": "string"
}Returns only the configuration values whose source is the topic itself. Values the topic inherits from the broker's static or dynamic configuration, or from Kafka's defaults, are left out. An empty leader.replication.throttled.replicas or follower.replication.throttled.replicas is left out too: it equals the default, and Kafka keeps the key after the last entry is removed.
| topic required | string Name of the topic |
{- "success": true,
- "configs": {
- "property1": "string",
- "property2": "string"
}
}Updates configurations for multiple topics in a single operation. In HA mode the change requires an Idempotency-Key and administrative mutation readiness, and it is accepted as one administrative operation of kind topic-config, one row per topic, planned and sent as PUT /topics/{topic}/config describes, one topic after another in request order. Topics Kafka does not know, or that already show every requested value, are decided when Pilot plans the change; when no topic is left to send, no operation is accepted and the change is answered and recorded as in standalone mode. The request waits up to 10 seconds for the operation to end and answers as standalone does, with operationId, or 202 with the operation and status accepted when the wait or the request ends first, or status pending while a worker writes a large accept. Repeating the request with the same key and input waits the same way and answers each topic's outcome once the operation ended, else 202 already_accepted or pending; other input under the key returns 409 IDEMPOTENCY_CONFLICT. The topics.config.update.bulk event is delivered once from the journal when the operation ends, also by a successor after a failover.
| Idempotency-Key | string [ 1 .. 256 ] characters Required in HA mode; bounded stable key for retrying the same input. |
required | Array of objects |
{- "topics": [
- {
- "name": "user-events",
- "configs": {
- "retention.ms": "604800000",
- "cleanup.policy": "delete"
}
}, - {
- "name": "product-updates",
- "configs": {
- "max.message.bytes": "2097152",
- "compression.type": "gzip"
}
}
]
}{- "success": true,
- "data": {
- "success": true,
- "successful_topics": 0,
- "failed_topics": 0,
- "topic_results": [
- {
- "topic": "string",
- "success": true,
- "message": "string",
- "error": "string",
- "code": "HA_RESOURCE_CONFLICT"
}
], - "operationId": "string"
}
}Searches topics based on configuration criteria
required | Array of objects |
{- "criteria": [
- {
- "key": "retention.ms",
- "operator": "gt",
- "value": "86400000"
}, - {
- "key": "cleanup.policy",
- "operator": "in",
- "values": [
- "delete",
- "compact"
]
}
]
}{- "success": true,
- "topics": [
- {
- "name": "string",
- "configs": {
- "property1": "string",
- "property2": "string"
}
}
], - "totalMatches": 0
}Client quota management. Kafka names a quota entity exactly: a user or client ID with leading or trailing whitespace is refused with 400 Invalid quota entity on every entity route, and the MCP update_quota and delete_quota tools refuse it too. The effective quota of GET /quotas?includeEffective=true, POST /quotas/resolve and the MCP resolve_quota tool is resolved for the name exactly as sent.
List configured client quota entities, including defaults.
| entityType | string Enum: "default" "default-user" "default-client-id" "default-user-client-id" "user" "user-default-client-id" "client-id" "user-client-id" Filter by entity scope |
| user | string User principal to filter by |
| clientId | string Client ID to filter by |
| includeEffective | boolean Include effective quotas for the provided user/clientId pair |
{- "success": true,
- "data": {
- "items": [
- {
- "entityType": "default",
- "user": "string",
- "clientId": "string",
- "quotas": {
- "property1": 0,
- "property2": 0
}
}
], - "total": 0,
- "effective": {
- "effective": {
- "property1": 0,
- "property2": 0
}, - "resolutionOrder": [
- "user-client-id"
], - "configuredEntities": [
- {
- "entityType": "default",
- "user": "string",
- "clientId": "string",
- "quotas": {
- "property1": 0,
- "property2": 0
}
}
]
}
}
}Resolve the effective quotas for a user and client-id pair.
| user | string |
| clientId | string |
{- "user": "string",
- "clientId": "string"
}{- "success": true,
- "data": {
- "effective": {
- "property1": 0,
- "property2": 0
}, - "resolutionOrder": [
- "user-client-id"
], - "configuredEntities": [
- {
- "entityType": "default",
- "user": "string",
- "clientId": "string",
- "quotas": {
- "property1": 0,
- "property2": 0
}
}
]
}
}Returns configured default quotas (empty if none configured).
{- "success": true,
- "data": {
- "entityType": "default",
- "user": "string",
- "clientId": "string",
- "quotas": {
- "property1": 0,
- "property2": 0
}
}
}Create or update default quota keys. In HA mode the change requires an Idempotency-Key and administrative mutation readiness, and runs as one administrative operation of kind quota beside a data movement. Pilot reads the entity as standalone does; a change the entity already shows accepts no operation and is answered as in standalone mode. Right before the send Pilot reads the entity again and sends every key it does not show yet in one AlterClientQuotas entry, once. The request waits up to 10 seconds for the operation to end and answers as standalone does, with operationId, or 202 with the operation. A repeat with the same key and input waits the same way and answers the ended change, else 202 already_accepted; other input under the key returns 409 IDEMPOTENCY_CONFLICT. A request that got no answer is decided from the quotas Pilot reads back, once its resolution window has passed unless the read shows the change earlier. The quotas.update event is delivered once from the journal when the operation ends, also by a successor after a failover, and records a failed change too.
| Idempotency-Key | string [ 1 .. 256 ] characters Required in HA mode; bounded stable key for retrying the same input. |
object | |
| delete | Array of strings |
{- "set": {
- "property1": 0,
- "property2": 0
}, - "delete": [
- "string"
]
}{- "success": true,
- "data": {
- "entity": {
- "entityType": "default",
- "user": "string",
- "clientId": "string",
- "quotas": {
- "property1": 0,
- "property2": 0
}
}, - "before": {
- "property1": 0,
- "property2": 0
}, - "after": {
- "property1": 0,
- "property2": 0
}, - "diff": {
- "added": {
- "property1": 0,
- "property2": 0
}, - "updated": {
- "property1": {
- "old": 0,
- "new": 0
}, - "property2": {
- "old": 0,
- "new": 0
}
}, - "deleted": {
- "property1": 0,
- "property2": 0
}
}, - "operationId": "string"
}
}Removes all configured default quotas. In HA mode the delete requires an Idempotency-Key and administrative mutation readiness, and runs as one administrative operation of kind quota beside a data movement. Pilot reads the entity as standalone does and deletes the keys that read shows; an entity without quotas accepts no operation and is answered as in standalone mode. Right before the send Pilot reads the entity again and removes every planned key it still shows in one AlterClientQuotas entry, once. The request waits up to 10 seconds for the operation to end and answers as standalone does, with operationId, or 202 with the operation. A repeat with the same key waits the same way and answers the ended delete, else 202 already_accepted; another request under the key returns 409 IDEMPOTENCY_CONFLICT. A request that got no answer is decided from the quotas Pilot reads back. The quotas.delete event is delivered once from the journal when the operation ends, also by a successor after a failover, and records a failed delete too.
| Idempotency-Key | string [ 1 .. 256 ] characters Required in HA mode; bounded stable key for retrying the same input. |
{- "success": true,
- "data": {
- "entity": {
- "entityType": "default",
- "user": "string",
- "clientId": "string",
- "quotas": {
- "property1": 0,
- "property2": 0
}
}, - "deletedKeys": [
- "string"
], - "operationId": "string"
}
}Returns quotas for the default user entity.
{- "success": true,
- "data": {
- "entityType": "default",
- "user": "string",
- "clientId": "string",
- "quotas": {
- "property1": 0,
- "property2": 0
}
}
}Create or update default user quota keys. In HA mode the change requires an Idempotency-Key and administrative mutation readiness, and runs as one administrative operation of kind quota beside a data movement. Pilot reads the entity as standalone does; a change the entity already shows accepts no operation and is answered as in standalone mode. Right before the send Pilot reads the entity again and sends every key it does not show yet in one AlterClientQuotas entry, once. The request waits up to 10 seconds for the operation to end and answers as standalone does, with operationId, or 202 with the operation. A repeat with the same key and input waits the same way and answers the ended change, else 202 already_accepted; other input under the key returns 409 IDEMPOTENCY_CONFLICT. A request that got no answer is decided from the quotas Pilot reads back, once its resolution window has passed unless the read shows the change earlier. The quotas.update event is delivered once from the journal when the operation ends, also by a successor after a failover, and records a failed change too.
| Idempotency-Key | string [ 1 .. 256 ] characters Required in HA mode; bounded stable key for retrying the same input. |
object | |
| delete | Array of strings |
{- "set": {
- "property1": 0,
- "property2": 0
}, - "delete": [
- "string"
]
}{- "success": true,
- "data": {
- "entity": {
- "entityType": "default",
- "user": "string",
- "clientId": "string",
- "quotas": {
- "property1": 0,
- "property2": 0
}
}, - "before": {
- "property1": 0,
- "property2": 0
}, - "after": {
- "property1": 0,
- "property2": 0
}, - "diff": {
- "added": {
- "property1": 0,
- "property2": 0
}, - "updated": {
- "property1": {
- "old": 0,
- "new": 0
}, - "property2": {
- "old": 0,
- "new": 0
}
}, - "deleted": {
- "property1": 0,
- "property2": 0
}
}, - "operationId": "string"
}
}Removes all configured default user quotas. In HA mode the delete requires an Idempotency-Key and administrative mutation readiness, and runs as one administrative operation of kind quota beside a data movement. Pilot reads the entity as standalone does and deletes the keys that read shows; an entity without quotas accepts no operation and is answered as in standalone mode. Right before the send Pilot reads the entity again and removes every planned key it still shows in one AlterClientQuotas entry, once. The request waits up to 10 seconds for the operation to end and answers as standalone does, with operationId, or 202 with the operation. A repeat with the same key waits the same way and answers the ended delete, else 202 already_accepted; another request under the key returns 409 IDEMPOTENCY_CONFLICT. A request that got no answer is decided from the quotas Pilot reads back. The quotas.delete event is delivered once from the journal when the operation ends, also by a successor after a failover, and records a failed delete too.
| Idempotency-Key | string [ 1 .. 256 ] characters Required in HA mode; bounded stable key for retrying the same input. |
{- "success": true,
- "data": {
- "entity": {
- "entityType": "default",
- "user": "string",
- "clientId": "string",
- "quotas": {
- "property1": 0,
- "property2": 0
}
}, - "deletedKeys": [
- "string"
], - "operationId": "string"
}
}Returns quotas for the default client-id entity.
{- "success": true,
- "data": {
- "entityType": "default",
- "user": "string",
- "clientId": "string",
- "quotas": {
- "property1": 0,
- "property2": 0
}
}
}Create or update default client-id quota keys. In HA mode the change requires an Idempotency-Key and administrative mutation readiness, and runs as one administrative operation of kind quota beside a data movement. Pilot reads the entity as standalone does; a change the entity already shows accepts no operation and is answered as in standalone mode. Right before the send Pilot reads the entity again and sends every key it does not show yet in one AlterClientQuotas entry, once. The request waits up to 10 seconds for the operation to end and answers as standalone does, with operationId, or 202 with the operation. A repeat with the same key and input waits the same way and answers the ended change, else 202 already_accepted; other input under the key returns 409 IDEMPOTENCY_CONFLICT. A request that got no answer is decided from the quotas Pilot reads back, once its resolution window has passed unless the read shows the change earlier. The quotas.update event is delivered once from the journal when the operation ends, also by a successor after a failover, and records a failed change too.
| Idempotency-Key | string [ 1 .. 256 ] characters Required in HA mode; bounded stable key for retrying the same input. |
object | |
| delete | Array of strings |
{- "set": {
- "property1": 0,
- "property2": 0
}, - "delete": [
- "string"
]
}{- "success": true,
- "data": {
- "entity": {
- "entityType": "default",
- "user": "string",
- "clientId": "string",
- "quotas": {
- "property1": 0,
- "property2": 0
}
}, - "before": {
- "property1": 0,
- "property2": 0
}, - "after": {
- "property1": 0,
- "property2": 0
}, - "diff": {
- "added": {
- "property1": 0,
- "property2": 0
}, - "updated": {
- "property1": {
- "old": 0,
- "new": 0
}, - "property2": {
- "old": 0,
- "new": 0
}
}, - "deleted": {
- "property1": 0,
- "property2": 0
}
}, - "operationId": "string"
}
}Removes all configured default client-id quotas. In HA mode the delete requires an Idempotency-Key and administrative mutation readiness, and runs as one administrative operation of kind quota beside a data movement. Pilot reads the entity as standalone does and deletes the keys that read shows; an entity without quotas accepts no operation and is answered as in standalone mode. Right before the send Pilot reads the entity again and removes every planned key it still shows in one AlterClientQuotas entry, once. The request waits up to 10 seconds for the operation to end and answers as standalone does, with operationId, or 202 with the operation. A repeat with the same key waits the same way and answers the ended delete, else 202 already_accepted; another request under the key returns 409 IDEMPOTENCY_CONFLICT. A request that got no answer is decided from the quotas Pilot reads back. The quotas.delete event is delivered once from the journal when the operation ends, also by a successor after a failover, and records a failed delete too.
| Idempotency-Key | string [ 1 .. 256 ] characters Required in HA mode; bounded stable key for retrying the same input. |
{- "success": true,
- "data": {
- "entity": {
- "entityType": "default",
- "user": "string",
- "clientId": "string",
- "quotas": {
- "property1": 0,
- "property2": 0
}
}, - "deletedKeys": [
- "string"
], - "operationId": "string"
}
}Returns configured quotas for the default user and specific client-id.
| clientId required | string |
{- "success": true,
- "data": {
- "entityType": "default",
- "user": "string",
- "clientId": "string",
- "quotas": {
- "property1": 0,
- "property2": 0
}
}
}Create or update quotas for the default user and client-id. In HA mode the change requires an Idempotency-Key and administrative mutation readiness, and runs as one administrative operation of kind quota beside a data movement. Pilot reads the entity as standalone does; a change the entity already shows accepts no operation and is answered as in standalone mode. Right before the send Pilot reads the entity again and sends every key it does not show yet in one AlterClientQuotas entry, once. The request waits up to 10 seconds for the operation to end and answers as standalone does, with operationId, or 202 with the operation. A repeat with the same key and input waits the same way and answers the ended change, else 202 already_accepted; other input under the key returns 409 IDEMPOTENCY_CONFLICT. A request that got no answer is decided from the quotas Pilot reads back, once its resolution window has passed unless the read shows the change earlier. The quotas.update event is delivered once from the journal when the operation ends, also by a successor after a failover, and records a failed change too.
| clientId required | string |
| Idempotency-Key | string [ 1 .. 256 ] characters Required in HA mode; bounded stable key for retrying the same input. |
object | |
| delete | Array of strings |
{- "set": {
- "property1": 0,
- "property2": 0
}, - "delete": [
- "string"
]
}{- "success": true,
- "data": {
- "entity": {
- "entityType": "default",
- "user": "string",
- "clientId": "string",
- "quotas": {
- "property1": 0,
- "property2": 0
}
}, - "before": {
- "property1": 0,
- "property2": 0
}, - "after": {
- "property1": 0,
- "property2": 0
}, - "diff": {
- "added": {
- "property1": 0,
- "property2": 0
}, - "updated": {
- "property1": {
- "old": 0,
- "new": 0
}, - "property2": {
- "old": 0,
- "new": 0
}
}, - "deleted": {
- "property1": 0,
- "property2": 0
}
}, - "operationId": "string"
}
}Removes all quotas for the default user and client-id. In HA mode the delete requires an Idempotency-Key and administrative mutation readiness, and runs as one administrative operation of kind quota beside a data movement. Pilot reads the entity as standalone does and deletes the keys that read shows; an entity without quotas accepts no operation and is answered as in standalone mode. Right before the send Pilot reads the entity again and removes every planned key it still shows in one AlterClientQuotas entry, once. The request waits up to 10 seconds for the operation to end and answers as standalone does, with operationId, or 202 with the operation. A repeat with the same key waits the same way and answers the ended delete, else 202 already_accepted; another request under the key returns 409 IDEMPOTENCY_CONFLICT. A request that got no answer is decided from the quotas Pilot reads back. The quotas.delete event is delivered once from the journal when the operation ends, also by a successor after a failover, and records a failed delete too.
| clientId required | string |
| Idempotency-Key | string [ 1 .. 256 ] characters Required in HA mode; bounded stable key for retrying the same input. |
{- "success": true,
- "data": {
- "entity": {
- "entityType": "default",
- "user": "string",
- "clientId": "string",
- "quotas": {
- "property1": 0,
- "property2": 0
}
}, - "deletedKeys": [
- "string"
], - "operationId": "string"
}
}Returns configured quotas for a user across all client-ids.
| user required | string |
{- "success": true,
- "data": {
- "entityType": "default",
- "user": "string",
- "clientId": "string",
- "quotas": {
- "property1": 0,
- "property2": 0
}
}
}Create or update quotas for a user across all client-ids. In HA mode the change requires an Idempotency-Key and administrative mutation readiness, and runs as one administrative operation of kind quota beside a data movement. Pilot reads the entity as standalone does; a change the entity already shows accepts no operation and is answered as in standalone mode. Right before the send Pilot reads the entity again and sends every key it does not show yet in one AlterClientQuotas entry, once. The request waits up to 10 seconds for the operation to end and answers as standalone does, with operationId, or 202 with the operation. A repeat with the same key and input waits the same way and answers the ended change, else 202 already_accepted; other input under the key returns 409 IDEMPOTENCY_CONFLICT. A request that got no answer is decided from the quotas Pilot reads back, once its resolution window has passed unless the read shows the change earlier. The quotas.update event is delivered once from the journal when the operation ends, also by a successor after a failover, and records a failed change too.
| user required | string |
| Idempotency-Key | string [ 1 .. 256 ] characters Required in HA mode; bounded stable key for retrying the same input. |
object | |
| delete | Array of strings |
{- "set": {
- "property1": 0,
- "property2": 0
}, - "delete": [
- "string"
]
}{- "success": true,
- "data": {
- "entity": {
- "entityType": "default",
- "user": "string",
- "clientId": "string",
- "quotas": {
- "property1": 0,
- "property2": 0
}
}, - "before": {
- "property1": 0,
- "property2": 0
}, - "after": {
- "property1": 0,
- "property2": 0
}, - "diff": {
- "added": {
- "property1": 0,
- "property2": 0
}, - "updated": {
- "property1": {
- "old": 0,
- "new": 0
}, - "property2": {
- "old": 0,
- "new": 0
}
}, - "deleted": {
- "property1": 0,
- "property2": 0
}
}, - "operationId": "string"
}
}Removes all quotas for a user across all client-ids. In HA mode the delete requires an Idempotency-Key and administrative mutation readiness, and runs as one administrative operation of kind quota beside a data movement. Pilot reads the entity as standalone does and deletes the keys that read shows; an entity without quotas accepts no operation and is answered as in standalone mode. Right before the send Pilot reads the entity again and removes every planned key it still shows in one AlterClientQuotas entry, once. The request waits up to 10 seconds for the operation to end and answers as standalone does, with operationId, or 202 with the operation. A repeat with the same key waits the same way and answers the ended delete, else 202 already_accepted; another request under the key returns 409 IDEMPOTENCY_CONFLICT. A request that got no answer is decided from the quotas Pilot reads back. The quotas.delete event is delivered once from the journal when the operation ends, also by a successor after a failover, and records a failed delete too.
| user required | string |
| Idempotency-Key | string [ 1 .. 256 ] characters Required in HA mode; bounded stable key for retrying the same input. |
{- "success": true,
- "data": {
- "entity": {
- "entityType": "default",
- "user": "string",
- "clientId": "string",
- "quotas": {
- "property1": 0,
- "property2": 0
}
}, - "deletedKeys": [
- "string"
], - "operationId": "string"
}
}Returns configured quotas for a user.
| user required | string |
{- "success": true,
- "data": {
- "entityType": "default",
- "user": "string",
- "clientId": "string",
- "quotas": {
- "property1": 0,
- "property2": 0
}
}
}Create or update user quota keys. In HA mode the change requires an Idempotency-Key and administrative mutation readiness, and runs as one administrative operation of kind quota beside a data movement. Pilot reads the entity as standalone does; a change the entity already shows accepts no operation and is answered as in standalone mode. Right before the send Pilot reads the entity again and sends every key it does not show yet in one AlterClientQuotas entry, once. The request waits up to 10 seconds for the operation to end and answers as standalone does, with operationId, or 202 with the operation. A repeat with the same key and input waits the same way and answers the ended change, else 202 already_accepted; other input under the key returns 409 IDEMPOTENCY_CONFLICT. A request that got no answer is decided from the quotas Pilot reads back, once its resolution window has passed unless the read shows the change earlier. The quotas.update event is delivered once from the journal when the operation ends, also by a successor after a failover, and records a failed change too.
| user required | string |
| Idempotency-Key | string [ 1 .. 256 ] characters Required in HA mode; bounded stable key for retrying the same input. |
object | |
| delete | Array of strings |
{- "set": {
- "property1": 0,
- "property2": 0
}, - "delete": [
- "string"
]
}{- "success": true,
- "data": {
- "entity": {
- "entityType": "default",
- "user": "string",
- "clientId": "string",
- "quotas": {
- "property1": 0,
- "property2": 0
}
}, - "before": {
- "property1": 0,
- "property2": 0
}, - "after": {
- "property1": 0,
- "property2": 0
}, - "diff": {
- "added": {
- "property1": 0,
- "property2": 0
}, - "updated": {
- "property1": {
- "old": 0,
- "new": 0
}, - "property2": {
- "old": 0,
- "new": 0
}
}, - "deleted": {
- "property1": 0,
- "property2": 0
}
}, - "operationId": "string"
}
}Removes all quotas for a user. In HA mode the delete requires an Idempotency-Key and administrative mutation readiness, and runs as one administrative operation of kind quota beside a data movement. Pilot reads the entity as standalone does and deletes the keys that read shows; an entity without quotas accepts no operation and is answered as in standalone mode. Right before the send Pilot reads the entity again and removes every planned key it still shows in one AlterClientQuotas entry, once. The request waits up to 10 seconds for the operation to end and answers as standalone does, with operationId, or 202 with the operation. A repeat with the same key waits the same way and answers the ended delete, else 202 already_accepted; another request under the key returns 409 IDEMPOTENCY_CONFLICT. A request that got no answer is decided from the quotas Pilot reads back. The quotas.delete event is delivered once from the journal when the operation ends, also by a successor after a failover, and records a failed delete too.
| user required | string |
| Idempotency-Key | string [ 1 .. 256 ] characters Required in HA mode; bounded stable key for retrying the same input. |
{- "success": true,
- "data": {
- "entity": {
- "entityType": "default",
- "user": "string",
- "clientId": "string",
- "quotas": {
- "property1": 0,
- "property2": 0
}
}, - "deletedKeys": [
- "string"
], - "operationId": "string"
}
}Returns configured quotas for a client-id.
| clientId required | string |
{- "success": true,
- "data": {
- "entityType": "default",
- "user": "string",
- "clientId": "string",
- "quotas": {
- "property1": 0,
- "property2": 0
}
}
}Create or update client-id quota keys. In HA mode the change requires an Idempotency-Key and administrative mutation readiness, and runs as one administrative operation of kind quota beside a data movement. Pilot reads the entity as standalone does; a change the entity already shows accepts no operation and is answered as in standalone mode. Right before the send Pilot reads the entity again and sends every key it does not show yet in one AlterClientQuotas entry, once. The request waits up to 10 seconds for the operation to end and answers as standalone does, with operationId, or 202 with the operation. A repeat with the same key and input waits the same way and answers the ended change, else 202 already_accepted; other input under the key returns 409 IDEMPOTENCY_CONFLICT. A request that got no answer is decided from the quotas Pilot reads back, once its resolution window has passed unless the read shows the change earlier. The quotas.update event is delivered once from the journal when the operation ends, also by a successor after a failover, and records a failed change too.
| clientId required | string |
| Idempotency-Key | string [ 1 .. 256 ] characters Required in HA mode; bounded stable key for retrying the same input. |
object | |
| delete | Array of strings |
{- "set": {
- "property1": 0,
- "property2": 0
}, - "delete": [
- "string"
]
}{- "success": true,
- "data": {
- "entity": {
- "entityType": "default",
- "user": "string",
- "clientId": "string",
- "quotas": {
- "property1": 0,
- "property2": 0
}
}, - "before": {
- "property1": 0,
- "property2": 0
}, - "after": {
- "property1": 0,
- "property2": 0
}, - "diff": {
- "added": {
- "property1": 0,
- "property2": 0
}, - "updated": {
- "property1": {
- "old": 0,
- "new": 0
}, - "property2": {
- "old": 0,
- "new": 0
}
}, - "deleted": {
- "property1": 0,
- "property2": 0
}
}, - "operationId": "string"
}
}Removes all quotas for a client-id. In HA mode the delete requires an Idempotency-Key and administrative mutation readiness, and runs as one administrative operation of kind quota beside a data movement. Pilot reads the entity as standalone does and deletes the keys that read shows; an entity without quotas accepts no operation and is answered as in standalone mode. Right before the send Pilot reads the entity again and removes every planned key it still shows in one AlterClientQuotas entry, once. The request waits up to 10 seconds for the operation to end and answers as standalone does, with operationId, or 202 with the operation. A repeat with the same key waits the same way and answers the ended delete, else 202 already_accepted; another request under the key returns 409 IDEMPOTENCY_CONFLICT. A request that got no answer is decided from the quotas Pilot reads back. The quotas.delete event is delivered once from the journal when the operation ends, also by a successor after a failover, and records a failed delete too.
| clientId required | string |
| Idempotency-Key | string [ 1 .. 256 ] characters Required in HA mode; bounded stable key for retrying the same input. |
{- "success": true,
- "data": {
- "entity": {
- "entityType": "default",
- "user": "string",
- "clientId": "string",
- "quotas": {
- "property1": 0,
- "property2": 0
}
}, - "deletedKeys": [
- "string"
], - "operationId": "string"
}
}Returns configured quotas for a user and client-id pair.
| user required | string |
| clientId required | string |
{- "success": true,
- "data": {
- "entityType": "default",
- "user": "string",
- "clientId": "string",
- "quotas": {
- "property1": 0,
- "property2": 0
}
}
}Create or update quotas for a user and client-id pair. In HA mode the change requires an Idempotency-Key and administrative mutation readiness, and runs as one administrative operation of kind quota beside a data movement. Pilot reads the entity as standalone does; a change the entity already shows accepts no operation and is answered as in standalone mode. Right before the send Pilot reads the entity again and sends every key it does not show yet in one AlterClientQuotas entry, once. The request waits up to 10 seconds for the operation to end and answers as standalone does, with operationId, or 202 with the operation. A repeat with the same key and input waits the same way and answers the ended change, else 202 already_accepted; other input under the key returns 409 IDEMPOTENCY_CONFLICT. A request that got no answer is decided from the quotas Pilot reads back, once its resolution window has passed unless the read shows the change earlier. The quotas.update event is delivered once from the journal when the operation ends, also by a successor after a failover, and records a failed change too.
| user required | string |
| clientId required | string |
| Idempotency-Key | string [ 1 .. 256 ] characters Required in HA mode; bounded stable key for retrying the same input. |
object | |
| delete | Array of strings |
{- "set": {
- "property1": 0,
- "property2": 0
}, - "delete": [
- "string"
]
}{- "success": true,
- "data": {
- "entity": {
- "entityType": "default",
- "user": "string",
- "clientId": "string",
- "quotas": {
- "property1": 0,
- "property2": 0
}
}, - "before": {
- "property1": 0,
- "property2": 0
}, - "after": {
- "property1": 0,
- "property2": 0
}, - "diff": {
- "added": {
- "property1": 0,
- "property2": 0
}, - "updated": {
- "property1": {
- "old": 0,
- "new": 0
}, - "property2": {
- "old": 0,
- "new": 0
}
}, - "deleted": {
- "property1": 0,
- "property2": 0
}
}, - "operationId": "string"
}
}Removes all quotas for a user and client-id pair. In HA mode the delete requires an Idempotency-Key and administrative mutation readiness, and runs as one administrative operation of kind quota beside a data movement. Pilot reads the entity as standalone does and deletes the keys that read shows; an entity without quotas accepts no operation and is answered as in standalone mode. Right before the send Pilot reads the entity again and removes every planned key it still shows in one AlterClientQuotas entry, once. The request waits up to 10 seconds for the operation to end and answers as standalone does, with operationId, or 202 with the operation. A repeat with the same key waits the same way and answers the ended delete, else 202 already_accepted; another request under the key returns 409 IDEMPOTENCY_CONFLICT. A request that got no answer is decided from the quotas Pilot reads back. The quotas.delete event is delivered once from the journal when the operation ends, also by a successor after a failover, and records a failed delete too.
| user required | string |
| clientId required | string |
| Idempotency-Key | string [ 1 .. 256 ] characters Required in HA mode; bounded stable key for retrying the same input. |
{- "success": true,
- "data": {
- "entity": {
- "entityType": "default",
- "user": "string",
- "clientId": "string",
- "quotas": {
- "property1": 0,
- "property2": 0
}
}, - "deletedKeys": [
- "string"
], - "operationId": "string"
}
}Returns the current multi-objective, rack-aware redistribution proposal. Proposals are generated in the background on a schedule.
With immediate: true, requests a new calculation using current measurements and cooldowns instead of reusing cached moves.
If a proposal is not yet available or generation is in progress, the endpoint returns HTTP 202 with success: true
and metadata describing the next generation time.
| immediate | boolean Default: false If true, requests synchronous recalculation with current measurements and cooldowns, bypassing cached proposal reuse |
{- "immediate": false
}{- "decision": {
- "state": "collecting",
- "title": "string",
- "message": "string",
- "applicationAllowed": true,
- "reason": "string",
- "nextAction": "wait",
- "proposalId": "string",
- "evaluatedAt": "2019-08-24T14:15:22Z",
- "validUntil": "2019-08-24T14:15:22Z",
- "retryAt": "2019-08-24T14:15:22Z",
- "progress": {
- "observed": 0,
- "required": 0
}, - "collection": {
- "phase": "measurement_window",
- "requiredSeconds": 0,
- "elapsedSeconds": 0,
- "remainingSeconds": 0,
- "percentComplete": 100,
- "startedAt": "2019-08-24T14:15:22Z",
- "lastSampleAt": "2019-08-24T14:15:22Z",
- "partitionsTracked": 0,
- "diskObserved": 0,
- "diskEligible": 0
}
}, - "success": true,
- "proposal": {
- "id": "string",
- "timestamp": "2019-08-24T14:15:22Z",
- "checkedAt": "2019-08-24T14:15:22Z",
- "status": "well_balanced",
- "reason": "string",
- "metrics": {
- "current": {
- "leader": 0,
- "follower": 0,
- "disk": 0,
- "producerMsgRate": 0,
- "producerByteRate": 0,
- "consumerMsgRate": 0,
- "consumerByteRate": 0
}, - "projected": {
- "leader": 0,
- "follower": 0,
- "disk": 0,
- "producerMsgRate": 0,
- "producerByteRate": 0,
- "consumerMsgRate": 0,
- "consumerByteRate": 0
}, - "threshold": 0,
- "effective": {
- "current": {
- "leader": 0,
- "follower": 0,
- "disk": 0,
- "producerMsgRate": 0,
- "producerByteRate": 0,
- "consumerMsgRate": 0,
- "consumerByteRate": 0
}, - "projected": {
- "leader": 0,
- "follower": 0,
- "disk": 0,
- "producerMsgRate": 0,
- "producerByteRate": 0,
- "consumerMsgRate": 0,
- "consumerByteRate": 0
}
}
}, - "safety": {
- "safeToApply": true,
- "reasons": [
- "string"
], - "inflightReassignments": 0,
- "metadataAgeMs": 0
}, - "movement": {
- "totalMoves": 0,
- "criticalMoves": 0,
- "balanceMoves": 0,
- "leaderMoves": 0,
- "replicaMoves": 0,
- "crossRackMoves": 0,
- "estimatedBytes": 0,
- "excludedPartitions": 0,
- "notWorthApplying": true
}, - "throttle": {
- "rateMBps": 0,
- "totalDataToMoveBytes": 0,
- "estimatedDurationMs": 0
}, - "clusterProfile": {
- "brokerCount": 0,
- "partitionCount": 0,
- "totalDataBytes": 0,
- "sizeP50": 0,
- "sizeP90": 0
}, - "reassignments": [
- {
- "topic": "string",
- "partition": 0,
- "currentReplicas": [
- 0
], - "proposedReplicas": [
- 0
], - "currentLeader": 0,
- "proposedLeader": 0,
- "activityScore": 0,
- "reason": "string",
- "rackDistribution": {
- "property1": [
- 0
], - "property2": [
- 0
]
}, - "scoreBreakdown": {
- "leaderBalanceGain": 0,
- "diskBalanceGain": 0,
- "replicaBalanceGain": 0,
- "followerBalanceGain": 0,
- "movementCostPenalty": 0,
- "deviationGain": 0,
- "totalScore": 0
}
}
], - "brokerActivityScores": [
- {
- "brokerId": 0,
- "rack": "string",
- "available": true,
- "inMaintenance": true,
- "totalActivityScore": 0,
- "partitionCount": 0,
- "leaderCount": 0,
- "highLoadPartitions": 0,
- "diskSizeBytes": 0,
- "targetDiskSize": 0,
- "diskUtilization": 0,
- "targetActivityScore": 0,
- "varianceFromTarget": 0,
- "capacityUtilization": 0
}
], - "currentSnapshot": {
- "leaders": {
- "1": 120,
- "2": 120,
- "3": 120,
- "4": 120
}, - "followers": {
- "1": 180,
- "2": 180,
- "3": 180,
- "4": 180
}
}, - "projectedSnapshot": {
- "leaders": {
- "1": 120,
- "2": 120,
- "3": 120,
- "4": 120
}, - "followers": {
- "1": 180,
- "2": 180,
- "3": 180,
- "4": 180
}
}, - "structuralLimits": [
- {
- "metric": "string",
- "value": 0,
- "reason": "string",
- "remediation": "string",
- "brokerId": 0,
- "distance": 0,
- "cause": "partition_size",
- "conflictMetric": "producerMsgRate",
- "conflictBrokerId": 0
}
], - "broughtCloser": [
- {
- "metric": "string",
- "brokerId": 0,
- "startDistance": 0,
- "startSide": "above",
- "distance": 0,
- "side": "above",
- "cause": "partition_size",
- "conflictMetric": "producerMsgRate",
- "conflictBrokerId": 0,
- "remediation": "string",
- "reason": "string"
}
], - "fairShare": {
- "line": 0,
- "target": 0,
- "loads": [
- {
- "metric": "leader",
- "onePartition": 0,
- "onePartitionPercent": 0,
- "farthest": {
- "brokerId": 0,
- "value": 0,
- "share": 0,
- "distance": 0,
- "side": "above"
}, - "projectedFarthest": {
- "brokerId": 0,
- "value": 0,
- "share": 0,
- "distance": 0,
- "side": "above"
}, - "beyondLine": 0,
- "rackShaped": true,
- "oversized": [
- {
- "brokerId": 0,
- "topic": "string",
- "partition": 0
}
]
}
], - "shares": {
- "property1": {
- "property1": 0,
- "property2": 0
}, - "property2": {
- "property1": 0,
- "property2": 0
}
}
}, - "balanceHold": {
- "cause": "broker_unavailable",
- "brokers": [
- 0
]
}, - "topicSpread": {
- "topics": 0,
- "projectedTopics": 0,
- "overCap": 0,
- "projectedOverCap": 0,
- "excessLeaders": 0,
- "projectedExcessLeaders": 0,
- "worst": {
- "topic": "string",
- "brokerId": 0,
- "leaders": 0,
- "projectedLeaders": 0,
- "cap": 0,
- "partitions": 0
}, - "atLimit": [
- {
- "topic": "string",
- "brokerId": 0,
- "leaders": 0,
- "cap": 0,
- "cause": "replica_placement"
}
], - "atLimitCount": 0
}, - "rackConstraintInsight": {
- "summary": "string",
- "racks": [
- {
- "rack": "string",
- "totalBrokers": 0,
- "activeBrokers": 0,
- "maintenanceBrokers": 0,
- "projectedReplicas": 0,
- "isConstrained": true
}
], - "brokers": [
- {
- "brokerId": 0,
- "rack": "string",
- "replicas": 0,
- "ideal": 0,
- "explanation": "string"
}
], - "candidateRejections": 0,
- "remediation": "string"
}, - "rackSafety": {
- "severity": "high",
- "summary": "string",
- "unrackedBrokers": [
- 0
], - "numRacks": 0,
- "maxReplicationFactor": 0,
- "collocatedPartitions": [
- {
- "topic": "string",
- "partition": 0
}
], - "collocatedPartitionCount": 0,
- "remediation": "string"
}, - "confidence": {
- "level": "high",
- "score": 1,
- "reasons": [
- "string"
], - "metricWindowPct": 0,
- "stabilizationState": "stable",
- "timeSinceReassignMs": 0
}, - "benefitEvidence": {
- "status": "confirmed",
- "observedSamples": 0,
- "requiredSamples": 0,
- "reason": "string",
- "reasonCode": "plan_changed",
- "tripped": [
- {
- "brokerId": 0,
- "metric": "leader",
- "side": "above"
}
], - "topicBreaches": [
- {
- "topic": "string",
- "brokerId": 0
}
], - "minAbsoluteImprovement": 0,
- "evaluatedAt": "2019-08-24T14:15:22Z"
}, - "generationTrigger": "startup"
}, - "advisories": {
- "metrics": {
- "current": {
- "property1": 0,
- "property2": 0
}, - "projected": {
- "property1": 0,
- "property2": 0
}, - "improvement": {
- "property1": 0,
- "property2": 0
}
}, - "rackSafety": {
- "severity": "high",
- "summary": "string",
- "unrackedBrokers": [
- 0
], - "numRacks": 0,
- "maxReplicationFactor": 0,
- "collocatedPartitions": [
- {
- "topic": "string",
- "partition": 0
}
], - "collocatedPartitionCount": 0,
- "remediation": "string"
}
}, - "balance": {
- "gate": {
- "off": true,
- "byteRate": 0,
- "messageRate": 0,
- "producerMessageRate": 0,
- "consumerMessageRate": 0,
- "messageRateDerived": true,
- "disk": 0,
- "summary": "string",
- "detail": "string"
}, - "current": [
- {
- "metric": "leader",
- "unit": "count",
- "imbalance": 0,
- "material": true,
- "idle": true,
- "gate": 0,
- "largestDeviation": 0,
- "share": 0,
- "busiest": {
- "brokerId": 0,
- "value": 0
}, - "quietest": {
- "brokerId": 0,
- "value": 0
}, - "summary": "string"
}
], - "projected": [
- {
- "metric": "leader",
- "unit": "count",
- "imbalance": 0,
- "material": true,
- "idle": true,
- "gate": 0,
- "largestDeviation": 0,
- "share": 0,
- "busiest": {
- "brokerId": 0,
- "value": 0
}, - "quietest": {
- "brokerId": 0,
- "value": 0
}, - "summary": "string"
}
]
}, - "metadata": {
- "proposalReady": true,
- "generationInProgress": true,
- "timeUntilNextGeneration": "string",
- "generationInterval": "string",
- "decision": {
- "state": "collecting",
- "title": "string",
- "message": "string",
- "applicationAllowed": true,
- "reason": "string",
- "nextAction": "wait",
- "proposalId": "string",
- "evaluatedAt": "2019-08-24T14:15:22Z",
- "validUntil": "2019-08-24T14:15:22Z",
- "retryAt": "2019-08-24T14:15:22Z",
- "progress": {
- "observed": 0,
- "required": 0
}, - "collection": {
- "phase": "measurement_window",
- "requiredSeconds": 0,
- "elapsedSeconds": 0,
- "remainingSeconds": 0,
- "percentComplete": 100,
- "startedAt": "2019-08-24T14:15:22Z",
- "lastSampleAt": "2019-08-24T14:15:22Z",
- "partitionsTracked": 0,
- "diskObserved": 0,
- "diskEligible": 0
}
}, - "applicationAllowed": true,
- "applicationBlockReason": "",
- "applicationBlockMessage": "string"
}
}Returns proposals from the in-memory store (newest first)
{- "success": true,
- "data": [
- {
- "proposal": {
- "id": "string",
- "timestamp": "2019-08-24T14:15:22Z",
- "checkedAt": "2019-08-24T14:15:22Z",
- "status": "well_balanced",
- "reason": "string",
- "metrics": {
- "current": {
- "leader": 0,
- "follower": 0,
- "disk": 0,
- "producerMsgRate": 0,
- "producerByteRate": 0,
- "consumerMsgRate": 0,
- "consumerByteRate": 0
}, - "projected": {
- "leader": 0,
- "follower": 0,
- "disk": 0,
- "producerMsgRate": 0,
- "producerByteRate": 0,
- "consumerMsgRate": 0,
- "consumerByteRate": 0
}, - "threshold": 0,
- "effective": {
- "current": {
- "leader": 0,
- "follower": 0,
- "disk": 0,
- "producerMsgRate": 0,
- "producerByteRate": 0,
- "consumerMsgRate": 0,
- "consumerByteRate": 0
}, - "projected": {
- "leader": 0,
- "follower": 0,
- "disk": 0,
- "producerMsgRate": 0,
- "producerByteRate": 0,
- "consumerMsgRate": 0,
- "consumerByteRate": 0
}
}
}, - "safety": {
- "safeToApply": true,
- "reasons": [
- "string"
], - "inflightReassignments": 0,
- "metadataAgeMs": 0
}, - "movement": {
- "totalMoves": 0,
- "criticalMoves": 0,
- "balanceMoves": 0,
- "leaderMoves": 0,
- "replicaMoves": 0,
- "crossRackMoves": 0,
- "estimatedBytes": 0,
- "excludedPartitions": 0,
- "notWorthApplying": true
}, - "throttle": {
- "rateMBps": 0,
- "totalDataToMoveBytes": 0,
- "estimatedDurationMs": 0
}, - "clusterProfile": {
- "brokerCount": 0,
- "partitionCount": 0,
- "totalDataBytes": 0,
- "sizeP50": 0,
- "sizeP90": 0
}, - "reassignments": [
- {
- "topic": "string",
- "partition": 0,
- "currentReplicas": [
- 0
], - "proposedReplicas": [
- 0
], - "currentLeader": 0,
- "proposedLeader": 0,
- "activityScore": 0,
- "reason": "string",
- "rackDistribution": {
- "property1": [
- 0
], - "property2": [
- 0
]
}, - "scoreBreakdown": {
- "leaderBalanceGain": 0,
- "diskBalanceGain": 0,
- "replicaBalanceGain": 0,
- "followerBalanceGain": 0,
- "movementCostPenalty": 0,
- "deviationGain": 0,
- "totalScore": 0
}
}
], - "brokerActivityScores": [
- {
- "brokerId": 0,
- "rack": "string",
- "available": true,
- "inMaintenance": true,
- "totalActivityScore": 0,
- "partitionCount": 0,
- "leaderCount": 0,
- "highLoadPartitions": 0,
- "diskSizeBytes": 0,
- "targetDiskSize": 0,
- "diskUtilization": 0,
- "targetActivityScore": 0,
- "varianceFromTarget": 0,
- "capacityUtilization": 0
}
], - "currentSnapshot": {
- "leaders": {
- "1": 120,
- "2": 120,
- "3": 120,
- "4": 120
}, - "followers": {
- "1": 180,
- "2": 180,
- "3": 180,
- "4": 180
}
}, - "projectedSnapshot": {
- "leaders": {
- "1": 120,
- "2": 120,
- "3": 120,
- "4": 120
}, - "followers": {
- "1": 180,
- "2": 180,
- "3": 180,
- "4": 180
}
}, - "structuralLimits": [
- {
- "metric": "string",
- "value": 0,
- "reason": "string",
- "remediation": "string",
- "brokerId": 0,
- "distance": 0,
- "cause": "partition_size",
- "conflictMetric": "producerMsgRate",
- "conflictBrokerId": 0
}
], - "broughtCloser": [
- {
- "metric": "string",
- "brokerId": 0,
- "startDistance": 0,
- "startSide": "above",
- "distance": 0,
- "side": "above",
- "cause": "partition_size",
- "conflictMetric": "producerMsgRate",
- "conflictBrokerId": 0,
- "remediation": "string",
- "reason": "string"
}
], - "fairShare": {
- "line": 0,
- "target": 0,
- "loads": [
- {
- "metric": "leader",
- "onePartition": 0,
- "onePartitionPercent": 0,
- "farthest": {
- "brokerId": 0,
- "value": 0,
- "share": 0,
- "distance": 0,
- "side": "above"
}, - "projectedFarthest": {
- "brokerId": 0,
- "value": 0,
- "share": 0,
- "distance": 0,
- "side": "above"
}, - "beyondLine": 0,
- "rackShaped": true,
- "oversized": [
- {
- "brokerId": 0,
- "topic": "string",
- "partition": 0
}
]
}
], - "shares": {
- "property1": {
- "property1": 0,
- "property2": 0
}, - "property2": {
- "property1": 0,
- "property2": 0
}
}
}, - "balanceHold": {
- "cause": "broker_unavailable",
- "brokers": [
- 0
]
}, - "topicSpread": {
- "topics": 0,
- "projectedTopics": 0,
- "overCap": 0,
- "projectedOverCap": 0,
- "excessLeaders": 0,
- "projectedExcessLeaders": 0,
- "worst": {
- "topic": "string",
- "brokerId": 0,
- "leaders": 0,
- "projectedLeaders": 0,
- "cap": 0,
- "partitions": 0
}, - "atLimit": [
- {
- "topic": "string",
- "brokerId": 0,
- "leaders": 0,
- "cap": 0,
- "cause": "replica_placement"
}
], - "atLimitCount": 0
}, - "rackConstraintInsight": {
- "summary": "string",
- "racks": [
- {
- "rack": "string",
- "totalBrokers": 0,
- "activeBrokers": 0,
- "maintenanceBrokers": 0,
- "projectedReplicas": 0,
- "isConstrained": true
}
], - "brokers": [
- {
- "brokerId": 0,
- "rack": "string",
- "replicas": 0,
- "ideal": 0,
- "explanation": "string"
}
], - "candidateRejections": 0,
- "remediation": "string"
}, - "rackSafety": {
- "severity": "high",
- "summary": "string",
- "unrackedBrokers": [
- 0
], - "numRacks": 0,
- "maxReplicationFactor": 0,
- "collocatedPartitions": [
- {
- "topic": "string",
- "partition": 0
}
], - "collocatedPartitionCount": 0,
- "remediation": "string"
}, - "confidence": {
- "level": "high",
- "score": 1,
- "reasons": [
- "string"
], - "metricWindowPct": 0,
- "stabilizationState": "stable",
- "timeSinceReassignMs": 0
}, - "benefitEvidence": {
- "status": "confirmed",
- "observedSamples": 0,
- "requiredSamples": 0,
- "reason": "string",
- "reasonCode": "plan_changed",
- "tripped": [
- {
- "brokerId": 0,
- "metric": "leader",
- "side": "above"
}
], - "topicBreaches": [
- {
- "topic": "string",
- "brokerId": 0
}
], - "minAbsoluteImprovement": 0,
- "evaluatedAt": "2019-08-24T14:15:22Z"
}, - "generationTrigger": "startup"
}, - "status": "pending",
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "errorMsg": "string",
- "decision": {
- "state": "collecting",
- "title": "string",
- "message": "string",
- "applicationAllowed": true,
- "reason": "string",
- "nextAction": "wait",
- "proposalId": "string",
- "evaluatedAt": "2019-08-24T14:15:22Z",
- "validUntil": "2019-08-24T14:15:22Z",
- "retryAt": "2019-08-24T14:15:22Z",
- "progress": {
- "observed": 0,
- "required": 0
}, - "collection": {
- "phase": "measurement_window",
- "requiredSeconds": 0,
- "elapsedSeconds": 0,
- "remainingSeconds": 0,
- "percentComplete": 100,
- "startedAt": "2019-08-24T14:15:22Z",
- "lastSampleAt": "2019-08-24T14:15:22Z",
- "partitionsTracked": 0,
- "diskObserved": 0,
- "diskEligible": 0
}
}, - "balance": {
- "gate": {
- "off": true,
- "byteRate": 0,
- "messageRate": 0,
- "producerMessageRate": 0,
- "consumerMessageRate": 0,
- "messageRateDerived": true,
- "disk": 0,
- "summary": "string",
- "detail": "string"
}, - "current": [
- {
- "metric": "leader",
- "unit": "count",
- "imbalance": 0,
- "material": true,
- "idle": true,
- "gate": 0,
- "largestDeviation": 0,
- "share": 0,
- "busiest": {
- "brokerId": 0,
- "value": 0
}, - "quietest": {
- "brokerId": 0,
- "value": 0
}, - "summary": "string"
}
], - "projected": [
- {
- "metric": "leader",
- "unit": "count",
- "imbalance": 0,
- "material": true,
- "idle": true,
- "gate": 0,
- "largestDeviation": 0,
- "share": 0,
- "busiest": {
- "brokerId": 0,
- "value": 0
}, - "quietest": {
- "brokerId": 0,
- "value": 0
}, - "summary": "string"
}
]
}
}
]
}Returns a stored proposal by ID. Special ID "current" returns the currently generated proposal if available.
| proposalId required | string |
{- "decision": {
- "state": "collecting",
- "title": "string",
- "message": "string",
- "applicationAllowed": true,
- "reason": "string",
- "nextAction": "wait",
- "proposalId": "string",
- "evaluatedAt": "2019-08-24T14:15:22Z",
- "validUntil": "2019-08-24T14:15:22Z",
- "retryAt": "2019-08-24T14:15:22Z",
- "progress": {
- "observed": 0,
- "required": 0
}, - "collection": {
- "phase": "measurement_window",
- "requiredSeconds": 0,
- "elapsedSeconds": 0,
- "remainingSeconds": 0,
- "percentComplete": 100,
- "startedAt": "2019-08-24T14:15:22Z",
- "lastSampleAt": "2019-08-24T14:15:22Z",
- "partitionsTracked": 0,
- "diskObserved": 0,
- "diskEligible": 0
}
}, - "success": true,
- "metadata": {
- "decision": {
- "state": "collecting",
- "title": "string",
- "message": "string",
- "applicationAllowed": true,
- "reason": "string",
- "nextAction": "wait",
- "proposalId": "string",
- "evaluatedAt": "2019-08-24T14:15:22Z",
- "validUntil": "2019-08-24T14:15:22Z",
- "retryAt": "2019-08-24T14:15:22Z",
- "progress": {
- "observed": 0,
- "required": 0
}, - "collection": {
- "phase": "measurement_window",
- "requiredSeconds": 0,
- "elapsedSeconds": 0,
- "remainingSeconds": 0,
- "percentComplete": 100,
- "startedAt": "2019-08-24T14:15:22Z",
- "lastSampleAt": "2019-08-24T14:15:22Z",
- "partitionsTracked": 0,
- "diskObserved": 0,
- "diskEligible": 0
}
}, - "applicationAllowed": true,
- "applicationBlockReason": "",
- "applicationBlockMessage": "string"
}, - "balance": {
- "gate": {
- "off": true,
- "byteRate": 0,
- "messageRate": 0,
- "producerMessageRate": 0,
- "consumerMessageRate": 0,
- "messageRateDerived": true,
- "disk": 0,
- "summary": "string",
- "detail": "string"
}, - "current": [
- {
- "metric": "leader",
- "unit": "count",
- "imbalance": 0,
- "material": true,
- "idle": true,
- "gate": 0,
- "largestDeviation": 0,
- "share": 0,
- "busiest": {
- "brokerId": 0,
- "value": 0
}, - "quietest": {
- "brokerId": 0,
- "value": 0
}, - "summary": "string"
}
], - "projected": [
- {
- "metric": "leader",
- "unit": "count",
- "imbalance": 0,
- "material": true,
- "idle": true,
- "gate": 0,
- "largestDeviation": 0,
- "share": 0,
- "busiest": {
- "brokerId": 0,
- "value": 0
}, - "quietest": {
- "brokerId": 0,
- "value": 0
}, - "summary": "string"
}
]
}, - "data": {
- "proposal": {
- "id": "string",
- "timestamp": "2019-08-24T14:15:22Z",
- "checkedAt": "2019-08-24T14:15:22Z",
- "status": "well_balanced",
- "reason": "string",
- "metrics": {
- "current": {
- "leader": 0,
- "follower": 0,
- "disk": 0,
- "producerMsgRate": 0,
- "producerByteRate": 0,
- "consumerMsgRate": 0,
- "consumerByteRate": 0
}, - "projected": {
- "leader": 0,
- "follower": 0,
- "disk": 0,
- "producerMsgRate": 0,
- "producerByteRate": 0,
- "consumerMsgRate": 0,
- "consumerByteRate": 0
}, - "threshold": 0,
- "effective": {
- "current": {
- "leader": 0,
- "follower": 0,
- "disk": 0,
- "producerMsgRate": 0,
- "producerByteRate": 0,
- "consumerMsgRate": 0,
- "consumerByteRate": 0
}, - "projected": {
- "leader": 0,
- "follower": 0,
- "disk": 0,
- "producerMsgRate": 0,
- "producerByteRate": 0,
- "consumerMsgRate": 0,
- "consumerByteRate": 0
}
}
}, - "safety": {
- "safeToApply": true,
- "reasons": [
- "string"
], - "inflightReassignments": 0,
- "metadataAgeMs": 0
}, - "movement": {
- "totalMoves": 0,
- "criticalMoves": 0,
- "balanceMoves": 0,
- "leaderMoves": 0,
- "replicaMoves": 0,
- "crossRackMoves": 0,
- "estimatedBytes": 0,
- "excludedPartitions": 0,
- "notWorthApplying": true
}, - "throttle": {
- "rateMBps": 0,
- "totalDataToMoveBytes": 0,
- "estimatedDurationMs": 0
}, - "clusterProfile": {
- "brokerCount": 0,
- "partitionCount": 0,
- "totalDataBytes": 0,
- "sizeP50": 0,
- "sizeP90": 0
}, - "reassignments": [
- {
- "topic": "string",
- "partition": 0,
- "currentReplicas": [
- 0
], - "proposedReplicas": [
- 0
], - "currentLeader": 0,
- "proposedLeader": 0,
- "activityScore": 0,
- "reason": "string",
- "rackDistribution": {
- "property1": [
- 0
], - "property2": [
- 0
]
}, - "scoreBreakdown": {
- "leaderBalanceGain": 0,
- "diskBalanceGain": 0,
- "replicaBalanceGain": 0,
- "followerBalanceGain": 0,
- "movementCostPenalty": 0,
- "deviationGain": 0,
- "totalScore": 0
}
}
], - "brokerActivityScores": [
- {
- "brokerId": 0,
- "rack": "string",
- "available": true,
- "inMaintenance": true,
- "totalActivityScore": 0,
- "partitionCount": 0,
- "leaderCount": 0,
- "highLoadPartitions": 0,
- "diskSizeBytes": 0,
- "targetDiskSize": 0,
- "diskUtilization": 0,
- "targetActivityScore": 0,
- "varianceFromTarget": 0,
- "capacityUtilization": 0
}
], - "currentSnapshot": {
- "leaders": {
- "1": 120,
- "2": 120,
- "3": 120,
- "4": 120
}, - "followers": {
- "1": 180,
- "2": 180,
- "3": 180,
- "4": 180
}
}, - "projectedSnapshot": {
- "leaders": {
- "1": 120,
- "2": 120,
- "3": 120,
- "4": 120
}, - "followers": {
- "1": 180,
- "2": 180,
- "3": 180,
- "4": 180
}
}, - "structuralLimits": [
- {
- "metric": "string",
- "value": 0,
- "reason": "string",
- "remediation": "string",
- "brokerId": 0,
- "distance": 0,
- "cause": "partition_size",
- "conflictMetric": "producerMsgRate",
- "conflictBrokerId": 0
}
], - "broughtCloser": [
- {
- "metric": "string",
- "brokerId": 0,
- "startDistance": 0,
- "startSide": "above",
- "distance": 0,
- "side": "above",
- "cause": "partition_size",
- "conflictMetric": "producerMsgRate",
- "conflictBrokerId": 0,
- "remediation": "string",
- "reason": "string"
}
], - "fairShare": {
- "line": 0,
- "target": 0,
- "loads": [
- {
- "metric": "leader",
- "onePartition": 0,
- "onePartitionPercent": 0,
- "farthest": {
- "brokerId": 0,
- "value": 0,
- "share": 0,
- "distance": 0,
- "side": "above"
}, - "projectedFarthest": {
- "brokerId": 0,
- "value": 0,
- "share": 0,
- "distance": 0,
- "side": "above"
}, - "beyondLine": 0,
- "rackShaped": true,
- "oversized": [
- {
- "brokerId": 0,
- "topic": "string",
- "partition": 0
}
]
}
], - "shares": {
- "property1": {
- "property1": 0,
- "property2": 0
}, - "property2": {
- "property1": 0,
- "property2": 0
}
}
}, - "balanceHold": {
- "cause": "broker_unavailable",
- "brokers": [
- 0
]
}, - "topicSpread": {
- "topics": 0,
- "projectedTopics": 0,
- "overCap": 0,
- "projectedOverCap": 0,
- "excessLeaders": 0,
- "projectedExcessLeaders": 0,
- "worst": {
- "topic": "string",
- "brokerId": 0,
- "leaders": 0,
- "projectedLeaders": 0,
- "cap": 0,
- "partitions": 0
}, - "atLimit": [
- {
- "topic": "string",
- "brokerId": 0,
- "leaders": 0,
- "cap": 0,
- "cause": "replica_placement"
}
], - "atLimitCount": 0
}, - "rackConstraintInsight": {
- "summary": "string",
- "racks": [
- {
- "rack": "string",
- "totalBrokers": 0,
- "activeBrokers": 0,
- "maintenanceBrokers": 0,
- "projectedReplicas": 0,
- "isConstrained": true
}
], - "brokers": [
- {
- "brokerId": 0,
- "rack": "string",
- "replicas": 0,
- "ideal": 0,
- "explanation": "string"
}
], - "candidateRejections": 0,
- "remediation": "string"
}, - "rackSafety": {
- "severity": "high",
- "summary": "string",
- "unrackedBrokers": [
- 0
], - "numRacks": 0,
- "maxReplicationFactor": 0,
- "collocatedPartitions": [
- {
- "topic": "string",
- "partition": 0
}
], - "collocatedPartitionCount": 0,
- "remediation": "string"
}, - "confidence": {
- "level": "high",
- "score": 1,
- "reasons": [
- "string"
], - "metricWindowPct": 0,
- "stabilizationState": "stable",
- "timeSinceReassignMs": 0
}, - "benefitEvidence": {
- "status": "confirmed",
- "observedSamples": 0,
- "requiredSamples": 0,
- "reason": "string",
- "reasonCode": "plan_changed",
- "tripped": [
- {
- "brokerId": 0,
- "metric": "leader",
- "side": "above"
}
], - "topicBreaches": [
- {
- "topic": "string",
- "brokerId": 0
}
], - "minAbsoluteImprovement": 0,
- "evaluatedAt": "2019-08-24T14:15:22Z"
}, - "generationTrigger": "startup"
}, - "status": "pending",
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "errorMsg": "string"
}
}Deletes a stored proposal by ID. Use "current" to clear the in-memory current proposal cache.
| proposalId required | string |
{- "success": true,
- "message": "string"
}Applies the specified proposal. Special ID "current" applies the current proposal. At apply time a LIVE hard-health pre-flight is run against the current HealthMonitor state (not the proposal's generation-time snapshot); hard cluster-health blockers (controller_unhealthy, controller_unreachable, majority_brokers_unavailable, sustained_isr_shrink, offline_partitions) reject the apply with 409 and can never be overridden. controller_unreachable means a controller resolved from cluster metadata but answers no controller-routed request, which is what a lost KRaft controller quorum looks like. The proposal is also rejected with 409 when the engine marks it unsafe (proposal.safety.safeToApply=false) or when the cluster topology / config changed since the proposal was generated (stale fingerprint). Soft unsafe reasons and the stale-fingerprint refusal can be overridden with force=true (the override is audited). Optional balancing moves must also pass the same material benefit and high-confidence admission rules as activity self-healing, with a plan checked within the last two minutes (proposal.checkedAt). Repair-only proposals are exempt from balance benefit, confidence, and age requirements. Benefit, confidence, and age refusals can be explicitly overridden with force=true and are audited. If filtering or target cleanup changes an optional balance plan, it must be regenerated so the remaining moves receive a new benefit calculation. In HA mode Idempotency-Key is required. The immutable filtered assignment and policy plan commits before the 202 acceptance response. Repeating the same key, proposal reference, force value and actor returns the original operation ID even during uncertainty. Changing those inputs under an existing key returns 409. With throttle management on, a principal without the AlterConfigs ACLs Pilot needs is refused with 409 HA_THROTTLE_PERMISSION, whose message names the missing ACLs, before anything is accepted; throttle configs Kafka rejects permanently (an invalid request or config, a policy violation or an unsupported version) are refused with 409 HA_THROTTLE_PREFLIGHT_REJECTED, whose message names the resource and Kafka's code. A plan that needs more than one journal batch is accepted by a server worker: the response is 202 with status pending and its progress, and repeating the request polls it. A pending accept holds the mutation slot and is aborted through the cancel endpoint with its operation ID. A failed accept answers polls with its cause for 10 minutes. After a failover a pending accept is gone; fetch the current proposal and apply it with a new key. Standalone responses remain unchanged.
| proposalId required | string |
| force | boolean Default: false Override a soft unsafe-to-apply signal, stale calculation, insufficient balance benefit or confidence, or an active-reassignment pre-flight check. Hard cluster-health blockers, partition moves found at startup or the check for them, and a changed optional balance plan cannot be overridden. The override is recorded in the audit log. |
| Idempotency-Key | string [ 1 .. 256 ] characters Required in HA mode; bounded stable key for retrying the same input. |
{- "success": true,
- "message": "string",
- "data": {
- "proposalId": "string",
- "status": "started",
- "reassignments": 0,
- "bulkId": "string"
}
}Returns the currently generated proposal and its default application admission decision if available. Live safety and topology are checked again when applying.
{- "decision": {
- "state": "collecting",
- "title": "string",
- "message": "string",
- "applicationAllowed": true,
- "reason": "string",
- "nextAction": "wait",
- "proposalId": "string",
- "evaluatedAt": "2019-08-24T14:15:22Z",
- "validUntil": "2019-08-24T14:15:22Z",
- "retryAt": "2019-08-24T14:15:22Z",
- "progress": {
- "observed": 0,
- "required": 0
}, - "collection": {
- "phase": "measurement_window",
- "requiredSeconds": 0,
- "elapsedSeconds": 0,
- "remainingSeconds": 0,
- "percentComplete": 100,
- "startedAt": "2019-08-24T14:15:22Z",
- "lastSampleAt": "2019-08-24T14:15:22Z",
- "partitionsTracked": 0,
- "diskObserved": 0,
- "diskEligible": 0
}
}, - "success": true,
- "balance": {
- "gate": {
- "off": true,
- "byteRate": 0,
- "messageRate": 0,
- "producerMessageRate": 0,
- "consumerMessageRate": 0,
- "messageRateDerived": true,
- "disk": 0,
- "summary": "string",
- "detail": "string"
}, - "current": [
- {
- "metric": "leader",
- "unit": "count",
- "imbalance": 0,
- "material": true,
- "idle": true,
- "gate": 0,
- "largestDeviation": 0,
- "share": 0,
- "busiest": {
- "brokerId": 0,
- "value": 0
}, - "quietest": {
- "brokerId": 0,
- "value": 0
}, - "summary": "string"
}
], - "projected": [
- {
- "metric": "leader",
- "unit": "count",
- "imbalance": 0,
- "material": true,
- "idle": true,
- "gate": 0,
- "largestDeviation": 0,
- "share": 0,
- "busiest": {
- "brokerId": 0,
- "value": 0
}, - "quietest": {
- "brokerId": 0,
- "value": 0
}, - "summary": "string"
}
]
}, - "advisories": {
- "metrics": {
- "current": {
- "property1": 0,
- "property2": 0
}, - "projected": {
- "property1": 0,
- "property2": 0
}, - "improvement": {
- "property1": 0,
- "property2": 0
}
}, - "rackSafety": {
- "severity": "high",
- "summary": "string",
- "unrackedBrokers": [
- 0
], - "numRacks": 0,
- "maxReplicationFactor": 0,
- "collocatedPartitions": [
- {
- "topic": "string",
- "partition": 0
}
], - "collocatedPartitionCount": 0,
- "remediation": "string"
}
}, - "metadata": {
- "decision": {
- "state": "collecting",
- "title": "string",
- "message": "string",
- "applicationAllowed": true,
- "reason": "string",
- "nextAction": "wait",
- "proposalId": "string",
- "evaluatedAt": "2019-08-24T14:15:22Z",
- "validUntil": "2019-08-24T14:15:22Z",
- "retryAt": "2019-08-24T14:15:22Z",
- "progress": {
- "observed": 0,
- "required": 0
}, - "collection": {
- "phase": "measurement_window",
- "requiredSeconds": 0,
- "elapsedSeconds": 0,
- "remainingSeconds": 0,
- "percentComplete": 100,
- "startedAt": "2019-08-24T14:15:22Z",
- "lastSampleAt": "2019-08-24T14:15:22Z",
- "partitionsTracked": 0,
- "diskObserved": 0,
- "diskEligible": 0
}
}, - "applicationAllowed": true,
- "applicationBlockReason": "",
- "applicationBlockMessage": "string"
}, - "data": {
- "proposal": {
- "id": "string",
- "timestamp": "2019-08-24T14:15:22Z",
- "checkedAt": "2019-08-24T14:15:22Z",
- "status": "well_balanced",
- "reason": "string",
- "metrics": {
- "current": {
- "leader": 0,
- "follower": 0,
- "disk": 0,
- "producerMsgRate": 0,
- "producerByteRate": 0,
- "consumerMsgRate": 0,
- "consumerByteRate": 0
}, - "projected": {
- "leader": 0,
- "follower": 0,
- "disk": 0,
- "producerMsgRate": 0,
- "producerByteRate": 0,
- "consumerMsgRate": 0,
- "consumerByteRate": 0
}, - "threshold": 0,
- "effective": {
- "current": {
- "leader": 0,
- "follower": 0,
- "disk": 0,
- "producerMsgRate": 0,
- "producerByteRate": 0,
- "consumerMsgRate": 0,
- "consumerByteRate": 0
}, - "projected": {
- "leader": 0,
- "follower": 0,
- "disk": 0,
- "producerMsgRate": 0,
- "producerByteRate": 0,
- "consumerMsgRate": 0,
- "consumerByteRate": 0
}
}
}, - "safety": {
- "safeToApply": true,
- "reasons": [
- "string"
], - "inflightReassignments": 0,
- "metadataAgeMs": 0
}, - "movement": {
- "totalMoves": 0,
- "criticalMoves": 0,
- "balanceMoves": 0,
- "leaderMoves": 0,
- "replicaMoves": 0,
- "crossRackMoves": 0,
- "estimatedBytes": 0,
- "excludedPartitions": 0,
- "notWorthApplying": true
}, - "throttle": {
- "rateMBps": 0,
- "totalDataToMoveBytes": 0,
- "estimatedDurationMs": 0
}, - "clusterProfile": {
- "brokerCount": 0,
- "partitionCount": 0,
- "totalDataBytes": 0,
- "sizeP50": 0,
- "sizeP90": 0
}, - "reassignments": [
- {
- "topic": "string",
- "partition": 0,
- "currentReplicas": [
- 0
], - "proposedReplicas": [
- 0
], - "currentLeader": 0,
- "proposedLeader": 0,
- "activityScore": 0,
- "reason": "string",
- "rackDistribution": {
- "property1": [
- 0
], - "property2": [
- 0
]
}, - "scoreBreakdown": {
- "leaderBalanceGain": 0,
- "diskBalanceGain": 0,
- "replicaBalanceGain": 0,
- "followerBalanceGain": 0,
- "movementCostPenalty": 0,
- "deviationGain": 0,
- "totalScore": 0
}
}
], - "brokerActivityScores": [
- {
- "brokerId": 0,
- "rack": "string",
- "available": true,
- "inMaintenance": true,
- "totalActivityScore": 0,
- "partitionCount": 0,
- "leaderCount": 0,
- "highLoadPartitions": 0,
- "diskSizeBytes": 0,
- "targetDiskSize": 0,
- "diskUtilization": 0,
- "targetActivityScore": 0,
- "varianceFromTarget": 0,
- "capacityUtilization": 0
}
], - "currentSnapshot": {
- "leaders": {
- "1": 120,
- "2": 120,
- "3": 120,
- "4": 120
}, - "followers": {
- "1": 180,
- "2": 180,
- "3": 180,
- "4": 180
}
}, - "projectedSnapshot": {
- "leaders": {
- "1": 120,
- "2": 120,
- "3": 120,
- "4": 120
}, - "followers": {
- "1": 180,
- "2": 180,
- "3": 180,
- "4": 180
}
}, - "structuralLimits": [
- {
- "metric": "string",
- "value": 0,
- "reason": "string",
- "remediation": "string",
- "brokerId": 0,
- "distance": 0,
- "cause": "partition_size",
- "conflictMetric": "producerMsgRate",
- "conflictBrokerId": 0
}
], - "broughtCloser": [
- {
- "metric": "string",
- "brokerId": 0,
- "startDistance": 0,
- "startSide": "above",
- "distance": 0,
- "side": "above",
- "cause": "partition_size",
- "conflictMetric": "producerMsgRate",
- "conflictBrokerId": 0,
- "remediation": "string",
- "reason": "string"
}
], - "fairShare": {
- "line": 0,
- "target": 0,
- "loads": [
- {
- "metric": "leader",
- "onePartition": 0,
- "onePartitionPercent": 0,
- "farthest": {
- "brokerId": 0,
- "value": 0,
- "share": 0,
- "distance": 0,
- "side": "above"
}, - "projectedFarthest": {
- "brokerId": 0,
- "value": 0,
- "share": 0,
- "distance": 0,
- "side": "above"
}, - "beyondLine": 0,
- "rackShaped": true,
- "oversized": [
- {
- "brokerId": 0,
- "topic": "string",
- "partition": 0
}
]
}
], - "shares": {
- "property1": {
- "property1": 0,
- "property2": 0
}, - "property2": {
- "property1": 0,
- "property2": 0
}
}
}, - "balanceHold": {
- "cause": "broker_unavailable",
- "brokers": [
- 0
]
}, - "topicSpread": {
- "topics": 0,
- "projectedTopics": 0,
- "overCap": 0,
- "projectedOverCap": 0,
- "excessLeaders": 0,
- "projectedExcessLeaders": 0,
- "worst": {
- "topic": "string",
- "brokerId": 0,
- "leaders": 0,
- "projectedLeaders": 0,
- "cap": 0,
- "partitions": 0
}, - "atLimit": [
- {
- "topic": "string",
- "brokerId": 0,
- "leaders": 0,
- "cap": 0,
- "cause": "replica_placement"
}
], - "atLimitCount": 0
}, - "rackConstraintInsight": {
- "summary": "string",
- "racks": [
- {
- "rack": "string",
- "totalBrokers": 0,
- "activeBrokers": 0,
- "maintenanceBrokers": 0,
- "projectedReplicas": 0,
- "isConstrained": true
}
], - "brokers": [
- {
- "brokerId": 0,
- "rack": "string",
- "replicas": 0,
- "ideal": 0,
- "explanation": "string"
}
], - "candidateRejections": 0,
- "remediation": "string"
}, - "rackSafety": {
- "severity": "high",
- "summary": "string",
- "unrackedBrokers": [
- 0
], - "numRacks": 0,
- "maxReplicationFactor": 0,
- "collocatedPartitions": [
- {
- "topic": "string",
- "partition": 0
}
], - "collocatedPartitionCount": 0,
- "remediation": "string"
}, - "confidence": {
- "level": "high",
- "score": 1,
- "reasons": [
- "string"
], - "metricWindowPct": 0,
- "stabilizationState": "stable",
- "timeSinceReassignMs": 0
}, - "benefitEvidence": {
- "status": "confirmed",
- "observedSamples": 0,
- "requiredSamples": 0,
- "reason": "string",
- "reasonCode": "plan_changed",
- "tripped": [
- {
- "brokerId": 0,
- "metric": "leader",
- "side": "above"
}
], - "topicBreaches": [
- {
- "topic": "string",
- "brokerId": 0
}
], - "minAbsoluteImprovement": 0,
- "evaluatedAt": "2019-08-24T14:15:22Z"
}, - "generationTrigger": "startup"
}, - "status": "ready"
}
}Triggers preferred leader election for the entire cluster or specified topics. In HA mode the election requires an Idempotency-Key and administrative mutation readiness, and the partitions that need an election are accepted as one operation of kind election, each to be elected to its first replica, before anything is sent; the ple.trigger event is delivered once from the journal. The request waits up to 30 seconds for the election to end and answers 200 with the standalone response and operationId, or 202 with the operation and status accepted when the wait or the request ends first, or status pending while a worker writes a large accept. Repeating the request with the same key and input waits the same way and answers 200 with the results of the planned partitions and operationId once the election ended, else 202 already_accepted or pending; other input under the key returns 409 IDEMPOTENCY_CONFLICT. The election runs beside a data movement, as in standalone mode, without the mutation slot; another election, outstanding or being accepted, 8 administrative operations not answered yet, or 128 in all, and an accept that waited a minute behind the accepts ahead of it return 409 HA_BUSY with Retry-After. An election in which no partition needs one, each led by its preferred leader, failed at its lookup or being reassigned, accepts no operation and is answered and recorded as in standalone mode. A partition being reassigned, one Kafka lists or one the running data movement has yet to finish moving, is not elected and fails with the reason, and expectedLeaders are refused. When a checked partition was not elected, one that failed before the election included, the leader whose run ended the operation, a successor that resumed it included, records ple.trigger with status 207 when some partitions were elected and 500 when none were, as standalone does; an election a cancel ended records nothing more.
| Idempotency-Key | string [ 1 .. 256 ] characters Required in HA mode; bounded stable key for retrying the same input. |
Optional. When omitted or empty, triggers election for all non-internal topics cluster-wide.
required | Array of objects List of topics and their partitions for preferred leader election |
{- "topics": [
- {
- "topic": "user-events",
- "partitions": [
- 0,
- 1,
- 2
]
}, - {
- "topic": "system-logs",
- "partitions": [ ]
}
]
}{- "success": true,
- "electedLeaders": [
- {
- "topic": "user-events",
- "partition": 0,
- "oldLeader": 2,
- "newLeader": 1,
- "success": true,
- "error": "code=80 msg=The preferred leader was not available."
}
], - "error": "ElectLeaders failed: kafka server: The client is not authorized to send this request type",
- "operationId": "string"
}Triggers preferred leader election for the topic in the path. A body without topics elects every partition of that topic; entries without a topic name apply to it. A body that names another topic is rejected. In HA mode the election requires an Idempotency-Key and administrative mutation readiness, and the partitions that need an election are accepted as one operation of kind election, each to be elected to its first replica, before anything is sent; the ple.trigger event is delivered once from the journal. The request waits up to 30 seconds for the election to end and answers 200 with the standalone response and operationId, or 202 with the operation and status accepted when the wait or the request ends first, or status pending while a worker writes a large accept. Repeating the request with the same key and input waits the same way and answers 200 with the results of the planned partitions and operationId once the election ended, else 202 already_accepted or pending; other input under the key returns 409 IDEMPOTENCY_CONFLICT. The election runs beside a data movement, as in standalone mode, without the mutation slot; another election, outstanding or being accepted, 8 administrative operations not answered yet, or 128 in all, and an accept that waited a minute behind the accepts ahead of it return 409 HA_BUSY with Retry-After. An election in which no partition needs one, each led by its preferred leader, failed at its lookup or being reassigned, accepts no operation and is answered and recorded as in standalone mode. A partition being reassigned, one Kafka lists or one the running data movement has yet to finish moving, is not elected and fails with the reason, and expectedLeaders are refused. When a checked partition was not elected, one that failed before the election included, the leader whose run ended the operation, a successor that resumed it included, records ple.trigger with status 207 when some partitions were elected and 500 when none were, as standalone does; an election a cancel ended records nothing more. The operation names the topic.
| topic required | string Name of the topic |
| Idempotency-Key | string [ 1 .. 256 ] characters Required in HA mode; bounded stable key for retrying the same input. |
required | Array of objects List of topics and their partitions for preferred leader election |
{- "topics": [
- {
- "topic": "user-events",
- "partitions": [
- 0,
- 1,
- 2
]
}, - {
- "topic": "system-logs",
- "partitions": [ ]
}
]
}{- "success": true,
- "electedLeaders": [
- {
- "topic": "user-events",
- "partition": 0,
- "oldLeader": 2,
- "newLeader": 1,
- "success": true,
- "error": "code=80 msg=The preferred leader was not available."
}
], - "error": "ElectLeaders failed: kafka server: The client is not authorized to send this request type",
- "operationId": "string"
}Returns the unfinished single and bulk reassignments, the history and a summary, without the success/data envelope. Each bulk lists at most 1000 assignments, with counts over all of them; full=true lists every assignment. While unfinished, the moves Kafka listed in progress when Pilot started form one bulk record in active_bulk, with observed set on it and on its assignments.
| summary | boolean Default: false With true, returns only the summary and mode "summary". |
| active_only | boolean Default: false With true, returns an empty history; summary.total_in_history keeps the full count. |
| full | boolean Default: false With true, lists every assignment of each bulk instead of at most 1000. |
{- "active_single": [
- {
- "id": "string",
- "topic": "string",
- "partition": 0,
- "old_replicas": [
- 0
], - "new_replicas": [
- 0
], - "old_leader": 0,
- "status": "PENDING",
- "start_time": "2019-08-24T14:15:22Z",
- "end_time": "2019-08-24T14:15:22Z",
- "error": "string",
- "preferred_leader": 0,
- "leader_election_ran": true,
- "retry_count": 0,
- "last_retry_time": "2019-08-24T14:15:22Z",
- "submission_failed": true,
- "last_submission_time": "2019-08-24T14:15:22Z",
- "kafka_api_check_failed": 0,
- "first_mismatch_detected": "2019-08-24T14:15:22Z",
- "in_current_wave": true,
- "observed": true
}
], - "active_bulk": [
- {
- "id": "string",
- "topic": "string",
- "strategy": "string",
- "status": "PENDING",
- "start_time": "2019-08-24T14:15:22Z",
- "end_time": "2019-08-24T14:15:22Z",
- "total_partitions": 0,
- "completed_partitions": 0,
- "failed_partitions": 0,
- "assignments": [
- {
- "id": "string",
- "topic": "string",
- "partition": 0,
- "old_replicas": [
- 0
], - "new_replicas": [
- 0
], - "old_leader": 0,
- "status": "PENDING",
- "start_time": "2019-08-24T14:15:22Z",
- "end_time": "2019-08-24T14:15:22Z",
- "error": "string",
- "preferred_leader": 0,
- "leader_election_ran": true,
- "retry_count": 0,
- "last_retry_time": "2019-08-24T14:15:22Z",
- "submission_failed": true,
- "last_submission_time": "2019-08-24T14:15:22Z",
- "kafka_api_check_failed": 0,
- "first_mismatch_detected": "2019-08-24T14:15:22Z",
- "in_current_wave": true,
- "observed": true
}
], - "assignment_counts": {
- "total": 0,
- "completed": 0,
- "failed": 0,
- "cancelled": 0,
- "in_progress": 0,
- "uncertain": 0,
- "pending": 0
}, - "error": "string",
- "current_wave": 0,
- "total_waves": 0,
- "total_data_to_move_bytes": 0,
- "observed": true
}
], - "history": [
- {
- "id": "string",
- "topic": "string",
- "partition": 0,
- "old_replicas": [
- 0
], - "new_replicas": [
- 0
], - "old_leader": 0,
- "status": "PENDING",
- "start_time": "2019-08-24T14:15:22Z",
- "end_time": "2019-08-24T14:15:22Z",
- "error": "string",
- "preferred_leader": 0,
- "leader_election_ran": true,
- "retry_count": 0,
- "last_retry_time": "2019-08-24T14:15:22Z",
- "submission_failed": true,
- "last_submission_time": "2019-08-24T14:15:22Z",
- "kafka_api_check_failed": 0,
- "first_mismatch_detected": "2019-08-24T14:15:22Z",
- "in_current_wave": true,
- "observed": true
}
], - "summary": {
- "total_active": 0,
- "total_active_bulk": 0,
- "total_in_history": 0,
- "last_activity_time": "2019-08-24T14:15:22Z"
}
}Returns unfinished partition reassignments, including queued work, as objects keyed by reassignment ID, without the success/data envelope. Assignment status PENDING means not yet submitted; IN_PROGRESS means execution has started. The number of unfinished assignments can exceed the per-broker concurrency cap.
{- "active_single": {
- "property1": {
- "id": "string",
- "topic": "string",
- "partition": 0,
- "old_replicas": [
- 0
], - "new_replicas": [
- 0
], - "old_leader": 0,
- "status": "PENDING",
- "start_time": "2019-08-24T14:15:22Z",
- "end_time": "2019-08-24T14:15:22Z",
- "error": "string",
- "preferred_leader": 0,
- "leader_election_ran": true,
- "retry_count": 0,
- "last_retry_time": "2019-08-24T14:15:22Z",
- "submission_failed": true,
- "last_submission_time": "2019-08-24T14:15:22Z",
- "kafka_api_check_failed": 0,
- "first_mismatch_detected": "2019-08-24T14:15:22Z",
- "in_current_wave": true,
- "observed": true
}, - "property2": {
- "id": "string",
- "topic": "string",
- "partition": 0,
- "old_replicas": [
- 0
], - "new_replicas": [
- 0
], - "old_leader": 0,
- "status": "PENDING",
- "start_time": "2019-08-24T14:15:22Z",
- "end_time": "2019-08-24T14:15:22Z",
- "error": "string",
- "preferred_leader": 0,
- "leader_election_ran": true,
- "retry_count": 0,
- "last_retry_time": "2019-08-24T14:15:22Z",
- "submission_failed": true,
- "last_submission_time": "2019-08-24T14:15:22Z",
- "kafka_api_check_failed": 0,
- "first_mismatch_detected": "2019-08-24T14:15:22Z",
- "in_current_wave": true,
- "observed": true
}
}, - "active_bulk": {
- "property1": {
- "id": "string",
- "topic": "string",
- "strategy": "string",
- "status": "PENDING",
- "start_time": "2019-08-24T14:15:22Z",
- "end_time": "2019-08-24T14:15:22Z",
- "total_partitions": 0,
- "completed_partitions": 0,
- "failed_partitions": 0,
- "assignments": [
- {
- "id": "string",
- "topic": "string",
- "partition": 0,
- "old_replicas": [
- 0
], - "new_replicas": [
- 0
], - "old_leader": 0,
- "status": "PENDING",
- "start_time": "2019-08-24T14:15:22Z",
- "end_time": "2019-08-24T14:15:22Z",
- "error": "string",
- "preferred_leader": 0,
- "leader_election_ran": true,
- "retry_count": 0,
- "last_retry_time": "2019-08-24T14:15:22Z",
- "submission_failed": true,
- "last_submission_time": "2019-08-24T14:15:22Z",
- "kafka_api_check_failed": 0,
- "first_mismatch_detected": "2019-08-24T14:15:22Z",
- "in_current_wave": true,
- "observed": true
}
], - "assignment_counts": {
- "total": 0,
- "completed": 0,
- "failed": 0,
- "cancelled": 0,
- "in_progress": 0,
- "uncertain": 0,
- "pending": 0
}, - "error": "string",
- "current_wave": 0,
- "total_waves": 0,
- "total_data_to_move_bytes": 0,
- "observed": true
}, - "property2": {
- "id": "string",
- "topic": "string",
- "strategy": "string",
- "status": "PENDING",
- "start_time": "2019-08-24T14:15:22Z",
- "end_time": "2019-08-24T14:15:22Z",
- "total_partitions": 0,
- "completed_partitions": 0,
- "failed_partitions": 0,
- "assignments": [
- {
- "id": "string",
- "topic": "string",
- "partition": 0,
- "old_replicas": [
- 0
], - "new_replicas": [
- 0
], - "old_leader": 0,
- "status": "PENDING",
- "start_time": "2019-08-24T14:15:22Z",
- "end_time": "2019-08-24T14:15:22Z",
- "error": "string",
- "preferred_leader": 0,
- "leader_election_ran": true,
- "retry_count": 0,
- "last_retry_time": "2019-08-24T14:15:22Z",
- "submission_failed": true,
- "last_submission_time": "2019-08-24T14:15:22Z",
- "kafka_api_check_failed": 0,
- "first_mismatch_detected": "2019-08-24T14:15:22Z",
- "in_current_wave": true,
- "observed": true
}
], - "assignment_counts": {
- "total": 0,
- "completed": 0,
- "failed": 0,
- "cancelled": 0,
- "in_progress": 0,
- "uncertain": 0,
- "pending": 0
}, - "error": "string",
- "current_wave": 0,
- "total_waves": 0,
- "total_data_to_move_bytes": 0,
- "observed": true
}
}
}Returns the most recent finished reassignments, single and bulk, up to 1000, with their count, without the success/data envelope.
{- "history": [
- {
- "id": "string",
- "topic": "string",
- "partition": 0,
- "old_replicas": [
- 0
], - "new_replicas": [
- 0
], - "old_leader": 0,
- "status": "PENDING",
- "start_time": "2019-08-24T14:15:22Z",
- "end_time": "2019-08-24T14:15:22Z",
- "error": "string",
- "preferred_leader": 0,
- "leader_election_ran": true,
- "retry_count": 0,
- "last_retry_time": "2019-08-24T14:15:22Z",
- "submission_failed": true,
- "last_submission_time": "2019-08-24T14:15:22Z",
- "kafka_api_check_failed": 0,
- "first_mismatch_detected": "2019-08-24T14:15:22Z",
- "in_current_wave": true,
- "observed": true
}
], - "count": 0
}Returns current throttle and concurrency settings for active reassignments. In both modes throttleManaged reports whether Pilot manages replication throttles (PILOT_THROTTLE_MANAGED). In HA mode a value that matches the shared execution-limits record reports the source shared, and config.maxConcurrentMovesPerBrokerMax names HA's cap on maxConcurrentMovesPerBroker.
{- "success": true,
- "data": {
- "hasActiveReassignments": true,
- "activeReassignmentCount": 42,
- "maxConcurrentMovesPerBroker": 20,
- "maxConcurrentMovesSource": "shared",
- "throttleManaged": true,
- "activeExecutors": 1,
- "throttle": {
- "leaderThrottleMBps": 0,
- "followerThrottleMBps": 0,
- "logDirThrottleMBps": 0,
- "logDirMultiplier": 1.5,
- "source": "broker",
- "isMixed": false,
- "brokersChecked": 5
}, - "operationThrottles": {
- "property1": {
- "status": "limited",
- "rateMBps": 50,
- "targetBrokerIds": [
- 0
], - "sourceBrokerIds": [
- 0
], - "unthrottledSourceBrokerIds": [
- 0
]
}, - "property2": {
- "status": "limited",
- "rateMBps": 50,
- "targetBrokerIds": [
- 0
], - "sourceBrokerIds": [
- 0
], - "unthrottledSourceBrokerIds": [
- 0
]
}
}, - "config": {
- "throttleMinMBps": 50,
- "throttleMaxMBps": 1000,
- "throttleDefaultMBps": 50,
- "maxConcurrentMovesPerBrokerMax": 1000
}
}
}Updates throttle rate and/or max concurrent moves per broker for active reassignments. In HA mode the change merges with the shared execution limits and commits to the HA journal before any Pilot process applies it, so it survives failover. An unresolved administrative attempt does not block it. With throttle management on, the running operation applies a new throttle rate within a tick; the request itself changes no broker configuration, and the response note says whether an operation is running. The HA response echoes throttleManaged. Standalone stores a new throttle rate and applies it to the brokers of running moves; while throttle management is off it only stores the rate and answers with throttleManaged false and a note.
| throttleRateMBps | number <double> Throttle rate in MB/s (leader/follower) |
| maxConcurrentMovesPerBroker | integer Maximum concurrent moves per broker (at most 1000 in HA mode) |
{- "throttleRateMBps": 150,
- "maxConcurrentMovesPerBroker": 20
}{- "success": true,
- "data": {
- "source": "shared",
- "note": "string",
- "throttleManaged": true,
- "throttleRateMBps": 0,
- "logDirThrottleMBps": 0,
- "brokersUpdated": 5,
- "appliedToActive": true,
- "maxConcurrentMovesPerBroker": 0,
- "executorsUpdated": 0,
- "status": "updated",
- "applyError": "string"
}
}Returns one reassignment, single or bulk, unfinished or from the history, without the success/data envelope. During HA recovery, an accepted operation whose local status is still loading returns 503 with HA_NOT_READY and a reassignment status is recovering reason. Retry this read within the recovery deadline. Unknown IDs return 404 once the journal has replayed and the operation history is restored; available local records remain readable.
| id required | string ID of the reassignment |
{- "id": "string",
- "topic": "string",
- "partition": 0,
- "old_replicas": [
- 0
], - "new_replicas": [
- 0
], - "old_leader": 0,
- "status": "PENDING",
- "start_time": "2019-08-24T14:15:22Z",
- "end_time": "2019-08-24T14:15:22Z",
- "error": "string",
- "preferred_leader": 0,
- "leader_election_ran": true,
- "retry_count": 0,
- "last_retry_time": "2019-08-24T14:15:22Z",
- "submission_failed": true,
- "last_submission_time": "2019-08-24T14:15:22Z",
- "kafka_api_check_failed": 0,
- "first_mismatch_detected": "2019-08-24T14:15:22Z",
- "in_current_wave": true,
- "observed": true
}Returns the assignments of an active or finished bulk reassignment that match the search and status, at most 1000, chosen and ordered as in GET /reassignments. The counts cover every assignment of the bulk.
| id required | string ID of the bulk reassignment |
| search | string Case-insensitive substring of an assignment's topic, partition and ID joined by single spaces, such as orders 3 for partition 3 of topic orders; surrounding spaces are ignored |
| status | string Default: "all" Enum: "all" "PENDING" "IN_PROGRESS" "COMPLETED" "FAILED" "TIMEOUT" "CANCELLED" "STUCK" "RETRYING" "UNCERTAIN" Only assignments with this status, ignoring case; all matches every status |
{- "id": "string",
- "assignments": [
- {
- "id": "string",
- "topic": "string",
- "partition": 0,
- "old_replicas": [
- 0
], - "new_replicas": [
- 0
], - "old_leader": 0,
- "status": "PENDING",
- "start_time": "2019-08-24T14:15:22Z",
- "end_time": "2019-08-24T14:15:22Z",
- "error": "string",
- "preferred_leader": 0,
- "leader_election_ran": true,
- "retry_count": 0,
- "last_retry_time": "2019-08-24T14:15:22Z",
- "submission_failed": true,
- "last_submission_time": "2019-08-24T14:15:22Z",
- "kafka_api_check_failed": 0,
- "first_mismatch_detected": "2019-08-24T14:15:22Z",
- "in_current_wave": true,
- "observed": true
}
], - "matched": 0,
- "assignment_counts": {
- "total": 0,
- "completed": 0,
- "failed": 0,
- "cancelled": 0,
- "in_progress": 0,
- "uncertain": 0,
- "pending": 0
}
}Cancels a running partition reassignment, or every unfinished one with the id all. A cancel needs no license, also after the license lapsed; authentication and the write scope still apply. Pilot does not cancel the moves it found in progress at start (observed): cancelling one by ID answers 400 with the reason, and cancelling all leaves them running and reports how many in data.skippedObservedCount. In HA mode, commits cancellation intent for the accepted owned operation. It does not wait for the executor's current step, only for a journal write already in progress or, for a pending accept, for the abort's outcome. The all alias applies to that operation, or to the accept being written. With the operation ID of a pending accept, or all while an accept is being written, it requests an abort that takes effect before the accept's next batch and answers once it knows the abort's outcome: abort_requested when the accept stopped before its header committed, or cancel_requested when the header committed first and the operation's cancel intent is durable. It waits for that outcome at most 25 seconds: 10 seconds for the batch in flight plus the longer of the cancel intent's write (10 seconds) and the abort's audit write (5 seconds for the audit delivery plus 10 seconds for a journal outbox write). Without an outcome by then it answers 503 HA_UNCERTAIN, or HA_NOT_LEADER once leadership ended. The abort is recorded as reassignments.accept.abort when it takes effect, one per requester, also when the client went away. A cancel of all answers with standalone's fields: message, cancelledCount and skippedObservedCount; with no data movement outstanding it answers 200 as standalone does with nothing active, cancelledCount 0, and writes nothing. Uncertain administrative outcomes remain unresolved; external reassignments are never adopted or canceled. Standalone responses remain unchanged.
| id required | string ID of the reassignment to cancel, or all |
{- "success": true,
- "message": "string",
- "id": "string"
}Returns current license state and limits. A demo license reports whether it waits for a start (start_required); in HA mode a demo license that waits reports start_required false and the reason "demo licenses start only in standalone mode".
{- "success": true,
- "data": {
- "state": "licensed",
- "plan": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "lic": "string",
- "sub": "string",
- "reason": "string",
- "start_required": true,
- "window_seconds": 86400,
- "max_brokers": 2
}
}Starts the window of the loaded demo license (a license with license.window, plan
demo) on this cluster. Sending {"acceptTerms": true} accepts the Calinora Terms and
confirms that the caller uses Pilot for business; the Terms are published at
https://www.calinora.io/legal/. The window runs for window_seconds from this start;
Pilot never starts it by itself. A repeated start while the window runs answers 200 again
without recording or auditing a second start.
The route is not license-gated: the start is what activates the demo license. With
authentication enabled it needs a caller that may mutate, like every REST mutation (a
read-scope PAT gets 403). A browser request from another website is refused with
CROSS_ORIGIN_REQUEST before the body is read; requests without browser headers, such as
curl, pass. Standalone mode only: an HA Pilot refuses the start with
DEMO_LICENSE_STANDALONE_ONLY before any other check and records nothing. MCP and the
chat assistant offer no tool for it. A recorded start is audited once as
license.update at /license/demo/start with the user, termsAccepted: true and the
Terms URL, also when its write failed and the record landed later.
| acceptTerms required | boolean Must be true: the caller accepts the Calinora Terms for this demo and confirms that the caller uses Pilot for business. The Terms are published at https://www.calinora.io/legal/. |
{- "acceptTerms": true
}{- "success": true,
- "data": {
- "state": "licensed",
- "plan": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "lic": "string",
- "sub": "string",
- "reason": "string",
- "start_required": true,
- "window_seconds": 86400,
- "max_brokers": 2
}
}Returns the full text of third-party software license notices for all open-source dependencies bundled into the Pilot binary.
{- "success": false,
- "error": "string",
- "code": "KAFKA_UNAVAILABLE",
- "details": "string",
- "reason": "string",
- "affectedBrokerIds": [
- 0
], - "operationId": "string"
}Returns all consumer groups with state, member count, total lag, and velocity. Uses cached data from the background collector when available.
| state | string Filter by group state (e.g. Stable, Rebalancing, Dead, Empty) |
| search | string Filter by group name substring (case-insensitive) |
{- "success": true,
- "data": [
- {
- "groupId": "analytics-pipeline",
- "state": "Stable",
- "protocolType": "consumer",
- "protocol": "range",
- "memberCount": 3,
- "totalLag": 12500,
- "velocity": -25.3,
- "topics": [
- "orders",
- "events"
]
}
]
}Returns aggregated consumer group statistics including total groups, lag, groups by state, and consumption rates by topic and broker. Requires the background collector to be running.
{- "success": true,
- "data": {
- "observationStartedAt": "2019-08-24T14:15:22Z",
- "observationCompletedAt": "2019-08-24T14:15:22Z",
- "totalGroups": 11,
- "totalLag": 522976,
- "groupsByState": {
- "Stable": 10,
- "Empty": 1
}, - "consumptionByTopic": {
- "property1": {
- "messagesPerSec": 1200.5,
- "bytesPerSec": 51200,
- "totalLag": 500
}, - "property2": {
- "messagesPerSec": 1200.5,
- "bytesPerSec": 51200,
- "totalLag": 500
}
}, - "consumptionByBroker": {
- "property1": {
- "messagesPerSec": 3500,
- "bytesPerSec": 150000
}, - "property2": {
- "messagesPerSec": 3500,
- "bytesPerSec": 150000
}
}
}
}Returns detailed information about a single consumer group including members, assignments, and coordinator.
| group required | string Consumer group ID |
{- "success": true,
- "data": {
- "groupId": "analytics-pipeline",
- "state": "Stable",
- "protocolType": "consumer",
- "protocol": "range",
- "members": [
- {
- "memberId": "consumer-1-abc123",
- "clientId": "consumer-1",
- "clientHost": "10.0.0.5",
- "assignments": [
- {
- "topic": "orders",
- "partitions": [
- 0,
- 1,
- 2
]
}
]
}
], - "coordinator": {
- "id": 1,
- "host": "kafka-1",
- "port": 9092
}
}
}Deletes a consumer group from the cluster. The group must be empty (no active members) before it can be deleted. Requires a valid license (management mode). In HA mode the delete requires an Idempotency-Key and administrative mutation readiness. Pilot reads the group fresh: a group with members answers 409, as standalone, without an operation; otherwise Pilot accepts the delete as one administrative operation of kind consumer-group, which runs beside a data movement and checks right before its send, on the group's coordinator, that the group is still Empty or Dead. A Dead group's delete is sent as standalone sends it, since Kafka describes a group of the consumer protocol as Dead, and Kafka answers the delete of a group it does not know with 404. The request waits up to 10 seconds for the operation to end and answers as standalone does, with operationId, or 202 with the operation and status accepted when the wait or the request ends first. Repeating the request with the same key waits the same way and answers the ended delete's outcome, else 202 already_accepted; another request under the key returns 409 IDEMPOTENCY_CONFLICT. Pilot sends the delete once. A delete that got no answer is decided as soon as the group is gone; a group that still exists once the request's resolution window has passed (116 seconds after the send was authorized, or 90 seconds after the send call returned if that is later) leaves the outcome unknown, as does any such delete of a group that was Dead before the send. The consumer-groups.delete event is delivered once from the journal when the operation ends, also by a successor after a failover.
| group required | string Consumer group ID |
| Idempotency-Key | string [ 1 .. 256 ] characters Required in HA mode; bounded stable key for retrying the same request. |
{- "success": true,
- "data": {
- "groupId": "analytics-pipeline",
- "previousState": "Empty",
- "operationId": "string"
}
}Returns per-partition lag for a consumer group, including current offsets, log end offsets, lag, velocity, and consumer ID assignments. Uses cached data from the background collector when available.
| group required | string Consumer group ID |
{- "success": true,
- "data": {
- "observationStartedAt": "2019-08-24T14:15:22Z",
- "observationCompletedAt": "2019-08-24T14:15:22Z",
- "groupId": "analytics-pipeline",
- "totalLag": 12500,
- "velocity": -25.3,
- "topics": [
- {
- "topic": "orders",
- "totalLag": 5000,
- "velocity": -12.1,
- "partitions": [
- {
- "partition": 0,
- "currentOffset": 98500,
- "logEndOffset": 100000,
- "lag": 1500,
- "consumerId": "consumer-1",
- "velocity": -4.2
}
]
}
]
}
}Resets the committed offsets for a consumer group in Empty or Dead state with no active members. Supports multiple strategies: earliest, latest, to a specific timestamp, or to specific offsets per partition. Both dry-run and apply require a valid mutation license and eligible group state. A preview does not reserve broker state. There is no atomic expected-current-offset guard or server-side retained-range validation. An apply error may follow partial changes; read committed offsets again to verify every requested target.
In HA mode the dry run is a read, and a reset requires an Idempotency-Key and administrative mutation readiness. Pilot plans the reset from fresh reads as standalone does: a group with members answers 409, and a reset of no partition answers and is recorded as in standalone mode, without an operation. Otherwise Pilot accepts the reset as one administrative operation of kind consumer-group, which runs beside a data movement. Right before each send, on the group's coordinator, Pilot checks that the group is still Empty or Dead, reads the committed offsets again and resolves earliest, latest and timestamp targets then; each request is one OffsetCommit of up to a few hundred partitions, so a large reset sends several. The request waits up to 30 seconds for the operation to end and answers as standalone does, with operationId, or 202 with the operation and status accepted when the wait or the request ends first. Repeating the request with the same key and input waits the same way and answers the ended reset's outcome, else 202 already_accepted; other input under the key returns 409 IDEMPOTENCY_CONFLICT. Pilot sends each request once. A request that got no answer is decided early once the group shows every target and at least one target differs from the earlier offset, otherwise by one read once its resolution window has passed (116 seconds after the send was authorized, or 90 seconds after the send call returned if that is later): every target means applied, the earlier offsets not applied, any other offsets an unknown outcome. The consumer-groups.reset-offsets event is delivered once from the journal when the operation ends, also by a successor after a failover, one per reset; partitions beyond 512 KiB are recorded in further events.
| group required | string Consumer group ID |
| Idempotency-Key | string [ 1 .. 256 ] characters Required in HA mode for a reset that is not a dry run; bounded stable key for retrying the same input. |
| strategy required | string Enum: "earliest" "latest" "timestamp" "specific" The offset reset strategy to use |
| topics | Array of strings Optional topic scope. Omitted or empty selects all topics with committed offsets. A nonempty list additionally filters scope; specific strategy selects only explicitly listed topic-partition pairs. |
| timestamp | integer <int64> Unix timestamp in milliseconds. Required when strategy is "timestamp". |
object Nested map of topic name to partition ID to exact target offset. Required for specific strategy. Only explicitly listed committed topic-partition pairs are selected; omitted pairs are unchanged. Offset values are JSON integers, not strings. | |
| dryRun | boolean Default: false If true, preview resolved targets without committing them. Eligibility and mutation licensing are still required. |
{- "strategy": "earliest",
- "topics": [
- "orders",
- "events"
], - "timestamp": 1708099200000,
- "offsets": {
- "orders": {
- "0": 1500,
- "1": 2300
}, - "events": {
- "0": 800
}
}, - "dryRun": false
}{- "success": true,
- "data": {
- "groupId": "analytics-pipeline",
- "dryRun": false,
- "partitions": [
- {
- "topic": "orders",
- "partition": 0,
- "currentOffset": 1500,
- "newOffset": 0,
- "delta": -1500
}
], - "operationId": "string"
}
}Completes the authorization code exchange and establishes the session cookie. Public because the
caller is not yet authenticated. 403 is returned when the identity is rejected by a configured
organization, email domain, group or audience allowlist, or when the token carries no usable identity.
| provider required | string |
Refreshes the session's provider access token. Accepts the session cookie only. HA provider tokens remain local to the active process, so provider-token refresh after promotion requires login again; the identity session remains valid until expiry.
Returns the authenticated user's PATs that are not revoked. Expired tokens stay listed with
expired: true so they can be revoked; they no longer authenticate and do not count toward the
per-user limit (AUTH_PAT_MAX_PER_USER). Token hashes are never exposed.
{- "success": true,
- "data": [
- {
- "id": "550e8400-e29b-41d4-a716-446655440000",
- "name": "My MCP token",
- "scope": "read",
- "createdAt": "2019-08-24T14:15:22Z",
- "expiresAt": "2019-08-24T14:15:22Z",
- "lastUsedAt": "2019-08-24T14:15:22Z",
- "expired": false
}
]
}Creates a new PAT for the authenticated user. The plaintext token is returned once in the response and cannot be retrieved again. Requires an OAuth session (PATs cannot create other PATs).
| name required | string Display name for the token |
| scope | string Default: "read" Enum: "read" "write" Token scope. |
| expiresInDays | integer Number of days until expiry. 0 or omitted means no expiry. |
{- "name": "My MCP token",
- "scope": "read",
- "expiresInDays": 90
}{- "success": true,
- "data": {
- "id": "string",
- "name": "string",
- "scope": "string",
- "token": "pat_abc123...",
- "createdAt": "2019-08-24T14:15:22Z",
- "expiresAt": "2019-08-24T14:15:22Z"
}
}Revokes a PAT by ID. Only the owning user can revoke their own tokens. MCP clients using this token will lose access immediately. Requires an OAuth session.
| tokenId required | string The token ID to revoke |
{- "success": false,
- "error": "string",
- "code": "KAFKA_UNAVAILABLE",
- "details": "string",
- "reason": "string",
- "affectedBrokerIds": [
- 0
], - "operationId": "string"
}Public OAuth discovery metadata for the configured MCP resource, without client secrets.
{- "scopes_supported": [
- "string"
], - "bearer_methods_supported": [
- "header"
], - "resource_name": "Pilot MCP"
}MCP (Model Context Protocol) server endpoint for AI agent integration. Accepts MCP JSON-RPC messages and returns tool results. Supports Streamable HTTP transport.
When authentication is enabled, requires a valid Authorization: Bearer <pat_token> header.
The server exposes 54 tools for Kafka cluster management across two categories:
Mutate tools are refused for every caller unless PILOT_MCP_WRITE_ENABLED=true and a sign-in
provider is configured (GET /integrations/mcp reports the state). With write access on, a
mutate tool needs a write scope PAT or an MCP OAuth token with the write scope and then
executes directly, without an approval step. A read scope credential and a request without
a scope (no sign-in, a browser session or a generic OAuth bearer) may call read tools only.
A refusal is a tool result with isError: true that names the reason.
Client configuration example (VS Code / GitHub Copilot):
{
"servers": {
"pilot": {
"type": "http",
"url": "https://pilot.example.com/api/v1/mcp",
"headers": {
"Authorization": "Bearer pat_your_token_here"
}
}
}
}
MCP JSON-RPC message
{ }Reports whether the MCP endpoint is served and whether its clients can change the cluster.
The state comes from PILOT_MCP_ENABLED, PILOT_MCP_WRITE_ENABLED and the sign-in
configuration at startup; it cannot be changed at runtime.
{- "success": true,
- "data": {
- "enabled": true,
- "writeAccess": "off"
}
}Returns audit log events from the in-memory store with optional server-side filtering. Requires authentication. Only available when audit logging is enabled.
| action | string Filter by exact action type (e.g., |
| userId | string Filter by user ID (case-insensitive substring match) |
| after | string <date-time> Only include events after this RFC3339 timestamp (inclusive) |
| before | string <date-time> Only include events before this RFC3339 timestamp (inclusive) |
| search | string Free-text search across userId, path, action, and topic fields |
| limit | integer Default: 500 Maximum number of events to return |
| offset | integer Default: 0 Pagination offset |
{- "success": true,
- "data": {
- "items": [
- {
- "eventId": "string",
- "ts": "2019-08-24T14:15:22Z",
- "userId": "string",
- "requestedBy": "string",
- "provider": "string",
- "method": "string",
- "path": "string",
- "status": 0,
- "action": "string",
- "topic": "string",
- "partition": 0,
- "brokerId": 0,
- "proposalId": "string",
- "query": {
- "property1": "string",
- "property2": "string"
}, - "bodyBytes": 0,
- "clientIp": "string",
- "requestId": "string",
- "error": "string",
- "before": { },
- "after": { },
- "chunksMissing": 0
}
], - "total": 0,
- "enabled": true,
- "storeSize": 0
}
}Read-only review of the complete assignment scope stored for one audit event. This endpoint does not require a mutation license and never submits changes. It resolves the event on the server, verifies that every audit chunk is present, and reads current assignments, broker availability, topic min.insync.replicas, and active Kafka reassignments. Client-supplied before/after arrays are ignored. An event an MCP or assistant tool call recorded has no path and is selected by ts and proposalId. The selector's further fields (eventId, method, userId, requestedBy, topic, partition, query), copied from the event as GET /audit-log lists it, tell apart events recorded at the same time; a selector that still matches more than one recorded operation returns 503. A reversal preserves replication factor and restores the original ordered replicas. Targets below Pilot's desired replication factor are blocked. Partitions already at the original assignment are explicit no-ops; drift blocks the entire scope. Target replica zero is the preferred leader, not a promise to restore the historical actual leader. Unsafe current state returns 200 with allowed=false. While Pilot starts no moves of its own, allowed is false and reason holds the error a submission is refused with. The fingerprint covers reviewed current state and target scope, excluding checkedAt.
| action required | string Value: "reassignments.apply" |
required | object (AuditEventSelector) Names one stored reassignments.apply event. ts, path and proposalId must match exactly. Each further field, copied from the event as GET /audit-log lists it, must match too when it is sent and names nothing when it is empty or absent, as a query entry with an empty value does; together they tell apart events recorded at the same time, such as two MCP or assistant tool calls without a path in the same second. |
{- "action": "reassignments.apply",
- "event": {
- "ts": "2019-08-24T14:15:22Z",
- "path": "string",
- "proposalId": "string",
- "eventId": "string",
- "method": "string",
- "userId": "string",
- "requestedBy": "string",
- "topic": "string",
- "partition": 0,
- "query": {
- "property1": "string",
- "property2": "string"
}
}
}{- "success": true,
- "data": {
- "allowed": true,
- "checkedAt": "2019-08-24T14:15:22Z",
- "fingerprint": "string",
- "reason": "string",
- "summary": {
- "total": 0,
- "changes": 0,
- "alreadyOriginal": 0,
- "blocked": 0
}, - "changes": [
- {
- "topic": "string",
- "partitionId": 0,
- "currentReplicas": [
- 0
], - "targetReplicas": [
- 0
], - "currentLeader": 0,
- "targetPreferredLeader": 0,
- "status": "ready",
- "reason": "string"
}
]
}
}Reverses a previously audited mutation. A valid mutation license is required. For non-reassignment actions, the before/after fields retain their existing inverse-operation semantics and a successful response returns reverted=true.
For reassignments.apply, event and reviewFingerprint are required; an event an MCP or assistant tool call recorded is selected without a path, as the preview selects it. The server resolves complete stored evidence and repeats the preview checks under the global reassignment mutation slot, including current ordered placement, active native and managed operations, broker availability, maintenance, RF/minISR safety and hard-health preflight. Client replica arrays never define the reversal target. Any blocked or changed evidence rejects the whole request. No-op partitions are excluded explicitly. A nonempty safe reversal returns 202 with an execution ID and runs through the shared throttled executor using normal concurrency limits. Accepted work is not yet completed; follow the execution ID for outcomes. The accepted reversal is audit-logged as reassignments.apply.revert.
In HA mode every revertible action is reverted, and a live request requires an
Idempotency-Key of at most 256 bytes and administrative mutation readiness. The revert of
a topics.config.update, acls.create, acls.update, acls.delete, quotas.update,
quotas.delete or consumer-groups.reset-offsets event runs as an administrative operation
of the reverted change's kind (topic-config, acl, quota or consumer-group), beside the
data movement, whose acceptance metadata names the reverted action as revert.action. It
takes standalone's steps: an acls.create revert deletes the created bindings one at a
time and stops at the first that fails, an acls.update revert deletes the new binding and
then creates the old one, an acls.delete revert creates the deleted bindings again, a
quota revert changes the entity the reverted event's path names, an offset reset revert
commits the offsets from before the reset. Each step is planned from fresh reads and sends
only what the cluster does not show already; the family's rules hold, so a topic
configuration revert of a throttle list on a topic the data movement names answers 409
HA_RESOURCE_CONFLICT. What standalone refuses before any change answers standalone's 500
Revert failed and is recorded at once, and a revert with nothing to change answers
reverted without an operation. Otherwise the request waits up to 30 seconds, standalone's
revert timeout, and answers standalone's body with the operation as operationId, or 202
with the accepted administrative operation, pending while a worker writes an accept of
more than one journal transaction; a repeat under the key answers the ended
revert or 202 again, and other input under the key returns 409 IDEMPOTENCY_CONFLICT. An
outcome a read-back could not decide answers 500 Revert failed with code
HA_OUTCOME_UNKNOWN; it is never sent again. The
A reassignments.apply reversal requires administrative mutation readiness, and is refused as another reassignment operation refuses it while an operation is outstanding or an accept is being written. The review's ready rows are accepted as one operation of kind revert, which names the reverted event and the review's fingerprint, before the answer: the standalone 202 with the operation as executionId and operationId, and status pending while a worker writes the accept. The reassignments.apply.revert event is delivered once from the journal. Repeating the request with the same key and input answers 202 already_accepted with the operation; other input under the key returns 409 IDEMPOTENCY_CONFLICT. When every planned move failed, the leader whose run ended the operation records reassignments.apply.revert with status 500, as standalone does.
| Idempotency-Key | string [ 1 .. 256 ] characters Required in HA mode for a live request; bounded stable key for retrying the same input. |
| action required | string Supported actions: topics.config.update, acls.create, acls.update, acls.delete, quotas.update, quotas.delete, reassignments.apply, consumer-groups.reset-offsets. |
object Required for reassignments.apply; selects trusted server-side evidence | |
| reviewFingerprint | string Required for reassignments.apply; returned by the current preview |
| before | any or null Original state for non-reassignment actions; ignored for reassignments.apply |
| after | any or null Recorded resulting state for non-reassignment actions; ignored for reassignments.apply |
| topic | string Topic name required for topic configuration reversals |
| path | string Original request path required for quota reversals |
{- "action": "string",
- "event": {
- "ts": "2019-08-24T14:15:22Z",
- "path": "string",
- "proposalId": "string",
- "eventId": "string",
- "method": "string",
- "userId": "string",
- "requestedBy": "string",
- "topic": "string",
- "partition": 0,
- "query": {
- "property1": "string",
- "property2": "string"
}
}, - "reviewFingerprint": "string",
- "before": null,
- "after": null,
- "topic": "string",
- "path": "string"
}{- "success": true,
- "data": {
- "action": "string",
- "reverted": true,
- "accepted": true,
- "assignments": 0,
- "operationId": "string"
}
}Fetches messages from a Kafka topic with pagination support. Supports seeking by
offset, timestamp, or latest/earliest. Returns messages with auto-detected encoding
(JSON, text, or binary/base64). Values are truncated by default - use the single
message endpoint for full values. Use keySerde/valueSerde to force a specific
deserialization mode. For all-partition pagination, pass nextCursor.token as
cursor and retain the original partition, direction, filters, and decoders.
The token tracks progress independently for each partition. An empty filtered
page can still have a continuation; stop only when hasMore is false.
Records are ordered in the requested direction within each partition; all-partition
pages do not provide a global timestamp ordering.
| topic required | string Topic name |
| partition | integer [ -1 .. 2147483647 ] Default: -1 Partition to read from (-1 for all partitions) |
| offset | integer <int64> >= 0 Start reading from this offset. Takes precedence over timestamp and seek. |
| cursor | string Opaque continuation token from nextCursor.token. Do not parse or modify it, or combine it with offset or timestamp. |
| timestamp | integer <int64> Start reading from messages at/after this Unix millisecond timestamp |
| seek | string Default: "latest" Enum: "earliest" "latest" Seek to earliest or latest offset (used when neither |
| limit | integer [ 1 .. 500 ] Default: 50 Maximum messages and offset positions to scan per page, capped at 500. Filtering or compaction can produce shorter or empty pages with a continuation. |
| direction | string Default: "backward" Enum: "forward" "backward" Read direction - |
| keyFilter | string Substring filter on message key |
| valueFilter | string Substring filter on decoded message value |
| maxValueSize | integer [ 1 .. 1048576 ] Default: 10240 Value byte limit, capped at 1 MiB. UTF-8 text ends at a complete code point; binary encodings can expand the returned text. |
| keySerde | string Default: "auto" Enum: "auto" "string" "json" "hex" "base64" "int32" "int64" "float64" Deserialization mode for message keys |
| valueSerde | string Default: "auto" Enum: "auto" "string" "json" "hex" "base64" "int32" "int64" "float64" Deserialization mode for message values |
{- "success": true,
- "data": {
- "messages": [
- {
- "partition": 0,
- "offset": 0,
- "timestamp": 0,
- "timestampType": "string",
- "key": "string",
- "keyEncoding": "string",
- "keySize": 0,
- "keyIsNull": true,
- "value": "string",
- "valueEncoding": "string",
- "valueFormat": "string",
- "valueTruncated": true,
- "valueSize": 0,
- "valueIsNull": true,
- "headers": [
- {
- "key": "string",
- "value": "string"
}
]
}
], - "meta": {
- "topic": "string",
- "partition": 0,
- "messagesReturned": 0,
- "hasMore": true,
- "nextCursor": {
- "partition": 0,
- "offset": 0,
- "token": "string"
}, - "watermarks": {
- "property1": {
- "low": 0,
- "high": 0
}, - "property2": {
- "low": 0,
- "high": 0
}
}, - "compressionType": "string"
}
}
}Retrieves a single message at an exact partition and offset. Returns the full untruncated value (up to 1MB). Use this to lazy-load truncated values from the browse endpoint.
| topic required | string Topic name |
| partition required | integer <int32> >= 0 Partition number |
| offset required | integer <int64> >= 0 Message offset |
| maxValueSize | integer [ 1 .. 1048576 ] Default: 1048576 Value byte limit, capped at 1 MiB. UTF-8 text ends at a complete code point; binary encodings can expand the returned text. |
| keySerde | string Default: "auto" Enum: "auto" "string" "json" "hex" "base64" "int32" "int64" "float64" Deserialization mode for message key |
| valueSerde | string Default: "auto" Enum: "auto" "string" "json" "hex" "base64" "int32" "int64" "float64" Deserialization mode for message value |
{- "success": true,
- "data": {
- "partition": 0,
- "offset": 0,
- "timestamp": 0,
- "timestampType": "string",
- "key": "string",
- "keyEncoding": "string",
- "keySize": 0,
- "keyIsNull": true,
- "value": "string",
- "valueEncoding": "string",
- "valueFormat": "string",
- "valueTruncated": true,
- "valueSize": 0,
- "valueIsNull": true,
- "headers": [
- {
- "key": "string",
- "value": "string"
}
]
}
}Returns the low and high watermark offsets for each partition of a topic. Useful for the UI to show seek controls, progress bars, and partition selection.
| topic required | string Topic name |
{- "success": true,
- "data": {
- "topic": "string",
- "partitions": {
- "property1": {
- "low": 0,
- "high": 0,
- "messageCount": 0
}, - "property2": {
- "low": 0,
- "high": 0,
- "messageCount": 0
}
}, - "totalMessages": 0,
- "compressionType": "string"
}
}Streams new messages from a topic in real-time using Server-Sent Events (SSE).
The connection stays open and sends message events as new messages arrive.
HTTP connection establishment does not mean partition readers are ready.
A ready event lists all requested partitions once their readers have started.
Messages from available partitions can arrive before ready during setup.
If any requested partition cannot start or a reader fails, a terminal error
event describes the failure and the stream closes; partial coverage is not
reported as ready. Records are read from each partition's latest offset at
reader startup, including internal topics such as __consumer_offsets.
A keepalive event is sent every 15 seconds to prevent timeouts.
Close the connection to stop tailing.
| topic required | string Topic name |
| partition | integer [ -1 .. 2147483647 ] Default: -1 Partition to tail (-1 for all) |
| maxValueSize | integer [ 1 .. 1048576 ] Default: 10240 Value byte limit, capped at 1 MiB. UTF-8 text ends at a complete code point; binary encodings can expand the returned text. |
| keySerde | string Default: "auto" Enum: "auto" "string" "json" "hex" "base64" "int32" "int64" "float64" Deserialization mode for message keys |
| valueSerde | string Default: "auto" Enum: "auto" "string" "json" "hex" "base64" "int32" "int64" "float64" Deserialization mode for message values |
{- "success": false,
- "error": "string",
- "code": "KAFKA_UNAVAILABLE",
- "details": "string",
- "reason": "string",
- "affectedBrokerIds": [
- 0
], - "operationId": "string"
}Simulates hypothetical cluster mutations (broker failures, rack failures, traffic spikes, broker additions, and topic replication-factor changes) and returns the projected cluster state compared to the current state. This is a read-only operation that never affects the live cluster. Replication-factor changes model settled replica assignments, then apply any requested failures. They do not model the transient replica-copying phase.
| brokerFailures | Array of integers List of broker IDs to mark as offline |
| rackFailures | Array of strings List of rack names to mark as offline (all brokers in rack) |
Array of objects Hypothetical new brokers to add | |
object Existing topic name to projected replication factor. The target cannot exceed the brokers available in the hypothetical cluster. Changes affect only the simulation. | |
object Topic name to traffic multiplier (e.g. 2.0 = double traffic) |
{- "brokerFailures": [
- 0
], - "rackFailures": [
- "string"
], - "addBrokers": [
- {
- "id": 0,
- "rack": "string"
}
], - "topicRFChanges": {
- "property1": 1,
- "property2": 1
}, - "trafficMultipliers": {
- "property1": 0,
- "property2": 0
}
}{- "success": true,
- "data": {
- "scenario": {
- "brokerFailures": [
- 0
], - "rackFailures": [
- "string"
], - "addBrokers": [
- {
- "id": 0,
- "rack": "string"
}
], - "topicRFChanges": {
- "property1": 1,
- "property2": 1
}, - "trafficMultipliers": {
- "property1": 0,
- "property2": 0
}
}, - "current": {
- "totalBrokers": 0,
- "availableBrokers": 0,
- "totalPartitions": 0,
- "underReplicatedPartitions": 0,
- "offlinePartitions": 0,
- "notRackAwarePartitions": 0,
- "leaderVariance": 0,
- "diskVariance": 0,
- "producerByteVariance": 0
}, - "projected": {
- "totalBrokers": 0,
- "availableBrokers": 0,
- "totalPartitions": 0,
- "underReplicatedPartitions": 0,
- "offlinePartitions": 0,
- "notRackAwarePartitions": 0,
- "leaderVariance": 0,
- "diskVariance": 0,
- "producerByteVariance": 0
}, - "impact": {
- "newURPs": 0,
- "newOfflinePartitions": 0,
- "newRackViolations": 0,
- "brokersLost": 0,
- "brokersGained": 0,
- "partitionsAffected": 0,
- "topicsAffected": 0,
- "estimatedRecoveryBytes": 0,
- "severity": "none",
- "explanation": [
- "string"
], - "topicsProducersBlocked": 0,
- "topicsProducersDegraded": 0
}, - "brokerImpacts": [
- {
- "brokerId": 0,
- "rack": "string",
- "available": true,
- "wasAvailable": true,
- "leadersBefore": 0,
- "leadersAfter": 0,
- "replicasBefore": 0,
- "replicasAfter": 0,
- "diskBytesBefore": 0,
- "diskBytesAfter": 0,
- "producerByteRateBefore": 0,
- "producerByteRateAfter": 0
}
], - "topicImpacts": [
- {
- "topic": "string",
- "partitions": 0,
- "urpsBefore": 0,
- "urpsAfter": 0,
- "offlineBefore": 0,
- "offlineAfter": 0,
- "rackViolationsBefore": 0,
- "rackViolationsAfter": 0,
- "availableRFBefore": 0,
- "availableRFAfter": 0,
- "replicationFactor": 0,
- "minInsyncReplicas": 0,
- "producersCanWrite": true
}
], - "rebalanceProjection": {
- "currentSnapshot": {
- "leaders": {
- "1": 120,
- "2": 120,
- "3": 120,
- "4": 120
}, - "followers": {
- "1": 180,
- "2": 180,
- "3": 180,
- "4": 180
}
}, - "projectedSnapshot": {
- "leaders": {
- "1": 120,
- "2": 120,
- "3": 120,
- "4": 120
}, - "followers": {
- "1": 180,
- "2": 180,
- "3": 180,
- "4": 180
}
}, - "totalMoves": 0,
- "estimatedBytes": 0,
- "proposalRounds": 0,
- "roundDetails": [
- {
- "round": 0,
- "moves": 0,
- "estimatedBytes": 0,
- "status": "string"
}
], - "status": "string"
}, - "simulationDurationMs": 0
}
}Computes the full dependency graph and failure impact for a broker, rack, or topic. Shows affected topics, consumer groups, and a simulated failure scenario. This is a read-only operation.
| entityType | string Enum: "broker" "rack" "topic" Type of entity to analyze (single-entity mode) |
| entityId | string Entity identifier - broker ID, rack name, or topic name (single-entity mode) |
| brokerFailures | Array of integers <int32> [ items <int32 > ] Broker IDs to simulate as failed (multi-failure mode) |
| rackFailures | Array of strings Rack names to simulate as failed (multi-failure mode) |
{- "entityType": "broker",
- "entityId": "string",
- "brokerFailures": [
- 0
], - "rackFailures": [
- "string"
]
}{- "success": true,
- "data": {
- "entity": {
- "type": "string",
- "id": "string",
- "rack": "string",
- "host": "string",
- "available": true,
- "brokerCount": 0,
- "partitions": 0,
- "replicationFactor": 0
}, - "affectedTopics": [
- {
- "topic": "string",
- "partitions": 0,
- "partitionsOnEntity": 0,
- "leadersOnEntity": 0,
- "producerByteRate": 0,
- "diskBytes": 0,
- "replicationFactor": 0,
- "wouldLoseAvailability": true,
- "wouldBecomeURP": true
}
], - "affectedConsumerGroups": [
- {
- "groupId": "string",
- "state": "string",
- "memberCount": 0,
- "affectedTopics": [
- "string"
], - "totalLag": 0,
- "assignedPartitionsOnEntity": 0,
- "wouldRebalance": true
}
], - "affectedBrokers": [
- {
- "brokerId": 0,
- "host": "string",
- "leaders": 0,
- "replicas": 0,
- "diskBytes": 0
}
], - "summary": {
- "totalPartitionsAffected": 0,
- "totalLeadersAffected": 0,
- "totalTopicsAffected": 0,
- "totalConsumerGroups": 0,
- "totalDiskBytes": 0,
- "totalProducerByteRate": 0,
- "urpsIfFailed": 0,
- "offlineIfFailed": 0,
- "riskLevel": "low"
}, - "failureSimulation": {
- "scenario": {
- "brokerFailures": [
- 0
], - "rackFailures": [
- "string"
], - "addBrokers": [
- {
- "id": 0,
- "rack": "string"
}
], - "topicRFChanges": {
- "property1": 1,
- "property2": 1
}, - "trafficMultipliers": {
- "property1": 0,
- "property2": 0
}
}, - "current": {
- "totalBrokers": 0,
- "availableBrokers": 0,
- "totalPartitions": 0,
- "underReplicatedPartitions": 0,
- "offlinePartitions": 0,
- "notRackAwarePartitions": 0,
- "leaderVariance": 0,
- "diskVariance": 0,
- "producerByteVariance": 0
}, - "projected": {
- "totalBrokers": 0,
- "availableBrokers": 0,
- "totalPartitions": 0,
- "underReplicatedPartitions": 0,
- "offlinePartitions": 0,
- "notRackAwarePartitions": 0,
- "leaderVariance": 0,
- "diskVariance": 0,
- "producerByteVariance": 0
}, - "impact": {
- "newURPs": 0,
- "newOfflinePartitions": 0,
- "newRackViolations": 0,
- "brokersLost": 0,
- "brokersGained": 0,
- "partitionsAffected": 0,
- "topicsAffected": 0,
- "estimatedRecoveryBytes": 0,
- "severity": "none",
- "explanation": [
- "string"
], - "topicsProducersBlocked": 0,
- "topicsProducersDegraded": 0
}, - "brokerImpacts": [
- {
- "brokerId": 0,
- "rack": "string",
- "available": true,
- "wasAvailable": true,
- "leadersBefore": 0,
- "leadersAfter": 0,
- "replicasBefore": 0,
- "replicasAfter": 0,
- "diskBytesBefore": 0,
- "diskBytesAfter": 0,
- "producerByteRateBefore": 0,
- "producerByteRateAfter": 0
}
], - "topicImpacts": [
- {
- "topic": "string",
- "partitions": 0,
- "urpsBefore": 0,
- "urpsAfter": 0,
- "offlineBefore": 0,
- "offlineAfter": 0,
- "rackViolationsBefore": 0,
- "rackViolationsAfter": 0,
- "availableRFBefore": 0,
- "availableRFAfter": 0,
- "replicationFactor": 0,
- "minInsyncReplicas": 0,
- "producersCanWrite": true
}
], - "rebalanceProjection": {
- "currentSnapshot": {
- "leaders": {
- "1": 120,
- "2": 120,
- "3": 120,
- "4": 120
}, - "followers": {
- "1": 180,
- "2": 180,
- "3": 180,
- "4": 180
}
}, - "projectedSnapshot": {
- "leaders": {
- "1": 120,
- "2": 120,
- "3": 120,
- "4": 120
}, - "followers": {
- "1": 180,
- "2": 180,
- "3": 180,
- "4": 180
}
}, - "totalMoves": 0,
- "estimatedBytes": 0,
- "proposalRounds": 0,
- "roundDetails": [
- {
- "round": 0,
- "moves": 0,
- "estimatedBytes": 0,
- "status": "string"
}
], - "status": "string"
}, - "simulationDurationMs": 0
}
}
}AI chat assistant for natural-language Kafka cluster management. Mutations require explicit user approval.
Returns whether the AI chat assistant feature is enabled and, if so, which model is configured.
This endpoint remains available when chat is disabled and returns enabled: false.
{- "success": true,
- "data": {
- "enabled": true,
- "model": "claude-sonnet-4-20250514"
}
}Creates a new conversation for the authenticated user. Each user can have up to
PILOT_CHAT_MAX_CONVERSATIONS active conversations (default 10). Oldest conversations
are evicted when the limit is reached.
| title | string Optional conversation title |
{- "title": "Topic configuration review"
}{- "success": true,
- "data": {
- "id": "conv_a1b2c3d4e5f6",
- "title": "Topic configuration review",
- "createdAt": "2019-08-24T14:15:22Z"
}
}Returns all active conversations for the authenticated user, ordered by most recently updated.
{- "success": true,
- "data": [
- {
- "id": "conv_a1b2c3d4e5f6",
- "title": "Topic configuration review",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}Returns a single conversation including its full message history.
| id required | string Conversation ID |
{- "success": true,
- "data": {
- "id": "conv_a1b2c3d4e5f6",
- "title": "Topic configuration review",
- "messages": [
- {
- "role": "user",
- "content": [
- {
- "type": "text",
- "text": "string",
- "id": "string",
- "name": "string",
- "input": { },
- "tool_use_id": "string",
- "content": "string",
- "is_error": true
}
]
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}Sends a user message to the AI assistant and streams the response back using Server-Sent Events. The assistant can use tools to query and manage the Kafka cluster. Read-only tools execute automatically; mutation tools require explicit approval via the approve/reject endpoints.
SSE Event Types:
heartbeat - Keeps the stream active every 10 seconds while processing or awaiting approvalstatus - Processing or provider retry progress, without private reasoning contenttext_delta - Incremental text content from the assistanttool_use - A tool is being called (includes tool name and arguments)tool_result - Tool execution completed (includes result and status)approval_required - A mutation tool needs user approval before execution; repeated every 10 seconds until resolveddone - Response stream completeerror - An error occurred during processingThe connection stays open until the assistant finishes responding or the client disconnects.
Deduplicate approval events by toolCallId; repeated events do not create a new action or reset its expiry.
Rate limited to PILOT_CHAT_RATE_LIMIT messages per user per minute (default 20).
| id required | string Conversation ID |
| content required | string <= 10000 characters The user's message text (max 10,000 characters) |
{- "content": "Which topics have min.insync.replicas below 2?"
}Approves a pending mutation operation that was requested by the AI assistant during a chat conversation.
The tool will be executed and the result sent back to the assistant to continue the conversation.
Approval tokens expire after PILOT_CHAT_APPROVAL_TIMEOUT (default 5 minutes).
| id required | string Conversation ID |
| toolCallId required | string Tool call ID from the |
{- "success": true,
- "message": "string"
}Rejects a pending mutation operation. The assistant will be informed of the rejection (with optional reason) and can suggest alternatives.
| id required | string Conversation ID |
| toolCallId required | string Tool call ID from the |
| reason | string Optional reason for rejection |
{- "reason": "Not during peak hours"
}{- "success": true,
- "message": "string"
}Moves all partition replicas of the topic that currently live on the specified broker to the target log directory. Replicas already on the target are skipped. In HA mode the move requires an Idempotency-Key and administrative mutation readiness. Pilot plans it from a fresh read of the broker's log directories with standalone's planner and refusals and accepts it as one administrative operation of kind logdir, which runs beside a data movement. A partition that a row of the outstanding data movement not ended yet moves to other brokers fails with errorCode -1 and HA_RESOURCE_CONFLICT while the others move, and a move whose every partition it moves answers 409 HA_RESOURCE_CONFLICT. Right before the send Pilot reads the broker's log directories again on the request's own connection: a replica no longer in its source directory, one with a future replica elsewhere, a target directory offline or gone, and a partition a data movement now moves are not sent and fail with errorCode -1 and the reason, while a replica already in, or copying to, its target counts as moved. A broker missing from the cluster metadata for 10 minutes fails its partitions not sent yet the same way. Pilot sends one AlterReplicaLogDirs per batch of the broker's partitions, once. The request waits up to 2 seconds for the broker's answer and answers as standalone does, with data.operationId, or 202 with the operation and standalone's pending counts. A request whose answer got lost is decided from the log directories Pilot reads back: a future replica in its target directory, or the replica already there, decides a partition moved at once; otherwise one read after the resolution window (116 seconds after the send was authorized, or 90 seconds after the send call returned if that is later) decides a replica still in its source directory not moved and one found elsewhere unknown; a broker missing from the cluster metadata is read once it returns, and one missing for 10 minutes settles the request unknown. Repeating the request with the same key and input answers the broker's answer, or 202 already_accepted; other input under the key returns 409 IDEMPOTENCY_CONFLICT. The operation stays outstanding, listed under administrativeOperations in GET /ha, until no future replica of its partitions remains, or their broker has been missing from the cluster metadata, or its log directories unreadable, for 10 minutes, also on a successor after a failover; once answered it no longer counts toward the 8 administrative operations not answered yet. The topic.logdirs.move event is delivered once from the journal when every partition has its outcome, at the broker's answer as standalone records it, also by a successor, while the operation still watches the copies.
| topic required | string Topic name |
| Idempotency-Key | string [ 1 .. 256 ] characters Required in HA mode; bounded stable key for retrying the same input. |
| brokerId required | integer <int32> >= 0 Broker hosting the replicas to move |
| targetLogDir required | string Destination log directory on the broker |
{- "brokerId": 0,
- "targetLogDir": "/var/lib/kafka/data-2"
}{- "success": true,
- "data": {
- "success": true,
- "brokerId": 0,
- "totalPartitions": 0,
- "movedPartitions": 0,
- "failedPartitions": 0,
- "pendingPartitions": 0,
- "errors": [
- {
- "topic": "string",
- "partition": 0,
- "errorCode": 0,
- "error": "string"
}
]
}
}Moves the replica of (topic, partition) on the specified broker to the target log directory. In HA mode the move requires an Idempotency-Key and administrative mutation readiness; it is planned from a fresh read of the broker's log directories with standalone's planner and refusals and accepted as one administrative operation of kind logdir, which runs beside a data movement. The HA answers, the checks right before the send and the read-back of a lost answer are those of POST /topics/{topic}/logdirs/move; the partition.logdirs.move event is delivered once from the journal when every partition has its outcome, at the broker's answer as standalone records it, also by a successor, while the operation still watches the copies.
| topic required | string Topic name |
| partition required | integer <int32> Partition index |
| Idempotency-Key | string [ 1 .. 256 ] characters Required in HA mode; bounded stable key for retrying the same input. |
| brokerId required | integer <int32> >= 0 Broker hosting the replica to move |
| targetLogDir required | string Destination log directory on the broker |
{- "brokerId": 0,
- "targetLogDir": "/var/lib/kafka/data-2"
}{- "success": true,
- "data": {
- "success": true,
- "brokerId": 0,
- "totalPartitions": 0,
- "movedPartitions": 0,
- "failedPartitions": 0,
- "pendingPartitions": 0,
- "errors": [
- {
- "topic": "string",
- "partition": 0,
- "errorCode": 0,
- "error": "string"
}
]
}
}Returns all ACL bindings in the cluster. Supports optional query parameters to filter results by resource type, resource name, pattern type, principal, host, operation, or permission type.
| resourceType | string Enum: "Topic" "Group" "Cluster" "TransactionalID" "DelegationToken" Filter by resource type |
| resourceName | string Filter by resource name |
| patternType | string Enum: "Literal" "Prefixed" "Any" "Match" Filter by pattern type |
| principal | string Filter by principal (e.g. "User:alice") |
| host | string Filter by host |
| operation | string Enum: "All" "Read" "Write" "Create" "Delete" "Alter" "Describe" "ClusterAction" "DescribeConfigs" "AlterConfigs" "IdempotentWrite" "Any" Filter by operation |
| permissionType | string Enum: "Allow" "Deny" "Any" Filter by permission type |
{- "success": true,
- "data": {
- "authorizerEnabled": true,
- "items": [
- {
- "resourceType": "Topic",
- "resourceName": "my-topic",
- "patternType": "Literal",
- "principal": "User:alice",
- "host": "*",
- "operation": "All",
- "permission": "Allow"
}
], - "total": 0
}
}Creates one or more ACL bindings. Requires a valid license. For Cluster resource types, the resourceName defaults to "kafka-cluster" if omitted. In HA mode the create requires an Idempotency-Key and administrative mutation readiness. Pilot reads the principals' ACLs fresh and accepts the create as one administrative operation of kind acl, which runs beside a data movement: each step of at most 32 bindings sends one CreateAcls with the bindings the cluster does not hold yet. A create of bindings the cluster holds already, or on a cluster without an authorizer, accepts no operation and is answered and recorded as in standalone mode. The request waits up to 10 seconds for the operation to end and answers as standalone does, with data.operationId, or 202 with the operation and status accepted when the wait or the request ends first. Repeating the request with the same key and input waits the same way and answers the ended create's outcome, else 202 already_accepted; other input under the key returns 409 IDEMPOTENCY_CONFLICT. Pilot sends each step once. A request that got no answer is decided from the ACLs Pilot reads back by each binding's exact filter: early once every binding exists, otherwise once its resolution window has passed (116 seconds after the send was authorized, or 90 seconds after the send call returned if that is later). The acls.create event is delivered once from the journal when the operation ends, also by a successor after a failover.
| Idempotency-Key | string [ 1 .. 256 ] characters Required in HA mode; bounded stable key for retrying the same input. |
required | Array of objects (AclBinding) non-empty List of ACL bindings to create |
{- "bindings": [
- {
- "resourceType": "Topic",
- "resourceName": "my-topic",
- "patternType": "Literal",
- "principal": "User:alice",
- "host": "*",
- "operation": "All",
- "permission": "Allow"
}
]
}{- "success": true,
- "data": {
- "created": [
- {
- "resourceType": "Topic",
- "resourceName": "my-topic",
- "patternType": "Literal",
- "principal": "User:alice",
- "host": "*",
- "operation": "All",
- "permission": "Allow"
}
], - "count": 0,
- "operationId": "string"
}
}Replaces an existing ACL binding with a new one. The old binding is deleted and the new binding is created atomically. If creation of the new binding fails, the old binding is restored. Requires a valid license. In HA mode the update requires an Idempotency-Key and administrative mutation readiness, and runs as one administrative operation of kind acl in three steps, each sent once: Pilot deletes the exact old binding, creates the new one, and restores the old one only once Kafka refused the new one or a read-back found it not applied. A successor after a failover continues at the step the journal recorded, so it never leaves the old binding deleted without the new one created or the old one restored. An old binding the cluster does not hold, or a cluster without an authorizer, accepts no operation and is answered as in standalone mode. The request waits up to 10 seconds for the operation to end and answers as standalone does, with data.operationId, or 202 with the operation and status accepted when the wait or the request ends first. Repeating the request with the same key and input waits the same way and answers the ended update's outcome, else 202 already_accepted; other input under the key returns 409 IDEMPOTENCY_CONFLICT. The acls.update event is delivered once from the journal when the operation ends, also by a successor after a failover.
| Idempotency-Key | string [ 1 .. 256 ] characters Required in HA mode; bounded stable key for retrying the same input. |
required | object (AclBinding) |
required | object (AclBinding) |
{- "old": {
- "resourceType": "Topic",
- "resourceName": "my-topic",
- "patternType": "Literal",
- "principal": "User:alice",
- "host": "*",
- "operation": "All",
- "permission": "Allow"
}, - "new": {
- "resourceType": "Topic",
- "resourceName": "my-topic",
- "patternType": "Literal",
- "principal": "User:alice",
- "host": "*",
- "operation": "All",
- "permission": "Allow"
}
}{- "success": true,
- "data": {
- "old": {
- "resourceType": "Topic",
- "resourceName": "my-topic",
- "patternType": "Literal",
- "principal": "User:alice",
- "host": "*",
- "operation": "All",
- "permission": "Allow"
}, - "new": {
- "resourceType": "Topic",
- "resourceName": "my-topic",
- "patternType": "Literal",
- "principal": "User:alice",
- "host": "*",
- "operation": "All",
- "permission": "Allow"
}, - "operationId": "string"
}
}Deletes ACL bindings matching the provided filter criteria. At least one filter field is required to prevent accidental deletion of all ACLs. Requires a valid license. In HA mode the delete requires an Idempotency-Key and administrative mutation readiness. Pilot reads the bindings the filter matches and accepts the delete as one administrative operation of kind acl, which sends one DeleteAcls with the filter, once, and answers the bindings Kafka reports deleted, past 256 KiB of them only their count with deletedOmitted. A filter that matches nothing, or a cluster without an authorizer, accepts no operation and is answered and recorded as in standalone mode. The request waits up to 10 seconds for the operation to end and answers as standalone does, with data.operationId, or 202 with the operation and status accepted when the wait or the request ends first. Repeating the request with the same key and input waits the same way and answers the ended delete's outcome, else 202 already_accepted; other input under the key returns 409 IDEMPOTENCY_CONFLICT. A request that got no answer is decided from a read-back of the filter: early once it matches nothing, otherwise once its resolution window has passed (116 seconds after the send was authorized, or 90 seconds after the send call returned if that is later). The acls.delete event is delivered once from the journal when the operation ends, also by a successor after a failover.
| Idempotency-Key | string [ 1 .. 256 ] characters Required in HA mode; bounded stable key for retrying the same input. |
| resourceType | string (AclResourceType) Enum: "Topic" "Group" "Cluster" "TransactionalID" "DelegationToken" Kafka resource type for the ACL binding |
| resourceName | string Filter by resource name |
| patternType | string (AclPatternType) Enum: "Literal" "Prefixed" "Any" "Match" Resource name pattern type |
| principal | string Filter by principal |
| host | string Filter by host |
| operation | string (AclOperation) Enum: "All" "Read" "Write" "Create" "Delete" "Alter" "Describe" "ClusterAction" "DescribeConfigs" "AlterConfigs" "IdempotentWrite" "Any" Kafka ACL operation |
| permission | string (AclPermissionType) Enum: "Allow" "Deny" "Any" ACL permission type |
{- "resourceType": "Topic",
- "resourceName": "string",
- "patternType": "Literal",
- "principal": "string",
- "host": "string",
- "operation": "All",
- "permission": "Allow"
}{- "success": true,
- "data": {
- "deleted": [
- {
- "resourceType": "Topic",
- "resourceName": "my-topic",
- "patternType": "Literal",
- "principal": "User:alice",
- "host": "*",
- "operation": "All",
- "permission": "Allow"
}
], - "count": 0,
- "operationId": "string",
- "deletedOmitted": true
}
}