api_management_api_operation_tag
- Don't use this resource to create tags. Only attach existing tags to operations
#27518
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Community Note
Description
Previously the
api_management_api_operation_tag
resource first created a tag and then attached this tag to the operation. This behaviour leads to problems if the same tag shall be attached to multiple apis / operations. This PR fixed this by aligning the behaviour of theapi_management_api_operation_tag
resource to the behaviour of theapi_management_api_tag
resource.It is now expected to manage a tag with the
api_management_tag
resource and then attach it to one or multiple operations with theapi_management_api_operation_tag
resource.The code is written in such a way that it reverts to the old behaviour if the
display_name
property is still set, to not break existing users.However new and existing users are encouraged to switch to using
api_management_tag
resource in combination with theapi_management_api_operation_tag
resource by showing the deprecation message of thedisplay_name
property.PR Checklist
Changes to existing Resource / Data Source
Testing
Change Log
Below please provide what should go into the changelog (if anything) conforming to the Changelog Format documented here.
api_management_api_operation_tag
- deprecatedisplay_name
property. Useapi_management_tag
to manage names of tags [api_management_api_operation_tag
- Don't use this resource to create tags. Only attach existing tags to operations #27518]This is a (please select all that apply):
Related Issue(s)
Closes #12580
Fixes #25098