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

[FEATURE] Add data sources for listing resources #17

Closed
lechnerc77 opened this issue Oct 14, 2024 · 4 comments
Closed

[FEATURE] Add data sources for listing resources #17

lechnerc77 opened this issue Oct 14, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@lechnerc77
Copy link
Contributor

lechnerc77 commented Oct 14, 2024

What area do you want to see improved?

terraform provider

Is your feature request related to a problem? Please describe.

Currently only a read for one instance for a resource is available. However a list of available instances of a resource is not available as a data source.

Example: cloudfoundry_app is available as data source, but I cannot list all apps via cloudfoundry_apps

The corresponding API endpoints on CF side are available see e.g., https://v3-apidocs.cloudfoundry.org/version/3.179.0/index.html#apps

Describe the solution you would like

Add data sources should support the fetching of a list of resources not only one dedicated resource.

Describe alternatives you have considered

n/a

Additional context

n/a

@lechnerc77 lechnerc77 added the enhancement New feature or request label Oct 14, 2024
Copy link

Thanks for the feature request. We evaluate it and update the issue accordingly.

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

@lechnerc77
Copy link
Contributor Author

Here a list of data sources that should offer a list operation

Resource Proposed Name of Data Source Link to CF V3 API
Apps cloudfoundry_apps https://v3-apidocs.cloudfoundry.org/version/3.179.0/index.html#list-apps
Domain cloudfoundry_domains https://v3-apidocs.cloudfoundry.org/version/3.179.0/index.html#list-domains
Isolation Segment cloudfoundry_isolation_segments https://v3-apidocs.cloudfoundry.org/version/3.179.0/index.html#list-isolation-segments
Orgs cloudfoundry_orgs https://v3-apidocs.cloudfoundry.org/version/3.179.0/index.html#list-organizations
Org Quota cloudfoundry_org_quotas https://v3-apidocs.cloudfoundry.org/version/3.179.0/index.html#list-organization-quotas
Role cloudfoundry_roles https://v3-apidocs.cloudfoundry.org/version/3.179.0/index.html#list-roles
Routes cloudfoundry_routes https://v3-apidocs.cloudfoundry.org/version/3.179.0/index.html#list-routes
Security Group cloudfoundry_security_groups https://v3-apidocs.cloudfoundry.org/version/3.179.0/index.html#list-security-groups
Service cloudfoundry_services https://v3-apidocs.cloudfoundry.org/version/3.179.0/index.html#list-service-offerings
Service Credential Binding cloudfoundry_service_credential_bindings https://v3-apidocs.cloudfoundry.org/version/3.179.0/index.html#list-service-credential-bindings
Service Instance cloudfoundry_service_instances https://v3-apidocs.cloudfoundry.org/version/3.179.0/index.html#list-service-instances
Space cloudfoundry_spaces https://v3-apidocs.cloudfoundry.org/version/3.179.0/index.html#list-spaces
Space Quota cloudfoundry_space_quotas https://v3-apidocs.cloudfoundry.org/version/3.179.0/index.html#list-space-quotas
Space Stack cloudfoundry_stacks <https://v3-apidocs.cloudfoundry.org/version/3.179.0/index.html#list-stacks >

@lechnerc77
Copy link
Contributor Author

For MTA see #25

@Dray56
Copy link
Contributor

Dray56 commented Nov 11, 2024

All data sources mentioned have been implemented

@Dray56 Dray56 closed this as completed Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants