Skip to content

Add ID-based lookup support for vsphere_tag and vsphere_tag_category data sources#2686

Open
akli-ime wants to merge 9 commits intovmware:mainfrom
akli-ime:feat/tag
Open

Add ID-based lookup support for vsphere_tag and vsphere_tag_category data sources#2686
akli-ime wants to merge 9 commits intovmware:mainfrom
akli-ime:feat/tag

Conversation

@akli-ime
Copy link
Contributor

@akli-ime akli-ime commented Feb 25, 2026

Summary

This pull request implements the feature request described in issue #2683 by adding support for resolving vSphere tags and tag categories directly by theirunique ID in the vsphere_tag and vsphere_tag_category data sources.

This enhancement improves usability by allowing direct lookup using object IDs, removing the need to know the tag name and category in advance. Documentation has also been updated to reflect the new lookup method and provide examples.

Type

  • fix: Bug Fix
  • feat: Feature or Enhancement
  • docs: Documentation
  • refactor: Refactoring
  • chore: Build, Dependencies, Workflows, etc.
  • other: Other (Please describe.)

Breaking Changes?

  • Yes, there are breaking changes.
  • No, there are no breaking changes.

Tests

  • Tests have been added or updated.
  • Tests have been completed.

Documentation

  • Documentation has been added or updated.

Issue References

Resolves #2683

Additional Information

This change is fully backward compatible. Existing configurations using name-based lookups continue to work unchanged.

@akli-ime akli-ime requested a review from a team as a code owner February 25, 2026 21:23
@github-actions github-actions bot added documentation Documentation provider Provider needs-review Needs Review size/m Relative Sizing: Medium labels Feb 25, 2026
Copy link
Contributor

@tenthirtyam tenthirtyam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use conventional commits as described in the contributing guidelines for the commits and pull request title.

You can review other commits and closed pull requests to align with the flow we use in the project.

Thanks!

Copy link
Contributor

@tenthirtyam tenthirtyam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comments provided for request changes. In addition, the tests should be updated.

@tenthirtyam tenthirtyam marked this pull request as draft February 25, 2026 22:46
@tenthirtyam
Copy link
Contributor

Issue References

Implements #2683

This does not follow the proper GitHub syntax to link a pull request to an issue.

Please refer to Linking a pull request to an issue using a keyword in the GitHub documenation.

For example, use one of these options:

Closes #2683 
Fixes #2683
Resolves #2683

@tenthirtyam tenthirtyam added this to the Backlog milestone Feb 25, 2026
@akli-ime akli-ime marked this pull request as ready for review February 26, 2026 07:58
Copy link
Contributor

@tenthirtyam tenthirtyam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tests should be updated.

akli-ime and others added 9 commits March 10, 2026 06:12
Co-authored-by: Ryan Johnson <ryan@tenthirtyam.org>
Co-authored-by: Ryan Johnson <ryan@tenthirtyam.org>
Co-authored-by: Ryan Johnson <ryan@tenthirtyam.org>
Co-authored-by: Ryan Johnson <ryan@tenthirtyam.org>
Co-authored-by: Ryan Johnson <ryan@tenthirtyam.org>
Co-authored-by: Ryan Johnson <ryan@tenthirtyam.org>
Co-authored-by: Ryan Johnson <ryan@tenthirtyam.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Documentation needs-review Needs Review provider Provider size/m Relative Sizing: Medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support in d/vsphere_tag to lookup by ID and retrieve tag name and its category name

2 participants