Skip to main content
POST
/
network-acls
TypeScript
import { ManagementClient } from "auth0";

async function main() {
    const client = new ManagementClient({
        token: "<token>",
    });
    await client.networkAcls.create({
        description: "description",
        active: true,
        priority: 1.1,
        rule: {
            action: {},
            scope: "management",
        },
    });
}
main();

Authorizations

Authorization
string
header
required

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

Body

description
string
required
Maximum string length: 255
active
boolean
required

Indicates whether or not this access control list is actively being used

priority
number
required

Indicates the order in which the ACL will be evaluated relative to other ACL rules.

Required range: 1 <= x <= 100
rule
object
required

Response

Network ACL successfully created.