2017-03-22 2 views
2

Ich muss TFS-Vor-Ort-REST-APIs ausführen, um einige Daten zu erhalten. Jetzt möchte ich die minimale Erlaubnisanforderung auflisten, um sie auszuführen.TFS-REST-APIs und erforderliche Mindestberechtigungen, um sie auszuführen

Die unten sind die REST-APIs ich suche:

GET https://{instance}/_apis/projectcollections/{collection}?api-version={version} 
GET https://{instance}/DefaultCollection/_apis/projects?api-version={version}[&stateFilter{string}&$top={integer}&skip={integer}] 
GET https://{instance}/DefaultCollection/_apis/projects/{project}?api-version={version}[&includeCapabilities={boolean}] 
GET https://{instance}/DefaultCollection/_apis/projects/{project}/teams?api-version={version}[&$top={integer}&$skip={integer}] 
GET https://{instance}/DefaultCollection/_apis/projects/{project}/teams/{team} ?api-version={version} 
GET https://{instance}/DefaultCollection/_apis/projects/{project}/teams/{team}/members ?api-version={version}[&$top={integer}&$skip={integer}] 
GET https://{instance}/DefaultCollection/_apis/tfvc/branches?api-version={version}[&includeChildren={bool}&includeDeleted={bool}] 
GET https://{instance}/DefaultCollection/_apis/tfvc/branches/{path}?api-version={version}[&includeChildren={bool}&includeParent={bool}&includeDeleted={bool}] 
GET https://{instance}/DefaultCollection/_apis/tfvc/changesets?api-version={version} 
GET https://{instance}/DefaultCollection/_apis/tfvc/changesets/{id}?api-version={version}[&includeDetails={Boolean}&includeWorkItems={Boolean}&includeSourceRenames={Boolean}&maxChangeCount={int}&maxCommentLength={int}] 
GET https://{instance}/DefaultCollection/_apis/tfvc/changesets/{id}/changes?api-version={version}[&$skip={int}&$top={int}] 
GET https://{instance}/DefaultCollection/_apis/tfvc/shelvesets?api-version={version}[&owner={string}&maxContentLength={int}&$top={int}&$skip={int}] 
GET https://{instance}/DefaultCollection/_apis/tfvc/shelvesets/{shelveset};{owner} ?api-version={version} 
GET https://{instance}/DefaultCollection/_apis/tfvc/shelvesets/{shelveset};{owner}/changes ?api-version={version} 
GET https://{instance}/DefaultCollection/_apis/tfvc/shelvesets/{shelveset};{owner}/workitems?api-version={version} 
GET https://{instance}/DefaultCollection/_apis/tfvc/labels ?api-version={version}[&name={srtring}&owner={string}&itemLabelFilter={string}&$top={int}&$skip={int}] 
GET https://{instance}/DefaultCollection/_apis/tfvc/labels/{labelId} ?api-version={version}[&maxItemCount={int}] 
GET https://{instance}/DefaultCollection/_apis/tfvc/labels/{labelId}/items ?api-version={version}[&$top={int}&$skip={int}] 
GET https://{instance}/DefaultCollection/_apis/tfvc/items/{path} ?api-version={version}&[scopePath={scopePath}] 

Antwort

3

Um die erste ~ 3. REST-API zu verwenden, müssen Sie colleciton Administrator dieser Sammlung werden.

Um die 4. ~ 6.en REST-API verwenden, müssen Sie

Die vom 7. bis zum letzten verwenden, um einen TFS Projektadministrator sein, müssen Sie „Informationen Blick auf Projektebene“, um die Erlaubnis haben, eingestellt erlauben. Sie könnten ein Mitwirkender sein. Und stellen Sie sicher, dass Sie die Berechtigung zum Anzeigen von Codes unter Teamprojekt haben.

+0

Danke für die Hilfe – Angshuman

Verwandte Themen