我没有找到在 Azure APIM ARM 模板中指定或设置“API URL 后缀”的位置。需要设置该字段:
这是 JSON 的一部分。有我可以使用的属性(property)吗?
"resources": [
{
"type": "Microsoft.ApiManagement/service/apis",
"apiVersion": "2019-01-01",
"name": "[concat(parameters('apimName'), '/', parameters('apiName'))]",
"properties": {
"description": "Test Rating APIs",
"displayName": "Test Rating",
"serviceUrl": "[parameters('backEndServiceUrl')]",
"path": "[parameters('backEndServiceUrlPath')]",
"protocols": [
"https"
]
}
}
最佳答案
path
的属性(property)与API URL后缀有关。
Relative URL uniquely identifying this API and all of its resource paths within the API Management service instance. It is appended to the API endpoint base URL specified during the service instance creation to form a public URL for this API.
当我将helloworld
设置为Api url suffix
时,然后在ARM模板中,它显示在path
中。
关于azure - API 管理 ARM 模板中的 API URL 后缀,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61108178/