我有在Azure Cloud中为Azure DevOps管道URL创建的服务主帐户。如何对URL进行休息?
我有用于触发azure devops pipiline url 在Azure Cloud Service Principal帐户中注册的URL。以前,我使用PAT令牌进行身份验证。现在,我想使用服务主帐户。我有服务主帐户的Clint ID和Cliend Secret。现在,如何通过Post Man或使用Logic应用程序致电管道URL。任何文档或某些内容都对我真的很有帮助。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用 curl 对URL进行休息。您可以在链接中了解有关卷曲的更多信息。
由于您创建了服务主帐户,因此
首先您需要请求访问令牌。
然后,您可以使用
bearer令牌
来调用Azure REST API:You can use curl to make a rest call to the url. You can learn more about curl in the link.
Since you have service principal account created,
First you need to request the Access Token.
Then you can call Azure REST API using
Bearer Token
to be authorized: