Docs
Live demo
POST/api/v2/targets

Create a new target (PostgreSQL, MariaDB, ClickHouse, or Kubernetes) with connection configuration

connection_ref is stored in OpenBao. managed: false creates an observe-only target. See GET /targets/types for fields per engine.

Request body application/json · CreateTargetRequest

Target creation request

Required3 of 22 fields
connection_refstringrequired
min length 10
kindstring (TargetKind)required
postgreskubernetesmysqlclickhousemongodbapplicationssh
namestringrequired
min length 1 · max length 255
Optional11 fields
drift_policymap of string → any
11 fields
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
11 fields
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
A new target cannot have it, the request answers 400. Use dex_custom.
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.

organization_idstring
ssh_tunnel_idstring
discovery_schedulestring
test_connectionboolean
Only for one kind of target8 fields
Kubernetesauth_gate_scheduling, kubernetes_user_connection, dex_grpc, applications_on_bundled_dex, protect_new_ingresses5

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.

2 fields
node_selectormap of string → string
tolerationsarray of AuthGateToleration
max items 16
4 fields
effectstring
NoSchedulePreferNoScheduleNoExecute
keystring
max length 253
operatorstring
EqualExists
valuestring
max length 63
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.

3 fields
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.

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.

4 fields
addressstring
min length 1 · max length 512
insecureboolean
credential_refstring
min length 1 · max length 512
timeout_secondsinteger
min 1 · max 60
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.

ClickHouseclickhouse1
clickhouseClickHouseConfigurationrequired for clickhouse
2 fields
topology_modestringrequired
singleon_cluster
cluster_namestring
min length 1 · max length 255
SSHssh1
sshSSHTargetConfigurationrequired for ssh

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

4 fields
rolestringrequired
hostfleet
4 fields
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.

2 fields
host_idsarray of string · uuid
selectormap of string → string

A host joins the fleet when it has every one of these labels.

certificate_ttl_minutesinteger

Lifetime of the certificates Principal issues for this target, 5 to 1440 minutes. Default 480.

min 5 · max 1440
PostgreSQLhba1
6 fields
container_namestring
default_addressstring
default_methodstring
enabledbooleanrequired
file_pathstring
provider_typestring

Responses

201

Created

TargetResponse · 55 fields

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.

6 fields
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
3 fields
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.

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.

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.

8 fields
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.

8 fields
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
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.

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.

8 fields
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

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.

2 fields
node_selectormap of string → string
tolerationsarray of AuthGateToleration
max items 16
4 fields
effectstring
NoSchedulePreferNoScheduleNoExecute
keystring
max length 253
operatorstring
EqualExists
valuestring
max length 63
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.

3 fields
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.

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
2 fields
topology_modestringrequired
singleon_cluster
cluster_namestring
min length 1 · max length 255

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

4 fields
rolestringrequired
hostfleet
4 fields
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.

2 fields
host_idsarray of string · uuid
selectormap of string → string

A host joins the fleet when it has every one of these labels.

certificate_ttl_minutesinteger

Lifetime of the certificates Principal issues for this target, 5 to 1440 minutes. Default 480.

min 5 · max 1440
created_atstring
drift_policymap of string → any
11 fields
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

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.

4 fields
addressstring
min length 1 · max length 512
insecureboolean
credential_refstring
min length 1 · max length 512
timeout_secondsinteger
min 1 · max 60
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.

11 fields
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
6 fields
container_namestring
default_addressstring
default_methodstring
enabledbooleanrequired
file_pathstring
provider_typestring
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
4 fields
enabledbooleanrequired
ssh_hoststring
ssh_portinteger
ssh_userstring
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
409

Another target of the organization already has this name, compared without regard to case (code resource.conflict), or the Kubernetes cluster of the kubeconfig is already registered as a target (code target.cluster_already_registered. Resources name the registered target when it belongs to the caller's organization). One Kubernetes cluster, identified by the UID of its kube-system namespace, has one target in an installation. Test installations of Principal in the shared cluster registration mode accept the cluster and report the target as duplicate instead.

422

Automatic drift remediation is not supported

Common errors: 400 401 403 413 429 503 504. They mean the same for every operation, see Errors.

↑ ↓ to moveEnter to openEsc to close