メインコンテンツへスキップ
GET
https://{tenantDomain}/api/v2
/
user-blocks
/
{id}
Go
package example

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

func do() () {
    client := client.NewClient(
        option.WithToken(
            "<token>",
        ),
    )
    client.UserBlocks.List(
        context.TODO(),
        "id",
        &management.ListUserBlocksRequestParameters{
            ConsiderBruteForceEnablement: management.Bool(
                true,
            ),
        },
    )
}
{
  "blocked_for": [
    {
      "identifier": "john.doe@gmail.com",
      "ip": "10.0.0.1",
      "connection": "<string>"
    }
  ]
}

承認

Authorization
string
header
必須

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

パスパラメータ

id
string
必須

user_id of the user blocks to retrieve.

クエリパラメータ

consider_brute_force_enablement
boolean
If true and Brute Force Protection is enabled and configured to block logins, will return a list of blocked IP addresses.
If true and Brute Force Protection is disabled, will return an empty list.

レスポンス

User block successfully retrieved.

blocked_for
object[]

Array of identifier + IP address pairs. IP address is optional, and may be omitted in certain circumstances (such as Account Lockout mode).