MicrosoftDocs / vsts-rest-api-specs

MIT License
164 stars 116 forks source link

Download Log Docs Are Broken #291

Open AjkayAlan opened 4 years ago

AjkayAlan commented 4 years ago

Going to https://docs.microsoft.com/en-us/rest/api/azure/devops/audit/download%20log?view=azure-devops-rest-5.1 it appears the docs are broken/non-existent.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

mapoitras commented 4 years ago

Any updates on this? Looking for API to download logs.

mapoitras commented 4 years ago

Alan, I found this which might be useful to you: https://docs.microsoft.com/en-us/rest/api/azure/devops/audit/download%20log/download%20log?view=azure-devops-rest-6.0

AjkayAlan commented 4 years ago

Thanks @mapoitras. At the time of reporting this issue, download log was not live on 6.0-preview, even though it was in the docs. I haven't double checked to see if its live now though.

Ultimately I ended up using query log (https://docs.microsoft.com/en-us/rest/api/azure/devops/audit/audit%20log/query?view=azure-devops-rest-5.1) and having a simple script to loop whenever I had a continuation token. This results in me making 4 or 5 api calls for my amount of logs, but gets a similar result. That may be a good direction for you to take if the 6.0-preview doesn't work.