Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Data Sources to list all Address Groups for a given project and another to describe specific address group #20871

Open
yahooduggirala opened this issue Jan 10, 2025 · 1 comment

Comments

@yahooduggirala
Copy link

yahooduggirala commented Jan 10, 2025

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request.
  • Please do not leave +1 or me too comments, they generate extra noise for issue followers and do not help prioritize the request.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.
  • If an issue is assigned to a user, that user is claiming responsibility for the issue.
  • Customers working with a Google Technical Account Manager or Customer Engineer can ask them to reach out internally to expedite investigation and resolution of this issue.

Description

Need two data sources -

  1. One that can list all address groups within a given project. Essentially the same/similar output as this gcloud command. Ideal output would be a list of objects where each object contains information about each addressgroup - like list of items, capacity, name and location.
gcloud network-security address-groups list --location global --format=json
  1. Another one that can fetch details of a given specific address group name. The ideal output of this would be a single object containing information about that addressgroup like list of items, capacity, name and location

New or Affected Resource(s)

  • google_network_security_address_group
  • google_network_security_address_groups

Potential Terraform Configuration

data "google_network_security_address_groups" "test" {
   project = "project_name"
}

data "google_network_security_address_group" "testA" {
    name = "foobar"
}

References

No response

b/389666666

@BBBmau
Copy link
Contributor

BBBmau commented Jan 13, 2025

looks like using the list method would be ideal for getting all the addressGroups in a single project

then using listReferences method for getting details of a specific address Group

@BBBmau BBBmau added size/m and removed forward/review In review; remove label to forward labels Jan 13, 2025
@BBBmau BBBmau added this to the Goals milestone Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants