Lockout Policy

Methods described in this section relate to the lockout policy API. These methods can be accessed at TenableAD.lockout_policy.

class LockoutPolicyAPI(api: restfly.session.APISession)[source]
details() Dict[source]

Get the lockout policy

Returns

The lockout policy object

Return type

dict

Examples

>>> tad.lockout_policy.details()
update(**kwargs) None[source]

Update the lockout policy

Parameters
  • enabled (optional, bool) – Whether the lockout policy enabled?

  • lockout_duration (optional, int) – The time duration for which user will be locked out after several failed login attempts.

  • failed_attempt_threshold (optional, int) – The number of failed login attempts to trigger lockout.

  • failed_attempt_period (optional, int) – The time to wait before the login attempts count is reseted.

Returns

None

Example

>>> tad.lockout_policy.update(enabled=True)