azure - API 管理 ARM 模板中的 API URL 后缀

标签 azure azure-resource-manager azure-rm-template

我没有找到在 Azure APIM ARM 模板中指定或设置“API URL 后缀”的位置。需要设置该字段:

enter image description here

这是 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中。

enter image description here

enter image description here

关于azure - API 管理 ARM 模板中的 API URL 后缀,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61108178/

相关文章:

angular - SignalR HubConnection 中的skipNegotiation 是什么意思?

.net - 图像未正确上传到 Azure 存储

azure - 在 AzureRM.KeyVault v. 3.1.0 中找不到 Add-AzureKeyVaultManagedStorageAccount cmdlet

Azure 资源组名称大小写

azure - API管理ARM模板创建

当我重新部署逻辑应用程序 IaC 部分时,Azure 逻辑应用程序(标准)工作流被删除,如何避免这种情况?

Azure逻辑应用程序无法使用转换后的base64编码的pfx创建客户端证书身份验证

azure - 使用剩余调用设置响应 header Azure API 管理

Azure ARM - 列表键 - 如何获取特定键的键值?

json - 如何在 Azure 策略中强制实现标签值模式?