Download a pack version
GET/v2/download/pack/:versionid/:type
Returns a short-lived signed download URL: a 302 redirect by default, or a JSON body {"url": "...", "expires_at": "..."} when the request sends Accept: application/json. Downloads a file for one pack version: the pack archive (download_url), its signature (signature_bin_url), or its Helm chart (helm_url). versionid is the pack version id (versions[].id in pack catalog responses); a version id is needed because the FIPS, non-FIPS, and per-architecture builds of a pack can share a version number. The download_url, signature_bin_url, and helm_url fields in pack catalog responses already point here. Requires a token. Gated and private packs also require your organization to be entitled to one of the pack's entitledClasses. Errors are returned as the v2 JSON error envelope when the request accepts application/json or application/problem+json, otherwise as an HTML page.
Request
Responses
- 200
- 302
- 400
- 401
- 403
- 404
- 500
Signed download URL; returned when the Accept header asks for application/json (browsers get a 302 instead)
Redirect to the signed artifact URL (browser/default)
Response Headers
Absolute signed URL for the requested artifact
Invalid versionid, type, or query parameter (JSON error envelope when Accept is application/json or application/problem+json, otherwise an HTML page)
Login required (JSON error envelope or HTML page)
Entitlement missing for gated or private pack (JSON error envelope or HTML page)
Catalog pack version or artifact URL missing (JSON error envelope or HTML page)
Internal server error (JSON error envelope or HTML page)