Docs
Live demo

Models

All 629 request and response schemas of the API. Field types link to their models.

AcceptDriftFindingsRequest

run_finding_idsarray of stringrequired

Run-scoped finding keys "<run_id>_<finding_id>" of one target's latest finished drift check.

min items 1 · max items 500
reasonstringrequired

Why the findings are expected, up to 1000 characters.

untilstring · date-time

When the acceptance ends. Must be in the future. Leave it out and set no_end_date to accept with no end date.

can be null
no_end_dateboolean

Accept with no end date, as the new normal. Exactly one of until and no_end_date is set.

AcceptDriftFindingsResponse

target_idstring · uuidrequired
run_idstring · uuidrequired
itemsarray of DriftResponserequired

AccessImpact

Effect of successful execution on inspected existing MariaDB databases and global privileges. Unknown assessments block confirmation. Sessions describes cached privilege protection over every execution prefix. Removed patterns change grant coverage for future databases, separately from the enumerated existing databases. Runtime failures require a fresh access check.

statusstringrequired
preservedreducedunknown
sessionsstringrequired
preservedclosedunknown
reasonstring
databasesarray of stringrequired
tablesarray of stringrequired
global_privilegesarray of stringrequired
removed_patternsarray of stringrequired

AccessOrigin

Where a row of a rule came from: written in the rule, materialized from its template, or imported from the live account at adoption or by the one-off import after an upgrade. An imported row is part of the desired state like any other row.

string (AccessOrigin)
ruletemplateimported

AccessProfileAccountResponse

display_namestring
identity_idstring
evidencemap of string → any

AccessProfileBlockerResponse

reasonstring
detailstring

AccessProfileResponse

idstring
organization_idstring
target_idstring
enginestring
canonical_signaturestring
account_key_hashstring
rulesarray of PolicyRuleResponse
skipped_accountsarray of AccessProfileAccountResponse
evidencemap of string → any
riskstring
lowhigh
statusstring
suggestedadoptingadopteddismissedstale
template_namestring
template_versioninteger
suggested_template_namestringrequired

Name to give the rule template adopted from this profile, after the access it grants (for example "Read access to billing"). Never contains the profile signature.

source_job_idstring
created_atstring
updated_atstring
expires_atstring

AccessTemplateBulkApplyConfirmRequest

request_hashstringrequired

AccessTemplateBulkApplyConfirmResponse

job_idstring · uuidrequired
run_idstring · uuidrequired
summarymap of string → integerrequired

AccessTemplateBulkApplyGrantResponse

permissionsarray of string
resourcesarray of string

AccessTemplateBulkApplyItemResponse

Safe operation failure. Explanation and recommended_action come from the static failure-code registry. The only text not written by Principal is cluster_answer.

terminalbooleanrequired

Whether this operation has finished.

outcomestring (entity.OperationOutcome)required

Final operation result, or null while the operation is active.

successfailurecancelledpartial
can be null
created_atstring · date-time
errorstring
existing_policy_idstring · uuid
idstring · uuid
policy_idstring · uuid
resolved_grantsarray of AccessTemplateBulkApplyGrantResponse
resolved_grants_hashstring
run_idstring · uuid
statusstring
would_createwould_reuseconflictblockedcreatedreusedfailedwould_upgradeupgradedappliedapply_failed

What the preview of a template rule update saw of the rule: the rule (direct or group rule. The item's policy_id fields stay empty for a rule update), the rule version the update is pinned to (a rule that changed since is left as it was), the template version the rule used and its grants before the update, and whether its future objects setting is on, before and after the update.

subject_idstring · uuid
target_idstring · uuid
updated_atstring · date-time

AccessTemplateBulkApplyItemUpgradeResponse

What the preview of a template rule update saw of the rule: the rule (direct or group rule. The item's policy_id fields stay empty for a rule update), the rule version the update is pinned to (a rule that changed since is left as it was), the template version the rule used and its grants before the update, and whether its future objects setting is on, before and after the update.

rule_idstring · uuidrequired
rule_namestring

The rule's name as the rule list shows it when the preview read the rule. A preview names every rule it lists. Absent for an update the release before previewed.

target_namestring

The name of the rule's target when the preview read the rule. Absent for an update the release before previewed.

from_template_versionintegerrequired
policy_versionintegerrequired
previous_grantsarray of AccessTemplateBulkApplyGrantResponserequired
previous_future_objectsbooleanrequired

Whether the rule's future objects setting is on before the update, as the rule page shows it. The engine extends to objects created later only the grants it can (PostgreSQL: a grant on every object of a kind in a schema).

future_objectsbooleanrequired

Whether the rule's future objects setting is on after the update. A template version can change it with the same grants. False for a rule the update would refuse.

AccessTemplateBulkApplyPreviewRequest

apply_modestring
create_onlycreate_and_apply
subject_idsarray of string · uuidrequired
min items 1
database_selectorDatabaseSelectorRequest
kubernetes_namespacesarray of string

Typed placement for Kubernetes templates: required for shared_by_template_v1 ones, optional for isolated ones (overrides the namespaces of the template body), rejected for other engines. Namespaces are trimmed, deduplicated and sorted.

target_selectorBulkApplyTargetSelectorRequestrequired
template_versioninteger
min 1

AccessTemplateBulkApplyPreviewResponse

effective_target_idsarray of string · uuidrequired

AccessTemplateBulkApplyRunDetailResponse

AccessTemplateBulkApplyRunResponse

terminalbooleanrequired

Whether this operation has finished.

outcomestring (entity.OperationOutcome)required

Final operation result, or null while the operation is active.

successfailurecancelledpartial
can be null

Safe operation failure. Explanation and recommended_action come from the static failure-code registry. The only text not written by Principal is cluster_answer.

substatestring (entity.OperationSubstate)required

Qualifies the status and outcome of an operation where they alone would hide what the operator must know. Null when none applies.

rollback_in_progressrolled_backneeds_repairoutcome_unknowninterruptedrequires_approvalholds_lockawaiting_confirmationexpiredtimed_outrescheduled
can be null
apply_modestring
create_onlycreate_and_applyupgrade_and_apply
created_atstring · date-time
created_bystring · uuid
expires_atstring · date-time
idstring · uuid
job_idstring · uuid
organization_idstring · uuid
request_hashstring

Where a background operation is in the shared lifecycle (decision S1). outcome says how a finished operation ended and substate qualifies the state.

queuedrunningfinished
summarymap of string → integer
database_selectorentity.DatabaseSelector
kubernetes_namespacesarray of string

Typed Kubernetes placement of the run, echoed from the preview request.

Resolved target selector of a bulk apply run, echoed back by preview and confirm responses. Mirrors the request selector shape without request-only validation rules.

template_body_hashstring
template_namestring
template_versioninteger
updated_atstring · date-time

AccessTemplateResponse

bodymap of string → any
created_atstring
default_ttlstring

TTL the rule wizard offers for this template, an ISO 8601 duration.

descriptionstring
enginestring
namestring

Key of the template. Rules, versions and every /access-templates/{name} path refer to the template by it, and a rename never changes it.

display_namestring

Name people see, the same for every version. Equals name until someone renames the template with PATCH /access-templates/{name}.

max_ttlstring

Longest TTL a rule of this template may ask for (L-14), an ISO 8601 duration.

rule_countinteger

How many rules of the caller organization use the template, any version, counted the way a refused delete counts them. Present only in GET, PUT and PATCH /access-templates/{name}.

min 0
future_objects_named_rowFutureObjectsNamedRowResponse

The first row of a PostgreSQL rule or template that names its objects by name or by a name mask while Future objects are on. Future objects reach only a row on every object of its kind in a schema, so the switch reaches none of these objects. Only a rule or template saved before Principal refused such a save carries it, and its next save is refused until Future objects are off or the row covers every object of its kind. A rule carries it in every read. A template only in GET /access-templates/{name} and the version read.

updated_atstring
versioninteger

AccessTemplateRuleUpgradeApplyResponse

The apply job of one rule the update waits for: its state, its attempts and, after a failed attempt the queue retries, when the next one may start and why the last one failed.

item_idstring · uuidrequired
job_idstring · uuidrequired
statusstring (entity.OperationLifecycle)required

Where a background operation is in the shared lifecycle (decision S1). outcome says how a finished operation ended and substate qualifies the state.

queuedrunningfinished
terminalbooleanrequired
outcomestring (entity.OperationOutcome)required

Final operation result, or null while the operation is active.

successfailurecancelledpartial
can be null
attemptsintegerrequired
max_attemptsintegerrequired
next_retry_atstring · date-time

Safe operation failure. Explanation and recommended_action come from the static failure-code registry. The only text not written by Principal is cluster_answer.

AccessTemplateRuleUpgradeLatestResponse

The latest update of a template's rules in the organization.

The update. Null while the rules of the template were never updated.

can be null

The apply job of one rule the update waits for: its state, its attempts and, after a failed attempt the queue retries, when the next one may start and why the last one failed.

rules_left_templatearray of string · uuid

Rules a finished update did not apply that were deleted since or no longer use the template. Retry failed rules (a preview with their policy_ids) does not take them in, so the result no longer offers it for them.

AccessTemplateRuleUpgradePreviewRequest

policy_idsarray of string · uuid

Rules to preview again from their current state, such as the failed rules of the last update. Empty: every rule of the organization on an older version of the template. The rules the last update left unapplied are previewed either way.

max items 1000

ActionCountsDTO

createinteger
deleteinteger
no_opinteger
replaceinteger
updateinteger

ActivityActionsResponse

Actions the caller may offer on the row. Viewers get none. The action route still decides and answers 409 when the operation changed meanwhile.

retrybooleanrequired
cancelbooleanrequired

ActivityAttemptResponse

attemptintegerrequired
started_atstring · date-timerequired
can be null
finished_atstring · date-timerequired
can be null
duration_msintegerrequired
can be null
outcomestring (entity.OperationOutcome)required

Final operation result, or null while the operation is active.

successfailurecancelledpartial
can be null
wait_before_msintegerrequired

Pause between the end of the previous attempt and the start of this one.

can be null
stepsarray of ActivityStepResponserequired

ActivityBellResponse

runningintegerrequired
needs_actionintegerrequired
new_resultsintegerrequired
seen_untilstring · date-timerequired

When the person last marked results as seen. Null before the first time.

can be null

ActivityChartBucket

startstring · date-timerequired
okintegerrequired

Successful operations and events.

failedintegerrequired

Failed operations and events, and the ones that ended with a warning or partly.

deniedintegerrequired

Events that Principal denied.

runningintegerrequired

Operations that still run or wait for a decision.

driftintegerrequired

Drift signals.

ActivityChartResponse

fromstring · date-timerequired

Start of the first bucket, at or before the requested from.

tostring · date-timerequired

End of the last bucket, at or after the requested to.

bucket_secondsintegerrequired
bucketsarray of ActivityChartBucketrequired

ActivityFacetValueResponse

valuestringrequired
labelstringrequired

Name of the person or object. Null for other filters and for objects that are gone.

can be null
countintegerrequired

ActivityInitiatorResponse

Who or what started the operation. person is set whenever a person stands behind it, also when another operation started it on their behalf. parent_operation_id is set when another operation started it.

kindstringrequired
personoperationschedulesystem
can be null
parent_operation_idstring · uuidrequired
can be null

ActivityLogEntryResponse

attemptintegerrequired
stagestringrequired

Key of the stage that logged the line, the same as the key of the step.

atstring · date-timerequired
levelstringrequired
infowarnerror
textstringrequired

ActivityObjectResponse

An object of an operation as the product names it. Name is null when the object is gone.

kindstringrequired
targetruleconnectorapplication
idstring · uuidrequired
namestringrequired
can be null

ActivityOperationDetailResponse

idstring · uuidrequired

Operation ID, the same as the job ID.

kindstringrequired
discoverydrift_checkapplybulk_applybulksyncremediationcleanuptarget_deletemaintenance
job_typestringrequired
statusstringrequired
runningsucceededpartialneeds_decisionfailedcancelled

An object of an operation as the product names it. Name is null when the object is gone.

can be null
relatedarray of ActivityObjectResponserequired

Other objects of the operation, such as the target of a rule apply.

started_byActivityInitiatorResponserequired

Who or what started the operation. person is set whenever a person stands behind it, also when another operation started it on their behalf. parent_operation_id is set when another operation started it.

routinebooleanrequired

Finished successfully and started by nobody, such as a scheduled check that went fine.

needs_actionbooleanrequired

Failed, will not retry by itself and no later run of the same operation on the same object finished after it. A later run that ends with a problem needs action instead of this one.

attemptintegerrequired
max_attemptsintegerrequired
next_retry_atstring · date-time
created_atstring · date-timerequired
finished_atstring · date-time
stepsarray of ActivityStepResponserequired

Stages of the latest attempt in the order the worker runs them. Empty for operations whose worker does not record stages and for runs recorded before stages existed.

Safe operation failure. Explanation and recommended_action come from the static failure-code registry. The only text not written by Principal is cluster_answer.

child_countintegerrequired

Number of operations this operation started.

Actions the caller may offer on the row. Viewers get none. The action route still decides and answers 409 when the operation changed meanwhile.

childrenarray of ActivityOperationResponserequired

Operations this operation started, newest first, at most 100.

typical_duration_msintegerrequired

Median duration of the last 20 successful runs of the same operation on the same object in the organization. Null until at least 3 such runs exist and for operations without an object, such as bulk runs. Each stage carries its own typical_ms.

can be null
queued_msintegerrequired

Time between queueing and the start of the first attempt, including a wait for a busy target or lock that put the attempt back in the queue. Null before the first attempt started.

can be null
attemptsarray of ActivityAttemptResponserequired

Every attempt the worker made, oldest first, with the pause before it and its stages. A stage keeps the stages of the last 5 attempts.

ActivityOperationFacetsResponse

totalintegerrequired
kindsarray of ActivityFacetValueResponserequired
statusesarray of ActivityFacetValueResponserequired
started_byarray of ActivityFacetValueResponserequired
peoplearray of ActivityFacetValueResponserequired
targetsarray of ActivityFacetValueResponserequired
rulesarray of ActivityFacetValueResponserequired
connectorsarray of ActivityFacetValueResponserequired
applicationsarray of ActivityFacetValueResponserequired

ActivityOperationItemResponse

kindstringrequired
resourceruleidentitymembershipcleanupoperationstage
labelstringrequired

What the item is about when it is not a product object, such as a database resource.

can be null

An object of an operation as the product names it. Name is null when the object is gone.

can be null
actionstringrequired

What was done, such as grant, revoke, apply or a sync stage.

statusstringrequired
runningdonepartialwarningfailedskipped
reasonstringrequired
can be null

Safe operation failure. Explanation and recommended_action come from the static failure-code registry. The only text not written by Principal is cluster_answer.

operation_idstring · uuidrequired

The operation of the item when another operation did it.

can be null

ActivityOperationItemsResponse

ActivityOperationLogResponse

ActivityOperationResponse

idstring · uuidrequired

Operation ID, the same as the job ID.

kindstringrequired
discoverydrift_checkapplybulk_applybulksyncremediationcleanuptarget_deletemaintenance
job_typestringrequired
statusstringrequired
runningsucceededpartialneeds_decisionfailedcancelled

An object of an operation as the product names it. Name is null when the object is gone.

can be null
relatedarray of ActivityObjectResponserequired

Other objects of the operation, such as the target of a rule apply.

started_byActivityInitiatorResponserequired

Who or what started the operation. person is set whenever a person stands behind it, also when another operation started it on their behalf. parent_operation_id is set when another operation started it.

routinebooleanrequired

Finished successfully and started by nobody, such as a scheduled check that went fine.

needs_actionbooleanrequired

Failed, will not retry by itself and no later run of the same operation on the same object finished after it. A later run that ends with a problem needs action instead of this one.

attemptintegerrequired
max_attemptsintegerrequired
next_retry_atstring · date-time
created_atstring · date-timerequired
finished_atstring · date-time
stepsarray of ActivityStepResponserequired

Stages of the latest attempt in the order the worker runs them. Empty for operations whose worker does not record stages and for runs recorded before stages existed.

Safe operation failure. Explanation and recommended_action come from the static failure-code registry. The only text not written by Principal is cluster_answer.

child_countintegerrequired

Number of operations this operation started.

Actions the caller may offer on the row. Viewers get none. The action route still decides and answers 409 when the operation changed meanwhile.

ActivityPersonResponse

idstring · uuidrequired
namestringrequired

Display name, email or username. Null when the identity is gone.

can be null
servicebooleanrequired

True for a service account or a service identity.

ActivityStepFactResponse

One thing a stage counted, such as the roles it read or the changes that failed.

keystringrequired
labelstringrequired
valueintegerrequired
tonestringrequired

warning or failed when a non-zero value needs a look.

neutralwarningfailed

ActivityStepResponse

Safe operation failure. Explanation and recommended_action come from the static failure-code registry. The only text not written by Principal is cluster_answer.

terminalbooleanrequired
outcomestring (entity.OperationOutcome)required

Final operation result, or null while the operation is active.

successfailurecancelledpartial
can be null
namestring
statusstring
pendingrunningcompletedfailedskipped
started_atstring
finished_atstring
duration_msinteger
error_messagestring
keystringrequired

Stable stage key, such as read_accounts or apply_changes. Null for stages recorded without one.

can be null
summarystringrequired

What the stage does, did or will do in one sentence, or why it did not finish. Built from the stage and its status, never from target output.

can be null
factsarray of ActivityStepFactResponserequired
typical_msinteger

Median duration of this stage in the earlier successful runs of the same operation on the same object. Only in the operation detail and only from 3 runs.

AddGroupMemberRequest

member_idstringrequired

AdminHealthComponentResponse

Sanitized health observation for one bounded installation component.

idstringrequired
postgresqlopenbaodex_managementadmission_controllerscheduler_jobsaudit_pipeline
namestringrequired
groupstringrequired
dependenciesworkflows
statusstringrequired
healthydegradedunhealthyunknown
criticalitystringrequired
criticaloptional
enabledbooleanrequired
stalebooleanrequired
sourcestringrequired
active_probedurable_state
reason_classstringrequired
nonenot_checkednot_configurednot_separately_observabletimeoutunavailablecollection_failedno_activityattention_required
checked_atstring · date-time
fresh_untilstring · date-time
last_success_atstring · date-time
latency_secondsnumber · doublerequired
min 0
metricsarray of AdminHealthMetricResponserequired
max items 10

AdminHealthMetricResponse

Bounded numeric measurement for an installation component.

idstringrequired
queue_depth_pendingqueue_depth_queuedqueue_depth_runningrunnable_deptholdest_runnable_age_secondsterminal_completedterminal_failedterminal_timeoutterminal_totalterminal_failure_ratioadmission_ingress_mutations_totaladmission_ingress_decode_failures_totaladmission_token_reviews_authenticated_totaladmission_token_reviews_unauthenticated_totaladmission_token_reviews_failed_totaladmission_tls_cert_valid_daysdex_connectors_totaldex_clients_totalaudit_failed_intents_totalaudit_events_recorded_totalaudit_events_denied_total
valuenumber · doublerequired

AdminHealthResponse

Latest immutable installation health snapshot.

statusstringrequired
healthydegradedunhealthyunknown
generated_atstring · date-timerequired
fresh_untilstring · date-timerequired
stalebooleanrequired

Counts of enabled installation components by current state.

componentsarray of AdminHealthComponentResponserequired
max items 7

AdminHealthSummaryResponse

Counts of enabled installation components by current state.

totalintegerrequired
min 0
healthyintegerrequired
min 0
degradedintegerrequired
min 0
unhealthyintegerrequired
min 0
unknownintegerrequired
min 0
staleintegerrequired
min 0

AdoptAccessProfileIdentityMappingRequest

account_keyTargetAccountKeyRequestrequired
identity_idstring

Legacy existing identity mapping. Prefer identity.

Discriminated by mode. When mode=existing, only identity_id is read. When mode=create_static, external_id and display_name are required and the server creates a service-kind identity carrying adoption metadata before linking the target account.

AdoptAccessProfileRequest

grant_review_confirmedboolean

Required when adopting a high-risk profile. Must be bound to the reviewed canonical signature.

reviewed_canonical_signaturestringrequired

Canonical grant signature the operator reviewed for high-risk or skipped-account adoption.

reviewed_account_key_hashstringrequired

Account-set signature the operator reviewed. Rejects stale dialogs after analysis changes the account set.

skipped_accounts_confirmedboolean

Required when the recommendation includes skipped accounts that will remain unmanaged.

template_namestring

Name for the access template created by the adoption job.

template_descriptionstring

Optional description for the access template created by the adoption job.

AdoptAccessProfileResponse

job_idstring
profile_idstring
messagestring

AdoptApplicationsRequest

cluster_idstring · uuidrequired

Kubernetes target (cluster) where the discovery found the Ingresses

preview_idstring · uuidrequired
candidate_idsarray of string · uuidrequired
min items 1

AdoptApplicationsResponse

target_idstring · uuidrequired
applicationsarray of ApplicationTargetSummaryResponserequired
correlation_idstring

AdoptIdentitySpec

Discriminated by mode. When mode=existing, only identity_id is read. When mode=create_static, external_id and display_name are required and the server creates a service-kind identity carrying adoption metadata before linking the target account.

modestringrequired
existingcreate_static
identity_idstring

Existing identity to map to. Required when mode=existing.

external_idstring

External id for the new static identity. Required when mode=create_static.

display_namestring

Human-readable label for the new static identity. Required when mode=create_static.

descriptionstring

Optional description for the new static identity.

AdoptionPreviewBlockerResponse

candidate_idstring · uuidrequired
reasonstringrequired

AdoptionPreviewItemResponse

candidate_idstring · uuidrequired
proposed_namestringrequired
source_hashstringrequired
warningsarray of string

AdoptionPreviewRequest

cluster_idstring · uuidrequired

Kubernetes target (cluster) where the discovery found the Ingresses

candidate_idsarray of string · uuidrequired
min items 1

AdoptionPreviewResponse

preview_idstring · uuidrequired
target_idstring · uuidrequired
itemsarray of AdoptionPreviewItemResponserequired

AdoptTargetAccountRequest

Atomic adopt request. The nested identity block carries either a reference to an existing identity (mode: existing) or the spec for a static identity to be created in the same transaction (mode: create_static). When the adopt step fails after a fresh identity has been created, the server rolls the identity back so no orphan rows remain in the directory. rules must be the operator-confirmed result of the adoption preview, optionally edited before submit.

account_keyTargetAccountKeyRequestrequired
credential_ownershipstring
principal_managed
identityAdoptIdentitySpecrequired

Discriminated by mode. When mode=existing, only identity_id is read. When mode=create_static, external_id and display_name are required and the server creates a service-kind identity carrying adoption metadata before linking the target account.

rulesarray of PolicyRuleRequestrequired

Confirmed rows. On PostgreSQL a row identical to a previewed one is imported, any other is the rule's own.

membershipsarray of PolicyMembershipRequest

Memberships the operator confirmed from the preview (PostgreSQL). An absent field takes over every live membership of the account. An empty array takes over none.

AgentLoginRequest

tokenstringrequired

AllowlistedApplicationCandidateResponse

idstring · uuidrequired
target_idstring · uuidrequired
source_hashstringrequired
resource_versionstring
discovered_atstring · date-timerequired
adoption_statestring (ApplicationAdoptionState)required
candidateadoption_previewedadoptedprincipal_managedexternal
application_target_idstring · uuid
decisionstringrequired
allowlisted

AnalyzeAccessProfilesResponse

job_idstring
target_idstring
messagestring

APITokenCapPreviewItem

idstring · uuidrequired
kindstringrequired
personalorganization
namestringrequired
bound_memberAPITokenMemberRefrequired
created_atstring · date-timerequired
expires_atstring · date-timerequired
stops_atstring · date-timerequired

When the token stops working under the given limits, its creation time plus the limit.

stops_nowbooleanrequired

True when that moment has passed, so the token stops at once.

APITokenCapPreviewResponse

itemsarray of APITokenCapPreviewItemrequired

The affected tokens. Empty when details_hidden is true.

truncatedbooleanrequired

True when more than 1000 tokens exceed the limits and the list shows the first 1000 by creation time.

How many of the examined tokens stop working under the given limits, and when the first one stops.

details_hiddenbooleanrequired

True when the caller can't read tokens (tokens:read), so the response has the summary only.

APITokenCapPreviewSummary

How many of the examined tokens stop working under the given limits, and when the first one stops.

tokensintegerrequired
organization_tokensintegerrequired
personal_tokensintegerrequired
stop_at_onceintegerrequired

Tokens whose stop moment has already passed, so they stop as soon as the limits are saved.

next_stop_atstring · date-timerequired

The earliest stop among the tokens that do not stop at once. Null when there is none.

can be null

APITokenCreateRequest

namestringrequired

Name that tells what the token is for.

max length 100
rolestringrequired

Built-in role the token is issued with. The permissions of the role and of custom_role must be permissions of the caller. An organization token needs admin, viewer or a custom role.

adminvieweruser
custom_role_idstring · uuid

Custom role the token holds on top of its built-in role.

can be null
expires_atstring · date-timerequired

When the token expires: at least one hour ahead and at most the longest lifetime of the organization policy (GET /api-tokens/policy. 90 days by default, 7 days for a token with allow_security_changes, 30 days with allow_installation_admin, never more than 366 days). A later date within ten minutes of the limit is lowered to it. A later one answers 400.

allowed_networksarray of string

IP addresses or networks (CIDR, IPv4 /16 or narrower, IPv6 /32 or narrower) the token is accepted from. A request from any other address answers 401 auth.api_token_invalid with details.reason=network without naming the networks. Empty accepts every network unless the organization policy requires networks for new tokens (then 400). A replaced secret keeps the networks of the token.

max items 30
allow_security_changesboolean

Lets the token make the security changes that the console confirms with a second factor: the organization security policy, required two-factor authentication, trusted networks, and members' passwords, password reset links, external sign-in, email, two-factor reset and unlock. Only a token whose roles hold security:manage can have it. Omitted means false.

allow_installation_adminboolean

Lets a personal token administer the installation within its owner's installation rights: health, maintenance mode, the audit of every organization, the upgrade preflight and the operations of the installation. Only an installation administrator can issue it, and the token stays valid for at most 30 days. The token keeps the installation rights its owner held at issuance and never more. Omitted means false.

allow_token_managementboolean

Lets the token list, issue, replace, take over and revoke API tokens. A token it issues holds no permission or right this token lacks, expires no later than this token and is revoked with it. It replaces secrets and takes over tokens only within itself and the tokens it issued. Omitted means false.

allow_credentials_readboolean

Lets the token call GET /identities/{id}/credentials for the credentials its owner may view: their own, and with the admin role those of any member. The right stands in for the second factor the console asks for, so every read is recorded and counted toward the hourly limit. It is given only at issuance, after the second-factor confirmation of the creator. A token issued with another token gets it only when that token has it. Without it the token answers 403 auth.api_token_not_allowed (details.reason=api_token_credentials_read_not_allowed). Omitted means false.

agentboolean

Marks a personal token as the connection of an AI agent through POST /mcp: the console lists such tokens under AI agents, and a new secret keeps the mark. The mark gives no right, and without allow_credentials_read the token gets no SSH certificate from POST /ssh/certificates. An organization token with the mark answers 400. Omitted means false.

APITokenIssuedResponse

tokenAPITokenResponserequired
secretstringrequired

The token secret. Shown only in this response. Principal keeps only its SHA-256 digest.

APITokenListResponse

APITokenMemberRef

idstring · uuidrequired

Identity ID. Null when the identity was deleted.

can be null
labelstringrequired

APITokenPageResponse

A page of the list in the shared envelope, dto.ListPage. This list doesn't count its items, so total is absent.

has_morebooleanrequired

True when another page follows. The list ends when it is false.

itemsarray of APITokenResponserequired
next_cursorstring

Opaque cursor of the next page, present only when has_more is true. Send it unchanged as the cursor query parameter with the same filters.

totalinteger

Full number of items that match the request, present only when the list counts them. It is never the size of the page.

APITokenPolicyRequest

API token settings of the organization policy. A null or omitted number keeps the installation default (30, 90, 7 and 30 days). The default lifetime and the security limit can't exceed the longest lifetime.

default_lifetime_daysinteger

Lifetime the console offers for a new token.

min 1 · max 366 · can be null
max_lifetime_daysinteger

Longest lifetime of a new token or a replaced secret. 366 days is the ceiling of the installation.

min 1 · max 366 · can be null
security_max_lifetime_daysinteger

Longest lifetime of a token issued with allow_security_changes.

min 1 · max 366 · can be null
networks_requiredboolean

Require the networks a new token is accepted from. Omitted means false.

unused_disable_daysinteger

Days without use after which the periodic check disables a token. 0 turns the check off.

min 0 · max 3650 · can be null
cap_existingboolean

Apply the longest lifetime to tokens issued before it was set: such a token stops working when its lifetime reaches the limit, at once when it already has. GET /api-tokens/policy/preview lists them. Omitted means false. Turning it off makes the tokens work again until their own expiry.

APITokenPolicyResponse

The API token policy of an organization as it applies, installation defaults filled in.

default_lifetime_daysintegerrequired

Lifetime the console offers for a new token.

max_lifetime_daysintegerrequired

Longest lifetime of a new token or a replaced secret.

security_max_lifetime_daysintegerrequired

Longest lifetime of a token issued with allow_security_changes. Never more than max_lifetime_days.

networks_requiredbooleanrequired

A new token must name the networks it is accepted from.

unused_disable_daysintegerrequired

Days without use after which the periodic check disables a token. 0 turns the check off.

cap_existingbooleanrequired

The longest lifetime also applies to tokens issued before it was set.

APITokenPolicySettings

Stored API token settings of the organization. Null means the installation default.

default_lifetime_daysintegerrequired
can be null
max_lifetime_daysintegerrequired
can be null
security_max_lifetime_daysintegerrequired
can be null
networks_requiredbooleanrequired
unused_disable_daysintegerrequired
can be null
cap_existingbooleanrequired

APITokenResponse

idstring · uuidrequired
kindstringrequired
personalorganization
namestringrequired
rolestringrequired

Built-in role the token was issued with. It never grows.

adminvieweruser
custom_roleOrgCustomRoleRefrequired

Custom role the token holds on top of its built-in role.

can be null
effective_rolestringrequired

The widest built-in role whose permissions the token has now. Null when it does not authenticate.

adminvieweruser
can be null
effective_permissionsarray of string (OrgPermission)required

What the token may do now: the permissions of its roles that the member behind the token also has. Empty when it does not authenticate.

access:applyaccess:manageaccess:readapplications:manageapplications:readaudit:readdrift:managedrift:readidentities:manageidentities:readjobs:managejobs:readmembers:managemembers:readnotifications:managenotifications:readorganization:readsecurity:managesecurity:readtargets:managetargets:readtokens:managetokens:read
statusstringrequired

active works with all permissions of its roles. Limited works with fewer because the bound member has fewer permissions now. Inactive does not work because the bound member is not a member any more (member_missing) or, for an organization token, the responsible administrator lost read access (member_without_access).

activelimitedinactiveexpiredrevoked
status_reasonstringrequired

Why a token is limited, inactive, expired or revoked. On an expired token, member_missing or member_without_access says a new secret would be inactive too, and policy_cap says the longest lifetime of the organization policy, applied to existing tokens, ended it. unused on a revoked token says the periodic check disabled it because it was not used within the days the policy allows. Such a token can't come back, create a new one.

role_loweredmember_missingmember_without_accessrevokedrotatedunusedpolicy_cap
can be null
token_hintstringrequired

Prefix and last characters of the secret, to recognize the token.

bound_memberAPITokenMemberRefrequired
created_byAPITokenMemberRefrequired
created_atstring · date-timerequired
expires_atstring · date-timerequired

When the token expires by its own terms, as issued.

policy_expires_atstring · date-timerequired

When the longest lifetime of the organization policy would end the token (created_at plus the limit for this token), present only when the lifetime exceeds the policy. The token stops at this moment only while the policy applies the limit to existing tokens (cap_existing). Otherwise it is informational.

can be null
lifetime_over_policybooleanrequired

The lifetime of the token exceeds the longest lifetime of the organization policy.

allow_security_changesbooleanrequired

The token may make the security changes that the console confirms with a second factor. Set when the token is issued and kept when its secret is replaced.

allow_installation_adminbooleanrequired

The personal token may administer the installation within the installation rights its owner held at issuance. Set when the token is issued and kept when its secret is replaced.

allow_token_managementbooleanrequired

The token may list, issue, replace, take over and revoke API tokens within its own permissions and rights. Set when the token is issued and kept when its secret is replaced.

allow_credentials_readbooleanrequired

The token may call GET /identities/{id}/credentials within its owner's rights. Set when the token is issued and kept when its secret is replaced.

agentbooleanrequired

The token connects an AI agent through POST /mcp. Set when the token is issued and kept when its secret is replaced. It gives no right, and without allow_credentials_read the token gets no SSH certificate.

agent_keystring · uuidrequired

For an agent token, the key that names the connection in the agent's client. It stays the same when the secret is replaced. Null for every other token.

can be null
agent_connected_atstring · date-timerequired

For an agent token, the first moment the MCP server at POST /mcp answered it successfully. Null until then and for every other token. A request that only carried the secret, without a successful MCP answer, does not set it. A new secret starts with null.

can be null
allowed_networksarray of stringrequired

Networks (CIDR) the token is accepted from. Empty means every network.

issued_by_token_idstring · uuidrequired

API token that issued this token or replaced its secret. Revoking that token revokes this one too. Null when a person issued it in the console.

can be null
last_used_atstring · date-timerequired

When the token last made a request, recorded at most once a minute.

can be null
last_used_ipstringrequired

Client address of the last recorded use, as the backend saw it: the address the trusted proxies forwarded, or the direct peer when no trusted proxy is configured.

can be null
revoked_atstring · date-timerequired
can be null
revoked_byAPITokenMemberRefrequired
can be null
replaced_by_idstring · uuidrequired

The token that replaced this one when its secret was rotated.

can be null

APITokenRotateRequest

expires_atstring · date-timerequired

When the new secret expires: at least one hour ahead and at most the longest lifetime of the organization policy for this token (GET /api-tokens/policy), as for a new token.

ApplicationAccessReadOnlyReasonCode

Why Principal can't change the Dex clients of this application. Picks the next step. applications_not_managed: the target's SSO applications aren't managed in this Principal's Dex (the target setting applications_on_bundled_dex turns it on), whatever kubectl signs in through. dex_management_missing: this Principal has no Dex management set up. dex_outdated: the Dex of the cluster answers but serves a management API older than 1000, so Principal neither reads nor writes the allowed groups of its clients until Dex is updated.

string (ApplicationAccessReadOnlyReasonCode)
applications_not_manageddex_management_missingdex_management_offdex_unavailabledex_outdateddex_changes_off

ApplicationAccessSourceResponse

idstringrequired
typestringrequired
namestringrequired
writablebooleanrequired
read_only_reasonstring

ApplicationAdoptionState

string (ApplicationAdoptionState)
candidateadoption_previewedadoptedprincipal_managedexternal

ApplicationAuthGateCertificateIssuerOptionResponse

ApplicationAuthGateCurrentResponse

Gate configuration observed on the target cluster for the deployed SSO gate. Edit forms start from these values.

keep_users_logged_in_forstringrequired
send_authorization_headerbooleanrequired
send_groups_headerbooleanrequired
ingress_class_namestring

ApplicationAuthGateDefaultsResponse

keep_users_logged_in_forstringrequired
send_authorization_headerbooleanrequired
send_groups_headerbooleanrequired

Controls whether the SSO gate forwards X-Auth-Request-Groups to the application. Defaults to true.

ingress_class_namestring

ApplicationAuthGateIngressClassOptionResponse

namestringrequired
is_defaultbooleanrequired

ApplicationAuthGateIngressProtectionResponse

Whether the application Ingress is behind its SSO gate on the target cluster right now, observed from the Ingress and the gate admission webhook. Only protected means requests pass through the gate. The UI shows the gate as active only in that state.

statestringrequired
protectedunprotectedunknown
reasonstring

Why the Ingress is not protected or why protection could not be observed. Empty for protected.

ApplicationAuthGateOptionsResponse

Present only while a Principal-managed SSO gate is deployed for the application. An empty tls.source or ingress_class_name means the gate Ingress is missing or foreign (unknown). Edit forms fall back to defaults for those fields.

Whether the application Ingress is behind its SSO gate on the target cluster right now, observed from the Ingress and the gate admission webhook. Only protected means requests pass through the gate. The UI shows the gate as active only in that state.

ingress_classesarray of ApplicationAuthGateIngressClassOptionResponserequired
tls_secretsarray of ApplicationAuthGateTLSSecretOptionResponserequired
trusted_networksarray of ApplicationAuthGateTrustedNetworkResponserequired

Network lists of the organization that the SSO gate can let in without sign-in, with the lists this application's gate selected.

ApplicationAuthGateTLSConfigResponse

sourcestring
inheritsecretissuercluster_issuerdisabled
secret_namestring
issuer_namestring
cluster_issuer_namestring

ApplicationAuthGateTLSSecretOptionResponse

ApplicationAuthGateTrustedNetworkResponse

idstring · uuidrequired
namestringrequired
addressesarray of stringrequired
selectedbooleanrequired

The application's SSO gate lets requests from these addresses in without sign-in.

uses_old_addressesbooleanrequired

The list changed after the gate last applied it. The cluster still has the earlier addresses until the application access is saved again.

ApplicationCandidateReasonCode

string (ApplicationCandidateReasonCode)
missing_source_identitysystem_namespacekubernetes_api_hostwell_known_health_endpointsystem_componentacme_challengeidentity_provider_component

ApplicationCandidateResponse

ApplicationCandidateResponseBase

idstring · uuidrequired
target_idstring · uuidrequired
source_hashstringrequired
resource_versionstring
discovered_atstring · date-timerequired
adoption_statestring (ApplicationAdoptionState)required
candidateadoption_previewedadoptedprincipal_managedexternal
application_target_idstring · uuid

ApplicationCapabilitiesResponse

ingress_writablebooleanrequired
dex_readablebooleanrequired
dex_writablebooleanrequired
read_only_reasonstring
read_only_reason_codestring (ApplicationAccessReadOnlyReasonCode)

Why Principal can't change the Dex clients of this application. Picks the next step. applications_not_managed: the target's SSO applications aren't managed in this Principal's Dex (the target setting applications_on_bundled_dex turns it on), whatever kubectl signs in through. dex_management_missing: this Principal has no Dex management set up. dex_outdated: the Dex of the cluster answers but serves a management API older than 1000, so Principal neither reads nor writes the allowed groups of its clients until Dex is updated.

applications_not_manageddex_management_missingdex_management_offdex_unavailabledex_outdateddex_changes_off

ApplicationDexClientApplyRequest

preview_idstring · uuidrequired
expected_source_hashstringrequired
min length 1
operationstringrequired
createupdateadoptdelete
client_idstringrequired
min length 1 · max length 256
oidc_setup_contract_versioninteger

Set to 1 to acknowledge one-time native OIDC credential delivery. Required for native-only and combined gate plus native OIDC create.

1

ApplicationDexClientAuthGateRequest

SSO gate settings for the Dex client. On update, fields left empty keep the values of the deployed gate (see auth_gate_options.current in the access read model). Only an explicit tls.source "inherit" re-targets the application Ingress secret. On create, empty fields take auth_gate_options.defaults.

enabledboolean

Toggles the Principal oauth2-proxy gate. With contract_version 1, false selects native OIDC for create or preserves an existing native client. Gate-to-native updates are rejected and require delete/recreate.

manage_ingress_annotationsboolean

Controls application Ingress ownership while the gate is enabled. Omitted or true installs the Principal mutating webhook and converges auth annotations. An explicit false creates and readies the oauth2-proxy gate without changing or selecting the application Ingress, so operator-managed annotations can activate it later.

keep_users_logged_in_forstring
max length 32
send_authorization_headerboolean
send_groups_headerboolean

Controls whether the SSO gate requests the groups scope and forwards X-Auth-Request-Groups to the application. Omitted values default to true.

default true
ingress_class_namestring
max length 253
trusted_network_idsarray of string · uuid

Organization network lists whose addresses reach the application without sign-in. Omitted keeps the current selection on update and selects none on create. An empty list lets no network in.

max items 50

ApplicationDexClientAuthGateResponse

Per-application oauth2-proxy SSO gate change planned by a Dex client mutation preview.

operationstringrequired
ensureremove
namespacestringrequired
ingress_namestringrequired
gate_namestringrequired
hoststringrequired
manage_ingress_annotationsbooleanrequired
requires_iac_updatebooleanrequired

Existing auth annotations are operator-managed and must be updated in IaC before traffic uses the Principal SSO gate.

ingress_annotationsmap of string → string

Exact NGINX auth annotations for the application Ingress.

ingress_class_namestring
keep_users_logged_in_forstring
send_authorization_headerbooleanrequired
send_groups_headerbooleanrequired

Whether the SSO gate requests the groups scope and forwards X-Auth-Request-Groups to the application.

proxy_prefixstring
issuer_urlstring
redirect_urlstring
source_rangesarray of string

Client addresses and ranges the SSO gate lets in without sign-in, from the selected network lists.

trusted_network_addresses_hiddenboolean

True when the caller can't read the security settings, so the preview leaves out the addresses of the selected trusted networks: source_ranges and the source range annotation of ingress_annotations. Apply still lets the selected networks in.

ApplicationDexClientAuthGateTLSRequest

sourcestring
inheritsecretissuercluster_issuerdisabled
secret_namestring
max length 253
issuer_namestring
max length 253
cluster_issuer_namestring
max length 253

ApplicationDexClientAuthGateTLSResponse

sourcestring
inheritsecretissuercluster_issuerdisabled
secret_namestring
issuer_namestring
cluster_issuer_namestring

ApplicationDexClientMutationPreviewResponse

preview_idstring · uuidrequired
kindstringrequired
dex_client
target_idstring · uuidrequired
application_idstring · uuidrequired
source_hashstringrequired
resource_versionstring
writablebooleanrequired
operationsarray of ApplicationMutationOperationResponserequired
warningsarray of string

ApplicationDexClientMutationScopeResponse

organization_idstring · uuidrequired
target_idstring · uuidrequired
application_idstring · uuidrequired

ApplicationDexClientMutationStateResponse

client_idstringrequired
issuerstring
namestring
redirect_urisarray of string
trusted_peersarray of string
publicbooleanrequired
native_oidc_enabledboolean

Effective native OIDC mode, including native-only bindings created by older backend versions. May be true together with auth_gate_enabled.

auth_gate_enabledboolean

Persisted auth mode observed for this binding. Null means a legacy binding.

can be null
logo_urlstring
connector_idsarray of string
connector_groupsmap of string → array of string
principal_group_claims_modestring

Principal group memberships exposed through Dex claims and downstream auth headers.

all_membershipsaccess_groups
include_nested_groupsboolean

Whether ancestor group memberships grant access and appear in the groups claim.

require_emailboolean

Whether the Principal connector refuses the sign-in of a user without an email address.

source_hashstring
last_observed_revisionstring

ApplicationDexClientPreviewRequest

contract_versioninteger

Set to 1 to enable explicit auth mode and native OIDC setup semantics.

1
operationstringrequired
createupdateadoptdelete
client_idstringrequired
min length 1 · max length 256
namestring
max length 256
redirect_urisarray of string
connector_idsarray of string
connector_groupsmap of string → array of string
principal_group_claims_modestring

Selects all Principal memberships or only memberships granting access. Omitted requests preserve the current binding on update and use all_memberships on create.

all_membershipsaccess_groups
include_nested_groupsboolean

Grant access through ancestor groups. Omitted requests preserve the current binding on update and stay false on create.

require_emailboolean

Refuse the sign-in of a user without an email address on the Principal sign-in page. Applies to native OIDC clients that sign in through the Principal connector. The preview blocks it elsewhere. Omitted requests preserve the current binding on update and stay false on create.

native_oidc_enabledboolean

Requires contract_version 1. Enables native OIDC alongside the SSO gate on create. With the gate disabled, native mode is required. Omitted updates preserve the binding mode. Changing native mode requires recreating the client because its secret is shown only at create.

SSO gate settings for the Dex client. On update, fields left empty keep the values of the deployed gate (see auth_gate_options.current in the access read model). Only an explicit tls.source "inherit" re-targets the application Ingress secret. On create, empty fields take auth_gate_options.defaults.

ApplicationDexClientPreviewResponse

contract_versionintegerrequired
1
preview_kindstringrequired
dex_client
operationstringrequired
createupdateadoptdelete
client_idstringrequired
native_oidc_enabledboolean

Effective native OIDC mode, including native-only bindings created by older backend versions. May be true together with auth_gate_enabled.

auth_gate_enabledbooleanrequired

Resolved auth mode that apply will persist.

source_hashstring

Per-application oauth2-proxy SSO gate change planned by a Dex client mutation preview.

ApplicationDexConnectorResponse

idstringrequired
typestringrequired
namestring
groupsarray of stringrequired

ApplicationKubernetesObjectRef

kindstringrequired
namespacestring
namestringrequired

ApplicationMutationBlockerResponse

codestringrequired

Stable reason of the blocker. cluster_in_observe means the cluster is in Observe, so Principal doesn't change the SSO gate there until the cluster is managed again.

messagestringrequired

ApplicationMutationOperationResponse

typestringrequired
descriptionstring
source_idstring
beforearray of string
afterarray of string

ApplicationMutationPreviewResponse

preview_idstring · uuidrequired
kindstring
urldex_client
target_idstring · uuidrequired
application_idstring · uuidrequired
source_hashstringrequired
resource_versionstring
writablebooleanrequired
operationsarray of ApplicationMutationOperationResponserequired
warningsarray of string

ApplicationMutationResultResponse

target_idstring · uuidrequired
application_idstring · uuidrequired
source_hashstring
resource_versionstring
correlation_idstring
appliedbooleanrequired

One-time setup values returned only after native-only or combined gate plus native OIDC create. Combined mode also stores the secret for its gate.

ApplicationNestedGroups

The Include nested groups setting saved for the application's Dex clients that sign people in through Principal: included when every such client has it on, excluded when none has, mixed when the clients differ. With it on, a group rule also lets in the members of the group's subgroups. The clients share one Principal connector, so with mixed the setting of the client applied last decides for all of them, and Principal doesn't tell which one that is.

ApplicationOAuthAppResponse

idstringrequired
namestringrequired
issuer_urlstring

Public Dex OIDC issuer for configuring the application.

redirect_urisarray of stringrequired
publicbooleanrequired

Whether the Dex client is public and therefore has no client secret.

native_oidc_enabledboolean

Effective native OIDC mode, including native-only bindings created by older backend versions. May be true together with auth_gate_enabled.

auth_gate_enabledboolean

Persisted Application auth mode. Null means a legacy binding whose mode is not explicit.

can be null
connector_idsarray of stringrequired
connector_groupsmap of string → array of string
principal_group_claims_modestring

Principal group memberships exposed to this OAuth client. Present for Principal-managed bindings.

all_membershipsaccess_groups
include_nested_groupsboolean

Whether ancestor group memberships grant access and appear in the groups claim. Present for Principal-managed bindings.

require_emailboolean

Whether the Principal connector refuses the sign-in of a user without an email address. Present for Principal-managed bindings.

source_idstringrequired
ownership_statestringrequired
read_only_reasonstring
users_without_groups_claimarray of string · uuidrequired

IDs of the direct users this client signs in with an empty groups claim. Set for Principal-managed native OIDC clients in the access_groups mode when none of the user's groups has access to the application. Empty for other clients.

missing_from_dexbooleanrequired

The client is managed by Principal but no longer exists in Dex. Principal can only delete it, which also removes its SSO gate. Create a new client afterwards.

any_gitlab_user_can_sign_inbooleanrequired

The client signs people in through GitLab and neither the client nor that GitLab sign-in method of Dex names a GitLab group, so any GitLab user can sign in to the application. The same rule refuses to create or change such a client. This flag shows clients that already exist, for example after an operator removed the groups of the sign-in method in the installation settings.

ApplicationOIDCSetupResponse

One-time setup values returned only after native-only or combined gate plus native OIDC create. Combined mode also stores the secret for its gate.

issuer_urlstringrequired
discovery_urlstringrequired
client_idstringrequired
client_secretstring

Present only for confidential clients. Never returned by read or preview endpoints.

redirect_urisarray of stringrequired

Application callback URIs. Excludes the SSO gate callback in combined mode.

publicbooleanrequired
scopesarray of stringrequired

ApplicationPersistedAdoptionState

ApplicationResourceKeyResponse

What an application finding is about: an entry of the access list (subject_id, subject_kind) or a Dex client of the application (client_id, the changed fields, whether it is gone from Dex and whether Principal can write back the client it applied).

subject_idstring
subject_kindstring
client_idstring
fieldsarray of string
missingboolean
restorableboolean

ApplicationSignInResponse

application_idstring · uuidrequired
oauth_appsarray of ApplicationOAuthAppResponserequired
access_sourcesarray of ApplicationAccessSourceResponserequired
dex_connectorsarray of ApplicationDexConnectorResponserequired
auth_gate_optionsApplicationAuthGateOptionsResponserequired

ApplicationSourceResponse

namespacestringrequired
ingress_namestringrequired
ingress_classstring
hoststring
pathstring
pathsarray of string

Every path of this Ingress on the host, in the order of the Ingress. One application covers the paths of one Ingress on one host. The sign-in gate protects all of these paths, and another Ingress on the same host is a separate application. Absent until the next discovery of a candidate read before Principal kept the paths.

sso_gate_pathstringrequired

Path the SSO gate of the application answers under, <path>/oauth2. For a regular expression path it is the literal part before the expression, /console/oauth2 for /console(/.*)?, or /oauth2/<literal part> when the expression would also catch that address, /oauth2/console for /console(/|$)(.*).

tlsbooleanrequired
service_refsarray of ApplicationKubernetesObjectRef
deployment_refsarray of ApplicationKubernetesObjectRef

ApplicationTargetDetailResponse

idstring · uuidrequired
parent_target_idstring · uuidrequired
namestringrequired
ownership_statestring (ApplicationPersistedAdoptionState)required
adoptedprincipal_managedexternal
ingress_missing_sincestring · date-time

Time of the cluster discovery that did not find the Ingress of this application: it was deleted in the cluster or its namespace, name or host changed. The application and its rules stay until a person deletes it. Absent while discovery finds the Ingress.

nested_groupsstring (ApplicationNestedGroups)

The Include nested groups setting of the application's Principal sign-in, which decides whether a group rule also lets in the members of the group's subgroups. The list of applications and the application read report it. Absent when no Dex client of the application signs people in through Principal.

includedexcludedmixed
created_atstring · date-timerequired
updated_atstring · date-timerequired
source_hashstringrequired
resource_versionstring
last_drift_check_atstring · date-time

ApplicationTargetSummaryResponse

idstring · uuidrequired
parent_target_idstring · uuidrequired
namestringrequired
ownership_statestring (ApplicationPersistedAdoptionState)required
adoptedprincipal_managedexternal
ingress_missing_sincestring · date-time

Time of the cluster discovery that did not find the Ingress of this application: it was deleted in the cluster or its namespace, name or host changed. The application and its rules stay until a person deletes it. Absent while discovery finds the Ingress.

nested_groupsstring (ApplicationNestedGroups)

The Include nested groups setting of the application's Principal sign-in, which decides whether a group rule also lets in the members of the group's subgroups. The list of applications and the application read report it. Absent when no Dex client of the application signs people in through Principal.

includedexcludedmixed
created_atstring · date-timerequired
updated_atstring · date-timerequired

ApplicationURLApplyRequest

preview_idstring · uuidrequired
expected_source_hashstringrequired
min length 1

ApplicationURLPreviewRequest

ApplyPlanRequest

preview_idstringrequired

ApplyPlanResponse

job_idstring
policy_idstring

ApplyPolicyResponse

terminalbooleanrequired

Whether this operation has finished.

outcomestring (entity.OperationOutcome)required

Final operation result, or null while the operation is active.

successfailurecancelledpartial
can be null
substatestring (entity.OperationSubstate)required

Qualifies the status and outcome of an operation where they alone would hide what the operator must know. Null when none applies.

rollback_in_progressrolled_backneeds_repairoutcome_unknowninterruptedrequires_approvalholds_lockawaiting_confirmationexpiredtimed_outrescheduled
can be null
created_atstring
execution_modestring
job_idstring
messagestring

Human-readable message about job status

plan_idstring

May be empty if plan creation failed

policy_idstring

Where a background operation is in the shared lifecycle (decision S1). outcome says how a finished operation ended and substate qualifies the state.

queuedrunningfinished

ApplyRunResponse

Safe operation failure. Explanation and recommended_action come from the static failure-code registry. The only text not written by Principal is cluster_answer.

terminalbooleanrequired

Whether this operation has finished.

outcomestring (entity.OperationOutcome)required

Final operation result, or null while the operation is active.

successfailurecancelledpartial
can be null
substatestring (entity.OperationSubstate)required

Qualifies the status and outcome of an operation where they alone would hide what the operator must know. Null when none applies.

rollback_in_progressrolled_backneeds_repairoutcome_unknowninterruptedrequires_approvalholds_lockawaiting_confirmationexpiredtimed_outrescheduled
can be null
created_atstring
execution_modestring
finished_atstring
idstring
job_idstring
plan_idstring
policy_idstring
saved_artifact_idstring
saved_artifact_versioninteger
started_atstring

Where a background operation is in the shared lifecycle (decision S1). outcome says how a finished operation ended and substate qualifies the state.

queuedrunningfinished
target_idstring
updated_atstring

AttentionReference

An object of the organization a problem concerns.

idstring · uuidrequired
namestringrequired

AttributeChangeDTO

actionstring

add, remove, change. PostgreSQL role attributes report update

new_valueany

New value (null for removals)

can be null
old_valueany

Previous value (null for additions)

can be null
pathstring

JSON path to attribute

sensitiveboolean

Is this a sensitive value?

AuditChangeResponse

actionstringrequired
labelstring

Field name as the screen shows it, present only for events with their own field names

new_valueany
old_valueany
pathstringrequired
sensitivebooleanrequired

AuditEventFacetsMetaResponse

default_window_appliedbooleanrequired

AuditEventFacetsResponse

categoriesarray of AuditFacetValueResponserequired
typesarray of AuditFacetValueResponserequired
actionsarray of AuditFacetValueResponserequired
outcomesarray of AuditFacetValueResponserequired
severitiesarray of AuditFacetValueResponserequired
actor_kindsarray of AuditFacetValueResponserequired
actorsarray of AuditFacetValueResponserequired

Actor labels ranked by matching event count for top-actor views.

owner_domainsarray of AuditFacetValueResponserequired
resource_kindsarray of AuditFacetValueResponserequired
unique_actors_countintegerrequired

AuditEventFacetsWindowResponse

fromstringrequired
tostringrequired

AuditEventHistogramBucketResponse

tstringrequired
allowedintegerrequired
denied_failedintegerrequired
otherintegerrequired

AuditEventHistogramResponse

AuditEventHistogramTotalsResponse

totalintegerrequired
denied_failedintegerrequired
unique_actorsintegerrequired

AuditEventHistogramWindowResponse

fromstringrequired
tostringrequired

AuditEventRefResponse

kindstringrequired
labelstringrequired
ui_urlstringrequired

AuditEventResponse

Safe operation failure. Explanation and recommended_action come from the static failure-code registry. The only text not written by Principal is cluster_answer.

event_idstringrequired
occurred_atstringrequired
recorded_atstringrequired
categorystringrequired
typestringrequired
actionstringrequired
outcomestringrequired
severitystringrequired
titlestringrequired
summarystringrequired
executorAuditExecutorResponserequired
primary_resourceAuditEventRefResponserequired
relatedarray of AuditEventRefResponserequired
responsibilityAuditResponsibilityResponserequired
changesarray of AuditChangeResponserequired
changes_countinteger

Number of changed fields this event records, the length of changes.

detailsmap of string → anyrequired
traceAuditTraceResponserequired
whereAuditWhereResponserequired

AuditExecutorResponse

kindstringrequired
labelstringrequired

AuditFacetValueResponse

valuestringrequired

Filter code of the value.

labelstringrequired

Display name of the value. The UI shows it instead of the code.

countintegerrequired

AuditReportControlResponse

idstringrequired
titlestringrequired

AuditReportFiltersRequest

fromstring

Start of the period (RFC 3339). Without it the report covers the default period of the preset (default_period_days) back from to. A period longer than 1098 days is refused with 400.

tostring

End of the period (RFC 3339). Without it, or when it is in the future, the report ends now.

event_idarray of string
categoryarray of string
typearray of string
actionarray of string
outcomearray of string
severityarray of string
actor_kindarray of string
actor_labelarray of string
actor_querystring
resource_kindarray of string
resource_querystring
owner_domainarray of string
qstring
target_idarray of string · uuid

Limit the report to these targets. Targets of other organizations are ignored.

max items 200
target_kindarray of string

Limit the report to targets of these kinds.

postgresmysqlclickhousemongodbkubernetessshapplication

AuditReportFormat

The report file: pdf, csv (a ZIP archive with one CSV file per table) or json (one file with the principal.audit_report schema). Reports made before the format choice are pdf.

AuditReportFrameworkResponse

namestringrequired
versionstringrequired
noticestringrequired
controlsarray of AuditReportControlResponserequired

AuditReportListItemResponse

restrictedstring

Why the caller's role cannot open this report. Empty when it can.

Safe operation failure. Explanation and recommended_action come from the static failure-code registry. The only text not written by Principal is cluster_answer.

job_idstringrequired
statusstring (entity.OperationLifecycle)required

Where a background operation is in the shared lifecycle (decision S1). outcome says how a finished operation ended and substate qualifies the state.

queuedrunningfinished
terminalbooleanrequired

Whether this operation has finished.

outcomestring (entity.OperationOutcome)required

Final operation result, or null while the operation is active.

successfailurecancelledpartial
can be null
substatestring (entity.OperationSubstate)required

Qualifies the status and outcome of an operation where they alone would hide what the operator must know. Null when none applies.

rollback_in_progressrolled_backneeds_repairoutcome_unknowninterruptedrequires_approvalholds_lockawaiting_confirmationexpiredtimed_outrescheduled
can be null
presetstringrequired
formatstring (AuditReportFormat)required

The report file: pdf, csv (a ZIP archive with one CSV file per table) or json (one file with the principal.audit_report schema). Reports made before the format choice are pdf.

pdfcsvjson
titlestringrequired

The custom report title. Empty when the report uses the preset title.

period_fromstring · date-time

The start of the report period. Absent for an older queued report without a set period.

period_tostring · date-time

The end of the report period. Absent for an older queued report without a set period.

created_atstringrequired
completed_atstring
failed_atstring
download_readybooleanrequired
file_namestring

AuditReportOptionsRequest

report_versionstring

Accepted and ignored.

v2
deprecated
presetstring

A preset id from GET /audit/reports/presets: executive, access_review, privileged_access, leavers, change_management, security_events, drift, access_activity, iso27001, soc2 or pci_dss. Another value is refused with 400. Default: executive.

formatstring

The report file: pdf, csv (a ZIP archive with one CSV file per table) or json (one file with the principal.audit_report schema). Another value is refused with 400 and a sentence that names the formats. Default: pdf.

titlestring

The report title on the cover. The preset title when empty.

max length 120
sectionsarray of string

Section ids from GET /audit/reports/presets in any order. The report keeps the catalog order. The preset sections when empty. An unknown id is refused with 400.

timeline_modestring

Accepted and ignored.

exceptionsfull
deprecated
main_timeline_limitinteger

The most rows in the refused and failed actions and the activity by area tables. Default: 150.

min 1 · max 500
include_full_timeline_appendixboolean

false leaves the full timeline section out of the report. true adds it to the preset sections when sections is empty. Use sections instead.

deprecated
appendix_timeline_limitinteger

The most events in the full timeline section. 0 leaves the section out. Sent without sections, a value above 0 adds the section to the preset sections. Default: 1000.

min 0 · max 5000
top_events_modestring

Accepted and ignored.

aggregatedraw
deprecated
risk_sensitivitystring

How strictly the report rates risk. Default: balanced.

strictbalancedlenient
show_internal_identifiersboolean

Show internal ids next to names. Default: false.

include_timelineboolean

false leaves the refused, failed and sensitive actions section out of the report. Use sections instead.

deprecated
include_targetsboolean

false leaves the targets section out of the report. Use sections instead.

deprecated
include_top_eventsboolean

false leaves the most frequent events section out of the report. true adds it to the preset sections when sections is empty. Use sections instead.

deprecated
include_filters_appendixboolean

false leaves the methodology section out of the report. Use sections instead.

deprecated
include_raw_idsboolean

Takes precedence over show_internal_identifiers, as before. Use show_internal_identifiers instead.

deprecated
mask_sensitiveboolean

Shorten every IP address and network in the report to its /16 (IPv4) or /48 (IPv6) network and replace the host in URLs and in user@host:port endpoints with hidden. Default: true.

event_limitinteger

The older name of appendix_timeline_limit. Takes precedence over it, as before. Values below 0 count as 0 and values above 5000 as 5000.

deprecated
top_events_limitinteger

The most rows in the most frequent events table. Sent without sections, it adds that section to the preset sections. Default: 25.

min 1 · max 100

AuditReportPresetResponse

idstringrequired
groupstringrequired
frameworktopic
titlestringrequired
audiencestringrequired
descriptionstringrequired
default_period_daysintegerrequired
sectionsarray of stringrequired

AuditReportPresetsResponse

presetsarray of AuditReportPresetResponserequired
sectionsarray of AuditReportSectionResponserequired
target_kindsarray of AuditReportTargetKindResponserequired

AuditReportSectionResponse

idstringrequired
titlestringrequired
descriptionstringrequired
basisstringrequired

What the section shows: the current state of access, events of the period, the configuration, or none for the methodology.

current_stateperiodconfigurationnone
requiresarray of string

The permissions the section needs besides audit:read, for example targets:read and identities:read for sections that show the current targets and access. Empty when audit:read is enough.

AuditReportSummaryResponse

total_eventsintegerrequired
exceptions_countintegerrequired
total_targetsintegerrequired
managed_subjectsintegerrequired
unmanaged_subjectsintegerrequired
high_risk_targetsintegerrequired
report_pagesintegerrequired

Pages of a PDF report. 0 for a CSV or JSON report.

report_versionstringrequired
privileged_accessintegerrequired

How many access entries in scope are privileged.

events_truncatedbooleanrequired

The period had more events than the report reads. The event sections show the newest ones.

not_countedarray of string

Numbers of this summary that the report did not count, because none of its sections reads the events or the current access. Each of them is 0. Absent when the report counted every number.

total_eventsexceptions_countmanaged_subjectsunmanaged_subjectshigh_risk_targetsprivileged_access

AuditReportTargetKindResponse

kindstringrequired
postgresmysqlclickhousemongodbkubernetessshapplication
labelstringrequired

AuditResponsibilityResponse

initiatorstringrequired
executorstringrequired
owner_domainstringrequired

AuditTraceResponse

request_idstring
trace_idstring
span_idstring
correlation_idstring

AuditWhereResponse

servicestringrequired
endpointstring
methodstring
ipstring
user_agentstring

AuthGateSchedulingConfiguration

Pins Principal-managed SSO gate (oauth2-proxy) pods to schedulable nodes. Required for Kubernetes clusters where every node carries a taint. On update, a supplied empty object clears the configuration.

node_selectormap of string → string
tolerationsarray of AuthGateToleration
max items 16

AuthGateToleration

One pod toleration in Kubernetes core/v1 terms. Operator defaults to Equal.

effectstring
NoSchedulePreferNoScheduleNoExecute
keystring
max length 253
operatorstring
EqualExists
valuestring
max length 63

AuthSessionAuditCapabilities

readbooleanrequired

Read the audit log (administrators, viewers and holders of the exact audit:read scope).

AuthSessionCapabilities

What the caller may use in the selected organization and the installation, decided by the same permission check as the API routes. The console shows screens and actions by these flags and never derives them from role names.

AuthSessionInstallationCapabilities

health_readbooleanrequired

Read installation health and its audit trail.

maintenance_managebooleanrequired

Switch the installation maintenance mode.

AuthSessionOrganizationCapabilities

managebooleanrequired

Create, change and delete organization objects (administrators).

readbooleanrequired

Read every organization page (administrators and viewers).

AuthSessionOrgRef

idstring · uuidrequired
namestring

AuthSessionResponse

authenticatedbooleanrequired
csrf_tokenstringrequired
userAuthSessionUserrequired

AuthSessionUser

available_orgsarray of AuthSessionOrgRefrequired
capabilitiesAuthSessionCapabilitiesrequired

What the caller may use in the selected organization and the installation, decided by the same permission check as the API routes. The console shows screens and actions by these flags and never derives them from role names.

display_namestring
emailstring
groupsarray of string
org_idstring · uuidrequired
org_namestring
org_rolestring

Built-in role of the user in the selected organization.

adminvieweruser
permissionsarray of string (OrgPermission)required

Everything the user may do in the selected organization: the built-in role, the custom role and the roles of the groups the user belongs to directly. The console shows actions by these permissions.

access:applyaccess:manageaccess:readapplications:manageapplications:readaudit:readdrift:managedrift:readidentities:manageidentities:readjobs:managejobs:readmembers:managemembers:readnotifications:managenotifications:readorganization:readsecurity:managesecurity:readtargets:managetargets:readtokens:managetokens:read
rolesarray of stringrequired
scopesarray of stringrequired
system_scopesarray of stringrequired
substring · uuidrequired
usernamestring

BlockedApplicationCandidateResponse

idstring · uuidrequired
target_idstring · uuidrequired
source_hashstringrequired
resource_versionstring
discovered_atstring · date-timerequired
adoption_statestring (ApplicationAdoptionState)required
candidateadoption_previewedadoptedprincipal_managedexternal
application_target_idstring · uuid
decisionstringrequired
blocked
reasonstringrequired
reason_codestring (ApplicationCandidateReasonCode)required
missing_source_identitysystem_namespacekubernetes_api_hostwell_known_health_endpointsystem_componentacme_challengeidentity_provider_component

BulkApplyTargetSelectorRequest

modestringrequired
all_managedexplicit
target_idsarray of string · uuid

BulkOperationConfirmRequest

request_hashstringrequired

The request_hash the preview returned

BulkOperationCountsResponse

doneintegerrequired
failedintegerrequired
skippedintegerrequired
pendingintegerrequired

Rows waiting to run or still running

BulkOperationItemResponse

idstringrequired

The ID of the picked row as the request named it

statusstringrequired
pendingrunningdonefailedskipped
messagestringrequired

Why the row failed or was skipped, in words a person can act on. A pending row of a preview may name what it will do when that differs from the action itself, and a done row may name what else happened.

can be null
attemptintegerrequired

The attempt of the operation this row last ran in

job_idstring · uuid

The job the single request of this row started

Safe operation failure. Explanation and recommended_action come from the static failure-code registry. The only text not written by Principal is cluster_answer.

interruptionstring

Present when the end of the run, not the row itself, decided how the row ended. not_started: a skipped row the cancel kept from starting. job_still_running: a failed row whose job was still running when the run ended. A retry follows that job again instead of starting a second one. Read this field, not the message, which is text for a person and may change.

not_startedjob_still_running

BulkOperationRequest

actionstringrequired

The action to run on every picked row. accept_findings is refused until it is available.

add_to_groupremove_from_groupdelete_identitiesdiscover_targetscheck_drifttest_connectionset_discovery_schedulestart_managingtest_tunnelssync_connectorsapply_rulesdelete_rulesupdate_template_versionfix_findingsaccept_findingscreate_identitiesadd_group_to_applicationsremove_group_from_applications
idsarray of stringrequired

IDs of the picked rows, at most 500: a longer list is refused with a reason a person can act on. Duplicates and empty values are dropped. add_to_group and remove_from_group also take a person by email: a row whose email no user of the organization has fails with failure code NOT_FOUND. create_identities takes emails only, compared without case. add_group_to_applications and remove_group_from_applications take application IDs.

paramsobject

Parameters of the action. group_id for add_to_group, remove_from_group, add_group_to_applications and remove_group_from_applications. Optional group_id for create_identities adds the new and the existing people to that group. Display_names (email to the name of the new person) for create_identities, where a missing name is made from the email. Schedule for set_discovery_schedule, template_name and template_version for update_template_version, run_findings (finding ID to run finding ID) for fix_findings, rule_versions (rule ID to the rule version the person reviewed) for apply_rules: a rule changed since then fails its row instead of applying unreviewed access.

BulkOperationResponse

idstring · uuidrequired
job_idstring · uuidrequired

The job that runs the operation. Null for a preview waiting for its confirmation

can be null
actionstringrequired
paramsmap of string → anyrequired

Parameters of the action as the run recorded them. A delete_identities run also records item_kinds: the row ID to user, group or service, so the run is named by what it deleted after those objects are gone. A run on people or groups also records item_labels: the row ID to the name the person or group had when the run was planned, so its rows keep their names after a page reload and after the objects are gone. A run on a group (add_to_group, remove_from_group, create_identities into a group, add_group_to_applications, remove_group_from_applications) records group_label: the name the group had when the run was planned, so the run keeps naming it after the group is gone.

statusstring (entity.OperationLifecycle)required

Where a background operation is in the shared lifecycle (decision S1). outcome says how a finished operation ended and substate qualifies the state.

queuedrunningfinished
terminalbooleanrequired

Whether this operation has finished.

outcomestring (entity.OperationOutcome)required

Final operation result, or null while the operation is active.

successfailurecancelledpartial
can be null
substatestring (entity.OperationSubstate)required

Qualifies the status and outcome of an operation where they alone would hide what the operator must know. Null when none applies.

rollback_in_progressrolled_backneeds_repairoutcome_unknowninterruptedrequires_approvalholds_lockawaiting_confirmationexpiredtimed_outrescheduled
can be null

Safe operation failure. Explanation and recommended_action come from the static failure-code registry. The only text not written by Principal is cluster_answer.

attemptintegerrequired
totalintegerrequired
request_hashstring

Present on a preview. Confirm the preview with it

expires_atstring · date-time

Present on a preview. It can be confirmed until then

created_atstring · date-timerequired
updated_atstring · date-timerequired
finished_atstring · date-timerequired
can be null
itemsarray of BulkOperationItemResponserequired

CleanupAccountLeftResponse

namestringrequired

The account as the target names it, for example the PostgreSQL role or user@host on MariaDB, or the name of a Kubernetes object.

kindstring

The kind of a Kubernetes object or account, for example RoleBinding or ServiceAccount. Absent on other engines.

namespacestring

The namespace of a namespaced Kubernetes object or account. Absent for a cluster-wide object and on other engines.

created_by_principalbooleanrequired

True when Principal created the account. False when it was adopted.

CleanupPendingDecisionBindingResponse

binding_idstringrequired
role_namestringrequired
reasonstring

Why Principal cannot prove the account (kind unproven_account).

CleanupPendingDecisionResponse

Set while a cleanup task is stopped in cleanup_failed waiting for the operator. Principal never deletes data owned by a revoked account on its own.

kindstringrequired

Decision kind: owned_objects (keep or delete the objects a revoked account owns) or unproven_account (forget a ClickHouse account Principal cannot prove).

owned_objectsunproven_account
bindingsarray of CleanupPendingDecisionBindingResponserequired
requested_atstringrequired

CleanupTaskJobResponse

State of the background job that runs this cleanup, present while the task has a job: whether a retry is queued, running or waiting, and when it runs next.

statusstring (entity.OperationLifecycle)required

Where a background operation is in the shared lifecycle (decision S1). outcome says how a finished operation ended and substate qualifies the state.

queuedrunningfinished
terminalbooleanrequired

Whether the job has finished.

outcomestring (entity.OperationOutcome)required

Final operation result, or null while the operation is active.

successfailurecancelledpartial
can be null
substatestring (entity.OperationSubstate)required

Qualifies the status and outcome of an operation where they alone would hide what the operator must know. Null when none applies.

rollback_in_progressrolled_backneeds_repairoutcome_unknowninterruptedrequires_approvalholds_lockawaiting_confirmationexpiredtimed_outrescheduled
can be null

Safe operation failure. Explanation and recommended_action come from the static failure-code registry. The only text not written by Principal is cluster_answer.

next_retry_atstring · date-time
attemptsintegerrequired
max_attemptsintegerrequired
idstring

The job, with the fields below under the same names as in GET /admin/jobs/{id}. Present only when the caller may read jobs (jobs:read). Without that right the job carries only its state above.

job_typestring
created_atstring · date-time
completed_atstring · date-time
failed_atstring · date-time
updated_atstring · date-time
created_bystring
payload_summaryJobMetadataResponse
instance_idstring

ID of the target the job works on.

target_namestring
last_errorstring

Raw error of the job, only for a caller who may manage jobs, as in GET /admin/jobs/{id}.

execution_stepsarray of object

Steps of the job. Error_message only for a caller who may manage jobs.

CleanupTaskResponse

Safe operation failure. Explanation and recommended_action come from the static failure-code registry. The only text not written by Principal is cluster_answer.

State of the background job that runs this cleanup, present while the task has a job: whether a retry is queued, running or waiting, and when it runs next.

terminalbooleanrequired

Whether this operation has finished.

outcomestring (entity.OperationOutcome)required

Final operation result, or null while the operation is active.

successfailurecancelledpartial
can be null
substatestring (entity.OperationSubstate)required

Qualifies the status and outcome of an operation where they alone would hide what the operator must know. Null when none applies.

rollback_in_progressrolled_backneeds_repairoutcome_unknowninterruptedrequires_approvalholds_lockawaiting_confirmationexpiredtimed_outrescheduled
can be null
attemptsinteger
created_atstring
engine_kindstring
idstring
job_idstring
last_errorstring
not_startedboolean

The removal was accepted, but its job was never queued (for example the database failed in between) and nothing has run for two minutes. A retry or another delete request queues it again.

owned_objects_decisionstring

Operator's recorded answer to the owned objects decision, if any.

keep_datadelete_data
account_decisionstring

Operator's recorded answer to an unproven account request, if any.

forget

Set while a cleanup task is stopped in cleanup_failed waiting for the operator. Principal never deletes data owned by a revoked account on its own.

removes_from_principal_onlyboolean

True after a failed target deletion was told to finish with remove_from_principal_only.

kept_unconfirmed_accountsarray of string

Accounts the target deletion left on the target because Principal can't confirm it created them.

accounts_left_on_targetarray of CleanupAccountLeftResponse

Only for a target cleanup task in cleanup_failed: the accounts Principal still manages on the target, created by Principal or adopted. They stay on the target when the deletion finishes with remove_from_principal_only. Absent when there are none.

scope_idstring
scope_kindstring

Where a background operation is in the shared lifecycle (decision S1). outcome says how a finished operation ended and substate qualifies the state.

queuedrunningfinished
updated_atstring

ClickHouseConfiguration

topology_modestringrequired
singleon_cluster
cluster_namestring
min length 1 · max length 255

ClickHouseConnectionDetails

Secret-free ClickHouse endpoint metadata. Admin credentials and TLS material are never returned.

hoststringrequired
portintegerrequired
databasestringrequired
protocolstringrequired
nativehttp
securebooleanrequired
custom_tls_server_namebooleanrequired

Whether clients must provide the separately managed TLS server name. The value is never returned.

custom_ca_requiredbooleanrequired

Whether clients must provide the separately managed custom CA certificate. The certificate is never returned.

ClickHouseGrantResponse

sourcestringrequired
directrole
source_rolestring
role_patharray of string
privilegestringrequired
databasestring
tablestring
columnsarray of string
is_partial_revokebooleanrequired
grant_optionbooleanrequired
is_wildcardbooleanrequired
shape_unverifiedboolean

The grant may be a wildcard that ClickHouse printed without its '*'. Discovery could not confirm it.

ClickHouseRoleGrantResponse

role_namestringrequired
role_patharray of string
is_defaultbooleanrequired
with_admin_optionbooleanrequired

ClickHouseUserResponse

adoptablebooleanrequired

True when Principal can take the account under management. Adoption refuses the rest. Whether it is already managed is in principal.ownership_state.

user_namestringrequired
storage_namestringrequired
auth_typesarray of stringrequired
account_audiencestringrequired
humansystem
system_reasonstring
manageabilitystringrequired
principal_managedadoptableconfig_managedsystem
role_grantsarray of ClickHouseRoleGrantResponserequired
direct_grantsarray of ClickHouseGrantResponserequired
effective_grantsarray of ClickHouseGrantResponserequired
discovered_atstringrequired
updated_atstringrequired

ConfirmDefaultBaselineRequest

default_inherited_baselinearray of map of string → any

ConfirmPendingIdentityAuthBindingRequest

issuerstringrequired

Canonical issuer from the verified OIDC ID token.

min length 1 · max length 2048
dex_connector_idstringrequired

Dex connector id string, not connector_configs.id.

min length 1 · max length 255
subjectstringrequired

Immutable upstream subject from Dex federated_claims.user_id.

min length 1 · max length 1024

ConnectionCheckResult

namestringrequired

Stable code of the check, for example database_connectivity.

labelstringrequired

Name of the check for people, for example "Connect and sign in".

statusstring (ConnectionCheckStatus)required
passedfailedskipped
messagestring

Outcome of the check in plain words. Never contains driver or library text.

technical_detailstring

For a failed check, the server's error code and text or the innermost driver error, shown only in the technical details. Never contains addresses or credentials.

duration_msinteger · int64

ConnectionCheckStatus

string (ConnectionCheckStatus)
passedfailedskipped

ConnectorDeleteMode

ConnectorDeleteTargetSummary

countinteger
target_idstring
target_namestring

ConnectorDuplicateAccount

idstring · uuidrequired
external_idstringrequired
usernamestringrequired
emailstringrequired
display_namestringrequired
avatar_urlstring
matchstringrequired

email or username when the account matches a person only by that field, several when it matches several people fully

emailusernameseveral
candidatesarray of ConnectorDuplicateCandidaterequired
first_seen_atstring · date-timerequired

ConnectorDuplicateCandidate

idstring · uuidrequired
display_namestringrequired
usernamestringrequired
emailstring
sourcesarray of stringrequired
has_accountbooleanrequired

The person already has an account of this connector, so Same person can't choose them.

ConnectorDuplicateDecision

duplicate_idstring · uuidrequired
decisionstringrequired
linkcreate
identity_idstring · uuid

The person to link the account to, one of the suggested people. Required for link.

ConnectorDuplicateDecisionsRequest

itemsarray of ConnectorDuplicateDecisionrequired
min items 1 · max items 500

ConnectorDuplicateDecisionsResponse

decidedintegerrequired
sync_job_idstring · uuid

The sync that applies the decisions. Absent when a sync already runs.

ConnectorDuplicateListResponse

ConnectorResponse

created_atstring
descriptionstring
enabledboolean
idstring
last_sync_atstring
last_sync_statusstring
pendingrunningcompletedfailedrequires_approval
mapping_defaultboolean

True when the field mapping is the provider default Principal stores for a new connector.

namestring
organization_idstring
schedulestring
secret_refstring
specmap of string → any

The settings the connector uses, under canonical names only (base_url, groups, excluded_group_suffixes, page_size, include_outside_collaborators, sync_bot_and_service_accounts): a value stored under an old name is shown under its canonical name, and where names disagree the value the connector uses is shown. Clients show and send this form.

spec_conflictsarray of string

Canonical settings the stored spec names under several names with different values. Spec shows the value the connector uses for each. Saving the connector with the shown settings resolves them.

typestring (ConnectorType)
gitlabgooglegithubldapkubernetescustom
updated_atstring

The sync a connector has not finished, whoever queued it (Run sync now, an approval or the schedule): its state, its attempts and, after a failed attempt the queue retries, when the next one may start and why the last one failed. Reads of connectors carry it. A connector without an unfinished sync has none.

ConnectorSyncJobResponse

The sync a connector has not finished, whoever queued it (Run sync now, an approval or the schedule): its state, its attempts and, after a failed attempt the queue retries, when the next one may start and why the last one failed. Reads of connectors carry it. A connector without an unfinished sync has none.

job_idstring · uuidrequired
statusstring (entity.OperationLifecycle)required

Where a background operation is in the shared lifecycle (decision S1). outcome says how a finished operation ended and substate qualifies the state.

queuedrunningfinished
terminalbooleanrequired
outcomestring (entity.OperationOutcome)required

Final operation result, or null while the operation is active.

successfailurecancelledpartial
can be null
attemptsintegerrequired

Attempts that ran and failed.

max_attemptsintegerrequired
next_retry_atstring · date-time

When the next attempt may start after a failed one.

Safe operation failure. Explanation and recommended_action come from the static failure-code registry. The only text not written by Principal is cluster_answer.

ConnectorType

string (ConnectorType)
gitlabgooglegithubldapkubernetescustom

ConnectorTypeResponse

typestring (ConnectorType)required
gitlabgooglegithubldapkubernetescustom
labelstringrequired

Name to show for the type

categorystringrequired

Group of the type in a picker, one of the response categories

availabilitystring (TypeAvailability)required

available - Principal can create and use this type now. Coming_soon - listed for the roadmap, Principal refuses to create, test or sync it.

availablecoming_soon
required_fieldsarray of stringrequired

Fields of POST /connectors that a connector of this type needs, as dotted paths in the request body. Spec may be an empty object when no spec.* field is listed. Empty for a coming_soon type, which can't be created

ConnectorTypesResponse

categoriesarray of stringrequired

Categories in display order

itemsarray of ConnectorTypeResponserequired
totalintegerrequired
min 0

ConsoleSignInMethodListResponse

itemsarray of ConsoleSignInMethodResponserequired
redirect_uristringrequired

The callback address to register in the application of each provider.

ConsoleSignInMethodRequest

typestringrequired
githubgooglemicrosoftoidcgitlabldap
namestringrequired
max length 64
client_idstring
client_secretstring
issuerstring
tenantstring
hosted_domainstring
connector_idstring

ConsoleSignInMethodResponse

idstringrequired
typestringrequired
githubgooglemicrosoftoidcgitlabldap
namestringrequired
client_idstring
issuerstring
tenantstring
hosted_domainstring
connector_idstring
created_atstring · date-timerequired
updated_atstring · date-timerequired

CreateAccessProfileTemplateRequest

namestring
descriptionstring

CreateAccessProfileTemplateResponse

policy_idsarray of string
policy_countinteger

CreateAccessTemplateRequest

bodymap of string → anyrequired
default_ttlstring

TTL the rule wizard offers for this template, an ISO 8601 duration such as PT8H, no longer than max_ttl. Principal never adds it to a rule by itself.

example "PT8H"
descriptionstring
enginestringrequired
postgreskubernetesmysqlclickhousemongodbapplicationssh
namestringrequired

Template name. Leading and trailing whitespace is removed. The response returns the stored name. The name is the key of the template in its address, so it can't contain "/" (400 with details.field=name).

min length 1 · max length 255
max_ttlstring

Longest TTL a rule of this template may ask for (L-14), an ISO 8601 duration of 15 minutes to 30 days such as P1D. Absent means the 30-day limit of every rule with a TTL.

example "P1D"
versioninteger

CreateAuditReportRequest

CreateAuditReportResponse

terminalbooleanrequired

Whether this operation has finished.

outcomestring (entity.OperationOutcome)required

Final operation result, or null while the operation is active.

successfailurecancelledpartial
can be null
substatestring (entity.OperationSubstate)required

Qualifies the status and outcome of an operation where they alone would hide what the operator must know. Null when none applies.

rollback_in_progressrolled_backneeds_repairoutcome_unknowninterruptedrequires_approvalholds_lockawaiting_confirmationexpiredtimed_outrescheduled
can be null
job_idstringrequired
statusstring (entity.OperationLifecycle)required

Where a background operation is in the shared lifecycle (decision S1). outcome says how a finished operation ended and substate qualifies the state.

queuedrunningfinished

CreateConnectorRequest

credentialsmap of string → stringrequired
descriptionstring
max length 1000
enabledboolean
namestringrequired
min length 1 · max length 100
schedulestring

Interval of scheduled syncs as an ISO 8601 duration (PT15M, PT1H, P1D, P1W), at least 5 minutes: a shorter one, PT0M or P0D included, is rejected with 400.

max length 50
specmap of string → anyrequired

Provider settings. GitLab and GitHub use canonical names: base_url, groups, excluded_group_suffixes, page_size, root_ca and insecure_skip_verify (GitLab: a PEM CA certificate of a self-managed server and whether to accept any server certificate. Changing either needs a new token), include_outside_collaborators and sync_bot_and_service_accounts (GitHub). Old names (url, baseUrl, api_url, group, pageSize, excludedGroups, excluded_groups, exclude_group_suffixes, includeOutsideCollaborators, syncBotAndServiceAccounts) are deprecated and accepted until 2027-01-01: they are saved under the canonical names, and names of one setting with different values are rejected with 400. LDAP uses url (ldap:// or ldaps://), start_tls, insecure_skip_verify, root_ca, directory_type (active_directory or openldap), bind_dn, user_base_dn, user_filter, group_base_dn, group_filter, groups and excluded_group_suffixes. Its credential is bind_password.

typestring (ConnectorType)required
gitlabgooglegithubldapkubernetescustom

CreateIdentityAuthBindingRequest

issuerstringrequired

Canonical issuer from the verified OIDC ID token.

min length 1 · max length 2048
dex_connector_idstringrequired

Dex connector id string (for example gitlab or principal), not connector_configs.id.

min length 1 · max length 255
subjectstringrequired

Immutable upstream subject from Dex federated_claims.user_id.

min length 1 · max length 1024

CreateIdentityRequest

descriptionstring
max length 1000
display_namestring
max length 255
external_idstring

Required, except for a service account (service_account=true) that does not sign in to Principal (no principal_login, principal_password or send_invitation). Such a service account without it gets a login made from display_name: Latin letters and digits joined by hyphens, Cyrillic transliterated, at most 32 characters with a -2, -3 suffix when the login is taken. Its accounts on targets are named after the login. A service account's external_id that another identity already has is refused with 409. It is refused with 400 when a member or an account found on a target already has a name it would give on targets, and when that name is reserved, such as root or postgres.

max length 255
kindstring (IdentityKind)required
usergroupservice
managedboolean

Deprecated compatibility field. Ownership is derived as false for public creates. Omit this field or send false. Sending true is rejected.

deprecated
metadatamap of string → any

Custom attributes, for example email. Server-owned keys are ignored: principal_static_account, target_account_adoption, target_account_key, github_account_type, principal_password_rotated_at, secret_ref.

principal_loginboolean
principal_passwordstring

Manual password. Validated in UTF-8 bytes: 12-72 bytes, including uppercase, lowercase, digit, and special characters. Omit to auto-generate.

min length 12 · max length 72
service_accountboolean

Create a service account: a user an application uses instead of a person. kind=user only, otherwise 400. It is the same user for rules, groups, credentials and targets.

secret_locationstring

Requires service_account=true. Where the application's secret is kept or is to be kept, as a path in the organization secret store, for example secret/data/billing/postgres: segments of letters, digits and . _ - : # separated by slashes. Never the secret itself. A value that is not such a path is rejected with 400.

max length 512
send_invitationboolean

Email a one-time password setup link after creation. Omitted or false disables invitations. Requires configured SMTP, a public base URL, kind=user, Principal login, and an email external_id. Delivery failure retains the user and returns invitation_status=failed with the generated password for recovery. The link expires in 24 hours.

sourcesarray of string

Deprecated compatibility field. Ownership is derived as [manual] for public creates. Omit this field, send an empty array, or send exactly [manual]. Other values are rejected.

deprecated

CreatePolicyRequest

database_selectorDatabaseSelectorRequest
descriptionstring

What the access is for, saved as metadata.description of the rule. When the template is added to an existing rule of the same subject and target, that rule keeps its own description and gets this one only if it has none. Null or an empty string sets no description.

max length 1000 · can be null
expires_atstring · date-time

Rule with a TTL (I17): when to remove the rule, 15 minutes to 30 days from now. A personal rule only. A group rule refuses it with policy.ttl_not_allowed. On PostgreSQL, MariaDB, ClickHouse, MongoDB and Kubernetes the rule gets its own temporary account, SSH hosts and applications take it on the personal rule. A Kubernetes target with Deckhouse authorization rules refuses it with policy.ttl_not_allowed. Give either expires_at or ttl.

include_nested_groupsboolean

For a group subject, include leaf members of known nested groups. Omitted or false limits the new rule to direct members. Expansion is tenant-scoped and bounded.

group_access_modestring

How a new group rule on a PostgreSQL, MariaDB or ClickHouse target gives access. member_grants (the default) copies the rule's grants to every member's own account. group_role keeps them once in a role of the group without sign-in and grants each member's account the membership in it. Fixed at creation. A template added to the group's existing rule keeps that rule's mode and refuses the other one.

member_grantsgroup_role
kubernetes_namespacesarray of string

Typed placement of a Kubernetes rule: the namespaces the rule binds in. Required when template_name references a Kubernetes template with metadata.kubernetes_rbac_profile_mode=shared_by_template_v1. Optional for direct rules (stored as the rule scope). Rejected for other template modes until unified materialization (accessTemplateSplit stage 3).

metadatamap of string → any

Common field

rulesarray of PolicyRuleRequest

Direct rules mode - mutually exclusive with template_name

subject_idstringrequired
target_idstringrequired
target_account_link_idstring

Optional adopted or principal-created target-local account to pin this rule to.

template_namestring

Template mode - mutually exclusive with rules

template_varsmap of string → any
ttlstring

Rule with a TTL as an ISO 8601 duration of days, hours, minutes or seconds, for example PT2H or P7D. 15 minutes to 30 days. Give either ttl or expires_at.

example "PT2H"
template_versioninteger

CreatePolicyResponse

expires_atstring · date-time

When Principal removes this rule with a TTL (I17). Absent for a rule without one.

expiry_apply_not_startedboolean

Set only in the response to PUT /policies/{id} that changes the expiry: Principal saved the new expiry but could not start the Apply that brings it to the account on the database.

last_apply_failureOperationFailureResponse

Safe operation failure. Explanation and recommended_action come from the static failure-code registry. The only text not written by Principal is cluster_answer.

Safe operation failure. Explanation and recommended_action come from the static failure-code registry. The only text not written by Principal is cluster_answer.

applied_atstring
changes_not_appliedbooleanrequired

Saved changes that the last successful apply did not materialize. True when the rule state recorded by that apply (effective permissions, placement, template versions, layout and materialization switches of the snapshot it applied) differs from the current rule. Rules applied before the state was recorded fall back to updated_at later than applied_at plus 5 seconds after a success or partial success. Always false for per-member copies of a group rule. Renames, apply status writes and other bookkeeping never set it.

cleanup_last_errorstring
cleanup_statusstring
delete_requestedcleanup_runningcleanup_failedcleanup_completed
cleanup_task_idstring
created_atstring
created_bystring
display_namestringrequired

Canonical human name of the rule, the one every screen and message uses: the rule's own name. Else "{Template} for {Subject}" for a template rule. Else "Access for {Subject} on {Target}". A rule inherited from a group gets the group rule's name. Missing subject or target names are left out. Machine-generated names and IDs are never used.

descriptionstring

What the access is for, from metadata.description of the rule. Absent when the rule has none.

idstring
inherited_from_group_display_namestring
inherited_from_group_external_idstring

Identifier of the group the access came through in its source, as the connector group mapping sets it. With the default mapping it is the full path for GitLab and GitHub groups (acme/platform/backend) and the address for Google groups. Empty for groups not linked to a connector and for callers without identities:read.

inherited_from_group_idstring

Group inheritance fields

include_nested_groupsboolean

Whether this group rule includes members of nested groups.

is_inherited_bindingboolean
target_account_link_idstring

Set on the rule of an adopted target account. Assigning a template to the identity adds it to the identity's rule without a target account link, never to this rule.

last_apply_statusstring
successpartial_successfailed
latest_plan_riskstring

Risk level of the latest plan (low, medium, high, critical)

latest_plan_atstring

When the latest plan was created

latest_plan_idstring

ID of the most recent plan for this policy

materialization_modestring
kubernetes_user_rbackubernetes_group_rbackubernetes_service_account_rbacgroup_roleapplication_group
group_access_modestring

Access mode of a group rule on a PostgreSQL, MariaDB or ClickHouse target, and of the member rows it keeps. member_grants copies the rule to every member's account, group_role keeps it in a role of the group that members are granted. Absent on other rules.

member_grantsgroup_role
group_role_namestring

The role a group rule in the group_role mode keeps on the target. Absent otherwise.

kubernetes_namespacesarray of string

Namespaces contributed by this policy to shared Kubernetes RBAC profiles.

kubernetes_rbac_layoutstring

Effective server-owned Kubernetes RBAC object layout. Every new rule is materialized as unified_v1. The other values only appear on policies created before that layout and disappear as those are rematerialized. A policy still on the pre-stage-3 Role-per-namespace layout carries no value at all.

unified_v1shared_clusterrole_v1shared_profile_v1
metadatamap of string → any
organization_idstring
organization_namestring
rulesarray of PolicyRuleResponse
membershipsarray of PolicyMembershipResponse

Memberships of the rule's account in other roles (PostgreSQL). The rule asks for them like for its grants: an apply grants a missing one back.

unobserved_accessarray of string

Kinds of access the engine of the target does not read, such as column privileges on PostgreSQL. An empty drift says nothing about them.

future_objects_named_rowFutureObjectsNamedRowResponse

The first row of a PostgreSQL rule or template that names its objects by name or by a name mask while Future objects are on. Future objects reach only a row on every object of its kind in a schema, so the switch reaches none of these objects. Only a rule or template saved before Principal refused such a save carries it, and its next save is refused until Future objects are off or the row covers every object of its kind. A rule carries it in every read. A template only in GET /access-templates/{name} and the version read.

subject_display_namestring

Subject info fields (enriched from Identity)

subject_external_idstring

Identifier of a group subject in its source, as the connector group mapping sets it. With the default mapping it is the full path for GitLab and GitHub groups (acme/platform/backend) and the address for Google groups. Empty for groups not linked to a connector, for people and service accounts, and for callers without identities:read.

subject_idstring
subject_kindstring

"user", "group", "service"

target_idstring
target_namestring

Name of the target. Absent when the target could not be read.

target_kindstring

Kind of the target, such as postgres or kubernetes. Absent when the target could not be read.

updated_atstring
versioninteger
warningsarray of string
policy_idstring · uuidrequired

The policy the request created, updated or found unchanged (equals id)

policy_versionintegerrequired

Current version of that policy after the request (equals version)

resultstring (PolicyMutationResult)required

What an assignment did to the rule of the identity on the target, decided by the write itself: created a new rule, updated the existing one, or found it already granting that (unchanged. Nothing was written).

createdupdatedunchanged

CreateSignInExpectationRequest

method_idstringrequired
emailstringrequired

CreateSSHKeyRequest

namestringrequired
min length 1 · max length 255

CreateSSHTunnelRequest

namestringrequired
min length 1 · max length 100
remote_hoststring

Host the tunnel forwards to, as seen from the bastion. Set together with remote_port. A value wins over the endpoint of the linked target.

remote_portinteger

Port the tunnel forwards to. Set together with remote_host.

min 1 · max 65535
ssh_hoststringrequired
ssh_key_idstringrequired
ssh_portinteger
min 1 · max 65535
ssh_userstringrequired
min length 1 · max length 255
sudo_passwordstring

Password for sudo operations on remote server

min length 1 · max length 255
target_idstring

PostgreSQL target to link the tunnel to. The forwarded endpoint is taken from its connection string.

test_tokenstringrequired

Token from successful test-connection

CreateTargetRequest

Pins Principal-managed SSO gate (oauth2-proxy) pods to schedulable nodes. Required for Kubernetes clusters where every node carries a taint. On update, a supplied empty object clears the configuration.

kubernetes_user_connectionKubernetesUserConnectionConfiguration

Kubernetes user kubeconfig connection, independent of the management connection. Omit to preserve the current setting on update. An empty object restores management defaults. A custom server with no CA uses the client system trust store. TLS verification is always enabled.

connection_refstringrequired
min length 10

Settings of an SSH target. A host has its own connection. A fleet names hosts by list and labels.

drift_policymap of string → any

Compatibility block for clients of the previous release. Use applications_on_bundled_dex. A response shows the management address of this Principal's Dex only when the target's SSO applications are managed there and kubectl also signs in through this Principal's Dex, so older clients that read any address as "kubectl signs in through this Principal's Dex" stay right. In a request, the address of this Principal's Dex turns that management on. An empty object or an omitted block changes nothing (before this release an empty object turned it off). Any other address is refused. When a request carries applications_on_bundled_dex, that field decides and this block only has to name no other address. The target does not store this block.

applications_on_bundled_dexboolean

Whether the SSO applications of a Kubernetes target are managed in this Principal's own Dex. It is independent of kubectl sign-in (dex_custom): a target may have such applications without any kubectl sign-in, and they always use this Principal's Dex issuer and management address. In a request, true or false changes it. Omitted, it stays as it is (a new target gets true when kubectl signs in through this Principal's Dex). Only Kubernetes targets have it: a response carries it for them and omits it for other kinds, and a request for another kind is refused.

protect_new_ingressesboolean

Whether Principal protects every Ingress created in the Kubernetes target after this setting is turned on: the Ingress gets the SSO gate annotations at creation, Principal adds it as an application with its own Dex client and SSO gate, and only people with a rule on that application sign in. Ingresses that existed before stay as they are. System namespaces, Principal and Dex objects, cert-manager ACME solvers and Ingresses with the annotation principal.io/protect: "false" are not touched. Turning it off stops protecting new Ingresses and keeps the gates already created. It needs the target's SSO applications managed in this Principal's Dex. In a request, true or false changes it, omitted it stays as it is (a new target created without it has it off). Only Kubernetes targets have it.

k8s_drift_policystring
ignorealertremediate
kindstring (TargetKind)required
postgreskubernetesmysqlclickhousemongodbapplicationssh
kube_contextstring
managedboolean
managed_by_annotationstring

Value for the principal.io/managed-by label on K8s RBAC objects. Must be unique per cluster.

namestringrequired
min length 1 · max length 255
organization_idstring
ssh_tunnel_idstring
discovery_schedulestring
test_connectionboolean

CredentialDeliveryResponse

A credential delivery Principal stopped retrying by itself.

job_idstring · uuidrequired
kindstringrequired

member_credentials — the Kubernetes credentials of one group member after a membership change. Target_kubeconfigs — the kubeconfig snapshots of one Kubernetes target after its edit.

member_credentialstarget_kubeconfigs

An object of the organization a problem concerns.

An object of the organization a problem concerns.

An object of the organization a problem concerns.

attemptsintegerrequired
max_attemptsintegerrequired
first_attempt_atstring · date-timerequired
gave_up_atstring · date-time

Safe operation failure. Explanation and recommended_action come from the static failure-code registry. The only text not written by Principal is cluster_answer.

CredentialItemResponse

account_display_namestring
connectionany

PostgreSQLConnectionDetails, MySQLConnectionDetails, ClickHouseConnectionDetails, MongoDBConnectionDetails, or KubernetesConnectionDetails. Empty for SSH targets: POST /ssh/certificates returns the hosts with the certificate.

credential_ownershipstring
externalprincipal_managedunknown
ownership_statestring
unmanagedprincipal_createdadoptedorphaned
reveal_availableboolean
rotate_availableboolean
rotate_requires_confirmationboolean
rotation_confirmation_kindstring
unavailable_reasonstring

Why Principal can't give this credential now, safe to show. Set only then. The item carries no secret and can't be revealed. Whether it can be rotated is rotate_available: rotating a damaged kubeconfig of a target account issues a working one.

unavailable_fixstring

The action that gives a working credential again, set with unavailable_reason when one does: rotate means Rotate issues a new credential (rotate_available is then true). unavailable_reason names only the cause then. The screen names the action for the viewer.

rotate
credentialsany

UsernamePasswordCredentials, KubeconfigCredentials or, for SSH targets, {"type": "ssh_certificate"}: the identity signs in with a certificate from POST /ssh/certificates, there is no secret to reveal or rotate. While rotation_state is not_confirmed, UsernamePasswordCredentials also carries unconfirmed_password, the new password of the cut-off change: the target accepts either it or password.

rotation_statestring

not_confirmed while a password change cut off after it was sent waits for a check: Principal keeps both passwords and doesn't know which one the target accepts. POST /identities/{id}/credentials/rotation-check settles it. A Rotate finishes the change with the same new password.

not_confirmed
rotation_started_atstring · date-time

When the unconfirmed password change was sent.

expires_atstring · date-time

The temporary account of a rule with a TTL (I17) works until this moment. Principal removes it then. Absent for a permanent account.

secret_shown_atstring · date-time

When the current secret of this account was first revealed. Two answers with the same moment carry the same secret, so a client keeps the value it already holds when a later answer hides it as shown once.

target_idstring
target_account_link_idstring
target_kindstring (entity.TargetKind)

postgresql, mysql, clickhouse, mongodb, kubernetes. Absent, like target_name, when the target can't be read. The item then carries unavailable_reason.

postgreskubernetesmysqlclickhousemongodbapplicationssh
target_namestring

CredentialRotationCheckRequest

target_idstringrequired
target_account_link_idstring

The target-local account whose password change to check. Omitted for the identity's own account.

CredentialRotationCheckResponse

rotation_outcomestringrequired

confirmed: the new password signs in, and Principal stores it. previous_confirmed: the change didn't take effect, the stored password signs in, and the new one was dropped. not_confirmed: Principal still can't tell. Both passwords stay. none: no password change waited for a check.

confirmedprevious_confirmednot_confirmednone

CredentialsSummaryResponse

known_emptybooleanrequired

True when the identity certainly has no credentials, so the console says so without a reveal

DatabaseSelectorRequest

modestringrequired
allexplicitpattern
databasesarray of string
patternstring

DeleteConnectorRequest

modestring (ConnectorDeleteMode)
keep_stalepurge

DeleteConnectorResponse

DeleteConnectorSummaryResponse

bindings_totalinteger
group_policies_totalinteger
groups_totalinteger
identities_totalinteger
targets_toparray of ConnectorDeleteTargetSummary
users_kept_on_purgeinteger

Users that deleting the connector together with its users keeps as no longer synced: they belong to another organization or are the last administrator of an organization.

users_totalinteger

DeletePolicyResponse

terminalbooleanrequired

Whether this operation has finished.

outcomestring (entity.OperationOutcome)required

Final operation result, or null while the operation is active.

successfailurecancelledpartial
can be null
substatestring (entity.OperationSubstate)required

Qualifies the status and outcome of an operation where they alone would hide what the operator must know. Null when none applies.

rollback_in_progressrolled_backneeds_repairoutcome_unknowninterruptedrequires_approvalholds_lockawaiting_confirmationexpiredtimed_outrescheduled
can be null
cleanup_task_idstring
created_atstring
job_idstring
messagestring

Where a background operation is in the shared lifecycle (decision S1). outcome says how a finished operation ended and substate qualifies the state.

queuedrunningfinished

DeleteTargetResponse

terminalbooleanrequired

Whether this operation has finished.

outcomestring (entity.OperationOutcome)required

Final operation result, or null while the operation is active.

successfailurecancelledpartial
can be null
substatestring (entity.OperationSubstate)required

Qualifies the status and outcome of an operation where they alone would hide what the operator must know. Null when none applies.

rollback_in_progressrolled_backneeds_repairoutcome_unknowninterruptedrequires_approvalholds_lockawaiting_confirmationexpiredtimed_outrescheduled
can be null
cleanup_task_idstring
created_atstring
job_idstring
messagestring

Where a background operation is in the shared lifecycle (decision S1). outcome says how a finished operation ended and substate qualifies the state.

queuedrunningfinished
revoke_skippedstring

Set when the deleted target was in Observe: Principal deleted it without revoking access, whatever revoke_managed asked for, and the accounts stay on the target.

target_in_observe
accounts_leftarray of string

With revoke_skipped, the full list of accounts Principal managed on the target that stay on it, without a limit. A target with hundreds of accounts lists all of them.

DependencyEdgeDTO

fromstring
tostring
typestring

"depends_on", "references"

DependencyGraphDTO

DependencyNodeDTO

actionstring
idstring
labelstring
resource_typestring
risk_levelstring

DeprecatedApplicationAccessGroupResponse

idstringrequired
namestringrequired
source_idstringrequired

DeprecatedApplicationAccessGroupsUpdateRequest

group_idsarray of string · uuidrequired

DeprecatedApplicationAccessResponse

application_idstring · uuidrequired
oauth_appsarray of ApplicationOAuthAppResponserequired
access_sourcesarray of ApplicationAccessSourceResponserequired
dex_connectorsarray of ApplicationDexConnectorResponserequired
auth_gate_optionsApplicationAuthGateOptionsResponserequired

DeprecatedApplicationAccessUpdateRequest

group_idsarray of string · uuidrequired
user_idsarray of string · uuidrequired

DeprecatedApplicationAccessUserResponse

idstringrequired
namestringrequired
external_idstringrequired
usernamestring
source_idstringrequired

DetachPolicyTemplateRequest

versionintegerrequired

Policy version the caller saw (optimistic locking)

min 1

DexClientSecretPreviewResponse

presentbooleanrequired
redactedbooleanrequired
intentstring
generatepreservedelete
credential_ref_intentstring
createreusedelete

DexCustomConfiguration

authz_modestring
deckhouse_carrbac_groups
auto_reconcileboolean
connector_idstring
dex_provider_namestring
dex_provider_typestring
enabledboolean
last_sync_atstring
oidc_client_idstring
oidc_groups_modestring
legacy_groupsfederated_snapshot
oidc_issuer_urlstring
sourcestring

Which Dex the target signs kubectl in through. bundled is this Principal's own Dex: the response shows its current issuer, client and management address, and the target follows a change of it. custom is a Dex or OIDC provider the target names itself. Principal can't manage its clients. Read-only: a request chooses the bundled Dex by leaving out oidc_issuer_url and oidc_client_id (or sending the bundled Dex's own), and a custom Dex by sending another pair.

bundledcustom
read only

DexDiscoveredProvider

namestringrequired
typestringrequired
oidc_issuer_urlstring

DexDiscoveryFailureReason

string (DexDiscoveryFailureReason)
no_crdno_providerspermission_deniedissuer_not_founddiscovery_error

DexDiscoveryResult

statusstring (DexDiscoveryStatus)required
auto_filledselection_requiredfailedskipped
providersarray of DexDiscoveredProvider
issuer_urlstring
suggested_client_idstring
selected_provider_namestring
selected_provider_typestring
failure_reasonstring (DexDiscoveryFailureReason)
no_crdno_providerspermission_deniedissuer_not_founddiscovery_error
failure_messagestring

DexDiscoveryStatus

string (DexDiscoveryStatus)
auto_filledselection_requiredfailedskipped

DexGRPCConfiguration

Compatibility block for clients of the previous release. Use applications_on_bundled_dex. A response shows the management address of this Principal's Dex only when the target's SSO applications are managed there and kubectl also signs in through this Principal's Dex, so older clients that read any address as "kubectl signs in through this Principal's Dex" stay right. In a request, the address of this Principal's Dex turns that management on. An empty object or an omitted block changes nothing (before this release an empty object turned it off). Any other address is refused. When a request carries applications_on_bundled_dex, that field decides and this block only has to name no other address. The target does not store this block.

addressstring
min length 1 · max length 512
insecureboolean
credential_refstring
min length 1 · max length 512
timeout_secondsinteger
min 1 · max 60

DiscoverResponse

instance_idstring

Legacy field for v1 API

job_idstring
job_typestring

Job type identifier

messagestring
target_idstring

New field for v2 API

DiscoveryMetadata

as_ofstring

Timestamp of the discovery data

staleboolean

Whether the cache is considered stale

DiscoveryResourceResponse

itemsarray of string
job_idstring

Included when refresh=true triggers async job

DiscoverySuggestedPatternsResponse

DriftAcceptanceResponse

reasonstringrequired
untilstring · date-timerequired

When the acceptance ends. Null means it has no end date.

can be null
accepted_atstring · date-timerequired
accepted_bystring · uuid

Identity that accepted the finding. Absent when that identity no longer exists.

accepted_by_namestring

DriftCheckRequest

instance_idstringrequired

DriftCheckResponse

terminalbooleanrequired

Whether this operation has finished.

outcomestring (entity.OperationOutcome)required

Final operation result, or null while the operation is active.

successfailurecancelledpartial
can be null
substatestring (entity.OperationSubstate)required

Qualifies the status and outcome of an operation where they alone would hide what the operator must know. Null when none applies.

rollback_in_progressrolled_backneeds_repairoutcome_unknowninterruptedrequires_approvalholds_lockawaiting_confirmationexpiredtimed_outrescheduled
can be null
instance_idstringrequired
job_idstringrequired
messagestringrequired
run_idstringrequired
statusstring (entity.OperationLifecycle)required

Where a background operation is in the shared lifecycle (decision S1). outcome says how a finished operation ended and substate qualifies the state.

queuedrunningfinished

DriftRemediationPlanResponse

actionsarray of string
originstring
drift_typestring
estimated_impactstring
finding_idstring
run_finding_idstring

Run-scoped finding key "<run_id>_<finding_id>" of the planned finding, as accepted by /drift/run-findings/{id}/remedy.

safe_to_applyboolean

DriftRemediationRequest

dry_runboolean

If true, only generate plan without applying

include_default_inheritedboolean

If true, include inherited/default findings in remediation

scopestring

Remediation scope filter (all findings or only default/inherited findings)

alldefault_inherited_only

DriftRemediationResponse

terminalbooleanrequired
outcomestring (entity.OperationOutcome)required

Final operation result, or null while the operation is active.

successfailurecancelledpartial
can be null
dry_runboolean
finding_idstring

Finding ID that was remediated

run_finding_idstring

Run-scoped finding key "<run_id>_<finding_id>" of the remediated finding. Matches the run_finding_id of drift:run-finding live events for this job.

job_idstring

Job ID for async remediation

messagestring
run_idstring

Run ID if remediating entire run

statusstring

Remediation status.

queuedcompletedfailedalready_in_syncrequires_explicit_single

DriftResponse

remediation_failureOperationFailureResponse

Safe operation failure. Explanation and recommended_action come from the static failure-code registry. The only text not written by Principal is cluster_answer.

idstring
run_finding_idstring

Run-scoped finding key "<run_id>_<finding_id>". Identifies the finding in /drift/run-findings/{id}/remedy and in drift:run-finding live events.

run_idstring
policy_idstring
policy_labelstring

Canonical name of the rule that produced the finding (the rule's display_name), when the rule is visible.

subject_idstring

Identity the rule grants access to.

subject_display_namestring

Display name of the rule subject.

subject_kindstring

Kind of the rule subject identity.

originstring
drift_typestring
desired_setmap of string → boolean
actual_setmap of string → boolean
severitystring
remediation_sessionsstring

MariaDB only: what fixing this finding with Apply of its rule does to the open sessions of the account, computed by the drift check with the same assessment the plan of the rule uses. closed: Apply closes them. kept: they keep their access. unknown: Principal could not tell, so expect them to close. Absent on a finding checked before Principal computed it, which a client treats as unknown. The exact answer comes from the plan of the rule when it is applied.

closedkeptunknown
remediation_statusstring

Latest remediation status for this finding snapshot.

openremediatedfailedalready_in_syncskipped
remediation_updated_atstring · date-time

Timestamp of the latest remediation status update.

remediation_job_idstring · uuid

Last remediation job that touched this finding snapshot.

remediation_error_codestring

Machine-readable error code from the last failed remediation attempt.

remediation_errorstring

Human-readable error message from the last failed remediation attempt.

fingerprintstring
messagestring

Human-readable description of the drift finding.

resource_urnstring

Human-readable resource identifier (e.g. "ClusterRole principal-role in default").

managed_objectManagedObjectResponse

Owner of the Kubernetes object the finding is about, resolved on read. Absent for database targets and for objects Principal does not manage.

account_namestring

Name of the database account on the target whose access the finding is about (for example anna_petrova), resolved on read. Absent for Kubernetes targets and when the account is unknown.

Present while the finding is accepted as expected: it is then not a problem. Absent when the finding is not accepted or its acceptance has ended.

first_seen_atstring
last_seen_atstring
created_atstring
updated_atstring

DriftRunResponse

Safe operation failure. Explanation and recommended_action come from the static failure-code registry. The only text not written by Principal is cluster_answer.

terminalbooleanrequired

Whether this operation has finished.

outcomestring (entity.OperationOutcome)required

Final operation result, or null while the operation is active.

successfailurecancelledpartial
can be null
substatestring (entity.OperationSubstate)required

Qualifies the status and outcome of an operation where they alone would hide what the operator must know. Null when none applies.

rollback_in_progressrolled_backneeds_repairoutcome_unknowninterruptedrequires_approvalholds_lockawaiting_confirmationexpiredtimed_outrescheduled
can be null
created_atstring
created_bystring
errorstring
finished_atstring
idstring
instance_idstring
target_idstring
open_state_completenessstring
open_state_modestring
started_atstring

Where a background operation is in the shared lifecycle (decision S1). outcome says how a finished operation ended and substate qualifies the state.

queuedrunningfinished
updated_atstring
verification_statestring
warningsarray of string

DriftStatsResponse

critical_countinteger
extra_countinteger
info_countinteger
mismatch_countinteger
missing_countinteger
total_findingsinteger
warning_countinteger
policy_countinteger
default_inherited_countinteger
accepted_countinteger

Open findings accepted as expected. They are not in total_findings or the other counts. open_stats is counted when it is read. The stats stored with a drift check are counted by the check and after a fix: accepting a finding, or the end of its term, changes them at the next check or fix.

DriftSummaryResponse

total_findingsinteger
critical_countinteger
warning_countinteger
info_countinteger
targets_with_driftinteger
generated_atstring

DriftTargetSnapshotResponse

target_idstring
latest_completed_runDriftRunResponse
has_running_checkboolean
has_failed_since_last_completedboolean

EnqueueJobPayload

target_idstring · uuidrequired

EnqueueJobRequest

instance_idstring · uuid

Deprecated compatibility alias for payload.target_id. If present, both values must match.

deprecated
job_typestringrequired
drift_checkk8s_drift_check
max_attemptsinteger

Deprecated compatibility field. The only accepted value is 3.

3
deprecated
payloadEnqueueJobPayloadrequired
prioritystring

Deprecated compatibility field. The only accepted value is normal.

normal
deprecated
scopestring

Deprecated compatibility field. The only accepted value is drift_check.

drift_check
deprecated
timeout_secondsinteger

Deprecated compatibility field. The only accepted value is 1800.

1800
deprecated

EnsureIdentityRequest

connector_idstringrequired
external_idstringrequired
kindstringrequired
providerstringrequired
target_idstring

EnsureIdentityResponse

EnsurePolicyRequest

connector_idstring

External identity pattern (for federated users from GitLab, GitHub, LDAP, etc.)

expires_atstring · date-time

Rule with a TTL (I17): when to remove the rule, 15 minutes to 30 days from now. A personal rule only. A group refuses it with policy.ttl_not_allowed. Every call with an expiry gives new temporary access and never returns an existing rule. Give either expires_at or ttl.

external_idstring
identity_idstring

Local identity pattern (for manually created users/service accounts)

kindstringrequired
usergroupservice
kubernetes_namespacesarray of string

Typed placement of a Kubernetes rule (accessTemplateSplit stage 2c). Required when template_name references a shared_by_template_v1 Kubernetes RBAC profile template. Rejected for other template modes until unified materialization (stage 3).

providerstring
target_idstringrequired

Common fields (required for both patterns)

template_namestring
template_varsmap of string → any
template_versioninteger
ttlstring

Rule with a TTL as an ISO 8601 duration of days, hours, minutes or seconds, for example PT2H or P7D. 15 minutes to 30 days. Give either ttl or expires_at.

example "PT2H"

EnsurePolicyResponse

createdbooleanrequired

True only for result=created. Deprecated: read result instead. Kept for compatibility and removed no earlier than release 5.0.0.

deprecated
policyPolicyResponserequired
policy_idstring · uuidrequired

The policy the request created, updated or found unchanged

policy_versionintegerrequired

Current version of that policy after the request

resultstring (PolicyMutationResult)required

What an assignment did to the rule of the identity on the target, decided by the write itself: created a new rule, updated the existing one, or found it already granting that (unchanged. Nothing was written).

createdupdatedunchanged
validation_errorsValidationErrors

Only present if validation failed

entity.AccessTemplateBulkApplyTargetSelector

Resolved target selector of a bulk apply run, echoed back by preview and confirm responses. Mirrors the request selector shape without request-only validation rules.

modestringrequired
all_managedexplicit
target_idsarray of string · uuid

entity.ApplyActionResultPayload

Safe operation failure. Explanation and recommended_action come from the static failure-code registry. The only text not written by Principal is cluster_answer.

errorstring
executed_atstring
permissionsarray of string
reasonstring
resourcestring
successboolean
typestring

entity.ApplyResultPayload

action_resultsarray of entity.ApplyActionResultPayload
applied_atstring
durationstring
failure_countinteger
idempotency_keystring
policy_idstring
statusstring
successpartial_successfailed
subject_idstring
success_countinteger
target_idstring

entity.ApplyRunGroupMemberResult

Safe operation failure. Explanation and recommended_action come from the static failure-code registry. The only text not written by Principal is cluster_answer.

apply_run_idstring
binding_idstring
errorstring
finished_atstring
mutatedboolean
subject_display_namestring

Name of the member the result belongs to, as it was when the apply ran.

rollback_availableboolean
rollback_modestring
started_atstring
statusstring
pendingrunningsucceededfailedpartially_succeededrollback_in_progressrolled_backfailed_needs_repair

entity.ApplyRunPlanSnapshot

actions_countinteger
estimated_changesinteger
execution_modestring
plan_idstring
policy_idstring
statusstring
validinvalidpartial

entity.ApplyRunResult

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.

dry_runboolean
execution_modestring
group_applyboolean
member_completedinteger
member_failedinteger
member_resultsarray of entity.ApplyRunGroupMemberResult
member_totalinteger
plan_kindstring
repair_requiredboolean
rollback_attemptedboolean
rollback_completedboolean
saved_artifact_idstring
saved_artifact_versioninteger
steps_totalinteger

Steps a single-rule apply runs. Recorded after every step, so a run Principal stopped running still says how far it got.

steps_completedinteger

Steps the apply made so far.

steps_failedinteger

Steps that failed so far.

changes_appliedinteger

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.

job_attemptinteger

The attempt of the apply job that ran this apply, 1 for the first.

entity.ApplyStop

The apply ended before its plan did. The changes it made stay on the target. The steps after the stop never started.

causestringrequired

requested when a person asked the apply to stop after its current step, target_busy when a step waited for a lock another session held on the target past the wait limit.

requestedtarget_busy
changes_madeintegerrequired

Changes of the rule's plan made before the stop. Zero for a group rule, whose members are counted in the member fields.

changes_plannedintegerrequired

Changes the rule's plan held. Zero for a group rule.

members_not_startedinteger

Members of a group rule whose apply never started.

entity.DatabaseSelector

modestring
allexplicitpattern
databasesarray of string
patternstring

entity.DiscoveryProgress

stagestring (entity.DiscoveryStage)required

A stage actually emitted by a discovery worker.

application_discovery_warningchecking_stalenesscleaned_stalecleaning_stalecompleteconnectconnectingdatabases_completediscovered_api_resourcesdiscovered_application_candidatesdiscovered_cluster_role_bindingsdiscovered_cluster_rolesdiscovered_namespacesdiscovered_role_bindingsdiscovered_rolesdiscovered_tablesdiscovering_api_resourcesdiscovering_application_candidatesdiscovering_cluster_role_bindingsdiscovering_cluster_rolesdiscovering_completediscovering_databasesdiscovering_namespacesdiscovering_role_bindingsdiscovering_role_bindings_warningdiscovering_rolesdiscovering_roles_warningdiscovering_schemasdiscovering_tablesdiscovering_usersfinalizingpropagating_future_objectspropagation_warningresources_completeresources_connectingresources_databases_completeresources_discovering_databasesresources_discovering_tablesresources_finalizingresources_scanned_database
6 more values
roles_completescanned_databasescanning_completestaleness_warningusersusers_complete
percentintegerrequired

Persisted worker progress. Even 100 does not imply that the job is terminal.

min 0 · max 100
messagestringrequired

Safe static English presentation of the stage.

updated_atstring · date-timerequired

entity.DiscoveryReplicaObject

databasestringrequired

The database, or the database of the table.

tablestring

Set for a table of a database every replica holds. Absent for a database some replicas lack.

replicasarray of stringrequired

Host names of the first replicas, in name order, that hold the object.

max items 16
replica_countintegerrequired

The number of replicas that hold the object, including the ones not listed.

min 0

entity.DiscoveryStage

A stage actually emitted by a discovery worker.

string (entity.DiscoveryStage)
application_discovery_warningchecking_stalenesscleaned_stalecleaning_stalecompleteconnectconnectingdatabases_completediscovered_api_resourcesdiscovered_application_candidatesdiscovered_cluster_role_bindingsdiscovered_cluster_rolesdiscovered_namespacesdiscovered_role_bindingsdiscovered_rolesdiscovered_tablesdiscovering_api_resourcesdiscovering_application_candidatesdiscovering_cluster_role_bindingsdiscovering_cluster_rolesdiscovering_completediscovering_databasesdiscovering_namespacesdiscovering_role_bindingsdiscovering_role_bindings_warningdiscovering_rolesdiscovering_roles_warningdiscovering_schemasdiscovering_tablesdiscovering_usersfinalizingpropagating_future_objectspropagation_warningresources_completeresources_connectingresources_databases_completeresources_discovering_databasesresources_discovering_tablesresources_finalizingresources_scanned_database
6 more values
roles_completescanned_databasescanning_completestaleness_warningusersusers_complete

entity.DiscoveryWarning

codestring (entity.DiscoveryWarningCode)required
discovery_warninginventory_incompletepropagation_incompleteobjects_not_on_every_replica
messagestringrequired

Safe static English warning, without target or driver diagnostics.

Only for objects_not_on_every_replica: the first ClickHouse cluster databases and tables, in name order, that some replicas lack. Discovery did not record them.

max items 50
object_countinteger

Only for objects_not_on_every_replica. The number of such objects, including the ones not listed.

min 0
skipped_databasesarray of string

Only for inventory_incomplete: the first databases, in name order, that discovery left out because the target's service account cannot enter them.

max items 50
skipped_database_countinteger

Only for inventory_incomplete. The number of skipped databases, including the ones not listed.

min 0

entity.DiscoveryWarningCode

string (entity.DiscoveryWarningCode)
discovery_warninginventory_incompletepropagation_incompleteobjects_not_on_every_replica

entity.OperationLifecycle

Where a background operation is in the shared lifecycle (decision S1). outcome says how a finished operation ended and substate qualifies the state.

entity.OperationOutcome

Final operation result, or null while the operation is active.

string (entity.OperationOutcome)
successfailurecancelledpartial

entity.OperationSubstate

Qualifies the status and outcome of an operation where they alone would hide what the operator must know. Null when none applies.

string (entity.OperationSubstate)
rollback_in_progressrolled_backneeds_repairoutcome_unknowninterruptedrequires_approvalholds_lockawaiting_confirmationexpiredtimed_outrescheduled

entity.RetainedSharedRBACObject

kindstringrequired
namestringrequired
reasonstringrequired

Why the object was kept, starting with "Kept:" and naming the binding that still uses it.

entity.SessionTerminationResult

attemptedintegerrequired
binding_idstring · uuidrequired
failedintegerrequired
foundintegerrequired
modestringrequired
supporteddegradedunsupported
reasonstring
reason_codestring
skippedintegerrequired
statusstringrequired
completedpartialfaileddegradedunsupported
target_idstring · uuidrequired
target_kindstringrequired
terminatedintegerrequired

entity.SessionTerminationSummary

attemptedintegerrequired
failedintegerrequired
foundintegerrequired
resultsarray of entity.SessionTerminationResultrequired
skippedintegerrequired
terminatedintegerrequired

entity.SubjectKind

string (entity.SubjectKind)
usergroupservice

entity.TargetAccountKey

enginestring
role_namestring
user_namestring
user_hoststring
subject_kindstring
namestring
namespacestring
auth_sourcestring

entity.TargetKind

string (entity.TargetKind)
postgreskubernetesmysqlclickhousemongodbapplicationssh

ErrorDetail

codestring
fieldstring
messagestring

ExpiredRuleResponse

A rule with a TTL past its expiry whose removal has not finished.

policy_idstringrequired

An object of the organization a problem concerns.

An object of the organization a problem concerns.

expires_atstring · date-timerequired
cleanup_task_idstring

The latest removal of the rule. Absent until its removal starts.

cleanup_statusstring

State of the latest removal, empty until it starts.

cleanup_outcomestring
decision_requiredboolean

The removal waits for an administrator decision on the rule page, such as what to do with the objects of a temporary PostgreSQL role or Forget user on ClickHouse. A retry alone does not finish it.

FailureReasonStat

Safe operation failure. Explanation and recommended_action come from the static failure-code registry. The only text not written by Principal is cluster_answer.

error_codestring
error_messagestring
explanationstring
countinteger
percentagenumber · double

FieldError

fieldstring
messagestring
severitystring

FutureObjectsNamedRowResponse

The first row of a PostgreSQL rule or template that names its objects by name or by a name mask while Future objects are on. Future objects reach only a row on every object of its kind in a schema, so the switch reaches none of these objects. Only a rule or template saved before Principal refused such a save carries it, and its next save is refused until Future objects are off or the row covers every object of its kind. A rule carries it in every read. A template only in GET /access-templates/{name} and the version read.

objectsstringrequired

The kind of objects of the row, in the plural.

tablessequencesfunctionstypesobjects
databasestring

The database the row names. Absent when the row names none, and always for a template.

schemastring

The schema the row names. Absent when the row names none.

namestringrequired

The object name or name mask of the row.

GetAuditReportResponse

restrictedstring

Why the caller's role cannot open this report. Empty when it can.

Safe operation failure. Explanation and recommended_action come from the static failure-code registry. The only text not written by Principal is cluster_answer.

terminalbooleanrequired

Whether this operation has finished.

outcomestring (entity.OperationOutcome)required

Final operation result, or null while the operation is active.

successfailurecancelledpartial
can be null
substatestring (entity.OperationSubstate)required

Qualifies the status and outcome of an operation where they alone would hide what the operator must know. Null when none applies.

rollback_in_progressrolled_backneeds_repairoutcome_unknowninterruptedrequires_approvalholds_lockawaiting_confirmationexpiredtimed_outrescheduled
can be null
job_idstringrequired
statusstring (entity.OperationLifecycle)required

Where a background operation is in the shared lifecycle (decision S1). outcome says how a finished operation ended and substate qualifies the state.

queuedrunningfinished
created_atstringrequired
updated_atstringrequired
completed_atstring
failed_atstring
presetstringrequired

The preset id the report was made from.

formatstring (AuditReportFormat)required

The report file: pdf, csv (a ZIP archive with one CSV file per table) or json (one file with the principal.audit_report schema). Reports made before the format choice are pdf.

pdfcsvjson
titlestringrequired

The custom report title. Empty when the report uses the preset title.

sectionsarray of stringrequired

The section ids of the report in report order.

period_fromstring · date-time

The start of the report period. Absent for an older queued report without a set period.

period_tostring · date-time

The end of the report period. Absent for an older queued report without a set period.

last_errorstring
download_readybooleanrequired
file_namestring
generated_atstring

GrantAccessRequest

commentstring
connector_idstring

For EnsureSubject

dry_run_reasonstring

Optional metadata

external_idstring

For EnsureSubject

modestringrequired

Execution mode

plan_onlyapply_asyncapply_sync
operation_idstring

OperationID for idempotency (optional, generated if not provided)

providerstring

For EnsureSubject

subject_idstring

The subject to grant to. Send either subject_id or connector_id, provider, external_id and subject_kind, not both.

subject_kindstring (entity.SubjectKind)

For EnsureSubject

usergroupservice
target_idstringrequired

Target identification

template_namestring

Policy definition (one of these must be provided)

template_varsmap of string → any
template_versioninteger
ttlstring

Rule with a TTL (I17): an ISO 8601 duration of 15 minutes to 30 days, for example PT1H. The grant creates a personal rule that Principal removes at that moment. On a database or Kubernetes target the rule gets its own temporary account. A group subject refuses it with policy.ttl_not_allowed.

example "PT1H"

GrantAccessResponse

terminalbooleanrequired
outcomestring (entity.OperationOutcome)required

Final operation result, or null while the operation is active.

successfailurecancelledpartial
can be null

Safe operation failure. Explanation and recommended_action come from the static failure-code registry. The only text not written by Principal is cluster_answer.

substatestring (entity.OperationSubstate)required

Qualifies the status and outcome of an operation where they alone would hide what the operator must know. Null when none applies.

rollback_in_progressrolled_backneeds_repairoutcome_unknowninterruptedrequires_approvalholds_lockawaiting_confirmationexpiredtimed_outrescheduled
can be null
apply_run_idstring
command_idstring
errorsarray of ErrorDetail
job_idstring
operation_idstring
plan_idstring

The saved plan the grant generated. In an apply mode the job executes this plan exactly when POST /policies/{id}/plan would report exact_apply_supported true. Otherwise, for example for a group policy applied per member, the job applies the policy's current state and records the plan it builds on its own apply run (see job_id), while plan_id keeps naming the generated plan for tracing.

plan_summaryPlanSummary
policy_idstring

Where a background operation is in the shared lifecycle (decision S1). outcome says how a finished operation ended and substate qualifies the state.

queuedrunningfinished
subject_idstring

GrantPolicyRuleRequest

permissionsarray of stringrequired
min items 1
resourcesarray of stringrequired
min items 1

GroupMembersResponse

A page of the list in the shared envelope, dto.ListPage. Total counts the group's direct members. The list continues by position, so items added or removed between pages can shift the next page.

has_morebooleanrequired

True when another page follows. The list ends when it is false.

itemsarray of PrincipalGroupMemberResponserequired
next_cursorstring

Opaque cursor of the next page, present only when has_more is true. Send it unchanged as the cursor query parameter with the same filters.

totalinteger

Full number of items that match the request, present only when the list counts them. It is never the size of the page.

GroupRuleMemberWithoutAccessResponse

A member of a group that has a group rule on a target but holds no rule there.

policy_idstringrequired

The group rule to apply.

An object of the organization a problem concerns.

An object of the organization a problem concerns.

An object of the organization a problem concerns.

handler.DexAccessRequestOfferRequest

accessRequeststring

Key from the Principal sign-in refusal. When set, the other fields are ignored.

issuerstring
clientIDstring
connectorIDstring
userIDstring
namestring
emailstring

handler.DexAccessRequestResponse

accessRequeststringrequired
applicationNamestringrequired
applicationHoststringrequired
namestringrequired
emailstringrequired
statestringrequired
opensentlimitedunavailable

handler.DexAccessRequestSendRequest

accessRequeststringrequired

handler.DexPrincipalConnectorAccessDeniedResponse

userIDstringrequired
groupsarray of stringrequired

handler.DexPrincipalConnectorExchangeRequest

connectorIDstringrequired
applicationBindingIDstring · uuidrequired
callbackURLstringrequired
statestringrequired
noncestringrequired
codestringrequired

handler.DexPrincipalConnectorIdentityResponse

userIDstringrequired
usernamestringrequired
preferredUsernamestringrequired
emailstringrequired
emailVerifiedbooleanrequired
groupsarray of stringrequired
refreshHandlestring

handler.DexPrincipalConnectorRefreshRequest

connectorIDstringrequired
applicationBindingIDstring · uuidrequired
refreshHandlestringrequired

handler.DexPrincipalConnectorScopesRequest

groupsboolean
offlineAccessboolean

handler.DexPrincipalTokenExchangeRequest

connectorIDstringrequired
applicationBindingIDstring · uuidrequired
subjectTokenstringrequired
subjectTokenTypestringrequired

handler.KubernetesTokenReviewRequest

apiVersionstringrequired
authentication.k8s.io/v1authentication.k8s.io/v1beta1
kindstringrequired
TokenReview
metadatamap of string → any
specobjectrequired

handler.KubernetesTokenReviewRequestError

errorstringrequired
TOKEN_REVIEW_REQUEST_INVALID
messagestringrequired

handler.KubernetesTokenReviewResponse

apiVersionstringrequired
authentication.k8s.io/v1authentication.k8s.io/v1beta1
kindstringrequired
TokenReview
metadatamap of string → any
statusobjectrequired

HBAAuthMethod

string (HBAAuthMethod)
trustrejectmd5passwordscram-sha-256gsssspiidentpeerldapradiuscertpam

HBAConfiguration

container_namestring
default_addressstring
default_methodstring
enabledbooleanrequired
file_pathstring
provider_typestring

HBADetectResponse

pathstring
storedboolean

HBARuleResponse

addressstring
commentstring
databasestring
managedboolean
methodstring (HBAAuthMethod)
trustrejectmd5passwordscram-sha-256gsssspiidentpeerldapradiuscertpam
optionsstring
policy_idstring
typestring (HBARuleType)
localhosthostsslhostnossl
userstring

HBARulesResponse

pathstring
rulesarray of HBARuleResponse
total_rulesinteger

HBARuleType

string (HBARuleType)
localhosthostsslhostnossl

HBAValidationResponse

file_pathstring
file_readableboolean
file_writableboolean
messagestring
reload_availableboolean
validboolean

HealthStatsResponse

failure_count_24hinteger
total_count_24hinteger
failure_rate_percentnumber · double
top_failure_reasonsarray of FailureReasonStat
has_health_alertboolean
alert_messagestring

HighRiskItemDTO

actionstring
addressstring
reasonstring

Why this is high risk

resource_idstring
resource_typestring
risk_levelstring

IdentityAdoptedAccountResponse

link_idstringrequired
target_idstringrequired
target_namestringrequired
target_kindstringrequired
enginestringrequired
account_keyentity.TargetAccountKeyrequired
account_display_namestringrequired
ownership_statestringrequired
principal_createdadopted
credential_ownershipstringrequired
externalprincipal_managedunknown
adopted_atstring
adopted_by_identity_idstring

IdentityAdoptedAccountsListResponse

IdentityAuthBindingMigrationReport

organization_idstring · uuidrequired
pending_countintegerrequired

IdentityAuthBindingMigrationReportItem

binding_idstring · uuidrequired
identity_idstring · uuidrequired
dex_connector_idstringrequired
statestringrequired
pending_confirmation
reasonstringrequired

IdentityAuthBindingResponse

idstring · uuidrequired
identity_idstring · uuidrequired
issuerstringrequired
dex_connector_idstringrequired
subjectstringrequired
statestringrequired
pending_confirmationactive
sourcestringrequired
legacyadminjitprovider_backfill
confirmed_bystring · uuid
can be null
confirmed_atstring · date-time
can be null
created_atstring · date-timerequired
updated_atstring · date-timerequired
last_login_atstring · date-time
can be null

IdentityCapabilitiesResponse

invitation_enabledbooleanrequired

IdentityCredentialsAuditRequest

Detail of what the console did with credentials it already received: a copy of one field or a download of a file. The reveal itself is recorded by GET /identities/{id}/credentials on the server.

eventstringrequired
copydownload
fieldstring

Label of the credentials tab field that was copied or downloaded

UsernamePasswordNew passwordDSNNative DSNHTTP URLHTTPS URLAPI serverKubeconfigService accountNamespace
target_idstring
credential_typestring
username_passwordkubeconfig

IdentityDexAccessApplicationResponse

application_idstring · uuidrequired
target_idstring · uuidrequired
target_namestring

Name of the application's target. Absent when the target could not be read.

namestringrequired
namespacestringrequired
hoststringrequired
pathstringrequired
tlsbooleanrequired
directbooleanrequired
group_namesarray of stringrequired

IdentityDexAccessGroupResponse

idstring · uuidrequired
namestringrequired

Group claim name Dex sends to applications.

display_namestring

Group display name. Absent when the group has none.

directbooleanrequired

IdentityDexAccessResponse

IdentityGraphGroupNodeResponse

kindstring (IdentityKind)required
usergroupservice
is_botboolean

Provider-confirmed account classification. Absent when unknown.

descriptionstring
emailstring

User email from identity metadata.

avatar_urlstring

Provider avatar URL from identity metadata.

external_idstring
idstring
managedboolean
namestring
service_accountboolean

True for a user an application uses instead of a person. Absent for people, groups and service identities.

sourcesarray of string
usernamestring
member_idsarray of string

References into the top-level members dictionary in compact mode.

members_countinteger

Direct members of the group before pagination: users, service accounts and nested groups, without GitLab access-token bots. The same number as members_count of GET /identities and GET /identities/{id}. Members and member_ids list these members with their kind.

members_through_subgroups_countinteger

Members the group reaches only through its nested groups, at any depth: users, service accounts and the nested groups themselves, without GitLab access-token bots and without the group's own direct members. It counts groups too. People_through_subgroups_count counts people only. The same number as members_through_subgroups_count of GET /identities/{id}.

people_through_subgroups_countinteger

People the group reaches only through its nested groups, at any depth: users (a user marked as a service account too), each once, without groups, without identities of kind service, without GitLab access-token bots and without the group's own direct members. A person who is a direct member and also in a nested group is counted in direct_people_count only.

direct_people_countinteger

Direct members of the group that are people: users (a user marked as a service account too), without nested groups, identities of kind service and GitLab access-token bots. The members the People board lists as people of the group.

IdentityGraphMemberNodeResponse

kindstring (IdentityKind)required
usergroupservice
is_botboolean

Provider-confirmed account classification. Absent when unknown.

descriptionstring
emailstring

User email from identity metadata.

avatar_urlstring

Provider avatar URL from identity metadata.

external_idstring
idstring
managedboolean
namestring
service_accountboolean

True for a user an application uses instead of a person. Absent for people, groups and service identities.

sourcesarray of string
usernamestring

IdentityGraphResponse

generated_atstring

Deduplicated member dictionary populated in compact mode.

system_identitiesarray of IdentityGraphMemberNodeResponse
ungrouped_usersarray of IdentityGraphMemberNodeResponse

One page of the people in no group, without the token bots the console hides.

IdentityGraphSummaryResponse

grouped_users_totalinteger
groups_totalinteger
services_totalinteger
ungrouped_users_totalinteger

People in no group who match the search, without the token bots the console hides (GitLab project and group access token bots, GitHub [bot] logins and GitHub accounts the connector classified as bots). ungrouped_users leaves the same bots out, so offset_ungrouped pages through exactly this many people.

IdentityIDResponse

idstringrequired
kindstring (IdentityKind)required
usergroupservice
namestringrequired

The label the console shows for the identity: its display_name, else its email, username or external_id, the same label as in GET /identities/graph.

IdentityIDsResponse

idsarray of stringrequired

The same identities as items, IDs only. Kept for older clients.

itemsarray of IdentityIDResponserequired

Every matching identity, in the order of ids, with its kind and its display name as GET /identities returns it, so a selection outside the loaded page keeps groups apart from people.

truncatedbooleanrequired

More identities match than the 5000 IDs returned.

IdentityKind

string (IdentityKind)
usergroupservice

IdentityMFARequirementRequest

requiredbooleanrequired

True marks the person, false removes the mark.

IdentityMFARequirementResponse

availablebooleanrequired

False when the installation does not offer a second factor. Then nobody is asked for one.

enrolledbooleanrequired

The person has an active second factor.

markedbooleanrequired

An administrator marked the person.

organization_requirementstringrequired

What the organization of the person requires: off, selected (marked people and administrators) or everyone.

offselectedeveryone
required_bystringrequired

Why a second factor is required: organization (from everyone), administrator (the person holds the admin role while the organization requires selected people and administrators), selected (the person is marked). Null when it is not required.

organizationadministratorselected
can be null

IdentityProfileConflictResponse

sourcestringrequired
connectorprincipallegacysign_in
connector_idstring · uuid
connector_namestring
valuestringrequired

IdentityProfileSourceResponse

fieldstringrequired
usernamedisplay_nameemailavatar_urlaccount_type
sourcestringrequired

connector: a connector sync. Principal: set in Principal. Legacy: kept from before sources were recorded. Sign_in: value of the first Dex sign-in.

connectorprincipallegacysign_in
connector_idstring · uuid
connector_namestring

Other writers that hold a different value. The shown value wins by priority.

IdentityResponse

is_botboolean

Provider-confirmed account classification. Absent when unknown.

avatar_urlstring

Provider avatar or Gravatar URL for user identities.

created_atstring
descriptionstring
display_namestring
emailstring

Email from the identity metadata, when it is an address.

external_idstring
idstring
kindstring (IdentityKind)
usergroupservice
managedboolean
members_countinteger

Direct member total (group identities only): users, service accounts and nested groups, without GitLab access-token bots. GET /identities/graph reports the same number for the group.

members_through_subgroups_countinteger

Group identities only: members the group reaches only through its nested groups, at any depth, nested groups included, without GitLab access-token bots and without its own direct members. GET /identities/graph reports the same number.

people_through_subgroups_countinteger

Group identities only: people (users, a user marked as a service account too, no groups, no identities of kind service, no GitLab access-token bots) the group reaches only through its nested groups, each once, without its own direct members.

direct_people_countinteger

Group identities only: direct members that are people (users, a user marked as a service account too), without nested groups, identities of kind service and GitLab access-token bots.

service_accountboolean

True for a user an application uses instead of a person. A service account is the same user for rules, groups, credentials and targets. The mark only describes it. Absent for people, groups and service identities.

secret_locationstring

Service accounts only: where the application's secret is kept or is to be kept, as a path in the organization secret store. A description, never a secret. Principal does not read it. Absent when not recorded.

profile_sourcesarray of IdentityProfileSourceResponse

Returned only by GET /identities/{id}: the writer each profile field shows the value of, and other writers that hold a different value.

Returned only by GET /identities/{id} for a person: whether an administrator or a connector suspended them.

connector_namesarray of string
metadatamap of string → any
organization_idstring
organization_namestring
sourcesarray of string
updated_atstring
usernamestring

Login from the identity provider. A single sign-on user may have a generated key here.

IdentitySuspensionResponse

suspendedbooleanrequired
reasonstring

Who suspended the person, an administrator or a connector that no longer finds them.

administratorconnector
suspended_atstring · date-time

IdentityWithPrincipalPasswordResponse

is_botboolean

Provider-confirmed account classification. Absent when unknown.

avatar_urlstring

Provider avatar or Gravatar URL for user identities.

created_atstring
descriptionstring
display_namestring
emailstring

Email from the identity metadata, when it is an address.

external_idstring
idstring
kindstring (IdentityKind)
usergroupservice
managedboolean
members_countinteger

Direct member total (group identities only): users, service accounts and nested groups, without GitLab access-token bots. GET /identities/graph reports the same number for the group.

members_through_subgroups_countinteger

Group identities only: members the group reaches only through its nested groups, at any depth, nested groups included, without GitLab access-token bots and without its own direct members. GET /identities/graph reports the same number.

people_through_subgroups_countinteger

Group identities only: people (users, a user marked as a service account too, no groups, no identities of kind service, no GitLab access-token bots) the group reaches only through its nested groups, each once, without its own direct members.

direct_people_countinteger

Group identities only: direct members that are people (users, a user marked as a service account too), without nested groups, identities of kind service and GitLab access-token bots.

service_accountboolean

True for a user an application uses instead of a person. A service account is the same user for rules, groups, credentials and targets. The mark only describes it. Absent for people, groups and service identities.

secret_locationstring

Service accounts only: where the application's secret is kept or is to be kept, as a path in the organization secret store. A description, never a secret. Principal does not read it. Absent when not recorded.

profile_sourcesarray of IdentityProfileSourceResponse

Returned only by GET /identities/{id}: the writer each profile field shows the value of, and other writers that hold a different value.

Returned only by GET /identities/{id} for a person: whether an administrator or a connector suspended them.

connector_namesarray of string
metadatamap of string → any
organization_idstring
organization_namestring
sourcesarray of string
updated_atstring
usernamestring

Login from the identity provider. A single sign-on user may have a generated key here.

invitation_statusstring

Present only when an invitation was requested. Failed does not roll back user creation.

sentfailed
principal_passwordstring

ImpactSummary

create_countinteger
grant_countinteger
revoke_countinteger

InheritedPolicyMemberExclusionResponse

Why a member of the group does not receive the rule. Principal applies one rule per identity and target and does not combine group rules with individual rules, so a member whose access on the target another rule already holds is listed as excluded instead of covered.

reasonstringrequired

The kind of rule that holds the member's access on the target.

individual_rulegroup_rule
policy_idstringrequired

The rule that holds the member's access on the target (their individual rule, or the group rule of another group).

group_idstring

The other group whose rule holds the access. Present for reason group_rule.

group_display_namestring

Display name of the other group, when it is known.

InheritedPolicyMemberResponse

Why a member of the group does not receive the rule. Principal applies one rule per identity and target and does not combine group rules with individual rules, so a member whose access on the target another rule already holds is listed as excluded instead of covered.

sourcesarray of string
is_botboolean

Provider-confirmed account classification. Absent when unknown.

display_namestringrequired
external_idstring
identity_idstringrequired
kindstringrequired
relationstringrequired
source_group_display_namestringrequired
source_group_idstringrequired

InstallationMaintenanceJobsResponse

Unfinished jobs of the installation by registry state.

waitingintegerrequired

Pending and queued jobs. The next worker takes them with a lease ticket.

min 0
running_fencedintegerrequired

Running attempts that hold a lease ticket.

min 0
running_legacy_claimsintegerrequired

Running attempts of legacy workers without a lease ticket. Each needs an operator decision.

min 0
running_request_recordsintegerrequired

Running records of in-flight API requests. Their requests finish them.

min 0

InstallationMaintenanceRequest

Turns the installation maintenance mode on.

reasonstring

Why the mode is on. Shown to other administrators and in the maintenance CLI.

max length 500

InstallationMaintenanceResponse

Installation maintenance mode with the unfinished jobs.

enabledbooleanrequired
reasonstring
changed_bystring

Who changed the mode last (identity:<id> for the API, cli:<host> for the maintenance CLI).

changed_atstring · date-time
start_blockedbooleanrequired

The answering backend replica refuses to start its work while legacy claims remain.

Unfinished jobs of the installation by registry state.

JobBulkOperationResponse

The bulk run this job carries, present on bulk_operation jobs in the jobs list: what it does and the group it works on, so a list row can name it without reading the run.

idstringrequired
actionstringrequired

The bulk action, as in GET /bulk-operations/{id}.

group_idstring
group_labelstring

The group name recorded when the run started.

JobCutoverResolutionResponse

Operator decision about a job whose attempt a worker of the previous job protocol left running, recorded by the maintenance CLI registry (docs/maintenance-cutover.md). Returned to job administrators only.

decisionstringrequired

complete records the attempt as completed, requeue repeats the job, repair fails it for manual repair.

completerequeuerepair
decided_bystring

Who decided (cli:<host> for the maintenance CLI).

decided_atstring · date-time
notestring
interrupted_worker_idstring

Worker of the previous job protocol that held the interrupted attempt.

interrupted_statestring

Registry state of the attempt when the decision was made.

legacy_claimrequest_record

JobFailureCode

Closed registry of asynchronous operation failure causes, independent of HTTP problem codes.

string (JobFailureCode)
ACCESS_PROFILE_STALEAMBIGUOUS_TARGET_OUTCOMEAPPLY_INTERRUPTEDAUTHENTICATION_FAILEDCLICKHOUSE_REPLICAS_OUT_OF_SYNCCLICKHOUSE_USER_NAME_RESERVEDCONNECTION_FAILEDCONNECTION_REFUSEDCONNECTION_TIMEOUTCONNECTOR_CREDENTIALS_MISSINGCONNECTOR_PAUSEDCONNECTOR_SOURCE_CHANGEDCONNECTOR_TYPE_UNAVAILABLECONSTRAINT_VIOLATIONCREDENTIAL_EXPIREDCREDENTIAL_NOT_FOUNDDATABASE_NOT_FOUNDDRIFT_BINDING_NOT_FOUNDDRIFT_DEFAULT_INHERITED_SKIPPEDDRIFT_NO_EXECUTABLE_DIFFDRIFT_PARTIAL_APPLYDRIFT_PLAN_GENERATION_FAILEDDRIFT_RESOURCE_MISMATCHDRIFT_RULE_DELETINGDRIFT_RUN_OUTDATEDDRIFT_SCOPE_MISMATCHGROUP_EXPANSION_LIMIT_EXCEEDEDHANDLER_NOT_FOUNDK8S_CHANGE_REJECTEDK8S_CLUSTER_UNREACHABLEK8S_NAMESPACE_FORBIDDENK8S_NAMESPACE_NOT_FOUNDK8S_RBAC_FORBIDDENKUBERNETES_MEMBER_CREDENTIALS_PENDINGKUBERNETES_SERVICE_ACCOUNT_KUBECONFIG_NOT_ISSUEDMARIADB_TRUNCATE_UNSUPPORTEDMARIADB_USAGE_UNSUPPORTEDMARIADB_GRANTS_AMBIGUOUSMUTATION_LOCKEDMYSQL_MANAGEMENT_PRIVILEGES_MISSING
34 more values
NOT_FOUNDOPERATION_BACKOFFOPERATION_CANCELLEDOPERATION_TIMEOUTOWNED_OBJECTS_DECISION_REQUIREDPERMISSION_DENIEDPLAN_APPLY_ARTIFACT_INVALIDPLAN_APPLY_ORPHANED_LOCKPLAN_APPLY_ROLLBACK_BASELINE_INVALIDPLAN_APPLY_RULE_CHANGEDPLAN_APPLY_TARGET_STATE_CHANGEDPLAN_APPLY_ACCESS_IMPACT_CHANGEDPOSTGRES_FUTURE_OBJECT_CREATORS_MISSINGPOSTGRES_GRANT_AUTHORITY_MISSINGPOSTGRES_MANAGEMENT_PRIVILEGES_MISSINGPOSTGRES_ROLE_ATTRIBUTE_UNSUPPORTEDPOSTGRES_ROLE_NAME_RESERVEDPOSTGRES_TLS_FILE_NOT_ALLOWEDPROVIDER_REQUEST_FAILEDRATE_LIMITEDROLE_EXISTSROLE_NOT_FOUNDROTATION_CHECK_REQUIREDSECRET_STORE_UNAVAILABLESERIALIZATION_ERRORTARGET_ACCOUNT_IDENTITY_MISMATCHTARGET_ACCOUNT_IDENTITY_UNVERIFIEDTARGET_ACCOUNT_IMPORT_PENDINGTARGET_ACCOUNT_PRINCIPAL_LOGINTARGET_ACCOUNT_TAKENTARGET_CONNECTION_MISSINGTARGET_REPAIR_REQUIREDUNKNOWN_ERRORVALIDATION_FAILED

JobMetadataResponse

Safe operation failure. Explanation and recommended_action come from the static failure-code registry. The only text not written by Principal is cluster_answer.

actionstring
action_symbolstring
addressstring
critical_countinteger
current_stepinteger
descriptionstring
drift_countinteger
duration_msinteger
errorstring
error_codestring
error_explanationstring
failed_countinteger
failure_countinteger
indexinteger
info_countinteger
job_idstring
messagestring
operation_idstring

Bulk action that this job runs. GET /bulk-operations/{id} reads it.

phasestring
plan_idstring
policy_idstring
progressnumber
raw_errorstring
recommended_actionstring
remediated_countinteger

Items remediated. For kubernetes_credential_refresh, kubeconfigs re-issued for the target's current authentication mode.

removed_countinteger

For kubernetes_credential_refresh, kubeconfigs of another authentication mode removed because the identity has no access in the current mode.

duplicates_newinteger

Connector sync only. Accounts this sync added to the duplicates of the connector.

duplicates_waitinginteger

Connector sync only. Accounts the sync skipped as duplicates, the new ones included.

resource_idstring
resource_typestring
risk_levelstring
run_idstring
stagestring
statusstring
pendingqueuedrunningcompletedfailedcancelledtimeoutokerrorrescheduledsucceededpartially_succeededrollback_in_progressrolled_backfailed_needs_repairsuccesspartial_success
success_countinteger
target_idstring
totalinteger
total_countinteger
total_findingsinteger
total_stepsinteger
warningsarray of string
warning_countinteger
recoverableboolean
retained_shared_rbacarray of entity.RetainedSharedRBACObject

Shared Kubernetes roles the cleanup kept because another binding still uses them. After a target deletion they stay in the cluster and Principal no longer removes them.

kept_unconfirmed_accountsarray of string

Accounts a target deletion with revoke left on the target because Principal can't confirm it created or adopted them. The target is deleted. The accounts keep their access.

removed_from_principal_onlyboolean

True when a failed target deletion ended with remove_from_principal_only. Principal deleted the target without revoking what the failed attempts left. That access stays on the target.

Operator decision about a job whose attempt a worker of the previous job protocol left running, recorded by the maintenance CLI registry (docs/maintenance-cutover.md). Returned to job administrators only.

JobResponse

The bulk run this job carries, present on bulk_operation jobs in the jobs list: what it does and the group it works on, so a list row can name it without reading the run.

warningsarray of entity.DiscoveryWarning
access_profile_analysis_job_idstring · uuid

Follow-up analysis queued by this discovery. Poll its terminal state before refreshing patterns.

Safe operation failure. Explanation and recommended_action come from the static failure-code registry. The only text not written by Principal is cluster_answer.

terminalbooleanrequired

Whether this operation has finished.

outcomestring (entity.OperationOutcome)required

Final operation result, or null while the operation is active.

successfailurecancelledpartial
can be null
substatestring (entity.OperationSubstate)required

Qualifies the status and outcome of an operation where they alone would hide what the operator must know. Null when none applies.

rollback_in_progressrolled_backneeds_repairoutcome_unknowninterruptedrequires_approvalholds_lockawaiting_confirmationexpiredtimed_outrescheduled
can be null
attemptsinteger
completed_atstring
created_atstring
created_bystring
databasestring
duration_msinteger
execution_stepsarray of object
failed_atstring
idstring
idempotency_keystring
instance_idstring
target_namestring
target_kindstring
target_versionstring
job_typestring
last_errorstring
locked_atstring
max_attemptsinteger
next_retry_atstring
stop_requested_atstring · date-time

When a person asked the running rule apply to stop after its current step.

payloadmap of string → any

Deprecated legacy metadata alias. Use payload_summary.

deprecated
payload_summaryJobMetadataResponse
plan_idstring
prioritystring
resultmap of string → any

Deprecated legacy metadata alias. Use result_summary.

deprecated
result_summaryJobMetadataResponse
run_atstring
scheduled_atstring
scopestring

Where a background operation is in the shared lifecycle (decision S1). outcome says how a finished operation ended and substate qualifies the state.

queuedrunningfinished
updated_atstring
worker_idstring

JobRunResponse

Safe operation failure. Explanation and recommended_action come from the static failure-code registry. The only text not written by Principal is cluster_answer.

terminalbooleanrequired

Whether this operation has finished.

outcomestring (entity.OperationOutcome)required

Final operation result, or null while the operation is active.

successfailurecancelledpartial
can be null
substatestring (entity.OperationSubstate)required

Qualifies the status and outcome of an operation where they alone would hide what the operator must know. Null when none applies.

rollback_in_progressrolled_backneeds_repairoutcome_unknowninterruptedrequires_approvalholds_lockawaiting_confirmationexpiredtimed_outrescheduled
can be null
attemptinteger
created_atstring
duration_msinteger
errorstring
finished_atstring
idinteger
job_idstring
started_atstring

Where a background operation is in the shared lifecycle (decision S1). outcome says how a finished operation ended and substate qualifies the state.

queuedrunningfinished
worker_idstring

JobRunsResponse

runsarray of JobRunResponse
totalinteger

K8sClusterRoleBindingResponse

annotationsmap of string → string
created_atstring
discovered_atstring
field_managerstring
idstring
labelsmap of string → string
managed_objectManagedObjectResponse

Rule, template or identity this Principal object belongs to. Filled by the resource explorer inventory. Absent for objects Principal does not manage.

namestring
resource_versionstring
subjectsarray of K8sSubjectResponse
target_idstring

K8sClusterRoleResponse

annotationsmap of string → string
created_atstring
discovered_atstring
field_managerstring
idstring
labelsmap of string → string
managed_objectManagedObjectResponse

Rule, template or identity this Principal object belongs to. Filled by the resource explorer inventory. Absent for objects Principal does not manage.

namestring
resource_versionstring
rulesarray of K8sRBACRuleResponse
target_idstring

K8sNamespaceResponse

annotationsmap of string → string
created_atstring
discovered_atstring
idstring
labelsmap of string → string
namestring
statusstring
ActiveTerminating
target_idstring

K8sRBACRuleResponse

api_groupsarray of string
resource_namesarray of string
resourcesarray of string
verbsarray of string

K8sResourceCategoryResponse

idstringrequired
labelstringrequired

K8sResourceKeyResponse

scopestring
namespacestring
api_groupstring
resourcestring
resource_namesarray of string
parent_kindstring
parent_namestring
non_resource_urlstring
diff_kindstring
raw_rule_keystring

K8sResourceTypeResponse

api_groupstringrequired
custombooleanrequired
kindstringrequired
namespacedbooleanrequired
resourcestringrequired
versionstringrequired

K8sRoleBindingResponse

annotationsmap of string → string
created_atstring
discovered_atstring
field_managerstring
idstring
labelsmap of string → string
managed_objectManagedObjectResponse

Rule, template or identity this Principal object belongs to. Filled by the resource explorer inventory. Absent for objects Principal does not manage.

namestring
namespacestring
resource_versionstring
subjectsarray of K8sSubjectResponse
target_idstring

K8sRoleRefResponse

api_groupstring
kindstring
namestring

K8sRoleResponse

annotationsmap of string → string
created_atstring
discovered_atstring
field_managerstring
idstring
labelsmap of string → string
managed_objectManagedObjectResponse

Rule, template or identity this Principal object belongs to. Filled by the resource explorer inventory. Absent for objects Principal does not manage.

namestring
namespacestring
resource_versionstring
rulesarray of K8sRBACRuleResponse
target_idstring

K8sSubjectResponse

adoptablebooleanrequired

True when Principal can take the account under management. Adoption refuses the rest. Whether it is already managed is in principal.ownership_state.

kindstring
namestring
namespacestring
account_audiencestring
humansystem
system_reasonstring
identity_serviceprincipal_static_accountpostgres_predefined_rolepostgres_bootstrap_superuserpostgres_provider_rolepostgres_connection_rolemysql_reserved_accountmariadb_system_accountmariadb_public_rolemongodb_connection_usermongodb_internal_usermongodb_user_without_idkubernetes_service_accountkubernetes_system_subjectkubernetes_default_rbac
managed_objectManagedObjectResponse

Rule, template or identity this Principal object belongs to. Filled by the resource explorer inventory. Absent for objects Principal does not manage.

KubernetesUserConnectionConfiguration

Kubernetes user kubeconfig connection, independent of the management connection. Omit to preserve the current setting on update. An empty object restores management defaults. A custom server with no CA uses the client system trust store. TLS verification is always enabled.

serverstring

HTTPS Kubernetes API URL reachable by users. Required for a nonempty override.

certificate_authority_datastring

Base64-encoded PEM CA bundle. Omit to use the client system trust store.

tls_server_namestring

Optional TLS certificate server name override.

ListAccessProfilesResponse

ListAccessTemplatesResponse

A page of the list in the shared envelope, dto.ListPage. Total counts the latest versions of matching templates.

has_morebooleanrequired

True when another page follows. The list ends when it is false.

itemsarray of AccessTemplateResponserequired
next_cursorstring

Opaque cursor of the next page, present only when has_more is true. Send it unchanged as the cursor query parameter with the same filters.

totalinteger

Full number of items that match the request, present only when the list counts them. It is never the size of the page.

ListActivityOperationsResponse

A page of the list in the shared envelope, dto.ListPage. Total counts the operations the filters select. The list continues by position, so operations created between pages can shift the next page.

has_morebooleanrequired

True when another page follows. The list ends when it is false.

itemsarray of ActivityOperationResponserequired
next_cursorstring

Opaque cursor of the next page, present only when has_more is true. Send it unchanged as the cursor query parameter with the same filters.

totalinteger

Full number of items that match the request, present only when the list counts them. It is never the size of the page.

ListApplicationCandidatesResponse

A page of the list in the shared envelope, dto.ListPage. Total counts the candidates the filters select.

has_morebooleanrequired

True when another page follows. The list ends when it is false.

itemsarray of ApplicationCandidateResponserequired
next_cursorstring

Opaque cursor of the next page, present only when has_more is true. Send it unchanged as the cursor query parameter with the same filters.

totalinteger

Full number of items that match the request, present only when the list counts them. It is never the size of the page.

ListApplicationTargetsResponse

A page of the list in the shared envelope, dto.ListPage. Total counts the target's applications.

has_morebooleanrequired

True when another page follows. The list ends when it is false.

itemsarray of ApplicationTargetSummaryResponserequired
next_cursorstring

Opaque cursor of the next page, present only when has_more is true. Send it unchanged as the cursor query parameter with the same filters.

totalinteger

Full number of items that match the request, present only when the list counts them. It is never the size of the page.

ListApplyRunsResponse

A page of the list in the shared envelope, dto.ListPage. This list doesn't count its items, so total is absent.

has_morebooleanrequired

True when another page follows. The list ends when it is false.

itemsarray of ApplyRunResponserequired
next_cursorstring

Opaque cursor of the next page, present only when has_more is true. Send it unchanged as the cursor query parameter with the same filters.

totalinteger

Full number of items that match the request, present only when the list counts them. It is never the size of the page.

ListAuditEventsResponse

A page of the list in the shared envelope, dto.ListPage. The audit log doesn't count its events, so total is absent.

has_morebooleanrequired

True when another page follows. The list ends when it is false.

itemsarray of AuditEventResponserequired
next_cursorstring

Opaque cursor of the next page, present only when has_more is true. Send it unchanged as the cursor query parameter with the same filters.

totalinteger

Full number of items that match the request, present only when the list counts them. It is never the size of the page.

ListAuditReportsResponse

ListClickHouseUsersResponse

target_idstringrequired
usersarray of ClickHouseUserResponserequired
metadataDiscoveryMetadatarequired
job_idstring

ListConnectorsResponse

A page of the list in the shared envelope, dto.ListPage. This list doesn't count its items, so total is absent.

has_morebooleanrequired

True when another page follows. The list ends when it is false.

itemsarray of ConnectorResponserequired
next_cursorstring

Opaque cursor of the next page, present only when has_more is true. Send it unchanged as the cursor query parameter with the same filters.

totalinteger

Full number of items that match the request, present only when the list counts them. It is never the size of the page.

ListCredentialsResponse

ListDriftFindingsByRunResponse

run_idstring
itemsarray of DriftResponse
totalinteger
policy_totalinteger
default_inherited_totalinteger
warningsarray of string

ListDriftFindingsResponse

A page of the list in the shared envelope, dto.ListPage. Total counts the findings the filters select. The list continues by position, so items added or removed between pages can shift the next page.

has_morebooleanrequired

True when another page follows. The list ends when it is false.

itemsarray of DriftResponserequired
next_cursorstring

Opaque cursor of the next page, present only when has_more is true. Send it unchanged as the cursor query parameter with the same filters.

totalinteger

Full number of items that match the request, present only when the list counts them. It is never the size of the page.

ListDriftRunsResponse

A page of the list in the shared envelope, dto.ListPage. Total counts the drift runs the filters select. The list continues by position, so items added or removed between pages can shift the next page.

has_morebooleanrequired

True when another page follows. The list ends when it is false.

itemsarray of DriftRunResponserequired
next_cursorstring

Opaque cursor of the next page, present only when has_more is true. Send it unchanged as the cursor query parameter with the same filters.

totalinteger

Full number of items that match the request, present only when the list counts them. It is never the size of the page.

ListDriftTargetSnapshotsResponse

ListFacetsResponse

Facet value counts for one list, keyed by facet name, plus named view counts and the total under every filter.

totalintegerrequired

Rows that match the search and every filter.

facetsmap of string → array of ListFacetValueResponserequired

Values with counts per facet, ordered by count descending.

viewsmap of string → integerrequired

Rows per named view, counted under the search without facet filters.

ListFacetValueResponse

valuestringrequired

Filter value code, in the same form the matching filter parameter accepts.

countintegerrequired

Rows with this value under the current search and the other filters.

labelstring

Name to show for the value when the code is an ID, such as the target name of a rule target.

ListIdentitiesResponse

A page of the list in the shared envelope, dto.ListPage. Total counts matching identities on the first page and is absent from continuation pages.

has_morebooleanrequired

True when another page follows. The list ends when it is false.

itemsarray of IdentityResponserequired
next_cursorstring

Opaque cursor of the next page, present only when has_more is true. Send it unchanged as the cursor query parameter with the same filters.

totalinteger

Full number of items that match the request, present only when the list counts them. It is never the size of the page.

ListIdentityAuthBindingsResponse

ListInheritedPolicyMembersResponse

ListJobsResponse

A page of the list in the shared envelope, dto.ListPage. Total counts the jobs the filters select. The list continues by position, so items added or removed between pages can shift the next page.

has_morebooleanrequired

True when another page follows. The list ends when it is false.

itemsarray of JobResponserequired
next_cursorstring

Opaque cursor of the next page, present only when has_more is true. Send it unchanged as the cursor query parameter with the same filters.

totalinteger

Full number of items that match the request, present only when the list counts them. It is never the size of the page.

ListK8sClusterRoleBindingsResponse

ListK8sClusterRolesResponse

ListK8sNamespacesResponse

ListK8sObjectNamesResponse

itemsarray of string
totalinteger

ListK8sResourceTypesResponse

itemsarray of K8sResourceTypeResponserequired
totalintegerrequired

ListK8sRoleBindingsResponse

ListK8sRolesResponse

itemsarray of K8sRoleResponse
totalinteger

ListMongoDBUsersResponse

target_idstringrequired
usersarray of MongoDBUserResponserequired
metadataDiscoveryMetadatarequired
job_idstring

ListMySQLUsersResponse

instance_idstring
target_idstring
usersarray of MySQLUserResponse
job_idstring

ListNotificationDeliveriesResponse

A page of the list in the shared envelope, dto.ListPage. Total counts the organization's deliveries. The list continues by position, so items added or removed between pages can shift the next page.

has_morebooleanrequired

True when another page follows. The list ends when it is false.

itemsarray of NotificationDeliveryResponserequired
next_cursorstring

Opaque cursor of the next page, present only when has_more is true. Send it unchanged as the cursor query parameter with the same filters.

totalinteger

Full number of items that match the request, present only when the list counts them. It is never the size of the page.

ListPage

The envelope of every paginated list. The registry is backend/docs/api-lists.md. Continue with next_cursor while has_more is true. total is the full number of items that match the request and is present only when the server counts it, never the page size. Each list states whether it counts.

has_morebooleanrequired

True when another page follows. The list ends when it is false.

next_cursorstring

Opaque cursor of the next page, present only when has_more is true. Send it unchanged as the cursor query parameter with the same filters.

totalinteger

Full number of items that match the request, present only when the list counts them. It is never the size of the page.

ListPoliciesResponse

A page of the list in the shared envelope, dto.ListPage. Total counts matching rules. It is absent when the count fails.

has_morebooleanrequired

True when another page follows. The list ends when it is false.

itemsarray of PolicyResponserequired
next_cursorstring

Opaque cursor of the next page, present only when has_more is true. Send it unchanged as the cursor query parameter with the same filters.

totalinteger

Full number of items that match the request, present only when the list counts them. It is never the size of the page.

ListPostgreSQLRolesResponse

instance_idstring
job_idstring

Included when refresh=true triggers async job

target_idstring

V2 API field

ListSSHKeysResponse

A page of the list in the shared envelope, dto.ListPage. This list doesn't count its items, so total is absent.

has_morebooleanrequired

True when another page follows. The list ends when it is false.

itemsarray of SSHKeyResponserequired
next_cursorstring

Opaque cursor of the next page, present only when has_more is true. Send it unchanged as the cursor query parameter with the same filters.

totalinteger

Full number of items that match the request, present only when the list counts them. It is never the size of the page.

ListSSHTunnelsResponse

A page of the list in the shared envelope, dto.ListPage. This list doesn't count its items, so total is absent.

has_morebooleanrequired

True when another page follows. The list ends when it is false.

itemsarray of SSHTunnelResponserequired
next_cursorstring

Opaque cursor of the next page, present only when has_more is true. Send it unchanged as the cursor query parameter with the same filters.

totalinteger

Full number of items that match the request, present only when the list counts them. It is never the size of the page.

ListSyncEventsResponse

ListSyncRunsResponse

ListTargetsResponse

A page of the list in the shared envelope, dto.ListPage. This list doesn't count its items, so total is absent.

has_morebooleanrequired

True when another page follows. The list ends when it is false.

itemsarray of TargetResponserequired
next_cursorstring

Opaque cursor of the next page, present only when has_more is true. Send it unchanged as the cursor query parameter with the same filters.

totalinteger

Full number of items that match the request, present only when the list counts them. It is never the size of the page.

ListTunnelEventsResponse

A page of the list in the shared envelope, dto.ListPage. This list doesn't count its items, so total is absent.

has_morebooleanrequired

True when another page follows. The list ends when it is false.

itemsarray of TunnelEventResponserequired
next_cursorstring

Opaque cursor of the next page, present only when has_more is true. Send it unchanged as the cursor query parameter with the same filters.

totalinteger

Full number of items that match the request, present only when the list counts them. It is never the size of the page.

ManagedObjectResponse

Who a Kubernetes object Principal manages belongs to. label is the human phrase for headings and text. object_kind, object_name and namespace identify the raw object for technical details only.

labelstringrequired

Short English phrase naming the object for a person, such as "Role for Data policy" or "Unused shared role of template Namespace viewer v1". Never contains IDs or hashes.

owner_kindstringrequired

What made Principal create the object.

rule_rolerule_bindingtemplate_roletemplate_bindingprofile_roleprofile_bindingservice_accountlegacydeleted_ruleother_targetunknown
rule_idstring · uuid

Rule the object belongs to. For owner_kind deleted_rule the rule no longer exists and must not be linked.

rule_namestring

Name a person gave the rule. Absent when the rule has no own name.

template_namestring

Template whose role or binding this is.

template_versioninteger

Template version the shared role or binding was created from.

template_usagestring

Whether rules of the target still use a shared template role. Absent when unknown.

in_useunused
used_by_rulesarray of ManagedObjectRuleResponse

Rules of the target whose bindings use a shared template role.

identity_idstring · uuid

Identity the object grants access to, when it exists in the organization.

identity_namestring

Display name of the identity.

object_kindstringrequired

Kubernetes kind of the object.

object_namestringrequired

Raw Kubernetes object name, for technical details and copying only.

namespacestring

Namespace of a namespaced object.

ManagedObjectRuleResponse

Rule that uses a shared template role.

rule_idstring · uuidrequired
rule_namestring

Name a person gave the rule. Absent when the rule has no own name.

identity_idstring · uuid

Identity the rule grants access to.

identity_namestring

Display name of the identity.

MappingConfigDTO

groupmap of string → string
usermap of string → string

MariaDBSystemDatabase

MariaDB system databases whose tables control the server itself: mysql holds accounts and privileges, sys and performance_schema the server internals and every session's activity. A rule may grant on them, but that is administrator access in effect, so plans warn about it and the UI says so wherever such a rule is written or shown. Names compare with case, as MariaDB compares database names on Linux.

string (MariaDBSystemDatabase)
mysqlperformance_schemasys

MarkActivitySeenRequest

seen_untilstring · date-time

MemberPolicyRemovalDTO

A per-member policy that a successful apply of its group policy deletes. On a Kubernetes target with direct group RBAC (Dex rbac_groups) the apply binds the group itself, so the policies the group had for each member before are removed, and the access each of them grants its member directly is revoked.

member_display_namestringrequired

Name of the member. Empty when the member is unknown in the organization.

member_idstring · uuidrequired

Identity the member policy grants access to.

policy_idstring · uuidrequired

The per-member policy the apply deletes.

rulesarray of PolicyRuleResponserequired

The access the deletion revokes from the member.

MFAChallengeResponse

challenge_idstring

Present for re-authentication challenges. Login challenges are identified by cookie.

purposestringrequired

login verifies an enrolled factor, enroll offers or mandates the first one, reauth is step-up.

loginenrollreauth
enrollment_requiredbooleanrequired

True when an organization mandates MFA and the enroll prompt cannot be skipped.

skippablebooleanrequired

True for an enrollment prompt the user may postpone.

methodsarray of MFAMethodResponserequired
recovery_availablebooleanrequired
webauthn_availablebooleanrequired
attempts_leftintegerrequired
expires_atstring · date-timerequired

MFACodeRequest

codestringrequired

Authenticator or recovery code.

min length 6 · max length 64

MFAConfirmTOTPRequest

codestringrequired
min length 6 · max length 16
namestringrequired

Label shown in the method list.

min length 1 · max length 64

MFAConfirmWebAuthnRequest

credentialmap of string → anyrequired

PublicKeyCredential serialized with toJSON().

namestringrequired
min length 1 · max length 64

MFAEnrollmentResultResponse

methodMFAMethodResponserequired

One enrolled second factor.

recovery_codesarray of string

Present only when this enrollment was the identity's first factor.

MFALoginCompleteResponse

redirectstringrequired

Sanitized post-login path.

methodstringrequired

Factor that completed sign-in. Empty when the enrollment offer was skipped.

totpwebauthnrecovery_code
recovery_codes_remaininginteger · int64

Unused recovery codes left. Present only when a recovery code was used.

One enrolled second factor.

recovery_codesarray of string

Present once when sign-in enrollment created the first factor.

MFAMethodResponse

One enrolled second factor.

idstring · uuidrequired
typestringrequired

Factor kind.

totpwebauthn
namestringrequired
created_atstring · date-timerequired
last_used_atstring · date-time

MFAReauthResponse

methodstringrequired
totpwebauthnrecovery_code
verified_atstring · date-timerequired
valid_untilstring · date-timerequired

MFARecoveryCodesResponse

recovery_codesarray of stringrequired

MFARecoveryCodesSummary

remaininginteger · int64required
generated_atstring · date-time

MFARequiredPeopleResponse

itemsarray of MFARequiredPersonrequired
truncatedbooleanrequired

More than 500 people are marked. Items holds the first 500 by name.

MFARequiredPerson

idstring · uuidrequired
display_namestringrequired
usernamestringrequired
external_idstringrequired
emailstringrequired
enrolledbooleanrequired

The person has an active second factor.

MFAResetResponse

methods_removedintegerrequired
sessions_revokedinteger · int64required

MFAStatusResponse

enabledbooleanrequired
enrolledbooleanrequired
required_by_organizationbooleanrequired

True when an organization of the caller enforces a second factor. The last method cannot be removed.

webauthn_availablebooleanrequired
methodsarray of MFAMethodResponserequired
recovery_codesMFARecoveryCodesSummaryrequired
reauth_freshbooleanrequired

True when the session verified a factor recently enough for sensitive changes.

reauth_valid_untilstring · date-time

MFATOTPEnrollmentResponse

enrollment_idstring · uuidrequired
secretstringrequired

Base32 secret for manual entry. Shown once.

uristringrequired

otpauth:// URI encoded in the QR code.

qr_code_data_urlstringrequired

PNG data URL of the QR code.

issuerstringrequired
accountstringrequired
expires_atstring · date-timerequired

MFAWebAuthnEnrollmentResponse

enrollment_idstringrequired
optionsmap of string → anyrequired

WebAuthn creation options (PublicKeyCredentialCreationOptionsJSON under publicKey).

expires_atstring · date-timerequired

MFAWebAuthnFinishRequest

credentialmap of string → anyrequired

PublicKeyCredential serialized with toJSON().

MFAWebAuthnOptionsResponse

optionsmap of string → anyrequired

WebAuthn request options (PublicKeyCredentialRequestOptionsJSON under publicKey).

MongoDBConnectionDetails

Secret-free MongoDB endpoint metadata. Admin credentials and TLS material are never returned.

hostsarray of stringrequired
srvbooleanrequired
replica_setstring
auth_sourcestringrequired

Authentication database of the account

tlsbooleanrequired
custom_ca_requiredbooleanrequired

Whether clients must provide the separately managed custom CA certificate. The certificate is never returned.

MongoDBPrivilegeResponse

databasestringrequired
collectionstringrequired
clusterbooleanrequired
any_resourcebooleanrequired
actionsarray of stringrequired

MongoDBRoleResponse

rolestringrequired
dbstringrequired
builtinbooleanrequired

MongoDBUserResponse

adoptablebooleanrequired

True when Principal can take the account under management. Adoption refuses the rest. Whether it is already managed is in principal.ownership_state.

user_namestringrequired
auth_sourcestringrequired

Authentication database of the user

mechanismsarray of stringrequired
account_audiencestringrequired
humansystem
system_reasonstring
manageabilitystringrequired
adoptableexternal_authsystem
rolesarray of MongoDBRoleResponserequired
privilegesarray of MongoDBPrivilegeResponserequired
discovered_atstringrequired
updated_atstringrequired

MySQLUserResponse

adoptablebooleanrequired

True when Principal can take the account under management. Adoption refuses the rest. Whether it is already managed is in principal.ownership_state.

user_namestring
user_hoststring
super_privboolean
grant_privboolean
create_user_privboolean
max_connectionsinteger
max_questionsinteger
max_updatesinteger
account_audiencestring
humansystem
system_reasonstring
identity_serviceprincipal_static_accountpostgres_predefined_rolepostgres_bootstrap_superuserpostgres_provider_rolepostgres_connection_rolemysql_reserved_accountmariadb_system_accountmariadb_public_rolemongodb_connection_usermongodb_internal_usermongodb_user_without_idkubernetes_service_accountkubernetes_system_subjectkubernetes_default_rbac
discovered_atstring
updated_atstring

NotificationChannelDeliveriesResponse

The newest notifications of one channel.

NotificationChannelDeliveryResponse

One notification a channel received, summarized by its latest attempt.

delivery_idstring · uuidrequired

ID of the latest attempt. Resend accepts it.

event_typestringrequired
drift.founddrift.failedapply.failedapply.succeededsync.failedaccess.expiringaccess.requestedcert.duetarget.createdtarget.updatedtarget.delete_requestedtarget.deletedapplication.adoptedapplication.access.updatedapplication.dex_client.appliedidentity.createdidentity.updatedidentity.deletedgroup.membership.addedgroup.membership.removedpolicy.createdpolicy.updatedpolicy.deletedcredentials.revealedcredentials.read_limit_exceededapi_token.new_networkaccess.left_on_targetoperation.finished
titlestringrequired
statusstringrequired
pendingsentfailed
attemptsintegerrequired
first_attempt_atstring · date-timerequired
last_attempt_atstring · date-timerequired
sent_atstring · date-time

Safe operation failure. Explanation and recommended_action come from the static failure-code registry. The only text not written by Principal is cluster_answer.

last_errorstring

Why the latest attempt failed, in plain words with the next step. The provider's answer when the provider rejected the message. Present only for a notification that was not delivered.

resendablebooleanrequired
resend_blocked_bystring

Why Resend is not offered. Absent when it is. delivered — an attempt delivered it. Retrying — its delivery job is queued or running. Unknown_result — an attempt of it to this or another channel never recorded a result, so it may have been delivered and is not resent without a person checking the channels. No_delivery_job — no delivery job of it gave up (a Send test message, for example). Channel_disabled — the channel is turned off. Not_subscribed — the channel no longer takes this event, severity or target. Subscription_removed — the Activity subscription that sent it was removed.

deliveredretryingunknown_resultno_delivery_jobchannel_disablednot_subscribedsubscription_removed

The Activity subscription that sent the notification.

operation_idstring · uuid

The Activity operation the notification is about. Present for Activity subscriptions.

NotificationConfigRequest

channelstringrequired
webhookemailslack
configmap of string → anyrequired

Channel-specific configuration. For Slack, put the destination channel name/ID in config.channel and optionally provide config.bot_token. The top-level channel field remains the delivery channel type. config.bot_token is stored in OpenBao and is never returned in responses.

event_typesarray of string
drift.founddrift.failedapply.failedapply.succeededsync.failedaccess.expiringaccess.requestedcert.duetarget.createdtarget.updatedtarget.delete_requestedtarget.deletedapplication.adoptedapplication.access.updatedapplication.dex_client.appliedidentity.createdidentity.updatedidentity.deletedgroup.membership.addedgroup.membership.removedpolicy.createdpolicy.updatedpolicy.deletedcredentials.revealedcredentials.read_limit_exceededapi_token.new_networkaccess.left_on_target
enabledboolean
instance_idstring
severity_filterarray of string

NotificationConfigResponse

channelstring

Channel type. The console edits Slack channels, webhook and email channels are managed through the API.

webhookemailslack
configmap of string → any

The settings of the channel that are safe to show, by channel type: Slack channel, name and bot_token_configured: true when a bot token is stored in OpenBao. Email recipients and name. Webhook name and the scheme and host of its url, with url_truncated: true when the saved address also has a path, a query or credentials. Every caller gets the same answer. Other saved fields, secrets and headers are never returned. An update that sends back only these fields keeps the saved ones.

created_atstring
enabledboolean
idstring
instance_idstring
organization_idstring
event_typesarray of string
drift.founddrift.failedapply.failedapply.succeededsync.failedaccess.expiringaccess.requestedcert.duetarget.createdtarget.updatedtarget.delete_requestedtarget.deletedapplication.adoptedapplication.access.updatedapplication.dex_client.appliedidentity.createdidentity.updatedidentity.deletedgroup.membership.addedgroup.membership.removedpolicy.createdpolicy.updatedpolicy.deletedcredentials.revealedcredentials.read_limit_exceededapi_token.new_networkaccess.left_on_target
severity_filterarray of string
updated_atstring

NotificationDeliveryResponse

Safe operation failure. Explanation and recommended_action come from the static failure-code registry. The only text not written by Principal is cluster_answer.

terminalbooleanrequired
outcomestring (entity.OperationOutcome)required

Final operation result, or null while the operation is active.

successfailurecancelledpartial
can be null
attemptinteger · int32
channelstring
slack
created_atstring
errorstring
event_typestring
drift.founddrift.failedapply.failedapply.succeededsync.failedaccess.expiringaccess.requestedcert.duetarget.createdtarget.updatedtarget.delete_requestedtarget.deletedapplication.adoptedapplication.access.updatedapplication.dex_client.appliedidentity.createdidentity.updatedidentity.deletedgroup.membership.addedgroup.membership.removedpolicy.createdpolicy.updatedpolicy.deletedcredentials.revealedcredentials.read_limit_exceededapi_token.new_networkaccess.left_on_targetoperation.finished
idstring
notification_config_idstring
organization_idstring
sent_atstring
statusstring
pendingsentfailed
updated_atstring
subscription_idstring · uuid

The Activity subscription that sent the notification. Present for Activity subscriptions.

operation_idstring · uuid

The Activity operation the notification is about. Present for Activity subscriptions.

NotificationDeliverySubscription

The Activity subscription that sent the notification.

idstring · uuidrequired
namestringrequired

Its current name. Empty when it has none or was removed.

removedbooleanrequired

True when the subscription no longer exists.

NotificationSubscriptionFilterRequest

The Activity feed filter a subscription keeps: the dimensions GET /activity/operations filters by, named as the value lists of GET /activity/operations/facets (targets holds the ids target_id takes, and so on). An empty list does not narrow the view. statuses take only final results. Without statuses the subscription takes every final result. needs_action true keeps operations whose problem is still the last finished run of the same operation on the same object, as the feed decides it when the operation finishes.

kindsarray of string
discoverydrift_checkapplybulk_applybulksyncremediationcleanuptarget_delete
max items 10
statusesarray of string
succeededpartialneeds_decisionfailedcancelled
max items 5
targetsarray of string · uuid
max items 50
rulesarray of string · uuid
max items 50
connectorsarray of string · uuid
max items 50
applicationsarray of string · uuid
max items 50
started_byarray of string
personoperationschedulesystem
max items 4
peoplearray of string · uuid
max items 50
routineboolean
can be null
needs_actionboolean
can be null

NotificationSubscriptionFilterResponse

The stored filter of a subscription. An empty list does not narrow the view.

kindsarray of stringrequired
statusesarray of stringrequired
targetsarray of string · uuidrequired
rulesarray of string · uuidrequired
connectorsarray of string · uuidrequired
applicationsarray of string · uuidrequired
started_byarray of stringrequired
peoplearray of string · uuidrequired
routinebooleanrequired
can be null
needs_actionbooleanrequired
can be null

NotificationSubscriptionRequest

namestring

Optional name the channel's delivery list shows next to what the subscription sent.

max length 200

The Activity feed filter a subscription keeps: the dimensions GET /activity/operations filters by, named as the value lists of GET /activity/operations/facets (targets holds the ids target_id takes, and so on). An empty list does not narrow the view. statuses take only final results. Without statuses the subscription takes every final result. needs_action true keeps operations whose problem is still the last finished run of the same operation on the same object, as the feed decides it when the operation finishes.

NotificationSubscriptionResponse

idstring · uuidrequired
channel_idstring · uuidrequired
namestringrequired

The stored filter of a subscription. An empty list does not narrow the view.

created_bystring · uuidrequired

The person who created the subscription. Null when unknown or removed.

can be null
created_atstring · date-timerequired
updated_atstring · date-timerequired

NotificationSubscriptionsResponse

NotificationTestResponse

statusstring
sent

OpenGitLabSignInResponse

An OAuth client of an application that any GitLab user can sign in to.

clusterAttentionReferencerequired

An object of the organization a problem concerns.

applicationAttentionReferencerequired

An object of the organization a problem concerns.

client_idstringrequired
client_namestringrequired

OperationChange

actionstring

create, update, delete, no-op

descriptionstring

Human-readable change description

resource_typestring

role, grant, policy, k8s-resource

sqlstring

SQL statement (if applicable)

targetstring

Target resource (role name, database, etc.)

OperationFailureResponse

Safe operation failure. Explanation and recommended_action come from the static failure-code registry. The only text not written by Principal is cluster_answer.

codestring (JobFailureCode)required

Closed registry of asynchronous operation failure causes, independent of HTTP problem codes.

ACCESS_PROFILE_STALEAMBIGUOUS_TARGET_OUTCOMEAPPLY_INTERRUPTEDAUTHENTICATION_FAILEDCLICKHOUSE_REPLICAS_OUT_OF_SYNCCLICKHOUSE_USER_NAME_RESERVEDCONNECTION_FAILEDCONNECTION_REFUSEDCONNECTION_TIMEOUTCONNECTOR_CREDENTIALS_MISSINGCONNECTOR_PAUSEDCONNECTOR_SOURCE_CHANGEDCONNECTOR_TYPE_UNAVAILABLECONSTRAINT_VIOLATIONCREDENTIAL_EXPIREDCREDENTIAL_NOT_FOUNDDATABASE_NOT_FOUNDDRIFT_BINDING_NOT_FOUNDDRIFT_DEFAULT_INHERITED_SKIPPEDDRIFT_NO_EXECUTABLE_DIFFDRIFT_PARTIAL_APPLYDRIFT_PLAN_GENERATION_FAILEDDRIFT_RESOURCE_MISMATCHDRIFT_RULE_DELETINGDRIFT_RUN_OUTDATEDDRIFT_SCOPE_MISMATCHGROUP_EXPANSION_LIMIT_EXCEEDEDHANDLER_NOT_FOUNDK8S_CHANGE_REJECTEDK8S_CLUSTER_UNREACHABLEK8S_NAMESPACE_FORBIDDENK8S_NAMESPACE_NOT_FOUNDK8S_RBAC_FORBIDDENKUBERNETES_MEMBER_CREDENTIALS_PENDINGKUBERNETES_SERVICE_ACCOUNT_KUBECONFIG_NOT_ISSUEDMARIADB_TRUNCATE_UNSUPPORTEDMARIADB_USAGE_UNSUPPORTEDMARIADB_GRANTS_AMBIGUOUSMUTATION_LOCKEDMYSQL_MANAGEMENT_PRIVILEGES_MISSING
34 more values
NOT_FOUNDOPERATION_BACKOFFOPERATION_CANCELLEDOPERATION_TIMEOUTOWNED_OBJECTS_DECISION_REQUIREDPERMISSION_DENIEDPLAN_APPLY_ARTIFACT_INVALIDPLAN_APPLY_ORPHANED_LOCKPLAN_APPLY_ROLLBACK_BASELINE_INVALIDPLAN_APPLY_RULE_CHANGEDPLAN_APPLY_TARGET_STATE_CHANGEDPLAN_APPLY_ACCESS_IMPACT_CHANGEDPOSTGRES_FUTURE_OBJECT_CREATORS_MISSINGPOSTGRES_GRANT_AUTHORITY_MISSINGPOSTGRES_MANAGEMENT_PRIVILEGES_MISSINGPOSTGRES_ROLE_ATTRIBUTE_UNSUPPORTEDPOSTGRES_ROLE_NAME_RESERVEDPOSTGRES_TLS_FILE_NOT_ALLOWEDPROVIDER_REQUEST_FAILEDRATE_LIMITEDROLE_EXISTSROLE_NOT_FOUNDROTATION_CHECK_REQUIREDSECRET_STORE_UNAVAILABLESERIALIZATION_ERRORTARGET_ACCOUNT_IDENTITY_MISMATCHTARGET_ACCOUNT_IDENTITY_UNVERIFIEDTARGET_ACCOUNT_IMPORT_PENDINGTARGET_ACCOUNT_PRINCIPAL_LOGINTARGET_ACCOUNT_TAKENTARGET_CONNECTION_MISSINGTARGET_REPAIR_REQUIREDUNKNOWN_ERRORVALIDATION_FAILED
titlestring

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.

max length 32
explanationstringrequired
recommended_actionstringrequired
retryablebooleanrequired

Whether the failed attempt was eligible for an automatic retry under the actual queue policy.

phasestring

Known operation phase at failure, when available.

resolution_codestring

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.

max length 128 · pattern ^[a-z][a-z0-9_-]*(\.[a-z0-9_-]+)*$
cluster_answerstring

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.

max length 500

OperationResponse

privilegestring
reasonstring
scopestring
sqlstring
targetstring

OperationSummary

by_actionmap of string → integer

{"create": 5, "update": 2, "delete": 1}

total_changesinteger

OrganizationAttentionResponse

The work of one organization that Principal stopped repeating by itself.

credential_deliveriesarray of CredentialDeliveryResponserequired
paused_operationsarray of PausedTargetOperationResponserequired
expired_rulesarray of ExpiredRuleResponserequired

Rules with a TTL (I17) whose expiry passed more than two minutes ago and whose removal has not finished: the target refused it and Principal repeats it, or it waits for a decision about objects of a temporary PostgreSQL role. Retry or decide the removal on the rule.

open_gitlab_sign_insarray of OpenGitLabSignInResponserequired

OAuth clients of the organization's applications that any GitLab user can sign in to: the client signs people in through GitLab and neither the client nor that GitLab sign-in method of Dex names a GitLab group. The installation settings of Dex hold the groups of the sign-in method, so removing them there opens the application without a change in Principal. Principal reads each Dex for this list at most once in five minutes and again right after a Dex client of an application changes.

gitlab_sign_in_uncheckedarray of AttentionReferencerequired

Clusters with applications whose Dex didn't answer the last read for open_gitlab_sign_ins. Their applications keep the warnings of the last successful read. Principal reads the Dex again in five minutes.

group_rule_members_without_accessarray of GroupRuleMemberWithoutAccessResponserequired

Members of a group whose group rule holds no rule for them on its target, so the group gives them no access there (I34). Applying the group rule gives them its access.

OrganizationMembershipCandidatesResponse

A page of the list in the shared envelope, dto.ListPage. The list continues by key and does not count its items.

has_morebooleanrequired

True when another page follows. The list ends when it is false.

itemsarray of IdentityResponserequired
next_cursorstring

Opaque cursor of the next page, present only when has_more is true. Send it unchanged as the cursor query parameter with the same filters.

totalinteger

Full number of items that match the request, present only when the list counts them. It is never the size of the page.

OrganizationMembershipsResponse

A page of the list in the shared envelope, dto.ListPage. Total counts the organization's memberships. The list continues by position, so items added or removed between pages can shift the next page.

has_morebooleanrequired

True when another page follows. The list ends when it is false.

itemsarray of OrgMembershipResponserequired
next_cursorstring

Opaque cursor of the next page, present only when has_more is true. Send it unchanged as the cursor query parameter with the same filters.

totalinteger

Full number of items that match the request, present only when the list counts them. It is never the size of the page.

OrganizationPolicyInstallation

Installation values an organization inherits and may only tighten.

forgot_password_enabledbooleanrequired

True when the installation offers the forgot-password form to Principal users.

mfa_enabledbooleanrequired

True when the installation offers second factors.

mfa_reauth_window_secondsintegerrequired
password_min_lengthintegerrequired
session_idle_timeout_secondsintegerrequired
session_max_lifetime_secondsintegerrequired
credentials_read_limit_per_hourintegerrequired

Hourly reveal limit per caller that an organization without an override uses.

api_tokensAPITokenPolicyResponserequired

Installation defaults of the API token settings.

OrganizationPolicyLimits

Range every numeric setting accepts under this installation, in the setting's unit: characters, days or seconds. A save rejects a changed value outside its range.

mfa_reauth_window_secondsOrganizationPolicyRangerequired

Inclusive range of a numeric setting.

password_max_age_daysOrganizationPolicyRangerequired

Inclusive range of a numeric setting.

password_min_lengthOrganizationPolicyRangerequired

Inclusive range of a numeric setting.

session_idle_timeout_secondsOrganizationPolicyRangerequired

Inclusive range of a numeric setting.

session_max_lifetime_secondsOrganizationPolicyRangerequired

Inclusive range of a numeric setting.

credentials_read_limit_per_hourOrganizationPolicyRangerequired

Inclusive range of a numeric setting.

api_token_lifetime_daysOrganizationPolicyRangerequired

Inclusive range of a numeric setting.

api_token_unused_disable_daysOrganizationPolicyRangerequired

Inclusive range of a numeric setting.

OrganizationPolicyRange

Inclusive range of a numeric setting.

maxintegerrequired
minintegerrequired

OrganizationPolicyRequest

Full replacement of an organization's security policy. Omitted or null overrides inherit. The save applies only over the revision it names: a policy saved by someone else since answers 409.

revisioninteger · int64required

Policy revision the values were read at (dto.OrganizationPolicyResponse.revision).

min 1
forgot_password_enabledboolean

Only false is accepted. Turns off the forgot-password form for Principal users.

can be null
mfa_reauth_window_secondsinteger

How long a confirmed second factor covers sensitive changes. At most the installation value.

min 60 · max 86400 · can be null
mfa_requiredbooleanrequired

Require a second factor from every member before a console session is issued.

mfa_required_for_selectedboolean

Require a second factor only from the people marked on PUT /identities/{id}/mfa/requirement and from every member who holds the admin role. Has no extra effect while mfa_required is true. Omitted keeps the stored value, so a client that does not know the field can't turn the mode off.

password_max_age_daysinteger

Days after which a Principal password expires and must be reset.

min 1 · max 3650 · can be null
password_min_lengthinteger

Minimum Principal password length. At least the installation minimum.

min 12 · max 64 · can be null
password_sign_in_enabledboolean

Only false is accepted. Principal users then sign in to applications through SSO only.

can be null
session_idle_timeout_secondsinteger

Console idle timeout. At most the installation value.

min 300 · max 2592000 · can be null
session_max_lifetime_secondsinteger

Absolute console session length. At most the installation value.

min 900 · max 2592000 · can be null
credentials_read_limit_per_hourinteger

How many times one caller may view credentials per hour in this organization, counted over a sliding hour across every identity. Null inherits the installation default of 20. The next view answers 429 (details.reason=credential_read_limit_exceeded, details.retry_at).

min 1 · max 1000 · can be null
credentials_show_onceboolean

Show a stored secret once after it is issued. Afterwards GET /identities/{id}/credentials lists the account with reveal_available=false and an unavailable_reason, and only a rotation gives a new secret. Omitted keeps the stored value.

members_link_sign_in_methodsboolean

Members add sign-in methods to themselves in Account security. Off at first. Omitted keeps the stored value.

suspend_people_connector_losesboolean

A connector suspends a person it no longer finds when no other source is left to them. On at first. Omitted keeps the stored value.

API token settings. Omitted keeps the stored settings, so a client that does not know the field can't change them. Null numbers inside reset a setting to the installation default.

OrganizationPolicyResponse

forgot_password_enabledbooleanrequired

False when the organization turned the form off. Null inherits the installation.

can be null
installationOrganizationPolicyInstallationrequired

Installation values an organization inherits and may only tighten.

Range every numeric setting accepts under this installation, in the setting's unit: characters, days or seconds. A save rejects a changed value outside its range.

mfa_reauth_window_secondsintegerrequired
can be null
mfa_requiredbooleanrequired
mfa_required_for_selectedbooleanrequired

The organization requires a second factor from the marked people and from its administrators.

organization_idstringrequired
password_max_age_daysintegerrequired
can be null
password_min_lengthintegerrequired
can be null
password_sign_in_enabledbooleanrequired

False when the organization allows SSO only. Null inherits the installation.

can be null
session_idle_timeout_secondsintegerrequired
can be null
session_max_lifetime_secondsintegerrequired
can be null
credentials_read_limit_per_hourintegerrequired

Organization override of the hourly reveal limit per caller. Null inherits.

can be null
credentials_show_oncebooleanrequired

True when a stored secret is shown once after it is issued.

members_link_sign_in_methodsbooleanrequired

True when members add sign-in methods to themselves in Account security.

suspend_people_connector_losesbooleanrequired

True when a connector suspends a person it no longer finds and who has no other source.

api_tokensAPITokenPolicySettingsrequired

Stored API token settings of the organization. Null means the installation default.

revisioninteger · int64required

Policy revision. Every save increments it. A save names the revision it was read at.

min 1
updated_atstringrequired

OrganizationRequest

descriptionstring
max length 1000
mfa_requiredboolean

Require a second factor from every member before a console session is issued. Omitted keeps the current policy.

namestringrequired
min length 1 · max length 100

OrganizationResponse

created_atstring
descriptionstring
idstring
mfa_requiredboolean

True when the organization requires a second factor from every member.

namestring
updated_atstring

OrganizationsResponse

A page of the list in the shared envelope, dto.ListPage. Total counts the organizations the caller sees. The list continues by position, so items added or removed between pages can shift the next page.

has_morebooleanrequired

True when another page follows. The list ends when it is false.

itemsarray of OrganizationResponserequired
next_cursorstring

Opaque cursor of the next page, present only when has_more is true. Send it unchanged as the cursor query parameter with the same filters.

totalinteger

Full number of items that match the request, present only when the list counts them. It is never the size of the page.

OrgBuiltInRoleResponse

rolestringrequired
adminvieweruser
permissionsarray of string (OrgPermission)required
access:applyaccess:manageaccess:readapplications:manageapplications:readaudit:readdrift:managedrift:readidentities:manageidentities:readjobs:managejobs:readmembers:managemembers:readnotifications:managenotifications:readorganization:readsecurity:managesecurity:readtargets:managetargets:readtokens:managetokens:read

OrgCustomRoleRef

A custom role of the organization.

idstring · uuidrequired
namestringrequired

OrgCustomRoleRequest

namestringrequired
max length 64
descriptionstring
max length 500
permissionsarray of string (OrgPermission)required

A manage or access:apply permission also brings the read permission of its area and jobs:read. Drift and applications permissions also bring targets:read, access:manage, access:apply and applications:manage also bring targets:read and identities:read.

access:applyaccess:manageaccess:readapplications:manageapplications:readaudit:readdrift:managedrift:readidentities:manageidentities:readjobs:managejobs:readmembers:managemembers:readnotifications:managenotifications:readorganization:readsecurity:managesecurity:readtargets:managetargets:readtokens:managetokens:read
min items 1

OrgCustomRoleResponse

idstring · uuidrequired
namestringrequired
descriptionstringrequired
permissionsarray of string (OrgPermission)required
access:applyaccess:manageaccess:readapplications:manageapplications:readaudit:readdrift:managedrift:readidentities:manageidentities:readjobs:managejobs:readmembers:managemembers:readnotifications:managenotifications:readorganization:readsecurity:managesecurity:readtargets:managetargets:readtokens:managetokens:read
membersintegerrequired

Members of the organization who hold the role on top of their built-in role.

groupsintegerrequired

Groups that give the role to their direct members.

tokensintegerrequired

Usable API tokens that hold the role.

created_atstring · date-timerequired
updated_atstring · date-timerequired

OrgGroupRef

idstring · uuidrequired
labelstringrequired

OrgGroupRoleRequest

rolestringrequired

Built-in role the group gives. user gives nothing.

adminvieweruser
custom_role_idstring · uuid

Custom role the group gives, or null.

can be null

OrgGroupRoleResponse

groupOrgGroupRefrequired
rolestringrequired
adminvieweruser
custom_roleOrgCustomRoleRefrequired

A custom role of the organization.

can be null
updated_atstring · date-timerequired

OrgGroupRolesResponse

OrgMembershipRequest

identity_idstringrequired
rolestringrequired

Organization role. "member" is a deprecated alias of "user".

adminusermemberviewer
scopesarray of string

Deprecated. Old extra permissions. A custom role replaces them.

custom_role_idstring · uuid

Custom role the member holds on top of the built-in role.

can be null

OrgMembershipResponse

created_atstring

The member user. Absent when it could not be read. A member that belongs to another organization (the administrator who created this organization) is shown by name, login, email and source only.

identity_idstring
organization_idstring
rolestring

Effective organization role resolved from roles.

adminvieweruser
rolesarray of string
scopesarray of string
custom_roleOrgCustomRoleRef

Custom role the member holds on top of the built-in role.

can be null
permissionsarray of string (OrgPermission)

Everything the member may do in the organization: the built-in role, the custom role and the roles of the groups the member belongs to directly.

access:applyaccess:manageaccess:readapplications:manageapplications:readaudit:readdrift:managedrift:readidentities:manageidentities:readjobs:managejobs:readmembers:managemembers:readnotifications:managenotifications:readorganization:readsecurity:managesecurity:readtargets:managetargets:readtokens:managetokens:read
updated_atstring

OrgMembershipUpdateRequest

rolestringrequired

Organization role. "member" is a deprecated alias of "user".

adminusermemberviewer
scopesarray of string

If omitted, existing scopes are preserved. To replace scopes send an explicit scopes array (empty to clear).

custom_role_idstring · uuid

Custom role the member holds on top of the built-in role. Omitted keeps the current custom role, null removes it.

can be null

OrgPermission

A permission in an organization. read sees an area, manage changes it, access:apply applies rules to targets. admin holds every permission, viewer every read permission, user none.

string (OrgPermission)
access:applyaccess:manageaccess:readapplications:manageapplications:readaudit:readdrift:managedrift:readidentities:manageidentities:readjobs:managejobs:readmembers:managemembers:readnotifications:managenotifications:readorganization:readsecurity:managesecurity:readtargets:managetargets:readtokens:managetokens:read

OrgRolesResponse

itemsarray of OrgCustomRoleResponserequired
permissionsarray of string (OrgPermission)required

Every permission a role can hold.

access:applyaccess:manageaccess:readapplications:manageapplications:readaudit:readdrift:managedrift:readidentities:manageidentities:readjobs:managejobs:readmembers:managemembers:readnotifications:managenotifications:readorganization:readsecurity:managesecurity:readtargets:managetargets:readtokens:managetokens:read
built_in_rolesarray of OrgBuiltInRoleResponserequired

OwnedObjectDatabaseResponse

namestringrequired

Database name. (shared) groups cluster-wide objects such as databases.

object_countintegerrequired
objectsarray of OwnedObjectResponse
details_unavailableboolean

True when the database could not be inspected and only the count is known.

OwnedObjectInventoryResponse

databasesarray of OwnedObjectDatabaseResponserequired
total_countintegerrequired
truncatedboolean

True when the per-database object listing was cut at the server-side limit.

OwnedObjectResponse

typestringrequired
identitystringrequired

OwnSignInLinkResponse

redirectstringrequired

OwnSignInMethodResponse

method_idstringrequired
namestringrequired
typestringrequired

Provider of a method of the installation, empty for a sign-in that comes from elsewhere.

linkablebooleanrequired

The person can add or remove this method themselves.

linkedbooleanrequired
binding_idstring · uuid
last_sign_in_atstring · date-time

OwnSignInMethodsResponse

can_linkbooleanrequired

The organization lets members add and remove methods themselves.

itemsarray of OwnSignInMethodResponserequired

PasswordLoginRequest

loginstringrequired
passwordstringrequired
redirectstring

PasswordLoginResponse

redirectstringrequired

PausedTargetOperationResponse

A discovery or drift check of a target paused after repeated failures.

targetAttentionReferencerequired

An object of the organization a problem concerns.

operationstringrequired
discoverydrift
paused_untilstring · date-timerequired
consecutive_failuresintegerrequired
last_failure_atstring · date-time

Safe operation failure. Explanation and recommended_action come from the static failure-code registry. The only text not written by Principal is cluster_answer.

PlanApplyBlockerDTO

A reason the apply of a previewed plan refuses before it changes anything. member_credentials_pending: members of a group bound directly on a Kubernetes target (Dex rbac_groups) still have kubeconfigs issued for the target's previous sign-in source. The credential refresh after the target change replaces them, and the apply refuses until then (409 policy.member_credentials_pending). service_account_incomplete: the last check of the MariaDB target's service account found privileges missing. Service_account names them and the command that grants them, and the apply refuses until a check finds them granted (409 policy.target_service_account_incomplete). account_not_created_by_principal: a MariaDB account with the name the rule uses already exists on the target, and Principal neither created nor adopted it. Each member names the person and the account, and the apply refuses before any change (TARGET_ACCOUNT_IDENTITY_UNVERIFIED) until the account is adopted or removed on the target.

codestringrequired
member_credentials_pendingservice_account_incompleteaccount_not_created_by_principal
membersarray of PlanApplyBlockerMemberDTOrequired

The people the blocker concerns, sorted by name: group members, or the person of a personal rule for account_not_created_by_principal. Empty for a target blocker.

The service account of a MariaDB target as its last check found it (access model MD-P1): the account Principal connects with, the privileges of the contract it lacks with what each one breaks, and the command a database administrator runs. The sentences come from the static contract. Only the account name and the command built from it come from the target. A target response carries it from GET /targets/{id} and from an update (PUT or PATCH /targets/{id}), which answers with the check of a replaced connection, and not before the first check.

PlanApplyBlockerMemberDTO

accountstring

For account_not_created_by_principal, the account on the target, for example maria@%. Empty for other blockers.

member_display_namestringrequired

Name of the member.

member_idstring · uuidrequired

PlanDiffResponse

access_impactAccessImpact

Effect of successful execution on inspected existing MariaDB databases and global privileges. Unknown assessments block confirmation. Sessions describes cached privilege protection over every execution prefix. Removed patterns change grant coverage for future databases, separately from the enumerated existing databases. Runtime failures require a fresh access check.

apply_blockersarray of PlanApplyBlockerDTOrequired

Reasons the apply refuses before it changes anything, such as group members whose kubeconfigs still wait for the re-issue after a sign-in source change. Empty when the apply can run.

created_atstring
current_statemap of string → any

State snapshots (optional, for detailed inspection)

desired_statemap of string → any
errorsarray of string

Validation

expires_atstring

Dependency graph for visualization

instance_idstring

Target the plan was computed for

member_policy_removalsarray of MemberPolicyRemovalDTOrequired

Per-member policies a successful apply deletes after it binds a group itself (Kubernetes direct group RBAC), with the access each deletion revokes. Empty when the apply removes none.

policy_versioninteger

Version of the rule a rule preview was built from. Apply sends it back as expected_version. Absent on drift plans.

plan_idstring

Basic plan information

resourcesarray of ResourceDiffDTO

Resource diffs with before/after state

Risk analysis

Present only with save=true when the apply can run (no apply_blockers and access_impact.status is not unknown). The plan saved from the same read of the target and the same rule version as these rows. POST /plans/{id}/apply with its plan_id applies exactly the rows above while exact_apply_supported is true. The rows and summary above are the only count of changes.

scopestring

"policy" or "drift"

statusstring

"pending": the plan has changes to apply or member policies to remove (member_policy_removals). "applied": the target already matches the policy. "error": the plan has validation errors. Empty only from servers that did not set it.

pendingappliederror

Terraform-style summary of the resource diffs. Member_policy_removals are not counted

warning_detailsarray of PlanWarningDetailrequired

The same warnings as warnings, one record each, with the code a screen groups them by. Repeats with the same code, object and text are dropped. Empty when the plan has no warnings.

warningsarray of string

Texts of the warnings, kept for older screens. Warning_details carries the same texts with codes

PlanDiffSummary

by_riskmap of string → integer

Breakdown by risk level

by_typemap of string → ActionCountsDTO

Breakdown by resource type

changes_countinteger

ChangesCount is the actual number of changes (to_create + to_update + to_delete + to_replace) This is distinct from Total, which includes unchanged resources

messagestring

Human-readable message

to_createinteger

Terraform-style counts

to_deleteinteger
to_replaceinteger
to_updateinteger
totalinteger
unchangedinteger

PlanPreviewRequest

database_selectorDatabaseSelectorRequest
descriptionstring

Policy description for the created policy. Valid only with rules.

include_nested_groupsboolean

For a group subject, include leaf members of known nested groups when the preview is applied. Omitted or false limits a new rule to direct members.

kubernetes_namespacesarray of string

Typed placement of the previewed Kubernetes rule. Required for a shared_by_template_v1 template preview. For an inline-rules preview it must match the namespaces referenced by the rules.

rulesarray of PolicyRuleRequest

Inline rules for a direct-policy preview (accessTemplateSplit stage 2c-2). Exactly one of rules or template_name must be provided. The preview promises a creation. An existing policy for the subject/target pair is a conflict.

metadatamap of string → any

Policy metadata for the created policy (e.g. future_objects, apply_default_privileges), mirroring POST /policies. Valid only with rules.

namestring

Policy name for the created policy. Valid only with rules.

subject_idstringrequired
target_account_link_idstring

Target account link the created policy binds to, mirroring POST /policies. Valid only with rules.

target_idstringrequired
template_namestring

Template mode. Exactly one of rules or template_name must be provided.

template_varsmap of string → any
template_versioninteger
min 1

PlanPreviewResponse

changesarray of OperationChange
created_atstring
dry_runboolean

Always true for plan preview

expires_atstring
operationsarray of OperationChange
plan_idstring

Legacy fields for /:id/plan endpoint (old flow)

preview_idstring

Fields for plan-preview endpoint (new flow)

resource_diffsarray of ResourceDiff
warningsarray of string

PlanSummary

estimated_timestring
operations_countinteger
resource_countinteger

PlanWarningDetail

check_before_applybooleanrequired

True when the administrator should act on this warning before Apply, false when it only reports what Apply does or leaves. Set by the code, the same for every engine.

codestringrequired

What is wrong, for the administrator. One of role_missing, database_missing, state_partly_unread, privilege_reading_denied, wildcard_not_checked, revocations_skipped, privileges_left_as_is, account_import_pending, sessions_may_end, system_database_access, wildcard_grants_ambiguous, namespace_missing, host_needs_repair, account_not_managed, host_unreachable, host_key_changed, host_sudo_missing, host_refused_change, host_setup_blocks_access, account_not_assignable, group_missing, file_too_large, grant_option_missing, other. other marks a warning that has no code yet. Read its text. The table with the meaning of each code is in the error contract of the backend.

max length 64 · pattern ^[a-z][a-z_]*$
objectstring

The object the warning is about, as the plan names it: a role, a database, database.schema, a table, a namespace or a host. Absent when the warning is about the whole target.

textstringrequired

The warning in words, the same text as in warnings

PolicyAccountToAdoptResponse

The account to adopt for a rule whose last apply was refused with resolution target.adopt_account.

target_idstring · uuidrequired
identity_idstring · uuidrequired

The person of the rule, picked in the Adopt window.

account_keyentity.TargetAccountKeyrequired
account_labelstringrequired

The account as the target names it, for example boris or maria@%.

discoveredbooleanrequired

Whether the last discovery of the target found the account. Adopt needs it found. When it is false the console runs discovery of the target first.

PolicyMembershipRequest

One membership of the rule's account in another role (PostgreSQL GRANT role TO account, MongoDB grantRolesToUser). inherit and set are the PostgreSQL 16 membership options. Leave them out on older servers or when the rule should not control them. PostgreSQL limits the role name to 63 bytes, MongoDB to 255.

rolestringrequired

Parent role the account is a member of.

min length 1 · max length 255
admin_optionboolean
inheritboolean
setboolean

PolicyMembershipResponse

One membership of the rule's account in another role with the origin of the row.

rolestringrequired
admin_optionbooleanrequired
inheritboolean
setboolean
originstring (AccessOrigin)required

Where a row of a rule came from: written in the rule, materialized from its template, or imported from the live account at adoption or by the one-off import after an upgrade. An imported row is part of the desired state like any other row.

ruletemplateimported

PolicyMutationResult

What an assignment did to the rule of the identity on the target, decided by the write itself: created a new rule, updated the existing one, or found it already granting that (unchanged. Nothing was written).

string (PolicyMutationResult)
createdupdatedunchanged

PolicyResponse

expires_atstring · date-time

When Principal removes this rule with a TTL (I17). Absent for a rule without one.

expiry_apply_not_startedboolean

Set only in the response to PUT /policies/{id} that changes the expiry: Principal saved the new expiry but could not start the Apply that brings it to the account on the database.

last_apply_failureOperationFailureResponse

Safe operation failure. Explanation and recommended_action come from the static failure-code registry. The only text not written by Principal is cluster_answer.

Safe operation failure. Explanation and recommended_action come from the static failure-code registry. The only text not written by Principal is cluster_answer.

applied_atstring
changes_not_appliedbooleanrequired

Saved changes that the last successful apply did not materialize. True when the rule state recorded by that apply (effective permissions, placement, template versions, layout and materialization switches of the snapshot it applied) differs from the current rule. Rules applied before the state was recorded fall back to updated_at later than applied_at plus 5 seconds after a success or partial success. Always false for per-member copies of a group rule. Renames, apply status writes and other bookkeeping never set it.

cleanup_last_errorstring
cleanup_statusstring
delete_requestedcleanup_runningcleanup_failedcleanup_completed
cleanup_task_idstring
created_atstring
created_bystring
display_namestringrequired

Canonical human name of the rule, the one every screen and message uses: the rule's own name. Else "{Template} for {Subject}" for a template rule. Else "Access for {Subject} on {Target}". A rule inherited from a group gets the group rule's name. Missing subject or target names are left out. Machine-generated names and IDs are never used.

descriptionstring

What the access is for, from metadata.description of the rule. Absent when the rule has none.

idstring
inherited_from_group_display_namestring
inherited_from_group_external_idstring

Identifier of the group the access came through in its source, as the connector group mapping sets it. With the default mapping it is the full path for GitLab and GitHub groups (acme/platform/backend) and the address for Google groups. Empty for groups not linked to a connector and for callers without identities:read.

inherited_from_group_idstring

Group inheritance fields

include_nested_groupsboolean

Whether this group rule includes members of nested groups.

is_inherited_bindingboolean
target_account_link_idstring

Set on the rule of an adopted target account. Assigning a template to the identity adds it to the identity's rule without a target account link, never to this rule.

last_apply_statusstring
successpartial_successfailed
latest_plan_riskstring

Risk level of the latest plan (low, medium, high, critical)

latest_plan_atstring

When the latest plan was created

latest_plan_idstring

ID of the most recent plan for this policy

materialization_modestring
kubernetes_user_rbackubernetes_group_rbackubernetes_service_account_rbacgroup_roleapplication_group
group_access_modestring

Access mode of a group rule on a PostgreSQL, MariaDB or ClickHouse target, and of the member rows it keeps. member_grants copies the rule to every member's account, group_role keeps it in a role of the group that members are granted. Absent on other rules.

member_grantsgroup_role
group_role_namestring

The role a group rule in the group_role mode keeps on the target. Absent otherwise.

kubernetes_namespacesarray of string

Namespaces contributed by this policy to shared Kubernetes RBAC profiles.

kubernetes_rbac_layoutstring

Effective server-owned Kubernetes RBAC object layout. Every new rule is materialized as unified_v1. The other values only appear on policies created before that layout and disappear as those are rematerialized. A policy still on the pre-stage-3 Role-per-namespace layout carries no value at all.

unified_v1shared_clusterrole_v1shared_profile_v1
metadatamap of string → any
organization_idstring
organization_namestring
rulesarray of PolicyRuleResponse
membershipsarray of PolicyMembershipResponse

Memberships of the rule's account in other roles (PostgreSQL). The rule asks for them like for its grants: an apply grants a missing one back.

unobserved_accessarray of string

Kinds of access the engine of the target does not read, such as column privileges on PostgreSQL. An empty drift says nothing about them.

future_objects_named_rowFutureObjectsNamedRowResponse

The first row of a PostgreSQL rule or template that names its objects by name or by a name mask while Future objects are on. Future objects reach only a row on every object of its kind in a schema, so the switch reaches none of these objects. Only a rule or template saved before Principal refused such a save carries it, and its next save is refused until Future objects are off or the row covers every object of its kind. A rule carries it in every read. A template only in GET /access-templates/{name} and the version read.

subject_display_namestring

Subject info fields (enriched from Identity)

subject_external_idstring

Identifier of a group subject in its source, as the connector group mapping sets it. With the default mapping it is the full path for GitLab and GitHub groups (acme/platform/backend) and the address for Google groups. Empty for groups not linked to a connector, for people and service accounts, and for callers without identities:read.

subject_idstring
subject_kindstring

"user", "group", "service"

target_idstring
target_namestring

Name of the target. Absent when the target could not be read.

target_kindstring

Kind of the target, such as postgres or kubernetes. Absent when the target could not be read.

updated_atstring
versioninteger
warningsarray of string

PolicyRuleRequest

permissionsarray of stringrequired
min items 1
resourcesarray of stringrequired
min items 1

PolicyRuleResponse

permissionsarray of string
resourcesarray of string
originstring (AccessOrigin)

Where a row of a rule came from: written in the rule, materialized from its template, or imported from the live account at adoption or by the one-off import after an upgrade. An imported row is part of the desired state like any other row.

ruletemplateimported

PostgreSQLRoleResponse

adoptablebooleanrequired

True when Principal can take the account under management. Adoption refuses the rest. Whether it is already managed is in principal.ownership_state.

discovered_atstring
account_audiencestring
humansystem
system_reasonstring
identity_serviceprincipal_static_accountpostgres_predefined_rolepostgres_bootstrap_superuserpostgres_provider_rolepostgres_connection_rolemysql_reserved_accountmariadb_system_accountmariadb_public_rolemongodb_connection_usermongodb_internal_usermongodb_user_without_idkubernetes_service_accountkubernetes_system_subjectkubernetes_default_rbac
role_bypass_rlsboolean
role_can_loginboolean
role_conn_limitinteger
role_create_dbboolean
role_create_roleboolean
role_inheritboolean
role_namestring
role_replicationboolean
role_superboolean
updated_atstring

PreviewTargetAccountAdoptionRequest

PreviewTargetAccountAdoptionResponse

target_idstring
account_display_namestring
credential_ownershipstring
principal_managed
rulesarray of PolicyRuleResponse
membershipsarray of PolicyMembershipResponse

Memberships of the account adoption takes into the rule (PostgreSQL), origin imported. Privileges the account holds only through a membership stay with the membership instead of becoming direct grants.

warningsarray of string
signaturestring

PreviewTemplateRequest

Provide either a non-empty template_body or both template_name and template_version, never both sources. An empty template_body counts as absent.

instance_idstringrequired

Target to preview against. Its engine must match the template engine

template_bodymap of string → any

Inline template body. Mutually exclusive with template_name and template_version

template_namestring

Saved access template to preview. Requires template_version

max length 100
template_versioninteger

Version of the saved template. Required together with template_name

min 1
variable_overridesmap of string → any

PreviewTemplateResponse

dry_runboolean
impact_summaryImpactSummary
operationsarray of OperationResponse
truncatedboolean

PrincipalGroupMemberResponse

created_atstring
created_bystring

Absent: Principal does not record who added a group member. The audit event of the change names the administrator.

group_idstring
idstring

The member identity. Absent when it could not be read.

member_idstring
member_typestring
organization_idstring
providerstring

Membership origin - "manual" for Principal-managed memberships, otherwise the connector provider that synced it.

PrincipalPasswordResetLinkResponse

reset_urlstringrequired

One-time password reset link. Shown once and never persisted in plaintext.

expires_atstring · date-timerequired

PrincipalResponse

idstring
identity_idstring
managedboolean
namestring
typestring

PrivilegeCatalogItem

namestringrequired
example "readWrite"
kindstringrequired
roleaction
scopesarray of stringrequired
accountdatabasecollection
riskstringrequired
lowmediumhighcritical
descriptionstringrequired

PrivilegeCatalogResponse

Canonical privilege catalog for an engine. privileges is the full whitelist accepted by the template validator. global_only is the subset that must be granted at . / cluster scope (MariaDB / MySQL global-only verbs, ClickHouse CLUSTER). Empty for engines without that concept.

enginestringrequired
example "mysql"
privilegesarray of stringrequired
global_onlyarray of string
itemsarray of PrivilegeCatalogItem

Privileges with their kind, the levels they can be granted on and their risk (MongoDB)

PublicSignInPageResponse

company_namestringrequired
max length 60
headingstringrequired
max length 80
welcomestringrequired
max length 120
username_hintstringrequired

Shown when someone clicks ? next to the email or username field.

max length 200
password_hintstringrequired

Shown when someone clicks ? next to the password field.

max length 200
help_textstringrequired
max length 80
help_link_labelstringrequired
max length 60
help_linkstringrequired

An https:// or mailto: address.

max length 500
posterstringrequired

The picture next to the form. principal is the Principal picture, image the uploaded one, none a page without a picture.

principalimagenone
methodsarray of SignInPageMethodrequired

Sign-in methods in the page order. Hidden methods are not shown but keep working.

logo_urlstringrequired

Address of the logo relative to the backend, null for none.

can be null
picture_urlstringrequired

Address of the own picture relative to the backend, null unless poster is image.

can be null

QueueStatsResponse

completedinteger
failedinteger
pendinginteger
queuedinteger
runninginteger
totalinteger

RefreshApplicationCandidatesRequest

cluster_idstring · uuidrequired

Kubernetes target (cluster) where the discovery found the Ingresses

RenameAccessTemplateRequest

display_namestringrequired

New name people see, 1 to 255 characters after trimming spaces.

example "BI analysts read-only"

ResourceDiff

actionstring
addressstring
aftermap of string → any
beforemap of string → any
resource_typestring

ResourceDiffDTO

actionstring

Change information

action_symbolstring

+, ~, -, -/+, =

addressstring

Human-readable address (e.g., "pg.role.app_reader")

aftermap of string → any

Desired state (null for deletes)

beforemap of string → any

Before/after state for diff visualization

changesarray of AttributeChangeDTO

Attribute-level changes for update operations

depends_onarray of string

Dependencies

descriptionstring

Engine description of the change. Technical wording that may name raw objects

labelstring

The change in plain English: what happens to which object, such as "Grant SELECT on table public.orders in the shop database to user alice". Absent when Principal cannot describe the change.

manifeststring

Kubernetes: YAML manifest

resource_idstring

Resource identification

resource_typestring

role, grant, k8s-role, k8s-rolebinding

risk_levelstring

Risk assessment

risk_reasonstring

Why a high or critical change got its risk level, in words without the level itself (risk_level carries it). Empty for a lower risk and when the row's own description already says it, as for SSH host changes.

sqlstring

Implementation details

ResourceKeyResponse

typestring
dbstring
schemastring
tablestring
rolestring
object_typestring
inherited_viastring

Comma-separated roles through whose membership a PostgreSQL account holds the extra privileges of the finding. Absent when the privileges are granted directly.

What an application finding is about: an entry of the access list (subject_id, subject_kind) or a Dex client of the application (client_id, the changed fields, whether it is gone from Dex and whether Principal can write back the client it applied).

Where an SSH finding is. Present only for findings of SSH targets.

ResourcesSearchFailedTarget

A target whose discovered resources the search could not read.

target_idstringrequired
target_namestringrequired

ResourcesSearchItem

databasestring

Database of a database, schema or table hit.

managed_by_principalboolean

True for a Kubernetes object Principal created.

match_labelstring
match_typestring (ResourcesSearchMatchType)

What a resource search hit matched.

targetdatabaseschematablerolemysql_userclickhouse_usermongodb_userk8s_namespacek8s_cluster_rolek8s_rolek8s_cluster_bindingk8s_role_bindingssh_tunnelssh_key
namespacestring

Namespace of a Kubernetes namespace, Role or RoleBinding hit.

pathstring
resource_idstring
schemastring

Schema of a PostgreSQL schema or table hit. For MariaDB and ClickHouse tables, the database.

scorenumber
target_idstring
target_kindstring (TargetKind)
postgreskubernetesmysqlclickhousemongodbapplicationssh
target_namestring

ResourcesSearchMatchType

What a resource search hit matched.

string (ResourcesSearchMatchType)
targetdatabaseschematablerolemysql_userclickhouse_usermongodb_userk8s_namespacek8s_cluster_rolek8s_rolek8s_cluster_bindingk8s_role_bindingssh_tunnelssh_key

ResourcesSearchResponse

A page of the list in the shared envelope, dto.ListPage. Items come in one stable order: by target (name, then id), by kind of hit (target, databases, schemas, tables, accounts, Kubernetes objects, SSH tunnels and keys), then by name. The cursor continues after the last item shown, so a page never repeats or skips an item another page showed. The search reads one page at a time and does not count every match, so total is absent. The search reads what discovery saved. partial and failed_targets describe the page they come with: the targets whose resources could not be read while that page was answered. A page continued past a target does not read it again, so a client walking the list joins failed_targets of every page and treats the list as partial when any page was.

failed_targetsarray of ResourcesSearchFailedTargetrequired

Targets whose discovered resources the search could not read for this page. Empty when partial is false. Join the lists of every page read.

has_morebooleanrequired

True when another page follows. The list ends when it is false.

itemsarray of ResourcesSearchItemrequired
next_cursorstring

Opaque cursor of the next page, present only when has_more is true. Send it unchanged as the cursor query parameter with the same filters.

totalinteger

Full number of items that match the request, present only when the list counts them. It is never the size of the page.

partialbooleanrequired

True when the resources of some targets could not be read for this page: the items are then not a proof that nothing else matches. A list is partial when any of its pages was.

RetryCleanupTaskRequest

owned_objects_decisionstring

Answer to a pending owned objects decision. keep_data reassigns the objects to the Principal service account before the role is dropped. delete_data drops the objects together with the role. Omit when the task has no pending decision.

keep_datadelete_data
account_decisionstring

Answer to a pending unproven_account request. forget stops Principal managing the account: the rule is deleted with Principal's records and stored credentials of the account, and nothing is sent to the target, so the user and its rights stay there. Omit when the task has no such request. Send it without owned_objects_decision.

forget
remove_from_principal_onlyboolean

Finish a failed target deletion without touching the target again: Principal deletes the target and its rules, and everything the failed attempts did not revoke stays on the target. Only for a target cleanup task in cleanup_failed. Send it without owned_objects_decision and account_decision. Any other state is rejected with 409.

RiskAnalysisDTO

high_risk_itemsarray of HighRiskItemDTO
overall_riskstring

low, medium, high, critical

requires_approvalboolean
summarystring

Human-readable risk summary

RotateCredentialsRequest

target_idstringrequired
target_account_link_idstring

Rotate credentials for a specific adopted target-local account on the target.

confirm_adopted_rotationboolean

Confirms password reset for an external adopted database role.

RotatePrincipalCredentialsRequest

principal_passwordstring

Manual password. Validated in UTF-8 bytes: 12-72 bytes, including uppercase, lowercase, digit, and special characters. Omit to auto-generate.

min length 12 · max length 72

RotatePrincipalCredentialsResponse

principal_passwordstring
statusstringrequired
rotated

SavedPlanReference

The plan the confirm window applies, saved with the rows it was shown with.

access_impactAccessImpact

Effect of successful execution on inspected existing MariaDB databases and global privileges. Unknown assessments block confirmation. Sessions describes cached privilege protection over every execution prefix. Removed patterns change grant coverage for future databases, separately from the enumerated existing databases. Runtime failures require a fresh access check.

exact_apply_supportedbooleanrequired

True when POST /plans/{id}/apply runs this plan exactly. False applies the current state of the rule.

expires_atstring

After this time POST /plans/{id}/apply refuses the plan as not applicable.

plan_idstringrequired

SavedPlanResponse

changesarray of OperationChange
created_atstring
dry_runboolean

Always true for plan preview

expires_atstring
operationsarray of OperationChange
plan_idstring

Legacy fields for /:id/plan endpoint (old flow)

preview_idstring

Fields for plan-preview endpoint (new flow)

resource_diffsarray of ResourceDiff
warningsarray of string
access_impactAccessImpact

Effect of successful execution on inspected existing MariaDB databases and global privileges. Unknown assessments block confirmation. Sessions describes cached privilege protection over every execution prefix. Removed patterns change grant coverage for future databases, separately from the enumerated existing databases. Runtime failures require a fresh access check.

exact_apply_supportedbooleanrequired

True when POST /plans/{id}/apply executes this saved plan exactly as stored. False when the apply refuses exact execution, for a group policy applied per member, a policy on the legacy shared Kubernetes RBAC profile or a target engine that stored no execution artifact. Apply the current state of the policy with POST /policies/{id}/apply instead.

member_policy_removalsarray of MemberPolicyRemovalDTOrequired

Per-member policies the apply of this plan deletes after it binds a group itself (Kubernetes direct group RBAC), with the access each deletion revokes. The exact apply of this plan deletes no other member policy. Empty when the apply removes none.

ServiceAccountPrivilegeResponse

privilegestringrequired
read_grant_tablescreate_usergrant_optionshow_databasesprocessconnection_admin
labelstringrequired

The privilege as a database administrator names it, for example "GRANT OPTION".

breaksstringrequired

What Principal can't do without the privilege.

ServiceAccountTokenTrustCreateRequest

issuerstringrequired

The iss claim of the token, an https URL.

max length 512
subjectstringrequired

The sub claim of the token, compared exactly.

max length 512
audiencestringrequired

A value the aud claim of the token must contain.

max length 512
jwksstring

Public signing keys of the issuer as a JWKS document, for an issuer Principal can't reach.

max length 65536

ServiceAccountTokenTrustListResponse

ServiceAccountTokenTrustResponse

idstring · uuidrequired
identity_idstring · uuidrequired
issuerstringrequired
subjectstringrequired
audiencestringrequired
key_sourcestringrequired

discovery when Principal reads the keys of the issuer, static when keys were pasted.

discoverystatic
created_atstring · date-timerequired

SetIdentityServiceAccountRequest

service_accountbooleanrequired

true marks the user as a service account, or keeps it one and replaces its secret location. False makes it a person again and clears the location.

secret_locationstring

Service accounts only (400 with service_account=false). Where the application's secret is kept or is to be kept, as a path in the organization secret store, for example secret/data/billing/postgres: segments of letters, digits and . _ - : # separated by slashes. Omitted or empty clears it. Never the secret itself. A value that is not such a path is rejected with 400.

max length 512

SetupStateRequest

First-run setup state of the signed-in administrator in the current organization.

statusstringrequired

started while the wizard is open, completed after the first rule is applied, skipped when the person leaves it.

startedcompletedskipped
draftmap of string → any

The wizard's own draft without secrets. Null removes it.

can be null
revisioninteger · int64required

The revision GET /setup/state returned, 0 before the first save.

min 0

SetupStateResponse

First-run setup state of the signed-in administrator in the current organization.

statusstringrequired

null until the person opens the setup.

startedcompletedskipped
can be null
draftmap of string → anyrequired

The wizard's own draft without secrets.

can be null
revisioninteger · int64required

Counts the saves, 0 until the first one. A save names the revision it was read at.

min 0
updated_atstring · date-timerequired
can be null

SignInErrorCode

Code Principal puts into the error query parameter of /login after a failed browser sign-in (the 302 of /auth/callback and the Dex sign-in steps). The login page explains each code. Any other value is not Principal's and gets a generic text.

string (SignInErrorCode)
account_conflictaccount_needs_approvalaccount_not_registeredgroup_not_allowedno_organizationprovider_auth_restartprovider_unavailableservice_unavailablesign_in_busysign_in_expiredsign_in_failedsign_in_not_verifiedsso_not_configured

SignInExpectationListResponse

SignInExpectationResponse

idstring · uuidrequired
method_idstringrequired
emailstringrequired
created_atstring · date-timerequired

SignInPageLastChange

atstring · date-timerequired
personstringrequired

Name of the person who saved the page. Null when they are deleted or saved it without a person.

can be null
person_deletedbooleanrequired

The person who saved the page no longer exists.

organizationstringrequired

Name of the organization the person worked in when they saved the page. Null for a change saved before Principal recorded it, or when the organization is deleted.

can be null
organization_deletedbooleanrequired

The organization of the person no longer exists.

SignInPageMethod

connector_idstringrequired

Dex connector ID.

hiddenbooleanrequired
button_labelstring

Words on the button of the method on the console sign-in page, up to 40 characters. Empty means Continue with the name of the method.

max length 40
namestring

Name of the method when the sign-in page was last saved. Read only.

typestring

Provider type of the method when the sign-in page was last saved. Read only.

SignInPageMethodOption

connector_idstringrequired
namestringrequired
typestringrequired

Dex connector type, empty when Dex did not answer.

button_labelstring
hiddenbooleanrequired

SignInPageSettingsRequest

The whole sign-in page. Empty texts show the standard Principal text.

company_namestringrequired
max length 60
headingstringrequired
max length 80
welcomestringrequired
max length 120
username_hintstringrequired

Shown when someone clicks ? next to the email or username field.

max length 200
password_hintstringrequired

Shown when someone clicks ? next to the password field.

max length 200
help_textstringrequired
max length 80
help_link_labelstringrequired
max length 60
help_linkstringrequired

An https:// or mailto: address.

max length 500
posterstringrequired

The picture next to the form. principal is the Principal picture, image the uploaded one, none a page without a picture.

principalimagenone
methodsarray of SignInPageMethodrequired

Sign-in methods in the page order. Hidden methods are not shown but keep working.

logostring

Data URL of the logo, null for none.

can be null
poster_imagestring

Data URL of the own picture. It stays saved while poster is principal or none, so the picture can be chosen again.

can be null

SignInPageSettingsResponse

company_namestringrequired
max length 60
headingstringrequired
max length 80
welcomestringrequired
max length 120
username_hintstringrequired

Shown when someone clicks ? next to the email or username field.

max length 200
password_hintstringrequired

Shown when someone clicks ? next to the password field.

max length 200
help_textstringrequired
max length 80
help_link_labelstringrequired
max length 60
help_linkstringrequired

An https:// or mailto: address.

max length 500
posterstringrequired

The picture next to the form. principal is the Principal picture, image the uploaded one, none a page without a picture.

principalimagenone
methodsarray of SignInPageMethodrequired

Sign-in methods in the page order. Hidden methods are not shown but keep working.

logostringrequired

Data URL of the logo, null for none.

can be null
poster_imagestringrequired

Data URL of the own picture.

can be null
method_optionsarray of SignInPageMethodOptionrequired

Every sign-in method of the bundled Dex in the page order.

methods_knownbooleanrequired

False when Dex did not answer and method_options lists only the saved methods.

changed_bystring
changed_atstring · date-time
can be null
last_changeSignInPageLastChangerequired

Who saved the sign-in page last and when. The page is shared by every organization of the installation, so it names the person and the organization they worked in when they saved it. Null when nobody saved it.

can be null

SSHAccountResponse

namestringrequired
uidinteger · int64required
groupsarray of stringrequired
shellstringrequired
authorized_key_countintegerrequired
sourcestring

How Principal manages the account. Absent when Principal does not manage it.

createdadopted
identity_idstring · uuid
identity_display_namestring
adoption_policy_idstring · uuid

SSHAccountsResponse

itemsarray of SSHAccountResponserequired
groupsarray of stringrequired

Groups that exist on the host.

openssh_versionstring
discovered_atstring · date-time

SSHAdoptRequest

account_namestringrequired
min length 1 · max length 32
identity_idstring · uuidrequired

SSHAdoptResponse

policy_idstring · uuidrequired

SSHCAResponse

public_keystringrequired
fingerprintstringrequired

SSHCertificateHost

namestringrequired
addressstringrequired
portintegerrequired
account_namestring

The Linux account to sign in as on this host. Empty until a rule of the person is applied there.

shared_accountsarray of stringrequired

Shared accounts such as deploy that the certificate also opens on this host, sorted by name. Empty when no applied rule gives one.

SSHCertificateRequest

target_idstring · uuidrequired
public_keystringrequired

OpenSSH public key, ssh-ed25519, ecdsa or RSA of at least 2048 bits.

min length 20 · max length 16384

SSHCertificateResponse

certificatestringrequired

The certificate in OpenSSH format, to save next to the private key as id_*-cert.pub.

serialstringrequired
principalstringrequired
key_idstringrequired
valid_afterstring · date-timerequired
valid_beforestring · date-timerequired
account_namestring
hostsarray of SSHCertificateHostrequired

SSHFleetConfiguration

host_idsarray of string · uuid
selectormap of string → string

A host joins the fleet when it has every one of these labels.

SSHHostConfiguration

ssh_key_idstring · uuidrequired

Organization SSH key Principal signs in with.

host_keystringrequired

Pinned public key of the host in authorized_keys format. Another key stops every operation on the host.

host_key_fingerprintstring

SHA256 fingerprint of the pinned key. Response only.

read only
labelsmap of string → string

Labels fleets select the host by.

SSHHostKeyRequest

connection_refstringrequired

Connection of the host, ssh://user@host:port.

min length 10 · max length 512
ssh_tunnel_idstring · uuid

SSHHostKeyResponse

host_keystringrequired
fingerprintstringrequired

SSHHostResponse

idstring · uuidrequired
namestringrequired
labelsmap of string → stringrequired
fleet_idsarray of string · uuidrequired
openssh_versionstring
discovered_atstring · date-time
rulesarray of SSHHostRuleStateResponserequired

SSHHostRuleStateResponse

policy_idstring · uuidrequired
host_idstring · uuidrequired
host_namestringrequired
source_target_idstring · uuidrequired

The host or fleet the rule belongs to.

identity_idstring · uuidrequired
account_namestringrequired
statusstringrequired
appliedfailedunreachablependingrevoke_pending
reasonstring
applied_atstring · date-time
updated_atstring · date-time

SSHHostsResponse

itemsarray of SSHHostResponserequired

SSHKeyCreatedResponse

algorithmstring
created_atstring
fingerprintstring
idstring
namestring
private_keystring
public_keystring
tunnel_countinteger

Number of SSH tunnels that sign in with the key. Always 0 for a new key.

SSHKeyResponse

algorithmstring
created_atstring
fingerprintstring
idstring
namestring
public_keystring
tunnel_countinteger

Number of SSH tunnels that sign in with the key. A key in use can't be deleted.

SSHResourceKeyResponse

Where an SSH finding is. Present only for findings of SSH targets.

host_idstringrequired
host_namestringrequired
accountstring

Linux account the finding is about.

classstringrequired

What differs: a host step (create_account, set_groups, write_sudoers, remove_sudoers, write_principals, remove_principals, delete_account, forget_account, prepare_host) or a host finding (host_unreachable, host_key_changed, blocked, orphan_account, extra_groups, extra_authorized_key, extra_sudoers, extra_principals).

namestring
filestring
stepstring
detailstring

The finding in words.

SSHRetryResponse

job_idstring · uuidrequired

SSHRuleHostsResponse

SSHRuleHostsSummary

appliedintegerrequired
failedintegerrequired
unreachableintegerrequired
pendingintegerrequired
revoke_pendingintegerrequired

SSHTargetConfiguration

Settings of an SSH target. A host has its own connection. A fleet names hosts by list and labels.

rolestringrequired
hostfleet
certificate_ttl_minutesinteger

Lifetime of the certificates Principal issues for this target, 5 to 1440 minutes. Default 480.

min 5 · max 1440

SSHTunnelConfigResponse

enabledbooleanrequired
ssh_hoststring
ssh_portinteger
ssh_userstring

SSHTunnelDetailResponse

created_atstring
error_messagestring

Reason of the last failure of the tunnel in Principal's words. Never a driver or dial error

health_checked_atstring
health_error_messagestring

Reason of the last failed health check, or of the failed reconnects of a tunnel that stopped because nobody used it

health_statusstring
idstring
last_connected_atstring
local_portinteger

Always 0. Principal no longer opens a local port for a tunnel. Kept for wire compatibility.

deprecated
namestring
remote_hoststring
remote_portinteger
ssh_hoststring
ssh_key_idstring

SSH key the tunnel signs in with. Omitted when the tunnel has no key.

ssh_portinteger
ssh_userstring
statusstring
disconnectedconnectingconnectedfailed
target_idstring
updated_atstring
ssh_key_namestring
ssh_key_fingerprintstring
associated_targetsarray of TargetSummaryResponse
recent_eventsarray of TunnelEventResponse

SSHTunnelResponse

created_atstring
error_messagestring

Reason of the last failure of the tunnel in Principal's words. Never a driver or dial error

health_checked_atstring
health_error_messagestring

Reason of the last failed health check, or of the failed reconnects of a tunnel that stopped because nobody used it

health_statusstring
idstring
last_connected_atstring
local_portinteger

Always 0. Principal no longer opens a local port for a tunnel. Kept for wire compatibility.

deprecated
namestring
remote_hoststring
remote_portinteger
ssh_hoststring
ssh_key_idstring

SSH key the tunnel signs in with. Omitted when the tunnel has no key.

ssh_portinteger
ssh_userstring
statusstring
disconnectedconnectingconnectedfailed
target_idstring
updated_atstring

SSHUnadoptRequest

account_namestringrequired
min length 1 · max length 32

SyncDestructiveDiffDTO

Non-sensitive connector-owned rows selected for deletion by the complete sync diff.

identity_deletesinteger · int64required
min 0
identity_idsarray of string · uuidrequired
can be null
membership_deletesinteger · int64required
min 0
membership_idsarray of string · uuidrequired
can be null

SyncEventResponse

Safe operation failure. Explanation and recommended_action come from the static failure-code registry. The only text not written by Principal is cluster_answer.

created_atstring
detailsmap of string → any
entity_idstring
entity_typestring
idstring
levelstring
messagestring
stagestring
sync_run_idstring

SyncGuardrailCheckDTO

One independently evaluated destructive deletion threshold.

currentinteger · int64required

Current row count used as the denominator for this check.

min 0
deletesinteger · int64required
min 0
kindstringrequired
identitymembership
percentnumber · doublerequired
min 0 · max 100
reason_codestring
identity_delete_threshold_exceededmembership_delete_threshold_exceeded
triggeredbooleanrequired

SyncGuardrailDetailsDTO

Deterministic evidence used for destructive guardrail decisions.

checksarray of SyncGuardrailCheckDTOrequired
min items 1
threshold_percentintegerrequired
min 0 · max 100
versionintegerrequired
min 1

SyncRunResponse

Safe operation failure. Explanation and recommended_action come from the static failure-code registry. The only text not written by Principal is cluster_answer.

terminalbooleanrequired

Whether this operation has finished.

outcomestring (entity.OperationOutcome)required

Final operation result, or null while the operation is active.

successfailurecancelledpartial
can be null
substatestring (entity.OperationSubstate)required

Qualifies the status and outcome of an operation where they alone would hide what the operator must know. Null when none applies.

rollback_in_progressrolled_backneeds_repairoutcome_unknowninterruptedrequires_approvalholds_lockawaiting_confirmationexpiredtimed_outrescheduled
can be null
approval_consumed_atstring · date-time

Time when the source run's single-use approval was consumed.

approval_consumed_by_run_idstring · uuid

Rerun that consumed the source run's approval.

approval_job_idstring · uuid

Single job reserved to execute this source run's approval.

approval_source_run_idstring · uuid

Reviewed source run whose approval authorizes this rerun.

approved_atstring · date-time

Time when the source run's approval job was reserved.

approved_bystring · uuid

Identity that reserved the source run's approval job, when available.

completed_atstring
config_revisioninteger · int64

Connector configuration revision used to compute this run.

min 1
connector_idstring
created_atstring
destructive_diffSyncDestructiveDiffDTO

Non-sensitive connector-owned rows selected for deletion by the complete sync diff.

diff_fingerprintstring

SHA-256 fingerprint of the complete create, update, and delete operation set.

min length 71 · max length 71 · pattern ^sha256:[a-f0-9]{64}$
dry_runboolean
error_messagestring
guardrail_detailsSyncGuardrailDetailsDTO

Deterministic evidence used for destructive guardrail decisions.

guardrails_passedboolean
guardrails_reasonstring
idstring
modestring
sincestring
spec_hashstring

SHA-256 fingerprint of the effective connector configuration used by this run.

min length 71 · max length 71 · pattern ^sha256:[a-f0-9]{64}$
started_atstring

Where a background operation is in the shared lifecycle (decision S1). outcome says how a finished operation ended and substate qualifies the state.

queuedrunningfinished

SyncSkippedGroupDTO

A group a sync skipped because the provider did not return its members after retries.

external_idstringrequired

Safe operation failure. Explanation and recommended_action come from the static failure-code registry. The only text not written by Principal is cluster_answer.

namestringrequired

Group name the operator knows, such as its full path.

SyncStatsDTO

conflictsinteger
createdinteger
deletedinteger
discoveredinteger
errorsinteger
groups_delete_deferredinteger

Groups gone from the source that a sync with skipped groups kept, since a group may be gone only by name or still belong to a skipped group. A sync that loads every group removes them.

groups_skippedarray of SyncSkippedGroupDTO

Groups whose members the provider did not return after retries. The sync left their memberships unchanged and removed no user or group. A successful run with skipped groups completed partially.

memberships_withheldinteger

Synced users kept out of the organization because an administrator removed them. The sync updated their profile but did not add the membership back.

updatedinteger
users_delete_deferredinteger

Users missing from every group that loaded. A sync with skipped groups keeps them, since they may still be in a skipped group. A sync that loads every group removes them.

users_skipped_as_duplicatesinteger

Accounts the sync skipped as duplicates, see GET /connectors/{id}/duplicates. The sync created nothing for them and gave them no groups. The rest of the sync went on.

duplicates_newinteger

Of users_skipped_as_duplicates, the accounts that this run added to the duplicates. The notification about duplicates goes out only when this is above zero.

TargetAccountIdentitySummary

idstring
external_idstring
kindstring
display_namestring

Human label of the identity. Empty when the identity has no human name.

TargetAccountKeyRequest

enginestringrequired
postgresmysqlkubernetesclickhousemongodb
role_namestring
user_namestring
user_hoststring
subject_kindstring
ServiceAccountUserGroup
namestring
namespacestring
auth_sourcestring

Authentication database of a MongoDB user

TargetAccountLinkResponse

idstring
target_idstring
identity_idstring
enginestring
ownership_statestring
credential_ownershipstring
adopted_atstring
created_atstring
updated_atstring

TargetAccountPrincipalEnvelope

ownership_statestringrequired
unmanagedprincipal_createdadoptedorphaned
credential_ownershipstring
externalprincipal_managedunknown
link_idstring
adopted_atstring

The rule that created a Principal-created account.

native_identity_statestring

Whether Principal recorded the account instance it created or adopted. Set only for PostgreSQL and MongoDB accounts Principal created or adopted. Principal removes the account, revokes its access or changes its password only when it is verified. Mismatch means the account was recreated outside Principal.

verifiedunverifiedmismatch
native_identity_sourcestring

How Principal recorded the account instance: created right after it created the account, adopted from discovery at adoption, or observed by the first discovery or apply that saw it.

createdadoptedobserved

TargetAccountRuleSummary

The rule that created a Principal-created account.

idstringrequired
namestring

Canonical display name of the rule. Empty when the rule was deleted.

deletedboolean

True when the target no longer has the rule.

TargetCapabilitiesResponse

bundled_dex_availablebooleanrequired

True when Kubernetes targets can sign in through this Principal's own Dex. When false, a request that chooses it is rejected with 400.

sso_applications_availablebooleanrequired

True when this Principal's Dex manages the sign-in clients of SSO applications, so a Kubernetes target can turn on applications_on_bundled_dex and protect_new_ingresses.

TargetDriftCheckResponse

job_idstring · uuidrequired
target_idstring · uuidrequired
instance_idstring · uuidrequired
statusstring (entity.OperationLifecycle)required

Where a background operation is in the shared lifecycle (decision S1). outcome says how a finished operation ended and substate qualifies the state.

queuedrunningfinished
terminalbooleanrequired
outcomestring (entity.OperationOutcome)required

Final operation result, or null while the operation is active.

successfailurecancelledpartial
can be null
substatestring (entity.OperationSubstate)required

Qualifies the status and outcome of an operation where they alone would hide what the operator must know. Null when none applies.

rollback_in_progressrolled_backneeds_repairoutcome_unknowninterruptedrequires_approvalholds_lockawaiting_confirmationexpiredtimed_outrescheduled
can be null
messagestringrequired

TargetInventoryDatabase

namestring
schemasarray of string

TargetInventoryK8s

cluster_role_bindingsarray of K8sClusterRoleBindingResponse
cluster_rolesarray of K8sClusterRoleResponse
namespacesarray of K8sNamespaceResponse
role_bindingsarray of K8sRoleBindingResponse
rolesarray of K8sRoleResponse

TargetInventoryResponse

as_ofstring
databasesarray of TargetInventoryDatabase
clickhouse_usersarray of ClickHouseUserResponse
mongodb_usersarray of MongoDBUserResponse
kindstring (TargetKind)
postgreskubernetesmysqlclickhousemongodbapplicationssh
mysql_usersarray of MySQLUserResponse
target_idstring

TargetKind

string (TargetKind)
postgreskubernetesmysqlclickhousemongodbapplicationssh

TargetMembershipRequest

identity_idstringrequired
rolestringrequired

Organization role. "member" is a deprecated alias of "user".

adminusermemberviewer
scopesarray of string

TargetMembershipResponse

created_atstring
identity_idstring
instance_idstring

Instance membership returns instance_id per OpenAPI spec

rolesarray of string
scopesarray of string
updated_atstring

TargetMembershipsResponse

A page of the list in the shared envelope, dto.ListPage. Total counts the target's memberships. The list continues by position, so items added or removed between pages can shift the next page.

has_morebooleanrequired

True when another page follows. The list ends when it is false.

itemsarray of TargetMembershipResponserequired
next_cursorstring

Opaque cursor of the next page, present only when has_more is true. Send it unchanged as the cursor query parameter with the same filters.

totalinteger

Full number of items that match the request, present only when the list counts them. It is never the size of the page.

TargetMembershipUpdateRequest

rolestringrequired

Organization role. "member" is a deprecated alias of "user".

adminusermemberviewer
scopesarray of string

If omitted, existing scopes are preserved. To replace scopes send an explicit scopes array (empty to clear).

TargetOperationPauseResponse

State of a target's discovery or drift checks after failed runs. A run is one job with its retries. After 10 failed runs in a row Principal pauses the operation for 15 minutes, then for 30 and 60 minutes after each further failed run. A successful run starts over. While paused, scheduled runs are skipped and runs people start are refused with target.operation_backoff_active. A passing POST /targets/{id}/test-connection after the last failure (connection_verified) lets the next run a person starts end the pause.

operationstringrequired
discoverydrift
pausedbooleanrequired

Runs are refused and scheduled runs skipped until paused_until.

paused_untilstring · date-time

When the pause ends by itself. Present only while paused. Nothing starts at that moment.

consecutive_failuresintegerrequired

Failed runs in a row since the last successful one.

min 1
last_failure_atstring · date-time

Safe operation failure. Explanation and recommended_action come from the static failure-code registry. The only text not written by Principal is cluster_answer.

connection_checked_atstring · date-time

The last passing connection check of the saved target.

connection_verifiedbooleanrequired

A connection check passed after the last failure, so a run a person starts ends the pause.

TargetResponse

The service account of a MariaDB target as its last check found it (access model MD-P1): the account Principal connects with, the privileges of the contract it lacks with what each one breaks, and the command a database administrator runs. The sentences come from the static contract. Only the account name and the command built from it come from the target. A target response carries it from GET /targets/{id} and from an update (PUT or PATCH /targets/{id}), which answers with the check of a replaced connection, and not before the first check.

operation_pausesarray of TargetOperationPauseResponse

Discovery and drift check state of a target with failed runs since the last success, one entry per such operation. Absent when both last succeeded or never ran. GET /targets and GET /targets/{id} fill it.

postgres_connection_statestring

Whether the saved PostgreSQL configuration has one endpoint, multiple endpoints, cannot be parsed, or names TLS files the installation does not allow.

single_hostmulti_hostunparseabletls_files_not_allowed

Safe operation failure. Explanation and recommended_action come from the static failure-code registry. The only text not written by Principal is cluster_answer.

Pins Principal-managed SSO gate (oauth2-proxy) pods to schedulable nodes. Required for Kubernetes clusters where every node carries a taint. On update, a supplied empty object clears the configuration.

kubernetes_user_connectionKubernetesUserConnectionConfiguration

Kubernetes user kubeconfig connection, independent of the management connection. Omit to preserve the current setting on update. An empty object restores management defaults. A custom server with no CA uses the client system trust store. TLS verification is always enabled.

cleanup_last_errorstring
cleanup_statusstring
delete_requestedcleanup_runningcleanup_failedcleanup_completed
cleanup_task_idstring
cleanup_not_started_sincestring · date-time

When the deletion was requested, present while the cleanup task has not started within its grace period

connection_refstring

Settings of an SSH target. A host has its own connection. A fleet names hosts by list and labels.

created_atstring
drift_policymap of string → any

Compatibility block for clients of the previous release. Use applications_on_bundled_dex. A response shows the management address of this Principal's Dex only when the target's SSO applications are managed there and kubectl also signs in through this Principal's Dex, so older clients that read any address as "kubectl signs in through this Principal's Dex" stay right. In a request, the address of this Principal's Dex turns that management on. An empty object or an omitted block changes nothing (before this release an empty object turned it off). Any other address is refused. When a request carries applications_on_bundled_dex, that field decides and this block only has to name no other address. The target does not store this block.

applications_on_bundled_dexboolean

Whether the SSO applications of a Kubernetes target are managed in this Principal's own Dex. It is independent of kubectl sign-in (dex_custom): a target may have such applications without any kubectl sign-in, and they always use this Principal's Dex issuer and management address. In a request, true or false changes it. Omitted, it stays as it is (a new target gets true when kubectl signs in through this Principal's Dex). Only Kubernetes targets have it: a response carries it for them and omits it for other kinds, and a request for another kind is refused.

protect_new_ingressesboolean

Whether Principal protects every Ingress created in the Kubernetes target after this setting is turned on: the Ingress gets the SSO gate annotations at creation, Principal adds it as an application with its own Dex client and SSO gate, and only people with a rule on that application sign in. Ingresses that existed before stay as they are. System namespaces, Principal and Dex objects, cert-manager ACME solvers and Ingresses with the annotation principal.io/protect: "false" are not touched. Turning it off stops protecting new Ingresses and keeps the gates already created. It needs the target's SSO applications managed in this Principal's Dex. In a request, true or false changes it, omitted it stays as it is (a new target created without it has it off). Only Kubernetes targets have it.

protect_new_ingresses_sincestring · date-time

When Principal started protecting new Ingresses of the Kubernetes target. Ingresses created earlier are not protected automatically.

idstring
k8s_drift_policystring
kindstring (TargetKind)
postgreskubernetesmysqlclickhousemongodbapplicationssh
kube_contextstring
last_discovery_atstring
database_countinteger
role_countinteger
human_role_countinteger
managedboolean
managed_by_annotationstring

Value for the principal.io/managed-by label on K8s RBAC objects.

namestring
revisioninteger · int64required

Monotonically increasing revision used for optimistic concurrency control.

min 1
organization_idstring
organization_namestring
usernamestring
hoststring
portinteger
databasestring
sslmodestring
protocolstring
secureboolean
replica_setstring

The replica set name of the saved MongoDB connection. Empty for other kinds.

custom_connectionboolean

Whether the saved MongoDB connection string has options the target form doesn't show: several hosts, a CA certificate, an authentication mechanism or custom timeouts. The form then keeps the connection as it is. Change such a connection through the API. Absent for other kinds.

has_passwordboolean

Whether the saved connection of a PostgreSQL, MariaDB, ClickHouse or MongoDB target holds a password. False for other kinds and when the connection is missing. Only GET /targets/{id} reads the connection and returns the field. The list, create and update responses omit it, and so does the detail while Principal's secret store gives no answer.

has_ssh_keyboolean

Whether the target has an inline SSH tunnel configured. Only GET /targets/{id} returns the field. The list, create and update responses omit it.

ssh_tunnel_enabledboolean
ssh_tunnel_idstring
has_kubeconfigboolean

Whether OpenBao holds the kubeconfig at the connection reference of a Kubernetes target. False for other kinds. Only GET /targets/{id} reads secrets and returns the field. The list, create and update responses omit it, and so does the detail while Principal's secret store gives no answer.

cluster_registrationstring

Kubernetes targets whose cluster Principal has identified (UID of the kube-system namespace, read when the connection is saved and at discovery): unique when no other target of the installation registers the cluster, duplicate when another one does (targets saved before the one-registration rule, or test installations in the shared cluster registration mode). Absent for other targets and before the cluster is identified.

uniqueduplicate
discovery_schedulestring
discovery_next_run_atstring
updated_atstring

TargetServiceAccountResponse

The service account of a MariaDB target as its last check found it (access model MD-P1): the account Principal connects with, the privileges of the contract it lacks with what each one breaks, and the command a database administrator runs. The sentences come from the static contract. Only the account name and the command built from it come from the target. A target response carries it from GET /targets/{id} and from an update (PUT or PATCH /targets/{id}), which answers with the check of a replaced connection, and not before the first check.

target_idstring · uuidrequired

The target whose service account was checked. "Check again" checks it.

statestringrequired

ready when the account holds every privilege of the contract. Incomplete blocks changes.

readyincomplete
accountstringrequired

The account as MariaDB writes it, for example "principal@%".

missingarray of ServiceAccountPrivilegeResponserequired
recommended_sqlstring

The GRANT statements a database administrator runs to meet the contract. Absent when ready or when the account name can't be written into a command safely.

checked_atstring · date-timerequired

When the check ran.

TargetSubjectAccessResponse

kindstring (TargetKind)
postgreskubernetesmysqlclickhousemongodbapplicationssh
membershipsarray of string
partialboolean
subject_namestring
subject_hoststring
target_idstring
warningsarray of string

TargetSubjectGrantResponse

databasestring
namestring
privilegesarray of string
schemastring
tablestring
typestring

Grant scope. MySQL/MariaDB global grants use "global" and represent account-level . privileges.

globaldatabaseschematablesequencefunctiontype

TargetSummaryResponse

idstring
namestring
kindstring

TargetTypeResponse

kindstring (TargetKind)required
postgreskubernetesmysqlclickhousemongodbapplicationssh
labelstringrequired

Name to show for the type

categorystringrequired

Group of the type in a picker, one of the response categories

availabilitystring (TypeAvailability)required

available - Principal can create and use this type now. Coming_soon - listed for the roadmap, Principal refuses to create, test or sync it.

availablecoming_soon
required_fieldsarray of stringrequired

Fields of POST /targets that a target of this type needs, as dotted paths in the request body

TargetTypesResponse

horizonintegerrequired

Number of available target types. A client that groups types by roadmap wave shows only the types available now when horizon is below 30.

min 0
categoriesarray of stringrequired

Categories in display order

itemsarray of TargetTypeResponserequired
totalintegerrequired
min 0

TemplateInUseDetails

The rules that keep a template from being deleted, seen from the caller organization. Rules of other organizations are never named or counted here.

referenced_policy_idsarray of string · uuidrequired

Up to 20 IDs of the caller organization's rules that use the template.

max items 20
referenced_policy_countintegerrequired

How many rules of the caller organization use the template.

min 0
used_by_other_organizationsbooleanrequired

Always false: a template belongs to one organization, and rules of other organizations can't use it.

TemplateInUseProblem

Problem details of a refused template delete.

codestringrequired

Stable machine-readable problem identifier

api_token.limit_reachedapi_token.role_exceeds_callerauth.agent_identity_unavailableauth.agent_login_disabledauth.agent_login_misconfiguredauth.agent_membership_requiredauth.agent_organization_unavailableauth.agent_token_invalidauth.api_token_invalidauth.api_token_not_allowedauth.csrf_invalidauth.csrf_requiredauth.dex_callback_invalidauth.dex_connector_disabledauth.dex_connector_session_invalidauth.dex_connector_unauthorizedauth.group_not_allowedauth.identity_alias_conflictauth.identity_not_registeredauth.identity_requiredauth.identity_resolution_unavailableauth.identity_suspendedauth.invalid_requestauth.invalid_stateauth.legacy_auth_disabledauth.login_start_failedauth.membership_invalidauth.mfa_challenge_failedauth.no_membershipsauth.oidc_authorization_failedauth.oidc_callback_failedauth.oidc_not_configuredauth.org_membership_missingauth.org_resolution_failedauth.organization_access_deniedauth.organization_resolution_failedauth.organization_selection_invalidauth.session_creation_failedauth.session_identity_invalidauth.session_invalid
89 more values
auth.session_requiredauth.session_store_errorauthentication.requiredauthorization.deniedcleanup.decision_not_pendingcleanup.decision_requiredcleanup.retry_already_scheduledconnector.credentials_missingconnector.github_group_discovery_limitconnector.github_organizations_unavailableconnector.gitlab_group_discovery_limitconnector.gitlab_membership_groups_unavailableconnector.ldap_group_discovery_limitconnector.ldap_groups_unavailableconnector.pausedconnector.test_timed_outconnector.type_unavailabledrift.acceptance_already_activedrift.acceptance_check_outdateddrift.acceptance_finding_resolveddrift.explicit_confirmation_requireddrift.invalid_target_filtergroup.expansion_limit_exceededhealth.snapshot_invalidhealth.snapshot_unavailableidentity.delete_blockedinstallation.maintenancenotification.delivery_failedoperation.already_runningpagination.cursor_invalidpagination.offset_unsupportedpolicy.access_held_by_group_rulepolicy.apply_in_progresspolicy.existing_rule_conflictpolicy.group_role_takenpolicy.member_credentials_pendingpolicy.not_template_managedpolicy.owned_objects_decision_requiredpolicy.target_service_account_incompletepolicy.template_managedpolicy.template_validation_failedpolicy.ttl_not_allowedrequest.cancelledrequest.failedrequest.invalidrequest.rate_limitedrequest.timed_outrequest.too_largerequest.unprocessableresource.conflictresource.not_foundresponse.unknownrotation.account_missingrotation.check_requiredrotation.interruptedrotation.not_confirmedsecret_store.unavailableservice.failedservice.internal_errorservice.unavailablesse.streaming_unsupportedsse.topics_requiredssh_key.in_usessh_tunnel.in_usetarget.account_identity_mismatchtarget.account_identity_unverifiedtarget.account_import_pendingtarget.account_principal_logintarget.account_takentarget.auto_remediation_unsupportedtarget.cluster_already_registeredtarget.connection_missingtarget.dex_sign_in_requiredtarget.grant_authority_missingtarget.manage_refusedtarget.operation_backoff_activetarget.replica_account_missingtarget.repair_requiredtarget_mutation_barriertenant.claims_invalidtenant.claims_missingtenant.membership_missingtenant.membership_unavailabletenant.org_access_deniedtenant.org_ambiguoustenant.org_header_invalidupstream.authentication_failedupstream.authorization_failedupstream.connection_failed
min length 1 · max length 128 · pattern ^[a-z][a-z0-9_-]*(\.[a-z0-9_-]+)*$
detailstring

User-facing sentence about this occurrence that names objects by their human names. It never contains API field names, routes, environment variables, UUIDs or error text. Such text goes to details.technical_detail. May be omitted, then clients use their text for the code.

The rules that keep a template from being deleted, seen from the caller organization. Rules of other organizations are never named or counted here.

field_errorsarray of xerr.FieldError

FieldErrors is an array of field-level validation errors (400 or 422 responses)

instancestring

Instance is a URI reference that identifies the specific occurrence of the problem (optional)

Client-visible next action that may resolve a problem

Safe retry metadata for a temporarily blocked target operation

Bounded resources related to a failed action

statusintegerrequired

Status is the HTTP status code

titlestringrequired

Title is a short, human-readable summary of the problem type

trace_idstring

TraceID is the trace ID for correlation (not part of RFC 7807, but useful)

typestring

Type is a URI reference that identifies the problem type (optional)

TestConnectionInlineRequest

kindstringrequired
postgreskubernetesmysqlclickhousemongodbssh
connection_refstringrequired
min length 10

Settings of an SSH target. A host has its own connection. A fleet names hosts by list and labels.

managedboolean
ssh_tunnel_idstring
organization_idstring

TestConnectionInlineResponse

successbooleanrequired
failure_messagestring
error_codestring
error_explanationstring
recommended_actionstring
recommended_sqlstring
current_userstring
checksarray of ConnectionCheckResultrequired
dex_discoveryDexDiscoveryResult

TestConnectionRequest

remote_hoststring
remote_portinteger
min 1 · max 65535
ssh_hoststringrequired
ssh_key_idstringrequired
ssh_portinteger
min 1 · max 65535
ssh_userstringrequired
min length 1 · max length 255

TestConnectionResponse

error_messagestring

Why the test failed, written for the operator (for example a changed host key, a key that is not authorized, a host that cannot be resolved or reached). It never carries the underlying library or storage error.

install_script_urlstring
successboolean
sudo_checked_atstring · date-time
sudo_errorstring

Why sudo cannot run the pg_hba.conf commands. Set only when the connection succeeded.

sudo_missing_commandsarray of string
sudo_modestring
sudo_okboolean

Whether the SSH user may run the pg_hba.conf commands with sudo. Absent when the connection failed.

test_tokenstring

TestConnectorRequest

connector_idstring · uuid
credentialsmap of string → string
specmap of string → anyrequired

Provider settings. GitLab and GitHub use canonical names: base_url, groups, excluded_group_suffixes, page_size, root_ca and insecure_skip_verify (GitLab: a PEM CA certificate of a self-managed server and whether to accept any server certificate. Changing either needs a new token), include_outside_collaborators and sync_bot_and_service_accounts (GitHub). Old names (url, baseUrl, api_url, group, pageSize, excludedGroups, excluded_groups, exclude_group_suffixes, includeOutsideCollaborators, syncBotAndServiceAccounts) are deprecated and accepted until 2027-01-01: they are read under the canonical names, and names of one setting with different values are rejected with 400. LDAP uses url (ldap:// or ldaps://), start_tls, insecure_skip_verify, root_ca, directory_type (active_directory or openldap), bind_dn, user_base_dn, user_filter, group_base_dn, group_filter, groups and excluded_group_suffixes. Its credential is bind_password.

typestringrequired
gitlabgooglegithubldap

TestConnectorResponse

groupsarray of string
messagestring
statusstring
success

TransitiveMembersResponse

TriggerSyncRequest

dry_runboolean

TriggerSyncResponse

TrustedNetworkApplicationResponse

target_idstring · uuidrequired
target_namestringrequired
application_idstring · uuidrequired
application_namestringrequired
uses_old_addressesbooleanrequired

The application's SSO gate still has the addresses of an earlier revision of the list. Saving the application access applies the current addresses.

TrustedNetworkCreateRequest

namestringrequired
max length 80
addressesarray of stringrequired

IP addresses or CIDR ranges. A single address means /32 or /128. IPv4 ranges are /16 or narrower, IPv6 ranges /32 or narrower. Up to 30 after duplicates are removed.

min items 1 · max items 200

TrustedNetworkListResponse

TrustedNetworkResponse

idstring · uuidrequired
namestringrequired
addressesarray of stringrequired
revisioninteger · int64required

Version of the list. Moves on every change, a rename included. An update names the version it read.

created_atstring · date-timerequired
updated_atstring · date-timerequired
applicationsarray of TrustedNetworkApplicationResponserequired

Applications whose SSO gate lets this list in. Empty in create and update responses.

TrustedNetworkUpdateRequest

namestringrequired
max length 80
addressesarray of stringrequired
min items 1 · max items 200
revisioninteger · int64required

The revision the list was read at. A save over another revision is refused with 409 and details.error_code version_mismatch.

min 1

TunnelEventResponse

idstring
event_typestring
levelstring
messagestring
latency_msinteger
bytes_sentinteger · int64
bytes_receivedinteger · int64
created_atstring

TunnelMetricsResponse

uptime_secondsinteger · int64
avg_latency_msinteger
min_latency_msinteger
max_latency_msinteger
bytes_sentinteger · int64
bytes_receivedinteger · int64
total_connectionsinteger
total_failuresinteger

TunnelStatusResponse

connected_sincestring
error_messagestring
last_connected_atstring
local_portinteger

Always 0. Principal no longer opens a local port for a tunnel. Kept for wire compatibility.

deprecated
statusstring
disconnectedconnectingconnectedfailed
target_idstring
tunnel_idstring

TypeAvailability

available - Principal can create and use this type now. Coming_soon - listed for the roadmap, Principal refuses to create, test or sync it.

string (TypeAvailability)
availablecoming_soon

UpdateAccessTemplateRequest

bodymap of string → any
default_ttlstring

TTL the rule wizard offers for this template, an ISO 8601 duration such as PT8H, no longer than max_ttl. Principal never adds it to a rule by itself. Absent keeps the saved value, an empty string removes it.

example "PT8H"
descriptionstring
max_ttlstring

Longest TTL a rule of this template may ask for (L-14), an ISO 8601 duration of 15 minutes to 30 days such as P1D. Absent keeps the saved value, an empty string removes the limit.

example "P1D"

UpdateConnectorRequest

credentialsmap of string → string
descriptionstring
max length 1000
enabledboolean
namestring
min length 1 · max length 100
schedulestring

Interval of scheduled syncs as an ISO 8601 duration (PT15M, PT1H, P1D, P1W), at least 5 minutes: a shorter one, PT0M or P0D included, is rejected with 400. A schedule sent back unchanged is kept as stored.

max length 50
specmap of string → any

Provider settings. GitLab and GitHub use canonical names: base_url, groups, excluded_group_suffixes, page_size, root_ca and insecure_skip_verify (GitLab: a PEM CA certificate of a self-managed server and whether to accept any server certificate. Changing either needs a new token), include_outside_collaborators and sync_bot_and_service_accounts (GitHub). Old names (url, baseUrl, api_url, group, pageSize, excludedGroups, excluded_groups, exclude_group_suffixes, includeOutsideCollaborators, syncBotAndServiceAccounts) are deprecated and accepted until 2027-01-01: they are saved under the canonical names, and names of one setting with different values are rejected with 400. LDAP uses url (ldap:// or ldaps://), start_tls, insecure_skip_verify, root_ca, directory_type (active_directory or openldap), bind_dn, user_base_dn, user_filter, group_base_dn, group_filter, groups and excluded_group_suffixes. Its credential is bind_password.

UpdateIdentityRequest

descriptionstring

Replaces the stored description. Omit or send an empty string to clear it.

max length 1000
display_namestring

New display name. Omit or send an empty string to keep the stored name.

max length 255
managedboolean

Deprecated compatibility field. Ownership is derived. Omit this field or echo the identity's current managed value. Changes are rejected.

deprecated
metadatamap of string → any

Replaces the custom attributes. Omit to keep the stored metadata. Server-owned keys are ignored and keep their stored values: principal_static_account, target_account_adoption, target_account_key, github_account_type, principal_password_rotated_at. The retired secret_ref key is ignored and removed.

sourcesarray of string

Deprecated compatibility field. Ownership is derived. Omit this field or echo the identity's current sources exactly. Changes are rejected.

deprecated

UpdatePolicyRequest

expires_atstring · date-time

New expiry of a rule with a TTL, at least a minute and at most 30 days from now. Send it alone with version. A rule without a TTL refuses it with policy.ttl_not_allowed, an expired rule with resource.conflict. Principal moves the expiry. On PostgreSQL it also runs Apply in the caller's name to move VALID UNTIL, so there the change needs access:apply (403 otherwise) and waits for an Apply or a removal of the rule that already runs (409). If that Apply does not start, the answer names it in warnings.

kubernetes_namespacesarray of string

Typed placement of a Kubernetes rule. For an update from a shared_by_template_v1 Kubernetes template a non-empty array replaces the placement and an explicit empty array is rejected. An absent field keeps the namespaces the rule stored for that template. Rejected for other template modes until unified materialization (accessTemplateSplit stage 3). For direct rules the field is presence-aware: an absent field keeps the stored placement, an explicit empty array clears it, a non-empty array replaces it.

metadatamap of string → any

Common field

namestring

The rule's own name, saved as metadata.name in every update mode (alone, with metadata, with rules or with a template update), as on create. A name sent here wins over metadata.name.

descriptionstring

The rule's description, saved as metadata.description in every update mode.

rulesarray of PolicyRuleRequest

Direct rules mode - mutually exclusive with template_name

template_namestring

Template mode - mutually exclusive with rules

template_varsmap of string → any
template_versioninteger
membershipsarray of PolicyMembershipRequest

Presence-aware memberships of the rule's account (PostgreSQL rules only): an absent field keeps the stored memberships, an array replaces them. A membership identical to a stored one keeps its origin. Sent with an explicit empty rules array, a non-empty memberships array clears the grants of the rule, imported rows included.

versionintegerrequired

UpdateSSHTunnelRequest

namestring
min length 1 · max length 100
remote_hoststring

Host the tunnel forwards to, as seen from the bastion. A connected tunnel uses it without a reconnect.

remote_portinteger

Port the tunnel forwards to. Requires remote_host in the request or on the tunnel.

min 1 · max 65535
ssh_key_idstring
ssh_hoststring
ssh_portinteger
min 1 · max 65535
ssh_userstring
min length 1 · max length 255
sudo_passwordstring

Password for sudo operations on remote server

min length 1 · max length 255
target_idstring

PostgreSQL target to link the tunnel to. An empty string unlinks the linked target.

UpdateTargetRequest

Pins Principal-managed SSO gate (oauth2-proxy) pods to schedulable nodes. Required for Kubernetes clusters where every node carries a taint. On update, a supplied empty object clears the configuration.

kubernetes_user_connectionKubernetesUserConnectionConfiguration

Kubernetes user kubeconfig connection, independent of the management connection. Omit to preserve the current setting on update. An empty object restores management defaults. A custom server with no CA uses the client system trust store. TLS verification is always enabled.

connection_refstring

Complete connection string. Omitted or empty preserves the saved secret. SQL replacements are verified before saving.

Settings of an SSH target. A host has its own connection. A fleet names hosts by list and labels.

drift_policymap of string → any

Compatibility block for clients of the previous release. Use applications_on_bundled_dex. A response shows the management address of this Principal's Dex only when the target's SSO applications are managed there and kubectl also signs in through this Principal's Dex, so older clients that read any address as "kubectl signs in through this Principal's Dex" stay right. In a request, the address of this Principal's Dex turns that management on. An empty object or an omitted block changes nothing (before this release an empty object turned it off). Any other address is refused. When a request carries applications_on_bundled_dex, that field decides and this block only has to name no other address. The target does not store this block.

applications_on_bundled_dexboolean

Whether the SSO applications of a Kubernetes target are managed in this Principal's own Dex. It is independent of kubectl sign-in (dex_custom): a target may have such applications without any kubectl sign-in, and they always use this Principal's Dex issuer and management address. In a request, true or false changes it. Omitted, it stays as it is (a new target gets true when kubectl signs in through this Principal's Dex). Only Kubernetes targets have it: a response carries it for them and omits it for other kinds, and a request for another kind is refused.

protect_new_ingressesboolean

Whether Principal protects every Ingress created in the Kubernetes target after this setting is turned on: the Ingress gets the SSO gate annotations at creation, Principal adds it as an application with its own Dex client and SSO gate, and only people with a rule on that application sign in. Ingresses that existed before stay as they are. System namespaces, Principal and Dex objects, cert-manager ACME solvers and Ingresses with the annotation principal.io/protect: "false" are not touched. Turning it off stops protecting new Ingresses and keeps the gates already created. It needs the target's SSO applications managed in this Principal's Dex. In a request, true or false changes it, omitted it stays as it is (a new target created without it has it off). Only Kubernetes targets have it.

k8s_drift_policystring
ignorealertremediate
kube_contextstring
managedboolean
managed_by_annotationstring

Value for the principal.io/managed-by label on K8s RBAC objects. Must be unique per cluster.

namestring
min length 1 · max length 255
revisioninteger · int64

Target revision observed by the caller. When omitted, the server pins the revision read at the start of this request for backward compatibility.

min 1
ssh_tunnel_idstring

SSH tunnel the target connects through. An empty string stops using the saved tunnel. An absent field keeps it.

discovery_schedulestring

UpgradePreflightResponse

Upgrade preflight report of the installation.

generated_atstring · date-timerequired
versionstringrequired

Build version of the binary that built the report.

schema_versioninteger · int64required

Applied metadata database migration. Null when it could not be read.

can be null
schema_dirtybooleanrequired

Whether the last migration was left incomplete. Null when it could not be read.

can be null
statusstring (UpgradePreflightStatus)required

ok: no remainders. Attention: remainders exist, the note says what to do. Unknown: a source could not be read, the section claims nothing.

okattentionunknown
sectionsarray of UpgradePreflightSectionrequired

UpgradePreflightSection

One area of the upgrade preflight report.

idstringrequired

Stable section identifier, for example jobs, kubernetes or identities.

titlestringrequired
statusstring (UpgradePreflightStatus)required

ok: no remainders. Attention: remainders exist, the note says what to do. Unknown: a source could not be read, the section claims nothing.

okattentionunknown
countsmap of string → integer · int64required

Named counts. The keys depend on the section.

samplesarray of stringrequired

Up to 20 identifiers of remainders as "<count key> <kind>:<id>". Never secrets.

max items 20
detailsmap of string → stringrequired

Non-numeric facts such as the oldest and newest row of a table (RFC 3339).

notestringrequired

What the remainders mean and what the operator should do (Russian).

UpgradePreflightStatus

ok: no remainders. Attention: remainders exist, the note says what to do. Unknown: a source could not be read, the section claims nothing.

ValidateManagedByConflictRef

target_idstring
target_namestring

ValidateManagedByRequest

managed_by_annotationstringrequired

The managed-by annotation value to validate.

min length 1 · max length 63 · pattern ^[A-Za-z0-9](?:[A-Za-z0-9._-]{0,61}[A-Za-z0-9])?$
cluster_server_urlstring

Preferred. Absolute HTTP(S) Kubernetes API server URL used to scope the uniqueness check. Takes precedence over the deprecated kubeconfig when both are supplied.

min length 1 · pattern ^https?://
kubeconfigstring

Deprecated compatibility field. Prefer cluster_server_url. The server only parses the Kubernetes API server URL.

deprecated
exclude_target_idstring

Target ID to exclude from the uniqueness check (for update flows).

ValidateManagedByResponse

validboolean
warningstring

ValidationErrors

field_errorsarray of FieldError
messagestring

xerr.FieldError

fieldstring

Field is the name of the field that failed validation

messagestring

User-facing sentence about the field that starts with its label, never with the API field name

tagstring

Tag is the validation tag that failed

valuestring

Omitted from public validation responses to avoid disclosing submitted values

xerr.ProblemDetails

RFC 7807 Problem Details response

codestringrequired

Stable machine-readable problem identifier

api_token.limit_reachedapi_token.role_exceeds_callerauth.agent_identity_unavailableauth.agent_login_disabledauth.agent_login_misconfiguredauth.agent_membership_requiredauth.agent_organization_unavailableauth.agent_token_invalidauth.api_token_invalidauth.api_token_not_allowedauth.csrf_invalidauth.csrf_requiredauth.dex_callback_invalidauth.dex_connector_disabledauth.dex_connector_session_invalidauth.dex_connector_unauthorizedauth.group_not_allowedauth.identity_alias_conflictauth.identity_not_registeredauth.identity_requiredauth.identity_resolution_unavailableauth.identity_suspendedauth.invalid_requestauth.invalid_stateauth.legacy_auth_disabledauth.login_start_failedauth.membership_invalidauth.mfa_challenge_failedauth.no_membershipsauth.oidc_authorization_failedauth.oidc_callback_failedauth.oidc_not_configuredauth.org_membership_missingauth.org_resolution_failedauth.organization_access_deniedauth.organization_resolution_failedauth.organization_selection_invalidauth.session_creation_failedauth.session_identity_invalidauth.session_invalid
89 more values
auth.session_requiredauth.session_store_errorauthentication.requiredauthorization.deniedcleanup.decision_not_pendingcleanup.decision_requiredcleanup.retry_already_scheduledconnector.credentials_missingconnector.github_group_discovery_limitconnector.github_organizations_unavailableconnector.gitlab_group_discovery_limitconnector.gitlab_membership_groups_unavailableconnector.ldap_group_discovery_limitconnector.ldap_groups_unavailableconnector.pausedconnector.test_timed_outconnector.type_unavailabledrift.acceptance_already_activedrift.acceptance_check_outdateddrift.acceptance_finding_resolveddrift.explicit_confirmation_requireddrift.invalid_target_filtergroup.expansion_limit_exceededhealth.snapshot_invalidhealth.snapshot_unavailableidentity.delete_blockedinstallation.maintenancenotification.delivery_failedoperation.already_runningpagination.cursor_invalidpagination.offset_unsupportedpolicy.access_held_by_group_rulepolicy.apply_in_progresspolicy.existing_rule_conflictpolicy.group_role_takenpolicy.member_credentials_pendingpolicy.not_template_managedpolicy.owned_objects_decision_requiredpolicy.target_service_account_incompletepolicy.template_managedpolicy.template_validation_failedpolicy.ttl_not_allowedrequest.cancelledrequest.failedrequest.invalidrequest.rate_limitedrequest.timed_outrequest.too_largerequest.unprocessableresource.conflictresource.not_foundresponse.unknownrotation.account_missingrotation.check_requiredrotation.interruptedrotation.not_confirmedsecret_store.unavailableservice.failedservice.internal_errorservice.unavailablesse.streaming_unsupportedsse.topics_requiredssh_key.in_usessh_tunnel.in_usetarget.account_identity_mismatchtarget.account_identity_unverifiedtarget.account_import_pendingtarget.account_principal_logintarget.account_takentarget.auto_remediation_unsupportedtarget.cluster_already_registeredtarget.connection_missingtarget.dex_sign_in_requiredtarget.grant_authority_missingtarget.manage_refusedtarget.operation_backoff_activetarget.replica_account_missingtarget.repair_requiredtarget_mutation_barriertenant.claims_invalidtenant.claims_missingtenant.membership_missingtenant.membership_unavailabletenant.org_access_deniedtenant.org_ambiguoustenant.org_header_invalidupstream.authentication_failedupstream.authorization_failedupstream.connection_failed
min length 1 · max length 128 · pattern ^[a-z][a-z0-9_-]*(\.[a-z0-9_-]+)*$
detailstring

User-facing sentence about this occurrence that names objects by their human names. It never contains API field names, routes, environment variables, UUIDs or error text. Such text goes to details.technical_detail. May be omitted, then clients use their text for the code.

detailsobject

Technical data of the problem for clients and support, never shown as a sentence. New field errors use field_errors.

field_errorsarray of xerr.FieldError

FieldErrors is an array of field-level validation errors (400 or 422 responses)

instancestring

Instance is a URI reference that identifies the specific occurrence of the problem (optional)

Client-visible next action that may resolve a problem

Safe retry metadata for a temporarily blocked target operation

Bounded resources related to a failed action

statusintegerrequired

Status is the HTTP status code

titlestringrequired

Title is a short, human-readable summary of the problem type

trace_idstring

TraceID is the trace ID for correlation (not part of RFC 7807, but useful)

typestring

Type is a URI reference that identifies the problem type (optional)

xerr.ProblemResolution

Client-visible next action that may resolve a problem

codestringrequired

Stable machine-readable resolution identifier

min length 1 · max length 128 · pattern ^[a-z][a-z0-9_-]*(\.[a-z0-9_-]+)*$
messagestringrequired

Human-readable next step

min length 1 · max length 1000

xerr.ProblemResource

Client-visible resource related to a failed action

idstring

Stable resource identifier when one is available

max length 256
kindstringrequired

Stable resource kind, such as identity, group, policy, or connector

min length 1 · max length 256 · pattern ^[a-z][a-z0-9_-]*(\.[a-z0-9_-]+)*$
labelstring

Human name of the resource, safe for the current actor to see. Never an identifier. Clients show it instead of the ID and label a resource without it by its kind.

max length 256
relationstringrequired

Stable relation between this resource and the failed action

min length 1 · max length 256 · pattern ^[a-z][a-z0-9_-]*(\.[a-z0-9_-]+)*$
sourcestring

System that owns the relation when relevant

max length 256

xerr.ProblemResourceCollection

Bounded resources related to a failed action

itemsarray of xerr.ProblemResourcerequired
max items 20
totalintegerrequired

Full number of related resources, including omitted items

min 0
truncatedbooleanrequired

Whether items contains only the first bounded page

xerr.ProblemRetry

Safe retry metadata for a temporarily blocked target operation

operationstringrequired
consecutive_failuresintegerrequired
min 0
next_attempt_atstring · date-time

When the pause ends by itself and runs are allowed again. Nothing starts at that moment. A scheduled run starts at its next slot.

↑ ↓ to moveEnter to openEsc to close