跳转到主要内容
POST
Run a governed StackKits service action

授权

Authorization
string
header
必填

OIDC/JWKS bearer token. Self-hosted defaults to Pocket ID; SaaS uses Auth0 through the edge. PocketBase JWT is legacy migration compatibility only.

请求头

Idempotency-Key
string
必填
Required string length: 1 - 128

路径参数

serviceId
string
必填

Canonical service runtime ID

请求体

application/json

Either an agent-executed runtime action bound to a fresh inventory revision, or an owner lock action executed entirely in the control plane. The lock is not bound to an inventory observation: an owner must be able to freeze a service whose agent is unreachable.

action
enum<string>
必填

update runs the StackKit upgrade of the owning stack to the pinned release; it is accepted only while allowed_actions advertises it, which a managed service does while its server's Guard runs an older StackKits release than the published one. The upgrade keeps a restore point, verifies the target live and automatically returns to the previous release when that verification fails; the card's evidence states which (service-update-succeeded, service-update-returned-to-previous-release with recovery recovered, or a failure code). For a StackKits-managed application whose version fact is application_update, update with version and digest moves only that application to that release: the node checkpoints its data, updates it and rolls it back automatically when generate, apply or verify fails. The job result's application_update_outcome.result is updated, rolled_back, rollback_failed or refused (with reason_code). The server re-checks a fresh fact: the version must be one of newer_versions with its exact digest and the same major version; an unchecked version needs acknowledge_untested; under with_stackkits_releases only a security fix (advisory_id of the fact's security_fix) is admitted. A refusal is 409 with reason_code. backup takes one out-of-band snapshot of the owning stack (Basement kits; managed kits keep their schedule).

可用选项:
start,
stop,
restart,
update,
backup
expected_inventory_revision
integer<int64>
必填
必填范围: x >= 1
version
string

Application update only; the release (image tag) from the fact's newer_versions.

Maximum string length: 128
digest
string

Application update only; the release's manifest digest from the fact.

Pattern: ^sha256:[a-f0-9]{64}$
acknowledge_untested
boolean

Application update only; the owner accepts an unchecked release on their own responsibility.

advisory_id
string

Application update only; the high advisory the fact's security_fix closes.

Maximum string length: 128

响应

Action queued or admitted, or the exact durable replay returned

data
object
meta
object