我可以使用个人访问令牌下载已发布的工件吗? [英] Can I download a published artifact using a personal access token?

查看:62
本文介绍了我可以使用个人访问令牌下载已发布的工件吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想运行以下命令(即在Powershell中)

I want to run the following command (i.e. within Powershell)

Invoke-WebRequest  https://< mysite> .visualstudio.com / DefaultCollection /< MyProject> / _ apis / build / builds / 99 / artifacts?artifactName = drop& $ format = zip -OutFile drop.zip

Invoke-WebRequest https://<mysite>.visualstudio.com/DefaultCollection/<MyProject>/_apis/build/builds/99/artifacts?artifactName=drop&$format=zip -OutFile drop.zip

我明白如果程序调用当前无法实现这样的请求没有被记录下来。

可以以某种方式使用具有适当权限的个人访问令牌吗?比方说,发送它作为一些查询字符串参数?

I understand this currently can't be achieved if the program invoking such request is not logged it.
Can a personal acces token with the appropriate privileges be used somehow? Say, sending it as some query string parameter?

推荐答案

你好Juniel,     

感谢您的帖子。

看来你正在使用VS Online,所以我转到这个帖子到VS Online论坛以获得更好的响应。

It seems you’re using VS Online, so I moved to this post to VS Online forum for the better response.


这篇关于我可以使用个人访问令牌下载已发布的工件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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