Skip to main content
Cloud has the newest features. Some may not be in a release yet; the newest release is Identity & Access Management 7.3.0.

Server Configuration API

Download OpenAPI (YAML)Version 1.0

Base URL: https://localhost:8090

API to manage server-wide configuration that is mutable at runtime without a restart. Each configuration section is stored under a well-known name. A section is read as three layers: readOnly (declarative, fixed at boot), writable (runtime-mutable, set via PUT), and merged (the effective value in use, derived from the other two). The concrete shape of a section's value is section-specific.

Download the OpenAPI definition (YAML)

Security schemes​

OAuth2: oauth2

authorizationCode flow, token URL /oauth2/token, authorization URL /oauth2/authorize

1 scopes
ScopeDescription
systemAccess to system management APIs

clientCredentials flow, token URL /oauth2/token

1 scopes
ScopeDescription
systemAccess to system management APIs

management​

Manage server-wide configuration (admin)

List server configuration sections​

GET /server-config

Returns the names of the supported server-wide configuration sections.

Scopes: system

Responses

CodeDescriptionSchema
200

The supported configuration section names

ServerConfigNameList
401

Unauthorized

Error
500

Internal server error

Error

Get a server configuration section​

GET /server-config/{name}

Returns a single server-wide configuration section by name as its three layers. All three layers (readOnly, writable, merged) are always present in the response; the shape of each layer's value is section-specific.

Scopes: system

Parameters

NameInTypeRequiredDescription
namepathstringYes

The configuration section name.

Responses

CodeDescriptionSchema
200

The requested server configuration section

ServerConfigLayers
400

Unsupported configuration name

Error
401

Unauthorized

Error
500

Internal server error

Error

Update a server configuration section​

PUT /server-config/{name}

Replaces the writable layer of the named section with the request body. The value is validated before any write; an invalid value is rejected and nothing is changed. The section is cleared by setting it to an empty value. Returns the recomputed layers.

Scopes: system

Parameters

NameInTypeRequiredDescription
namepathstringYes

The configuration section name.

Request body (required): application/json

Schema: ServerConfigValue

Responses

CodeDescriptionSchema
200

The recomputed server configuration section

ServerConfigLayers
400

Bad request

Error
401

Unauthorized

Error
500

Internal server error

Error

Schemas​

ServerConfigNameList​

Type: array of string

The supported configuration section names.

ServerConfigValue​

Type: any

The value of a configuration section. Its concrete shape is section-specific and may be any valid JSON value (object, array, or scalar). See AccountAccessConfig for the shape of the accountAccess section and NotificationConfig for the notification section.

AccountAccessConfig​

Type: object

The value of the accountAccess section: automatic account lock and sign-in recording settings for each identity category.

Every field is optional. A PUT replaces the entire runtime layer; include all runtime overrides that must be kept. An omitted field falls back to the deployment base, not the previous runtime value. Omitting a field is not the same as setting it to 0: a lock duration of 0 never expires, and a decay of 0 never resets the lock count.

A category that is not included uses the deployment defaults. To turn off locking for a category, set its default.enabled to false.

The defaults come from the account_access block of the deployment configuration, which must be valid on its own: an enabled policy there needs its threshold, failure window and lock durations, or the server does not start. A declarative accountAccess resource, when present, overrides the defaults and makes the section read-only, so a PUT is rejected with SCF-1003. Otherwise the stored value overrides the defaults.

Only user and agent can be configured. Applications are never locked, so an application key is rejected as an unknown field. An enabled policy that cannot form a lock is rejected with SCF-1003.

notifications configures the account lock email for each category and takes effect without a restart. Its templates are set only through this section, not the deployment configuration; the bootstrap stores the defaults. A PUT replaces the stored value, so it must carry the templates to keep them. The email is sent through the default email sender of the notification section.

2 properties
NameTypeRequiredDescription
userAccountAccessCategory

Account lock and sign-in recording settings for one identity category.

agentAccountAccessCategory

Account lock and sign-in recording settings for one identity category.

AccountAccessCategory​

Type: object

Account lock and sign-in recording settings for one identity category.

12 properties
NameTypeRequiredDescription
lockGranularitystring

What a lock applies to. authentication_method (the default) locks only the method that failed, so wrong passwords do not block a one-time code. account counts failures from every method together and locks them all.

Allowed values: authentication_method, account

recordLastLoginboolean

Whether to record lastLoginAt when an identity in this category signs in. For agents, issuing a client_credentials token also records it. Defaults to false.

Recording adds a write to the sign-in path, so it is off unless enabled. The server does not use the value itself; it helps find inactive identities.

lastLoginResolutionSecondsinteger

Minimum time between two lastLoginAt updates for the same identity, which limits the write cost of recording. 0 records every sign-in. Defaults to 3600.

defaultAccountAccessPolicy

The lock policy applied to every authentication method in this category.

default.enabledboolean

Whether automatic locking applies. Defaults to true when the rest of the policy is set.

default.thresholdinteger

Number of failures that forms a lock. The count restarts after failureWindowSeconds without a failure. At least 1 when enabled.

default.failureWindowSecondsinteger

Time without a failure after which the failure count resets. 0 means it never resets on time; a successful sign-in or a lock still resets it. Required for a lock to form.

default.lockDurationsSecondsarray of integer

Lock duration for each consecutive lock, in order. The last entry applies to every later lock. An entry of 0 never expires; the lock stays until it is cleared.

default.lockDecaySecondsinteger

Time after a lock ends before the consecutive lock count resets to zero. 0 means it never resets.

default.maxConsecutiveFailuresinteger

Failures with no success in between, counted per authentication method (or for the whole account under account granularity), that leave the lock in place until a recovery or an unlock, whatever the window and lock durations say. Neither time nor a lock ending resets this count; a success with that method (under account granularity, a completed sign-in), a completed recovery, or an unlock does. 0 sets no limit; otherwise it must be at least threshold.

notificationsAccountAccessNotifications

Notices sent to the account holder. Kept separate from the lock policy, so turning the email off does not change the policy and turning locking off does not change the email setting.

Only the user category sends notices today.

notifications.onLockobject

AccountAccessNotifications​

Type: object

The notices a category sends, keyed by event.

2 properties
NameTypeRequiredDescription
onLockobject
onLock.emailAccountAccessLockEmail

The email sent when an account is locked automatically. It goes to the user type's primary email; a user whose type has no primary email, or who has no value for it, gets no email. The sender is not set here: the email goes through the notification section's defaultEmailSenderId.

AccountAccessLockEmail​

Type: object

The email sent when an account is locked automatically. It goes to the user type's primary email; a user whose type has no primary email, or who has no value for it, gets no email. The sender is not set here: the email goes through the notification section's defaultEmailSenderId.

2 properties
NameTypeRequiredDescription
enabledboolean

Whether to send the email when a lock forms. Enabled for users by default.

templatesAccountAccessLockTemplates

The email notification templates the lock email uses, set only through this section; the bootstrap stores the defaults. temporary and permanent serve every lock, account overrides them for a lock on every sign-in method, and methods overrides them for a lock on one sign-in method. An override field that is not set uses the default. With no template for a lock, no email is sent.

A template can use {{ctx(lockedAuthenticationMethod)}}, the sign-in method that locked (credential or otp, empty for a lock on every sign-in method), {{ctx(lockDuration)}} and {{ctx(unlockTime)}}, the time a temporary lock lifts in UTC. The method is not translated; to word each method in its own language, set a template for each in methods.

AccountAccessLockTemplates​

Type: object

The email notification templates the lock email uses, set only through this section; the bootstrap stores the defaults. temporary and permanent serve every lock, account overrides them for a lock on every sign-in method, and methods overrides them for a lock on one sign-in method. An override field that is not set uses the default. With no template for a lock, no email is sent.

A template can use {{ctx(lockedAuthenticationMethod)}}, the sign-in method that locked (credential or otp, empty for a lock on every sign-in method), {{ctx(lockDuration)}} and {{ctx(unlockTime)}}, the time a temporary lock lifts in UTC. The method is not translated; to word each method in its own language, set a template for each in methods.

8 properties
NameTypeRequiredDescription
temporarystring

Handle of the template for a lock that expires. The bootstrap sets authentication-method-locked.

permanentstring

Handle of the template for a lock that does not expire. The bootstrap sets authentication-method-locked-permanent.

accountAccountAccessTemplatePair

Templates for a lock on every sign-in method. The bootstrap sets account-locked and account-locked-permanent.

account.temporarystring

Handle of the template for a lock that expires.

account.permanentstring

Handle of the template for a lock that does not expire.

methodsobject

Templates for a lock on one sign-in method. The bootstrap sets none.

methods.credentialAccountAccessTemplatePair

The templates for a lock that expires and for one that does not.

methods.otpAccountAccessTemplatePair

The templates for a lock that expires and for one that does not.

AccountAccessTemplatePair​

Type: object

The templates for a lock that expires and for one that does not.

2 properties
NameTypeRequiredDescription
temporarystring

Handle of the template for a lock that expires.

permanentstring

Handle of the template for a lock that does not expire.

AccountAccessPolicy​

Type: object

The lock policy for a category, applied to every authentication method.

6 properties
NameTypeRequiredDescription
enabledboolean

Whether automatic locking applies. Defaults to true when the rest of the policy is set.

thresholdinteger

Number of failures that forms a lock. The count restarts after failureWindowSeconds without a failure. At least 1 when enabled.

failureWindowSecondsinteger

Time without a failure after which the failure count resets. 0 means it never resets on time; a successful sign-in or a lock still resets it. Required for a lock to form.

lockDurationsSecondsarray of integer

Lock duration for each consecutive lock, in order. The last entry applies to every later lock. An entry of 0 never expires; the lock stays until it is cleared.

lockDecaySecondsinteger

Time after a lock ends before the consecutive lock count resets to zero. 0 means it never resets.

maxConsecutiveFailuresinteger

Failures with no success in between, counted per authentication method (or for the whole account under account granularity), that leave the lock in place until a recovery or an unlock, whatever the window and lock durations say. Neither time nor a lock ending resets this count; a success with that method (under account granularity, a completed sign-in), a completed recovery, or an unlock does. 0 sets no limit; otherwise it must be at least threshold.

NotificationConfig​

Type: object

The value of the notification section. A declarative notification resource that names a sender locks the section: a PUT is then rejected with SCF-1003. An unknown field is rejected with SCF-1003.

1 property
NameTypeRequiredDescription
defaultEmailSenderIdstring

The email sender (/connections/email-smtp) used by email the server sends outside a flow, such as the account-lock notice. The sender is resolved when sending; an unknown sender or one that cannot send email causes delivery to fail. Empty means no default sender, and such email is not sent. Flow email nodes name their own sender.

ServerConfigLayers​

Type: object

A configuration section as its three layers. readOnly is the declarative value fixed at boot, writable is the runtime-mutable value set via PUT, and merged is the effective value in use — the merge of the other two. Every layer is always present; each value's shape is section-specific.

3 properties
NameTypeRequiredDescription
readOnlyServerConfigValueYes

Declarative layer fixed at boot.

writableServerConfigValueYes

Runtime-mutable layer set via PUT.

mergedServerConfigValueYes

Effective value in use — the merge of the readOnly and writable layers.

I18nMessage​

Type: object

Internationalized message with translation key and default value.

2 properties
NameTypeRequiredDescription
keystringYes

Translation key for fetching localized message.

defaultValuestringYes

Default message in English (fallback).

Error​

Type: object

3 properties
NameTypeRequiredDescription
codestringYes

Error code identifying the error condition (e.g. SCF-1003).

messageI18nMessageYes

Internationalized message with translation key and default value.

descriptionI18nMessage

Internationalized message with translation key and default value.

Was this page helpful?