Retrieve a paginated list of apply runs for the caller's organization. All filter parameters are optional and additive (AND-ed server-side). created_from and created_to accept RFC3339 timestamps.
- Results return oldest first.
- Combine
latest_per_rule=trueandneeds_attention=trueto list rules whose last finished apply failed or partly failed without rollback (matching the Dashboard).
Parameters
Pagination cursor for next page
Maximum number of items to return (default: 20, max: 100)
Filter by plan ID (UUID)
Filter by policy ID (UUID)
Filter by target ID (UUID)
Filter by job ID (UUID)
Filter by apply run status
pendingrunningsucceededfailedpartially_succeeded rollback_in_progress rolled_back failed_needs_repair Filter by execution mode
freshexact_saved_plan saved_with_drift_reconcile Lower bound on created_at (inclusive, RFC3339)
Upper bound on created_at (inclusive, RFC3339)
Only runs whose rule still exists. Runs of deleted rules are left out
Only the newest run of each rule. Older runs of a rule and runs without a rule are left out
Only finished runs that failed or partly failed and were not rolled back
Responses
OK
ListApplyRunsResponse · 4 fields
True when another page follows. The list ends when it is false.
18 fields
Safe operation failure. Explanation and recommended_action come from the static failure-code registry. The only text not written by Principal is cluster_answer.
8 fields
Closed registry of asynchronous operation failure causes, independent of HTTP problem codes.
ACCESS_PROFILE_STALE AMBIGUOUS_TARGET_OUTCOME APPLY_INTERRUPTED AUTHENTICATION_FAILED CLICKHOUSE_REPLICAS_OUT_OF_SYNC CLICKHOUSE_USER_NAME_RESERVED CONNECTION_FAILED CONNECTION_REFUSED CONNECTION_TIMEOUT CONNECTOR_CREDENTIALS_MISSING CONNECTOR_PAUSED CONNECTOR_SOURCE_CHANGED CONNECTOR_TYPE_UNAVAILABLE CONSTRAINT_VIOLATION CREDENTIAL_EXPIRED CREDENTIAL_NOT_FOUND DATABASE_NOT_FOUND DRIFT_BINDING_NOT_FOUND DRIFT_DEFAULT_INHERITED_SKIPPED DRIFT_NO_EXECUTABLE_DIFF DRIFT_PARTIAL_APPLY DRIFT_PLAN_GENERATION_FAILED DRIFT_RESOURCE_MISMATCH DRIFT_RULE_DELETING DRIFT_RUN_OUTDATED DRIFT_SCOPE_MISMATCH GROUP_EXPANSION_LIMIT_EXCEEDED HANDLER_NOT_FOUND K8S_CHANGE_REJECTED K8S_CLUSTER_UNREACHABLE K8S_NAMESPACE_FORBIDDEN K8S_NAMESPACE_NOT_FOUND K8S_RBAC_FORBIDDEN KUBERNETES_MEMBER_CREDENTIALS_PENDING KUBERNETES_SERVICE_ACCOUNT_KUBECONFIG_NOT_ISSUED MARIADB_TRUNCATE_UNSUPPORTED MARIADB_USAGE_UNSUPPORTED MARIADB_GRANTS_AMBIGUOUS MUTATION_LOCKED MYSQL_MANAGEMENT_PRIVILEGES_MISSING 34 more values
NOT_FOUND OPERATION_BACKOFF OPERATION_CANCELLED OPERATION_TIMEOUT OWNED_OBJECTS_DECISION_REQUIRED PERMISSION_DENIED PLAN_APPLY_ARTIFACT_INVALID PLAN_APPLY_ORPHANED_LOCK PLAN_APPLY_ROLLBACK_BASELINE_INVALID PLAN_APPLY_RULE_CHANGED PLAN_APPLY_TARGET_STATE_CHANGED PLAN_APPLY_ACCESS_IMPACT_CHANGED POSTGRES_FUTURE_OBJECT_CREATORS_MISSING POSTGRES_GRANT_AUTHORITY_MISSING POSTGRES_MANAGEMENT_PRIVILEGES_MISSING POSTGRES_ROLE_ATTRIBUTE_UNSUPPORTED POSTGRES_ROLE_NAME_RESERVED POSTGRES_TLS_FILE_NOT_ALLOWED PROVIDER_REQUEST_FAILED RATE_LIMITED ROLE_EXISTS ROLE_NOT_FOUND ROTATION_CHECK_REQUIRED SECRET_STORE_UNAVAILABLE SERIALIZATION_ERROR TARGET_ACCOUNT_IDENTITY_MISMATCH TARGET_ACCOUNT_IDENTITY_UNVERIFIED TARGET_ACCOUNT_IMPORT_PENDING TARGET_ACCOUNT_PRINCIPAL_LOGIN TARGET_ACCOUNT_TAKEN TARGET_CONNECTION_MISSING TARGET_REPAIR_REQUIRED UNKNOWN_ERROR VALIDATION_FAILED Short name of the failure from the same registry, for lists and queues where the explanation is too long. Absent on failures saved before the field existed.
Whether the failed attempt was eligible for an automatic retry under the actual queue policy.
Known operation phase at failure, when available.
Stable code of the action that can resolve this failure, the same vocabulary as a problem's resolution.code, for example upstream.check_connection. Absent when no single action does. A screen that offers the action shows it next to the failure, otherwise it shows recommended_action.
The Kubernetes cluster's own answer to a change its admission policy or webhook refused: the policy or webhook name and its message. Only a step failure with code K8S_CHANGE_REJECTED carries it, as plain text without control characters, cut to 500 characters. The cluster administrator writes it, not Principal. Given only to callers with access:read in the rule's organization. Absent for runs saved before the field existed.
Whether this operation has finished.
Final operation result, or null while the operation is active.
successfailurecancelledpartialQualifies the status and outcome of an operation where they alone would hide what the operator must know. Null when none applies.
rollback_in_progress rolled_back needs_repair outcome_unknown interruptedrequires_approval holds_lock awaiting_confirmation expiredtimed_out rescheduled22 fields
Safe operation failure. Explanation and recommended_action come from the static failure-code registry. The only text not written by Principal is cluster_answer.
The apply ended before its plan did. The changes it made stay on the target. The steps after the stop never started.
Steps a single-rule apply runs. Recorded after every step, so a run Principal stopped running still says how far it got.
Steps the apply made so far.
Steps that failed so far.
Completed steps that changed something on the target, counted like the rows of the result: a step the plan showed as already in place runs but is not a change. For a group apply, the changes of its members added up. Absent on runs recorded before Principal counted it.
The attempt of the apply job that ran this apply, 1 for the first.
Where a background operation is in the shared lifecycle (decision S1). outcome says how a finished operation ended and substate qualifies the state.
queuedrunningfinishedOpaque cursor of the next page, present only when has_more is true. Send it unchanged as the cursor query parameter with the same filters.
Full number of items that match the request, present only when the list counts them. It is never the size of the page.
Common errors: 400 401 403 429 504. They mean the same for every operation, see Errors.