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.CreateNetworkAclRequestContent{
Description: "description",
Active: true,
Priority: 1.1,
Rule: &management.NetworkAclRule{
Action: &management.NetworkAclAction{},
Scope: management.NetworkAclRuleScopeEnumManagement,
},
}
client.NetworkAcls.Create(
context.TODO(),
request,
)
}Create a new access control list for your client.
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.CreateNetworkAclRequestContent{
Description: "description",
Active: true,
Priority: 1.1,
Rule: &management.NetworkAclRule{
Action: &management.NetworkAclAction{},
Scope: management.NetworkAclRuleScopeEnumManagement,
},
}
client.NetworkAcls.Create(
context.TODO(),
request,
)
}Documentation Index
Fetch the complete documentation index at: https://auth0-feat-custom-rate-limit-policies.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
255Indicates whether or not this access control list is actively being used
Show child attributes
Indicates the order in which the ACL will be evaluated relative to other ACL rules.
1 <= x <= 100Network ACL successfully created.
Cette page vous a-t-elle été utile ?