terraform-provider-netbox
terraform-provider-netbox copied to clipboard
Feature request: Find by Name or Slug attribute for netbox_tenant (Data Source)
Hi there,
The first thing is thank you for your Netbox provider version because it's very good and integration is very easy.
My question: Can you add "slug" attribute on netbox_tenant (Data Source) resource and change the "name" attribute from "Required" to "Optional" ?
My case is the Name attribute is very specific and my child environment don't know this value. The child environment know the slug because it's specific code for the project.
The puprose of this feature request is to find "netbox_tenant" by Name or/and Slug but without Name or Slug as Required, and passed the both in Optional. In this case you can use "Name" OR/AND "Slug" attribute.
I use e-breuninger/netbox provider in version 2.0.5.
Terraform Version
$ terraform -v
Terraform v1.2.8
on linux_amd64
+ provider registry.terraform.io/e-breuninger/netbox v2.0.5
Affected Resource(s)
Please list the resources as a list, for example:
- netbox_tenant (Data Source)
Terraform Configuration Files
data "netbox_tenant" "customer_a" {
slug = "customer_A_code"
}
Thank you for your job on this provider.
Regards,