New Data Source: azurerm_api_management_subscription#27824
Merged
stephybun merged 8 commits intohashicorp:mainfrom Jan 21, 2025
Merged
New Data Source: azurerm_api_management_subscription#27824stephybun merged 8 commits intohashicorp:mainfrom
azurerm_api_management_subscription#27824stephybun merged 8 commits intohashicorp:mainfrom
Conversation
apgmckay
reviewed
Nov 26, 2024
internal/services/apimanagement/api_management_subscription_data_source.go
Show resolved
Hide resolved
apgmckay
approved these changes
Nov 26, 2024
apgmckay
left a comment
There was a problem hiding this comment.
Looks really nice we have a need for this exact feature.
stephybun
reviewed
Jan 15, 2025
Comment on lines
+40
to
+42
| "api_management_name": schemaz.SchemaApiManagementDataSourceName(), | ||
|
|
||
| "resource_group_name": commonschema.ResourceGroupName(), |
Member
There was a problem hiding this comment.
Let's replace these with the resource's ID since we can infer the resource group from it
Suggested change
| "api_management_name": schemaz.SchemaApiManagementDataSourceName(), | |
| "resource_group_name": commonschema.ResourceGroupName(), | |
| "api_management_id": { | |
| Type: pluginsdk.TypeString, | |
| Required: true, | |
| ForceNew: true, | |
| ValidateFunc: apimanagementservice.ValidateServiceID, | |
| }, |
Contributor
Author
There was a problem hiding this comment.
Applied the changes, and also updated the doc.
internal/services/apimanagement/api_management_subscription_data_source.go
Outdated
Show resolved
Hide resolved
internal/services/apimanagement/api_management_subscription_data_source.go
Show resolved
Hide resolved
internal/services/apimanagement/api_management_subscription_data_source.go
Outdated
Show resolved
Hide resolved
internal/services/apimanagement/api_management_subscription_data_source.go
Outdated
Show resolved
Hide resolved
stephybun
reviewed
Jan 16, 2025
| } | ||
|
|
||
| data "azurerm_api_management_subscription" "test" { | ||
| api_management_id = api_management_id.test.id |
Member
There was a problem hiding this comment.
Suggested change
| api_management_id = api_management_id.test.id | |
| api_management_id = azurerm_api_management.test.id |
jackofallops
added a commit
that referenced
this pull request
Jan 31, 2025
* Update for #27950 * Update for #27824 * Update for #28592 #28583 #28599 #28590 #28453 * Update #28528 * Update for #27853 * Update CHANGELOG.md #28221 * Update for #27760 * Update CHANGELOG.md #28480 * Update CHANGELOG.md typo * Update CHANGELOG.md #28372 * Update CHANGELOG.md for #26047 also alphabetised ENHANCEMENTS * Update for #28146 * Update CHANGELOG.md #28013 * Update CHANGELOG.md for #28492 * Update CHANGELOG.md for #28648 * Update CHANGELOG.md for #28549 * Update for #28469 #28620 * prep for release * i touched it last --------- Co-authored-by: catriona-m <[email protected]> Co-authored-by: jackofallops <[email protected]> Co-authored-by: sreallymatt <[email protected]> Co-authored-by: Matthew Frahry <[email protected]> Co-authored-by: jackofallops <[email protected]>
Contributor
|
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
Note
I found a missing
{}in the data source guide, and I took the liberty of update it. Let me know if that is a problem.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.
azurerm_api_management_subscription- New data source [New Data Source:azurerm_api_management_subscription#27824]This is a (please select all that apply):
Related Issue(s)
Fixes #20575
Note
If this PR changes meaningfully during the course of review please update the title and description as required.