Docs
Live demo
POST/api/v2/applications/{id}/urls/preview

Preview ingress URL changes for a managed application without mutating Kubernetes resources.

Parameters

Path1 required of 1
idstring · uuidpathrequired

Application ID (UUID), the id of its target

Request body application/json · ApplicationURLPreviewRequest

Ingress URL mutation preview request

Responses

200

Preview result

ApplicationMutationPreviewResponse · 11 fields
preview_idstring · uuidrequired
kindstring
urldex_client
target_idstring · uuidrequired
application_idstring · uuidrequired
source_hashstringrequired
resource_versionstring
writablebooleanrequired
operationsarray of ApplicationMutationOperationResponserequired
5 fields
typestringrequired
descriptionstring
source_idstring
beforearray of string
afterarray of string
2 fields
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
warningsarray of string
12 fields
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
17 fields
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
17 fields
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
17 fields
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

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

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

3 fields
organization_idstring · uuidrequired
target_idstring · uuidrequired
application_idstring · uuidrequired
403

Principal access denied, or upstream.authorization_failed when upstream credentials lack permissions

502

The upstream service rejected its configured credentials (upstream.authentication_failed) or permissions (upstream.authorization_failed), or Principal could not connect to the target or another service the request needs (upstream.connection_failed). The Principal session remains valid.

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

↑ ↓ to moveEnter to openEsc to close