Download a Profiles Hub profile version
GET/v2/download/profile/hub/: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 Profiles Hub profile version: the profile archive (download_url) or its signature (signature_bin_url). versionid is the profile version id (versions[].id from GET /v2/profiles/hub/catalog); a version id is needed because the FIPS and non-FIPS variants of a profile can share a version number. The download_url and signature_bin_url fields in Profiles Hub catalog responses already point here. Requires a token. Gated and private profiles also require your organization to be entitled to one of the profile'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 profile (JSON error envelope or HTML page)
Catalog profile version or artifact URL missing (JSON error envelope or HTML page)
Internal server error (JSON error envelope or HTML page)