Skip to main content Link Menu Expand (external link) Document Search Copy Copied

auth0 network-acl update

Update a network ACL. To update interactively, use “auth0 network-acl update” with no arguments. To update non-interactively, supply the required parameters (description, active, priority, and rule) through flags. When updating the rule, provide a complete JSON object with action, scope, and match/not_match properties.

Usage

auth0 network-acl update [flags]

Examples

  auth0 network-acl update <id>
  auth0 network-acl update <id> --priority 5 
  auth0 network-acl update <id> --active true
  auth0 network-acl update <id> --description "Complex Rule updated" --priority 1 --active true --rule '{"action":{"block":true},"scope":"tenant","match":{"ipv4_cidrs":["192.168.1.0/24"],"geo_country_codes":["US"]}}'

Flags

      --action string               Action for the rule (block, allow, log, redirect)
      --active string               Whether the network ACL is active ('true' or 'false')
      --asns ints                   Comma-separated list of ASNs to match (Eg. 64496,64497,64498)
      --country-codes strings       Comma-separated list of country codes to match (Eg. US,CA,MX)
  -d, --description string          Description of the network ACL
      --ipv4-cidrs strings          Comma-separated list of IPv4 CIDR ranges (Eg. 192.168.1.0/24,10.0.0.0/8)
      --ipv6-cidrs strings          Comma-separated list of IPv6 CIDR ranges (Eg. 2001:db8::/32,2001:db8:1234::/48)
      --ja3-fingerprints strings    Comma-separated list of JA3 fingerprints to match (Eg. deadbeef,cafebabe)
      --ja4-fingerprints strings    Comma-separated list of JA4 fingerprints to match (Eg. t13d1516h2_8daaf6152771)
      --json                        Output in JSON format
  -p, --priority int                Priority of the network ACL (1-10) (default 1)
      --redirect-uri string         URI to redirect to when action is redirect
      --rule string                 Network ACL rule configuration in JSON format
      --scope string                Scope of the rule (management, authentication, tenant)
      --subdivision-codes strings   Comma-separated list of subdivision codes to match (Eg. US-NY,US-CA)
      --user-agents strings         Comma-separated list of user agents to match (Eg. badbot/*,malicious/*)

Inherited Flags

      --debug           Enable debug mode.
      --no-color        Disable colors.
      --no-input        Disable interactivity.
      --tenant string   Specific tenant to use.