Passer au contenu principal
GET
https://{tenantDomain}/api/v2
/
attack-protection
/
suspicious-ip-throttling
Go
package example

import (
    context "context"

    client "github.com/auth0/go-auth0/management/management/client"
    option "github.com/auth0/go-auth0/management/management/option"
)

func do() {
    client := client.NewClient(
        option.WithToken(
            "<token>",
        ),
    )
    client.AttackProtection.SuspiciousIpThrottling.Get(
        context.TODO(),
    )
}
{
  "allowlist": [
    "127.0.0.1"
  ],
  "enabled": true,
  "shields": [],
  "stage": {
    "pre-login": {
      "max_attempts": 100,
      "rate": 864000
    },
    "pre-user-registration": {
      "max_attempts": 50,
      "rate": 1728000
    }
  }
}

Autorisations

Authorization
string
header
requis

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Réponse

Configuration de la limitation des adresses IP suspectes récupérée avec succès.

allowlist
(string<ipv4> | string<cidr> | string<ipv6> | string<ipv6_cidr>)[]

Liste des adresses IP de confiance pour lesquelles la protection contre les attaques ne sera pas appliquée.

enabled
boolean

Indique si les protections contre les attaques de limitation des adresses IP suspectes sont actives.

shields
enum<string>[]

Action à entreprendre lorsqu’un seuil de limitation des adresses IP suspectes est dépassé. Valeurs possibles : block, admin_notification.

Options disponibles:
block,
admin_notification
stage
object

Contient les options de configuration par étape (max_attempts et rate).