Use this resource to create a Nexus Role.
# Example Usage - Create a group with roles
resource "nexus_security_role" "nx_admin" {
roleid = "nx-admin"
name = "nx-admin"
description = "Administrator role"
privileges = ["nx-all"]
roles = []
}
# Example Usage - Create a group with privileges
resource "nexus_security_role" "docker_deploy" {
description = "Docker deployment role"
name = "docker-deploy"
privileges = [
"nx-repository-view-docker-*-*",
]
roleid = "docker-deploy"
}
name
(String) The name of the role.roleid
(String) The id of the role.description
(String) The description of this role.privileges
(Set of String) The privileges of this role.roles
(Set of String) The roles of this role.Import is supported using the following syntax:
# import using the roleid of the security role
terraform import nexus_security_role.nx_admin nx-admin