getTFSProjects: Get existing TFS (Git) Projects

Description Usage Arguments Value See Also Examples

Description

Find out what Projects & repositories exist on TFS. This will help you isolate the GUIDs etc needed to add new Git repositories.

Usage

1
2
getTFSProjects(URL, Credentials, ..., Flatten = TRUE,
  URLSub = "DefaultCollection")

Arguments

URL

URL for root TFS e.g. http://stephlocke.visualstudio.com

Credentials

TFSAuth object

...

Additional arguments to httr::GET

Flatten

If Flatten=FALSE, the results will be returned in the native list format

URLSub

Modify this if you need to reference somewhere other than DefaultCollection

Value

projects Data.table (unless Flatten=FALSE, in which case a list) with each project, GUID, & type

See Also

createTFSRepository

Examples

1
2
3
tfs           <- "https://stephlocke.visualstudio.com"
authcreds     <- TFSAuth(pwd="fz43enydh7vi2o6jqir2gmftohh7ooz2lizqvy6jxtw4ltrpwola")
tfsprojects   <- getTFSProjects(tfs,authcreds) 

stephlocke/tfsR documentation built on May 30, 2019, 4:41 p.m.