简体   繁体   English

Azure API 管理基础 URL - CLI 命令

[英]Azure API Management Base URL - CLI Command

Newbie question.新手问题。 I am using "az apim api import" CLI to register my API in APIM.我正在使用“az apim api import”CLI 在 APIM 中注册我的 API。 We are using different gateways in the APIM.我们在 APIM 中使用不同的网关。 By default, it uses the default gateway as the Base URL.默认情况下,它使用默认网关作为 Base URL。 My question is how do you use CLI to assign a different gateway to the Base URL?我的问题是如何使用 CLI 为 Base URL 分配不同的网关? I don't see a parameter for the CLI to assign the "Base URL" to a given API.我没有看到 CLI 将“基本 URL”分配给给定 API 的参数。 Am I missing something?我错过了什么吗? Thanks谢谢

在此处输入图像描述

There is no way to change gateway URL ie, Base URL through CLI or any other place.无法通过 CLI 或任何其他地方更改网关 URL 即Base URL When we create Azure APIM by default it takes(base url: <apim-service-name>.azure-api.net , Developer url: <apim-service-name>.developer.azure-api.net ) which is provided by AZURE which will be similar for all azure resources like web App service url uses this https://websitename.azurewebsites.net . When we create Azure APIM by default it takes(base url: <apim-service-name>.azure-api.net , Developer url: <apim-service-name>.developer.azure-api.net ) which is provided by AZURE which will be similar for all azure resources like web App service url uses this https://websitename.azurewebsites.net .

To add or change gateway url you will need to create Custom domain name .You can refer this MICROSOFT DOCUMENTATION : For Configuring a custom domain name for your Azure API Management instance要添加或更改网关 url,您需要创建自定义域名。您可以参考此MICROSOFT 文档For Configuring a custom domain name for your Azure API Management instance

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM