Skip to content

Retrieve an offline mode health policy

Request

Early Access

Retrieves the offline mode health policy for the specified identity provider (IdP) by idpId

Path
idpIdstring, (uuid)required

Identifier of the IdP

curl -i -X GET \
  'https://oag.domain.tld/api/v2/idps/{idpId}/offline-mode/health-policy'

Responses

Success

Bodyapplication/json
failureThresholdinteger, [ 1 .. 10 ]

The number of consecutive failed health checks that must occur before marking the Okta IdP service as unhealthy.

The Okta IdP service is considered unhealthy when Access Gateway can't connect to the IdP after a certain number of retry attempts. After the Okta IdP reaches the failure threshold, failover to offline mode (if failover is enabled) is triggered and sign in requests are redirected to the offline mode IdP.

Default:3
healthCheckIntervalinteger, [ 60 .. 300 ]

The amount of time, in seconds, between health check requests

Default:60
Enum:60120180240300
maxRetriesinteger, [ 0 .. 5 ]

The maximum number of retry attempts for failed health checks

Default:3
recoveryCooldownIntervalinteger, [ 120 .. 6000 ]

The interval, in seconds, that Access Gateway waits after successThreshold is met and the Okta IdP is marked healthy before it reconnects to the Okta IdP and exits offline mode.

The value of recoveryCooldownInterval must be at least twice the time it takes Access Gateway to detect a failure, which is the product of the healthCheckInterval value multiplied by the failureThreshold value. This minimum interval prevents Access Gateway from alternating between online and offline mode. A shorter cooldown could let Access Gateway reconnect, hit the same failure again almost immediately, and fail over before the recovery is confirmed to be stable.

For example, with a value of 60 for healthCheckInterval and 3 for failureThreshold, recoveryCooldownInterval must be at least 360 seconds. Any value greater than or equal to this minimum is valid. The value can't exceed the maximum allowed value of 6000 seconds.

Default:360
successThresholdinteger, [ 1 .. 10 ]

The number of consecutive successful health checks that must occur before marking the Okta IdP service as healthy

Default:2
timeoutinteger, [ 1 .. 10 ]

The amount of time, in seconds, that a health check HTTPS request can take before it's considered a failure

Default:3
Response
{ "healthCheckInterval": 180, "timeout": 4, "maxRetries": 2, "failureThreshold": 4, "successThreshold": 3, "recoveryCooldownInterval": 1440 }