Download a pipeline artifact of an application
import requests
url = "https://platform.ankra.app/api/v1/org/applications/{application_id}/artifacts/{artifact_id}/download"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/applications/{application_id}/artifacts/{artifact_id}/download', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/org/applications/{application_id}/artifacts/{artifact_id}/download \
--header 'Authorization: Bearer <token>'Pipelines
Download a pipeline artifact of an application
Answers 302 to a five-minute presigned GET on the organisation’s backup vault; the bytes never pass through the platform. A client that follows the redirect receives the artifact itself. Needs pipelines.read.
GET
/
api
/
v1
/
org
/
applications
/
{application_id}
/
artifacts
/
{artifact_id}
/
download
Download a pipeline artifact of an application
import requests
url = "https://platform.ankra.app/api/v1/org/applications/{application_id}/artifacts/{artifact_id}/download"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/applications/{application_id}/artifacts/{artifact_id}/download', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/org/applications/{application_id}/artifacts/{artifact_id}/download \
--header 'Authorization: Bearer <token>'Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The application whose connected repository's pipeline is addressed.
The artifact.
Response
Redirect to a presigned download URL (Location header, Cache-Control: no-store).