diff --git a/example/resource_virtual_environment_user.tf b/example/resource_virtual_environment_user.tf index 9017a70d..1e516ea3 100644 --- a/example/resource_virtual_environment_user.tf +++ b/example/resource_virtual_environment_user.tf @@ -10,6 +10,11 @@ resource "proxmox_virtual_environment_user" "example" { user_id = "terraform-provider-proxmox-example@pve" } +resource "proxmox_virtual_environment_user" "example2" { + comment = "Managed by Terraform" + user_id = "terraform-provider-proxmox-example2@pve" +} + output "resource_proxmox_virtual_environment_user_example_acl" { value = proxmox_virtual_environment_user.example.acl } diff --git a/proxmox/access/users_types.go b/proxmox/access/users_types.go index 90ac5083..224eb061 100644 --- a/proxmox/access/users_types.go +++ b/proxmox/access/users_types.go @@ -27,7 +27,7 @@ type UserCreateRequestBody struct { ID string `json:"userid" url:"userid"` Keys *string `json:"keys,omitempty" url:"keys,omitempty"` LastName *string `json:"lastname,omitempty" url:"lastname,omitempty"` - Password string `json:"password" url:"password"` + Password string `json:"password" url:"password,omitempty"` } // UserGetResponseBody contains the body from a user get response.