terraform-provider-nsxt icon indicating copy to clipboard operation
terraform-provider-nsxt copied to clipboard

Data source data "nsxt_ns_groups" "map" { } is not working in version 3.2.8

Open Nareshcbit opened this issue 2 years ago • 4 comments

Describe the bug

Error: This data source is not supported with given provider settings │ │ with data.nsxt_ns_groups.map, │ on main.tf line 34, in data "nsxt_ns_groups" "map": │ 34: data "nsxt_ns_groups" "map" { │

Reproduction steps

1. terraform {
  required_providers {
    nsxt = {
      source = "vmware/nsxt"
      version = "3.2.8"
    }
  }
}
2. data "nsxt_ns_groups" "map" {
}
3. run terraform plan

...

Expected behavior

This data source is expected to build a "name to uuid" map of the whole NS Group table.

Additional context

No response

Nareshcbit avatar Aug 02 '22 20:08 Nareshcbit

Hi @Nareshcbit, are you running against VMC environment? Manager resources are not supported on VMC.

annakhm avatar Aug 02 '22 23:08 annakhm

@annakhm yes I am running against VMC.

Any idea if it is coming in the future releases? Because, if it is coming soon we would like to use the native data resources than using custom approaches.

Nareshcbit avatar Aug 04 '22 15:08 Nareshcbit

Last time we checked, VMC did not support Manager API that is required to expose Manager objects in the provider (as opposed to policy objects). Would you be happy to use nsxt_policy_groups data source if it existed? This could be a feature request.

annakhm avatar Aug 04 '22 18:08 annakhm

Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label.

If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you!

github-actions[bot] avatar Mar 29 '24 17:03 github-actions[bot]