We are running version 22.1.6 of the provider (matching the deployed AVI version).
When running terraform destroy the avi_cluster resource fails to be destroyed returning the error message
Encountered an error on DELETE request to URL https://192.168.0.213/api/cluster/cluster-f2bf8b9d-fa77-41c6-bf84-5409aed50b02: HTTP code: 405; error from Controller: map[detail:Method 'DELETE' not allowed.]
The avi_cluster resource does not issue a DELETE request to the AVI API, as this is not allowed.
The avi_cluster resource in terraform is removed and not throwing an error.
Describe the bug
We are running version 22.1.6 of the provider (matching the deployed AVI version).
When running terraform destroy the avi_cluster resource fails to be destroyed returning the error message
Encountered an error on DELETE request to URL https://192.168.0.213/api/cluster/cluster-f2bf8b9d-fa77-41c6-bf84-5409aed50b02: HTTP code: 405; error from Controller: map[detail:Method 'DELETE' not allowed.]
Reproduction steps
using https://github.com/vmware/terraform-provider-avi/tree/eng/examples/vmware/vsphere_steps/04_avi_cluster
Expected behavior
The avi_cluster resource does not issue a DELETE request to the AVI API, as this is not allowed. The avi_cluster resource in terraform is removed and not throwing an error.
Additional context
No response