VSTS Service Hooks(Web Hooks) - 重新排列API能力? [英] VSTS Service Hooks (Web Hooks) - Requeue API ability?

查看:66
本文介绍了VSTS Service Hooks(Web Hooks) - 重新排列API能力?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我对VSTS中的Service Hooks有疑问,特别是Web Hooks。是否可以浏览服务挂钩历史记录,获取失败的请求并通过API重新排队?



这样的话真的很棒机制。



提前感谢每一个答案:)

解决方案

您好Pablooos,


您可以
获取服务挂钩的订阅
,其中包含检查服务挂钩历史记录的通知:


GET https:// {instance} / DefaultCollection / _ apis / hooks / subscriptions / subscriptionID / notifications


然后
创建订阅
以重新排队。


最好的问候,


Hello all,

I have a question about Service Hooks in VSTS, especially Web Hooks. Is it possible to browse the service hook history, get failed requests and requeue them via API?

It would be really nice to have this kind of mechanism.

Thanks in advance for every answer :)

解决方案

Hi Pablooos,

You can get a subscription for the service hook with notifications to check the history of a service hook:

GET https://{instance}/DefaultCollection/_apis/hooks/subscriptions/subscriptionID/notifications

Then create a subscription to requeue the build.

Best regards,


这篇关于VSTS Service Hooks(Web Hooks) - 重新排列API能力?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆