However, what I really want is the contents of a file called bundlesizes.json within this zip.
I think what I am missing is the fileId field, where I am not aware what needs to go in. The documentation says fileId is the The primary key for the file. However, I don't know where I can find it.
If you are using the Publish Build Artifacts task, GetFile API is not supported.
We could use GetArtifacts API to get the details of artifactName (The default in the tasks is drop), type and download URL. But the download URL is for a zip and not individual files.
Azure DevOps team don't have publicly documented and supported APIs for individual file downloads, but only support zip download.
Besides, The GetFile API is supported for "Azure Pipeline Artifacts" which can be uploaded using the Publish Pipeline Artifacts task.
What is the difference between build and pipeline artifacts?
Not the answer you're looking for? Browse other questions tagged azure-devops azure-pipelines-release-pipeline azure-pipelines-build-task azure-devops-rest-api azure-artifacts or ask your own question.
VSTS Release Management: How to use Azure Blob as Artifact?
How to call VSTS REST API to get list of artifacts for release definition in a web extension?
How to get the file differences from GIT using Azure DevOps REST API?
Azure DevOps git policy configurations api broken?
Source Providers - List Branches - What is the providerName?