Passer au contenu principal
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();

Autorisations

Authorization
string
header
requis

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

Corps

description
string
requis
Maximum string length: 255
active
boolean
requis

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

priority
number
requis

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

Plage requise: 1 <= x <= 100
rule
object
requis

Réponse

Network ACL successfully created.