gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-03 06:29:58 24 4
gpt4 key购买 nike

有没有办法使用 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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com