Skip to content

Commit

Permalink
azurerm_api_management_api fix the bug in example usage (#27758)
Browse files Browse the repository at this point in the history
* Update api_management_api.html.markdown

* Update api_management_api.html.markdown

Added extra explanation

* Update api_management_api.html.markdown

* Update api_management_api.html.markdown

Swapped the content of `content_value` with a working link.
  • Loading branch information
azarboon authored Nov 22, 2024
1 parent f03ec88 commit 7857bbe
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions website/docs/r/api_management_api.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,9 @@ resource "azurerm_api_management_api" "example" {
display_name = "Example API"
path = "example"
protocols = ["https"]
import {
content_format = "swagger-link-json"
content_value = "http://conferenceapi.azurewebsites.net/?format=json"
content_value = "https://raw.githubusercontent.com/hashicorp/terraform-provider-azurerm/refs/heads/main/internal/services/apimanagement/testdata/api_management_api_schema_swagger.json"
}
}
```
Expand Down Expand Up @@ -116,7 +115,7 @@ A `import` block supports the following:

* `content_format` - (Required) The format of the content from which the API Definition should be imported. Possible values are: `openapi`, `openapi+json`, `openapi+json-link`, `openapi-link`, `swagger-json`, `swagger-link-json`, `wadl-link-json`, `wadl-xml`, `wsdl` and `wsdl-link`.

* `content_value` - (Required) The Content from which the API Definition should be imported. When a `content_format` of `*-link-*` is specified this must be a URL, otherwise this must be defined inline.
* `content_value` - (Required) The Content from which the API Definition should be imported. When a `content_format` of `*-link-*` is specified this must be a URL, otherwise this must be defined inline. The URL must be accessible and return a valid document; otherwise, deployment may fail.

* `wsdl_selector` - (Optional) A `wsdl_selector` block as defined below, which allows you to limit the import of a WSDL to only a subset of the document. This can only be specified when `content_format` is `wsdl` or `wsdl-link`.

Expand Down

0 comments on commit 7857bbe

Please sign in to comment.