Okta.Sdk.Api.AttackProtectionApi

October 22, 2025 ยท View on GitHub

All URIs are relative to https://subdomain.okta.com

MethodHTTP requestDescription
GetAuthenticatorSettingsGET /attack-protection/api/v1/authenticator-settingsRetrieve the authenticator settings
GetUserLockoutSettingsGET /attack-protection/api/v1/user-lockout-settingsRetrieve the user lockout settings
ReplaceAuthenticatorSettingsPUT /attack-protection/api/v1/authenticator-settingsReplace the authenticator settings
ReplaceUserLockoutSettingsPUT /attack-protection/api/v1/user-lockout-settingsReplace the user lockout settings

GetAuthenticatorSettings

List<AttackProtectionAuthenticatorSettings> GetAuthenticatorSettings ()

Retrieve the authenticator settings

Retrieves the Authenticator Settings for an org

Example

using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;

namespace Example
{
    public class GetAuthenticatorSettingsExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.OktaDomain = "https://subdomain.okta.com";
            // Configure API key authorization: apiToken
            config.Token ="YOUR_API_KEY";
            // Configure OAuth2 access token for authorization: oauth2
            config.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new AttackProtectionApi(config);

            try
            {
                // Retrieve the authenticator settings
                List<AttackProtectionAuthenticatorSettings> result = apiInstance.GetAuthenticatorSettings().ToListAsync();
                Debug.WriteLine(result);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling AttackProtectionApi.GetAuthenticatorSettings: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

This endpoint does not need any parameter.

Return type

List<AttackProtectionAuthenticatorSettings>

Authorization

apiToken, oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200OK-
403Forbidden-
429Too Many Requests-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetUserLockoutSettings

List<UserLockoutSettings> GetUserLockoutSettings ()

Retrieve the user lockout settings

Retrieves the User Lockout Settings for an org

Example

using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;

namespace Example
{
    public class GetUserLockoutSettingsExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.OktaDomain = "https://subdomain.okta.com";
            // Configure API key authorization: apiToken
            config.Token ="YOUR_API_KEY";
            // Configure OAuth2 access token for authorization: oauth2
            config.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new AttackProtectionApi(config);

            try
            {
                // Retrieve the user lockout settings
                List<UserLockoutSettings> result = apiInstance.GetUserLockoutSettings().ToListAsync();
                Debug.WriteLine(result);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling AttackProtectionApi.GetUserLockoutSettings: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

This endpoint does not need any parameter.

Return type

List<UserLockoutSettings>

Authorization

apiToken, oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200OK-
403Forbidden-
429Too Many Requests-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ReplaceAuthenticatorSettings

AttackProtectionAuthenticatorSettings ReplaceAuthenticatorSettings (AttackProtectionAuthenticatorSettings authenticatorSettings)

Replace the authenticator settings

Replaces the Authenticator Settings for an org

Example

using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;

namespace Example
{
    public class ReplaceAuthenticatorSettingsExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.OktaDomain = "https://subdomain.okta.com";
            // Configure API key authorization: apiToken
            config.Token ="YOUR_API_KEY";
            // Configure OAuth2 access token for authorization: oauth2
            config.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new AttackProtectionApi(config);
            var authenticatorSettings = new AttackProtectionAuthenticatorSettings(); // AttackProtectionAuthenticatorSettings | 

            try
            {
                // Replace the authenticator settings
                AttackProtectionAuthenticatorSettings result = apiInstance.ReplaceAuthenticatorSettings(authenticatorSettings);
                Debug.WriteLine(result);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling AttackProtectionApi.ReplaceAuthenticatorSettings: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

NameTypeDescriptionNotes
authenticatorSettingsAttackProtectionAuthenticatorSettings

Return type

AttackProtectionAuthenticatorSettings

Authorization

apiToken, oauth2

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200OK-
400Bad Request-
403Forbidden-
429Too Many Requests-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ReplaceUserLockoutSettings

UserLockoutSettings ReplaceUserLockoutSettings (UserLockoutSettings lockoutSettings)

Replace the user lockout settings

Replaces the User Lockout Settings for an org

Example

using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;

namespace Example
{
    public class ReplaceUserLockoutSettingsExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.OktaDomain = "https://subdomain.okta.com";
            // Configure API key authorization: apiToken
            config.Token ="YOUR_API_KEY";
            // Configure OAuth2 access token for authorization: oauth2
            config.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new AttackProtectionApi(config);
            var lockoutSettings = new UserLockoutSettings(); // UserLockoutSettings | 

            try
            {
                // Replace the user lockout settings
                UserLockoutSettings result = apiInstance.ReplaceUserLockoutSettings(lockoutSettings);
                Debug.WriteLine(result);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling AttackProtectionApi.ReplaceUserLockoutSettings: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

NameTypeDescriptionNotes
lockoutSettingsUserLockoutSettings

Return type

UserLockoutSettings

Authorization

apiToken, oauth2

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200OK-
400Bad Request-
403Forbidden-
429Too Many Requests-

[Back to top] [Back to API list] [Back to Model list] [Back to README]