Passer au contenu principal
GET
https://{tenantDomain}/api/v2
/
network-acls
Go
package example

import (
    context "context"

    management "github.com/auth0/go-auth0/management/management"
    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>",
        ),
    )
    request := &management.ListNetworkAclsRequestParameters{
        Page: management.Int(
            1,
        ),
        PerPage: management.Int(
            1,
        ),
        IncludeTotals: management.Bool(
            true,
        ),
    }
    client.NetworkAcls.List(
        context.TODO(),
        request,
    )
}
{
  "limit": 123,
  "network_acls": [
    {
      "active": true,
      "created_at": "<string>",
      "description": "<string>",
      "id": "<string>",
      "priority": 50.5,
      "rule": {
        "action": {
          "redirect_uri": "<string>"
        },
        "match": {
          "asns": [
            123
          ],
          "connecting_ipv4_cidrs": [
            "127.0.0.1"
          ],
          "connecting_ipv6_cidrs": [
            "2606:4700:3108::ac42:2835"
          ],
          "geo_country_codes": [
            "<string>"
          ],
          "geo_subdivision_codes": [
            "<string>"
          ],
          "hostnames": [
            "<string>"
          ],
          "ipv4_cidrs": [
            "127.0.0.1"
          ],
          "ipv6_cidrs": [
            "2606:4700:3108::ac42:2835"
          ],
          "ja3_fingerprints": [
            "<string>"
          ],
          "ja4_fingerprints": [
            "<string>"
          ],
          "user_agents": [
            "<string>"
          ]
        },
        "not_match": {
          "asns": [
            123
          ],
          "connecting_ipv4_cidrs": [
            "127.0.0.1"
          ],
          "connecting_ipv6_cidrs": [
            "2606:4700:3108::ac42:2835"
          ],
          "geo_country_codes": [
            "<string>"
          ],
          "geo_subdivision_codes": [
            "<string>"
          ],
          "hostnames": [
            "<string>"
          ],
          "ipv4_cidrs": [
            "127.0.0.1"
          ],
          "ipv6_cidrs": [
            "2606:4700:3108::ac42:2835"
          ],
          "ja3_fingerprints": [
            "<string>"
          ],
          "ja4_fingerprints": [
            "<string>"
          ],
          "user_agents": [
            "<string>"
          ]
        }
      },
      "updated_at": "<string>"
    }
  ],
  "start": 123,
  "total": 123
}

Autorisations

Authorization
string
header
requis

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

Paramètres de requête

page
integer

Utilisez ce champ pour demander une page précise des résultats de la liste.

Plage requise: x >= 0
per_page
integer

Le nombre de résultats par page.

Plage requise: 0 <= x <= 100
include_totals
boolean

Renvoie les résultats dans un objet qui contient le nombre total de résultats (true) ou directement sous forme de tableau (false, par défaut).

Réponse

Liste de contrôle d’accès réseau récupérée avec succès.

limit
number
network_acls
object[]
start
number
total
number