Skip to content

Add support for storage_filter_type and tags_to_match in storage profiles #603

@davidsedano01

Description

@davidsedano01

Code of Conduct

This project has a Code of Conduct that all participants are expected to understand and follow:

Description

The current implementation of vRA storage profiles in the Terraform provider does not support the storage_filter_type and tags_to_match fields that are available in the latest vRA IaaS API.

According to the API specification:

  • storage_filter_type: Defines filter type for adding storage objects (datastores) to the storage profile. Valid values are: INCLUDE_ALL, TAG_BASED, MANUAL. Defaults to INCLUDE_ALL.
  • tags_to_match: A set of tag keys and optional values to be set on datastores to be included in this storage profile when storage_filter_type is TAG_BASED.

This enhancement would allow users to leverage storage filtering capabilities when creating storage profiles through Terraform.

Describe alternatives you've considered

Currently users must manually configure storage profile associations without the ability to filter by tags. The only workarounds are:

  1. Use the vRA UI to configure these settings after creation
  2. Use the vRA REST API directly
  3. Manually specify all datastores without filtering

References

Community Note

  • 👍 Please vote on this issue if you would find this enhancement useful
  • Please do not leave "+1" or other comments that do not add relevant new information or questions
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions