[英]Is it possible to import an API into Azure API Management through ARM templates?
I know I can create an Azure API Management instance using Azure Resource Management templates , but can I also import my API into it using the same templates? 我知道我可以使用Azure资源管理模板创建Azure API管理实例,但我是否可以使用相同的模板将API导入其中?
The web app which provides the API is created in a previous step using the ARM templates, and the URL for the Swagger definition is known. 提供API的Web应用程序是使用ARM模板在上一步中创建的,并且已知Swagger定义的URL。 It would make a lot of sense to also automate the import. 同样自动化导入也很有意义。
It is available now. 它现在可用 。 See Api Reference . 请参见Api参考 。
{
"properties": {
"format": "swagger-link-json",
"value": "http://petstore.swagger.io/v2/swagger.json",
"path": "petstore"
}
}
It is not supported yet, but it's in the backlog. 它尚未得到支持,但它在积压中。 I don't have a date to share at this point. 我此时没有分享日期。
I'd like to add that this way of importing doesn't support versioned API's yet. 我想补充一点,这种导入方式还不支持版本化的API。 To get this working you need to first run an ARM template to create a versioned API and next the ARM template containing the import. 要实现此功能,您需要首先运行ARM模板以创建版本化API,然后再运行包含导入的ARM模板。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.