How do I search using powershell on premise TFS ?
还没有人认领这个 Issue。
评估
调研方向
从 TFS 2017 Update 2 的背景、PowerShell Invoke-RestMethod 示例以及链接的 code-search-results 参考开始。确定文档中记录的 endpoint 是否适用于 on-premise TFS;完成意味着提供准确的 on-premise TFS 使用路径,或记录其不受支持。
由索引模型根据 Issue 内容生成。
描述
I am running TFS 2017 on prem update 2
$tfsUrl = 'https://tfs:444/tfs'
$projectId = 'd18ff858-xxxxxxxx'
$teamId = '9907188a-xxxxxxxx'
$tfsRepos = "$tfsUrl/Common/$projectId/_apis/search/codesearchresults?api-version=4.1-preview.1"
$secureCredential = Get-Credential
$allResults = (Invoke-RestMethod -Uri $tfsRepos -Method Post -Credential $secureCredential).value
$allResults= $allResults | Select -first 20
I am getting this error
Invoke-RestMethod :
Page not found. - Microsoft Team Foundation Server
Reference ( Could not find TFS Api reference only for the VSTS one is there )
https://docs.microsoft.com/en-us/rest/api/vsts/search/code%20search%20results/fetch%20code%20search%20results
- 主要语言
- PowerShell
- 星标
- 57
- 派生
- 68
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
microsoft/Code-Search 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 48/100
microsoft/Code-Search#122 ·
-
难度 5/5 一周以上 新手友好度 25/100
microsoft/Code-Search#98 · 2 条评论 · 2 个 reaction ·
-
难度 1/5 1 小时以内 新手友好度 15/100
microsoft/Code-Search#97 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 25/100
microsoft/Code-Search#96 ·
-
难度 2/5 1-3 小时 新手友好度 30/100
microsoft/Code-Search#95 · 1 条评论 ·
查看 microsoft/Code-Search 的全部 Issue
相似的 Issue
-
agent-ready documentation needs-triage
难度 1/5 1-3 小时 新手友好度 88/100
-
area-deployment area-integrations triage:bot-seen
难度 2/5 半天 新手友好度 86/100
-
agentic-workflows
难度 2/5 1-3 小时 新手友好度 76/100
-
refactor
难度 2/5 1-3 小时 新手友好度 78/100
-
bug build
难度 1/5 1 小时以内 新手友好度 91/100
facebookincubator/velox#19194 ·