Use this resource to create a Nexus Routing Rule.
resource "nexus_routing_rule" "stop_leaks" {
name = "stop-leaks"
description = "Prevent requests of internal names"
mode = "BLOCK"
matchers = [
"^/com/example/.*",
"^/org/example/.*",
]
}
matchers
(Set of String) Matchers is a list of regular expressions used to identify request paths that are allowed or blocked (depending on above mode)name
(String) The name of the routing ruledescription
(String) The description of the routing rulemode
(String) The mode describe how to hande with mathing requests. Possible values: BLOCK
or ALLOW
Default: BLOCK
Import is supported using the following syntax:
# import using the name of routing rule
terraform import nexus_routing_rule.stop_leaks stop-leaks