All URIs are relative to https://subdomain.okta.com
Method | HTTP request | Description |
---|---|---|
GetUserLockoutSettings | Get /attack-protection/api/v1/user-lockout-settings | Retrieve the User Lockout Settings |
ReplaceUserLockoutSettings | Put /attack-protection/api/v1/user-lockout-settings | Replace the User Lockout Settings |
[]UserLockoutSettings GetUserLockoutSettings(ctx).Execute()
Retrieve the User Lockout Settings
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/okta/okta-sdk-golang"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AttackProtectionAPI.GetUserLockoutSettings(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AttackProtectionAPI.GetUserLockoutSettings``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetUserLockoutSettings`: []UserLockoutSettings
fmt.Fprintf(os.Stdout, "Response from `AttackProtectionAPI.GetUserLockoutSettings`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetUserLockoutSettingsRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserLockoutSettings ReplaceUserLockoutSettings(ctx).LockoutSettings(lockoutSettings).Execute()
Replace the User Lockout Settings
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/okta/okta-sdk-golang"
)
func main() {
lockoutSettings := *openapiclient.NewUserLockoutSettings() // UserLockoutSettings |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AttackProtectionAPI.ReplaceUserLockoutSettings(context.Background()).LockoutSettings(lockoutSettings).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AttackProtectionAPI.ReplaceUserLockoutSettings``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ReplaceUserLockoutSettings`: UserLockoutSettings
fmt.Fprintf(os.Stdout, "Response from `AttackProtectionAPI.ReplaceUserLockoutSettings`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiReplaceUserLockoutSettingsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
lockoutSettings | UserLockoutSettings |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]