Use this resource to manage a privilege for a Script
resource "nexus_script" "example" {
name = "example_script"
content = "log.info('Hello, World!')"
}
resource "nexus_privilege_script" "example" {
name = "example_privilege"
description = "description"
actions = ["ADD", "READ", "DELETE", "RUN", "BROWSE", "EDIT"]
script_name = resource.nexus_script.example.name
}
actions
(List of String) A list of allowed actions. For a list of applicable values see https://help.sonatype.com/repomanager3/nexus-repository-administration/access-control/privileges#Privileges-PrivilegeTypesname
(String) The name of the privilege. This value cannot be changed.script_name
(String) The script Namedescription
(String) A descriptionImport is supported using the following syntax:
# import using the name of the privilege
terraform import nexus_privilege_script.example name