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
}Network ACLs を取得
クライアントのすべてのアクセス制御リストエントリーを取得します。
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
}承認
bearerAuthoAuth2ClientCredentials
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
クエリパラメータ
このフィールドを使用して、一覧結果の特定のページをリクエストします。
必須範囲:
x >= 01 ページあたりの結果数です。
必須範囲:
0 <= x <= 100結果を、合計結果数を含むオブジェクトとして返す(true)か、結果の配列を直接返す(false、デフォルト)かを指定します。
⌘I