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

new resource: azurerm_api_management_api_tag #14453

Closed
andreassiegel opened this issue Dec 2, 2021 · 2 comments
Closed

new resource: azurerm_api_management_api_tag #14453

andreassiegel opened this issue Dec 2, 2021 · 2 comments

Comments

@andreassiegel
Copy link

andreassiegel commented Dec 2, 2021

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

The Azure API for the API Management Service includes an endpoint to assign tags to APIs.
This functionality, however, does not seem to be supported by the Terraform provider at the moment.
Actually, it looks like tags in the API management service can only be created using the Terraform provider but then it's not possible to use them in any way.

In contrast to that, azurerm_api_management_api_operation_tag allows for tagging of API operations. It looks like the corresponding functionality for APIs is missing.

New or Affected Resource(s)

Potential Terraform Configuration

provider "azurerm" {
  features {}
}

resource "azurerm_resource_group" "example" {
  name     = "example-resources"
  location = "West Europe"
}

resource "azurerm_api_management" "example" {
  name                = "example-apim"
  location            = azurerm_resource_group.example.location
  resource_group_name = azurerm_resource_group.example.name
  publisher_name      = "My Company"
  publisher_email     = "company@terraform.io"
  sku_name            = "Consumption_0"
}

data "azurerm_api_management_api" "example" {
  name                = "search-api"
  api_management_name = "search-api-management"
  resource_group_name = "search-service"
  revision            = "2"
}

resource "azurerm_api_management_tag" "example" {
  api_management_id   = azurerm_api_management.example.id
  api_id              = azurerm_api_management_api.example.id
  name                = "example-Tag"
}

References

@katbyte katbyte changed the title Support for API Management - Tag - Assign to API new resource: azurerm_api_management_api_tag Jan 12, 2022
katbyte pushed a commit that referenced this issue Jan 12, 2022
Co-authored-by: Felix Grohmann <felix.grohmann@pentacor.de>

Fix for #14453
@katbyte katbyte closed this as completed Jan 12, 2022
@katbyte katbyte added this to the v2.92.0 milestone Jan 12, 2022
@github-actions
Copy link

This functionality has been released in v2.92.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@github-actions
Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants