用于发布 APIM 开发人员门户的 Powershell 脚本 [英] Powershell script to publish APIM developer portal
本文介绍了用于发布 APIM 开发人员门户的 Powershell 脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我计划使用 powershell 发布开发人员门户,但我无法这样做.团队请帮助我任何人
I am planning to publish the developer portal using powershell but i am unable to do that. team please help me anyone
推荐答案
我认为这部分还没有文档化,但是要发布开发门户,您需要:
I do not believe that this part is documented yet, but to publish dev portal you need to:
- 使用获取 SAS 令牌 API(https://docs.microsoft.com/en-us/rest/api/apimanagement/2019-12-01/user/getsharedaccesstoken) 获取 ID 为 1 的用户的令牌,即
- 通过发送以下请求发布门户:
- Use Get SAS token API (https://docs.microsoft.com/en-us/rest/api/apimanagement/2019-12-01/user/getsharedaccesstoken) to get token for user with ID 1, i.e.
- Publish portal by sending following request:
POST https://<service-name>.developer.azure-api.net/publish
Authorization: SharedAccessSignature <token-you-obtained-on-step-1>
这篇关于用于发布 APIM 开发人员门户的 Powershell 脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文