azure - 获取与 API 管理服务关联的后端

标签 azure command-line-interface

有没有办法使用 Azure CLI 获取特定 API 管理服务的后端列表?

enter image description here

az apim documentation没有任何方法来列出后端。

我尝试迭代其中一个 API 的操作,但它们没有后端信息。可能吗?

最佳答案

我尝试在我的环境中重现相同的结果并得到以下结果:

我有一个名为 sriapim01 的 API 管理服务,具有以下后端:

enter image description here

Note that, you can only use either PowerShell or REST API or ARM templates to list the backends of API Management service.

就我而言,我使用了以下 PowerShell 命令并成功获取了后端列表,如下所示:

$apimContext = New-AzApiManagementContext -ResourceGroupName "rgname" -ServiceName "APIM name"
Get-AzApiManagementBackend -Context $apimContext

回应:

enter image description here

要通过 REST API 列出后端,您可以引用下面的 MS 文档:

Backend - List By Service - (Azure APIM) | Microsoft

关于azure - 获取与 API 管理服务关联的后端,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/75313839/

相关文章:

azure - 通过 api 调用逻辑应用作业运行状态

azure - CNAME 重定向在 GoDaddy 中不起作用

azure - 使用筛选器获取 Azure 资源

command-line-interface - 将应用程序发布到 Cloud Foundry 错误 : exceeded organization's memory limit. 如何修复?

c# - Firebase:如何将身份验证添加到 cli 应用程序中

macos - 如何在 OS X 中从命令行打开 Atom 编辑器?

php - 如何为 PHPUnit 测试提供凭据

linux - 如何使用git命名空间 stash 分支

azure - 在 Azure 逻辑应用(标准)中找不到自定义连接器

c# - 使用 Windows Phone 安全地访问第三方 api(也许是 Azure?)