diff --git a/azurerm/internal/services/apimanagement/resource_arm_api_management_api.go b/azurerm/internal/services/apimanagement/resource_arm_api_management_api.go index ea79b207f4be..5c74cae2cfa3 100644 --- a/azurerm/internal/services/apimanagement/resource_arm_api_management_api.go +++ b/azurerm/internal/services/apimanagement/resource_arm_api_management_api.go @@ -100,6 +100,10 @@ func resourceArmApiManagementApi() *schema.Resource { Type: schema.TypeString, Required: true, ValidateFunc: validation.StringInSlice([]string{ + string(apimanagement.Openapi), + string(apimanagement.Openapijson), + string(apimanagement.OpenapijsonLink), + string(apimanagement.OpenapiLink), string(apimanagement.SwaggerJSON), string(apimanagement.SwaggerLinkJSON), string(apimanagement.WadlLinkJSON), diff --git a/examples/api-management/variables.tf b/examples/api-management/variables.tf index 13c4b32c803d..0d7983f80e21 100644 --- a/examples/api-management/variables.tf +++ b/examples/api-management/variables.tf @@ -7,7 +7,7 @@ variable "location" { } variable "open_api_spec_content_format" { - description = "The format of the content from which the API Definition should be imported. Possible values are: swagger-json, swagger-link-json, wadl-link-json, wadl-xml, wsdl and wsdl-link." + description = "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." } variable "open_api_spec_content_value" { diff --git a/website/docs/r/api_management_api.html.markdown b/website/docs/r/api_management_api.html.markdown index f32cb79d799b..75e9b4261804 100644 --- a/website/docs/r/api_management_api.html.markdown +++ b/website/docs/r/api_management_api.html.markdown @@ -84,7 +84,7 @@ The following arguments are supported: 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: `swagger-json`, `swagger-link-json`, `wadl-link-json`, `wadl-xml`, `wsdl` and `wsdl-link`. +* `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.