vmware / terraform-provider-avi

Terraform AVI Networks provider
https://registry.terraform.io/providers/vmware/avi/latest/docs
Mozilla Public License 2.0
31 stars 32 forks source link

avi_user unsupported argument #583

Open vitality411 opened 8 months ago

vitality411 commented 8 months ago

Describe the bug

In the example usage of avi_user from https://registry.terraform.io/providers/vmware/avi/latest/docs/resources/avi_user#example-usage the argument tenant_ref is used. But this is not a supported argument. The correct arguement is default_tenant_ref.

Reproduction steps

  1. Try do deploy avi_user resource
    resource "avi_user" "foo" {
    name = "terraform-example-foo"
    tenant_ref = "/api/tenant/?name=admin"
    }
  2. Apply
  3. Receive error
    
    │ Error: Unsupported argument
    │
    │   on 201_t1-001-alb-cloud.tf line 87, in resource "avi_user" "foo":
    │   87:     tenant_ref = "/api/tenant/?name=admin"
    │
    │ An argument named "tenant_ref" is not expected here.


### Expected behavior

Adjust example usage with the correct argument.

### Additional context

_No response_