Use this resource to manage a privilege for a repository content selector
resource "nexus_repository_helm_hosted" "example" {
name = "example_repository"
online = true
storage {
blob_store_name = "default"
strict_content_type_validation = false
write_policy = "ALLOW"
}
}
resource "nexus_security_content_selector" "example" {
name = "example_content_selector"
description = "A content selector matching public docker images."
expression = "path =^ \"/v2/public/\""
}
resource "nexus_privilege_repository_content_selector" "example" {
name = "example_privilege"
description = "description"
actions = ["ADD", "READ", "DELETE", "BROWSE", "EDIT"]
repository = resource.nexus_repository_helm_hosted.example.name
format = "helm"
content_selector = resource.nexus_security_content_selector.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-PrivilegeTypescontent_selector
(String) The content selectorformat
(String) The format of the referenced Repositoryname
(String) The name of the privilege. This value cannot be changed.repository
(String) Name of the repository the privilege applies todescription
(String) A descriptionImport is supported using the following syntax:
# import using the name of the privilege
terraform import nexus_privilege_repository_content_selector.example name